TuCo: Measuring the Contribution of Fine-Tuning to Individual Responses of LLMs
ELVIA analysis
Independent review pending
The residual-component construction, its stability-bound motivation, and the released metric-to-analysis path were inspected. The released implementation normalizes the fine-tuning component by three terms, including the initial hidden state, whereas the paper defines a two-term normalization. Exact arithmetic shows that this can reverse sample rankings. This is a Major discrepancy in the released implementation of the central metric. Whether historical published measurements used these exact bytes remains Needs Evidence. A separate endpoint defect makes Proposition 4.2 false as printed; its verified inclusive-prefix form limits this additional finding to Minor.
Problem 1. The released metric uses a different normalization
MajorEvidence and reasoning
Problem statement
Along the fine-tuned trajectory, define Then by telescoping. The pretrained component is evaluated on the fine-tuned intermediate state, not on a separately propagated pretrained trajectory. The inspected implementation follows this distinction.
For last-token projection let Definition 4.3 (p. 5) and Algorithm 1 (p. 4) define Appendix A explains its two-component symmetry: swapping PTC and FTC yields This is a coordinate-norm attribution convention. It does not, by itself, identify a causal percentage of generated semantics.
The paper specifies and uses TuCo to compare prompt types and successful versus unsuccessful jailbreaks. The released README maps the contribution scripts to Sections 5.2–5.4, Tables 1–2, and Figure 4.
In `tuco/tuning_contribution/attributions.py`, lines – `isotropic_attributions` stacks the initial state, summed pretrained increments, and summed fine-tuning increments. It takes each component’s norm and divides by the sum of all three. The returned field `isotropic_tuning_contribution` is therefore The code does not merely store an unused diagnostic: `utils.py`, lines – saves this value as `tuning_contribution` in the consolidated frame. `analyze.py`, lines – and – uses it as the default metric and retrieves it without renormalization. The inspected OpenWebText/HH-RLHF and harmful-output forecasting notebook cells consume that default or the corresponding metric field for ROC analysis. No removal of the initial-state term was found on these traced paths.
For last-token projection and are the norms of the summed pretrained increments, summed fine-tuning increments and initial state, respectively. The pretrained increments are evaluated along the fine-tuned trajectory. Require Both scalar witnesses have positive component norms and the same the source snapshot is not assumed to be the historical experiment commit.
Proof
Supported impact: Major for the released central implementation. Historical experimental impact: Needs Evidence.
For any The multiplying factor depends on the prompt’s component norms. It need not be a constant rescaling and need not preserve rankings, even if is fixed.
Consider two admissible scalar component triples with all norms positive:
Case |
A |
B |
Thus but These positive scalar values can be embedded in any hidden dimension by placing them along one coordinate; there is no zero-denominator or cancellation pathology. The check concerns the formula on valid component arrays, not a claim that these two artificial arrays were observed in a released LLM. It proves that invariance of the paper’s ranking-based results cannot be presumed from the formulas alone.
The metric’s definition and its empirical behavior are the paper’s central contribution. A released computation and analysis path evaluating a different, potentially rank-changing statistic materially affects reproducibility of that contribution; this supports Major for the inspected implementation. The extent of historical impact remains unresolved rather than being used to inflate severity.
If the stored three normalized attributions are and then the exact paper metric is This algebraic conversion is verified on both examples. It does not reconstruct lost raw values, establish numerical conditioning near or certify corrected historical plots.
Possible revision
For stored normalized components and recover the paper metric by This conversion was checked on both witnesses. It neither reconstructs missing raw values nor establishes numerical conditioning near or corrected historical plots; no author source was changed.
Problem 2. The stability bound omits the terminal prefix
MinorEvidence and reasoning
Problem statement
Along the fine-tuned trajectory, define Then by telescoping. The pretrained component is evaluated on the fine-tuned intermediate state, not on a separately propagated pretrained trajectory. The inspected implementation follows this distinction.
For last-token projection let Definition 4.3 (p. 5) and Algorithm 1 (p. 4) define Appendix A explains its two-component symmetry: swapping PTC and FTC yields This is a coordinate-norm attribution convention. It does not, by itself, identify a causal percentage of generated semantics.
Proposition4.2 controls the final hidden-state discrepancy by beta=max over <= of cumulative FTC/(PTC+FTC).
One layer L1, scalar common initial state0. PTC and FTC identically1; PTC bounded by and Lipschitz B0. Empty cumulative sums assigned by footnote3. For repaired statement: inclusive PTC bounded and Lipschitz.
Proof
Supported impact: Minor, a local endpoint defect in the printed statement. Proposition 4.2 uses bounded, Lipschitz PTC and a common initial state. The proof on p. 22 actually needs the maximum cumulative ratio over The printed definition on p. 5 instead says despite cumulative sums stopping at This endpoint must be corrected before using the stated bound literally.
For example, scalar PTC identically FTC identically and common satisfy boundedness with and Lipschitz constant The printed maximum includes only the empty sums at footnote explicitly assigns zero to this case, giving and bound zero; the actual final difference is one. Including gives and the bound equals one.
Here the intended inclusive endpoint is explicitly visible in the appendix. With that correction and the intended result has a direct proof. Set and Telescoping and Lipschitzness give Moreover These yield the intended bound. At no finite bound follows. The literal statement is false. The verified inclusive-prefix derivation and the separately defined TuCo metric limit the demonstrated damage to this statement’s endpoint; no additional failure of the metric or of the inclusive bound is established. This dependency supports Minor, independently of the correction’s length.
TuCo uses the terminal projected ratio, not this maximum over full-state prefixes. Section 4.5 explicitly describes those changes. Thus the bound does not become a theorem bounding output discrepancy by TuCo; we do not invent such a claim. The continuous-depth calculation can be bounded more sharply by for although a displayed algebraic equality on p. 25 has signs inconsistent with this simplification, the larger final upper bound printed there still follows. No additional substantive severity is based on that loose bound.
Possible revision
Take assigning empty to and assume then
Supporting record & provenance
Work status
Current version
Version 1
Minhao Liu · Initial report · Version 1
Independent review pending
Original claim and review scope
We prove that the relative magnitude of the pre-training and fine-tuning components bounds the discrepancy between the final hidden states of the pre-trained and fine-tuned models on a given prompt.
Published ICML2025 PMLR267 40-page PDF; repository 423cd84ab2d4eab2d9dfd1de580831377721340f; PDF p. 1
Actual review scope
The recorded inspection concerns these source locations: PDF pp. 4-5 and AppendixA; attributions.py37-67; utils.py252-283; analyze.py25-29,121-122; selected notebooks; PDF pp. 5 Proposition4.2 and footnote3; PDF pp. 22 proof uses inclusive l<=L.