Group-Level Training Data Attribution with Exact Shapley Analysis

Tech Stack
Description
This project asks a data-centric question: Which types of training data contribute to shaping model behavior after fine-tuning?
We divide an English–Norwegian petroleum-domain corpus into four groups based on written-standard classifier scores and evaluate all 16 possible combinations using exact Shapley values.
Instead of using a single score for data value, we separately measure translation quality, terminology performance, and written-standard behavior.
As the first author, I led the research and experiments for this project. My contributions included:
- Designed the group-level Shapley attribution framework, including the coalition setup, evaluation metrics, and attribution procedure.
- Led the experiments across NLLB and decoder-only models, including LoRA fine-tuning, coalition training, evaluation, and size-matched random baselines.
- Evaluated the robustness of the attribution results using bootstrap confidence intervals and group-level statistical tests.
- Analyzed how different training groups contribute to translation quality, terminology accuracy, and written-standard behavior.
Research Questions
How do training-data groups contribute to translation quality, terminology performance, and written-standard behavior?
Can group size alone explain these contributions?
How consistent are these attribution patterns across model architectures?
Training-Data Groups
We use SLIDE scores to divide the 13,935 training pairs into four mutually exclusive groups. These groups are used as the units for Shapley attribution.
| Group | Rule | Pairs |
|---|---|---|
| High-Bokmål | sNB ≥ 0.80 and sNN < 0.30 | 10,113 |
| Boundary | sNB ≥ 0.50 and sNN ≥ 0.50 | 880 |
| Nynorsk-like | sNN ≥ 0.50 and sNB < 0.50 | 2,645 |
| Uncertain-other | All remaining cases | 297 |
Here, sNB and sNN are independent SLIDE scores ranging from 0 to 1.
What is in each group?
High-Bokmål
Mostly complete Bokmål sentences about petroleum production, drilling, licences, fields, and geology.
Nynorsk-like
Mostly complete petroleum-domain sentences containing recognizable Nynorsk words and grammatical forms.
Boundary
A mixture of ordinary Bokmål sentences and short items such as contact lines, captions, dates, measurements, and headings.
Uncertain-other
Mostly short metadata-like items: dates, coordinates, company names, headings, links, labels, and text fragments.
These are operational units for Shapley attribution, not gold linguistic categories. The Boundary group mainly reflects classifier uncertainty rather than a clear written-standard category.
All 16 Training-Data Combinations
A coalition is one possible selection of the four groups. Each group is either included or excluded.
24 = 16 coalitions
Exact Shapley Value
For each group g, its exact Shapley value is the weighted average change in metric m when that group is added across every possible coalition.
G = all groups · S = a coalition without g · vm(S) = S’s score on metric m
Experimental Pipeline
- 1
Group the corpus
13,935 training pairs → 4 operational groups
SLIDE-based grouping · 200-item manual audit
- 2
Enumerate coalitions
4 groups → 2⁴ = 16 coalitions
including the empty coalition
- 3
Train and evaluate
15 non-empty coalitions · 3 seeds · 2 architectures
NLLB-600M · NorMistral-7B-warm
- 4
Compute exact Shapley values
Use all 16 coalition scores
→ one contribution value per group and metric
- 5
Stress-test the results
Size-matched random groups · test subsets · bootstrap CIs
training-schedule and grouping-threshold checks
RQ1. How do training-data groups contribute to translation quality, terminology performance, and written-standard behavior?
Exact Shapley attribution · NLLB-600M · all 16 coalitions · three-seed average
Key Finding
High-Bokmål → broad gains
↑ Translation quality · ↑ terminology · ↑ High-Bokmål output
Nynorsk-like → mixed effects
↑ Translation quality · ↓ terminology · ↑ Nynorsk-like output
The same training data can improve one aspect of model behavior while harming another.
Why does Nynorsk-like data have positive value?
Overall contribution on the full test set: +3.21 BLEU
1. Group the test references
Use the same SLIDE classifier to identify:
- High-Bokmål
- Nynorsk-like
2. Measure source overlap
For each English test source, find the most similar English training source.
Overlap = maximum word- and 5-gram similarity score
3. Recompute attribution for each subset
6 subsets = Reference standard × Overlap level
For each subset:
- Calculate BLEU for all 16 coalitions
- Recompute the Nynorsk-like Shapley value
Saved predictions · No retraining
Key Finding
High-Bokmål references → negative at every overlap level
Nynorsk-like references → positive at every overlap level
Higher overlap → larger gains for Nynorsk-like references
RQ2. Can group size alone explain these contributions?
Why test this?
The High-Bokmål group has the strongest contribution, but it is also the largest group. Could this simply be a size effect?
Size-matched test
Compare the true High-Bokmål group with three random groups of the same size.
BLEU
chrF
TermF1
Key Finding
Random groups also contribute to translation quality, but much less than the true High-Bokmål group.
Group size matters, but group size alone does not explain the observed contribution.
RQ3. How consistent are these attribution patterns across model architectures?
We compare the full group-level Shapley results from NLLB-600M (encoder–decoder) with NorMistral-7B-warm (decoder-only).
High-Bokmål
Strong positive quality and Bokmål-output effects in both models
Nynorsk-like
The same output shift in both models: less Bokmål, more Nynorsk-like
Smaller groups
Boundary and uncertain-other effects depend more on the architecture
