ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

TuCo: Measuring the Contribution of Fine-Tuning to Individual Responses of LLMs

Felipe Nuti, Tim Franzmeyer, Joao Henriques

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

Major
Evidence and reasoning

Problem statement

Along the fine-tuned trajectory, define Pl=fPT(xlFT,l),Fl=fFT(xlFT,l)−Pl.P_l=f_{\rm PT}(x_l^{\rm FT},l),\qquad F_l=f_{\rm FT}(x_l^{\rm FT},l)-P_l. Then xLFT=x0+∑lPl+∑lFlx_L^{\rm FT}=x_0+\sum_lP_l+\sum_lF_l 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 π,\pi, let p=∥π∑lPl∥1,f=∥π∑lFl∥1,h=∥πx0∥1.p=\left\|\pi\sum_lP_l\right\|_1,\quad f=\left\|\pi\sum_lF_l\right\|_1,\quad h=\|\pi x_0\|_1. Definition 4.3 (p. 5) and Algorithm 1 (p. 4) define Tpaper=fp+f.T_{\rm paper}=\frac{f}{p+f}. Appendix A explains its two-component symmetry: swapping PTC and FTC yields 1−Tpaper.1-T_{\rm paper}. This is a coordinate-norm attribution convention. It does not, by itself, identify a causal percentage of generated semantics.

The paper specifies f/(p+f)f/(p+f) 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 3737–67,67, `isotropic_attributions` stacks the initial state, summed pretrained increments, and summed fine-tuning increments. It takes each component’s ℓ1\ell_1 norm and divides by the sum of all three. The returned field `isotropic_tuning_contribution` is therefore Trelease=fh+p+f.T_{\rm release}=\frac{f}{h+p+f}. The code does not merely store an unused diagnostic: `utils.py`, lines 252252–283,283, saves this value as `tuning_contribution` in the consolidated frame. `analyze.py`, lines 2525–2929 and 121121–122,122, 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 π,\pi, p,p, ff and hh are the ℓ1\ell_1 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 p+f>0.p+f>0. Both scalar witnesses have positive component norms and the same h=1;h=1; 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 p+f>0,p+f>0, Trelease=Tpaperp+fh+p+f.T_{\rm release}=T_{\rm paper}\frac{p+f}{h+p+f}. The multiplying factor depends on the prompt’s component norms. It need not be a constant rescaling and need not preserve rankings, even if hh is fixed.

Consider two admissible scalar component triples with all norms positive:

Case | h∣p∣f∣Tpaper∣Treleaseh | p | f | T_{\rm paper} | T_{\rm release}

A | 1∣9/100∣1/100∣1/10∣1/1101 | 9/100 | 1/100 | 1/10 | 1/110

B | 1∣19/2∣1/2∣1/20∣1/221 | 19/2 | 1/2 | 1/20 | 1/22

Thus Tpaper(A)>Tpaper(B),T_{\rm paper}(A)>T_{\rm paper}(B), but Trelease(A)<Trelease(B).T_{\rm release}(A)<T_{\rm release}(B). 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 a0=h/(h+p+f),a_0=h/(h+p+f), aP=p/(h+p+f),a_P=p/(h+p+f), and aF=f/(h+p+f),a_F=f/(h+p+f), then the exact paper metric is aFaP+aF=aF1−a0,p+f>0.\frac{a_F}{a_P+a_F}=\frac{a_F}{1-a_0},\qquad p+f>0. This algebraic conversion is verified on both examples. It does not reconstruct lost raw values, establish numerical conditioning near a0=1,a_0=1, or certify corrected historical plots.

□\square

Possible revision

For stored normalized components a0=h/(h+p+f),a_0=h/(h+p+f), aP=p/(h+p+f)a_P=p/(h+p+f) and aF=f/(h+p+f),a_F=f/(h+p+f), recover the paper metric by Tpaper=aFaP+aF=aF1−a0,p+f>0.T_{\mathrm{paper}}=\frac{a_F}{a_P+a_F}=\frac{a_F}{1-a_0},\qquad p+f>0. This conversion was checked on both witnesses. It neither reconstructs missing raw values nor establishes numerical conditioning near a0=1a_0=1 or corrected historical plots; no author source was changed.

Problem 2. The stability bound omits the terminal prefix

Minor
Evidence and reasoning

Problem statement

Along the fine-tuned trajectory, define Pl=fPT(xlFT,l),Fl=fFT(xlFT,l)−Pl.P_l=f_{\rm PT}(x_l^{\rm FT},l),\qquad F_l=f_{\rm FT}(x_l^{\rm FT},l)-P_l. Then xLFT=x0+∑lPl+∑lFlx_L^{\rm FT}=x_0+\sum_lP_l+\sum_lF_l 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 π,\pi, let p=∥π∑lPl∥1,f=∥π∑lFl∥1,h=∥πx0∥1.p=\left\|\pi\sum_lP_l\right\|_1,\quad f=\left\|\pi\sum_lF_l\right\|_1,\quad h=\|\pi x_0\|_1. Definition 4.3 (p. 5) and Algorithm 1 (p. 4) define Tpaper=fp+f.T_{\rm paper}=\frac{f}{p+f}. Appendix A explains its two-component symmetry: swapping PTC and FTC yields 1−Tpaper.1-T_{\rm paper}. 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 00<=l<Ll<L of cumulative FTC/(PTC+FTC).

One layer L1, scalar common initial state0. PTC and FTC identically1; PTC bounded by M=1M=1 and Lipschitz B0. Empty cumulative sums assigned β=0\beta=0 by footnote3. For repaired statement: inclusive β∗<1;\beta_*<1; 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 0≤l≤L.0\le l\le L. The printed definition on p. 5 instead says l<L,l<L, despite cumulative sums stopping at l−1.l-1. This endpoint must be corrected before using the stated bound literally.

For example, L=1,L=1, scalar PTC identically 1,1, FTC identically 1,1, and common x0=0x_0=0 satisfy boundedness with M=1M=1 and Lipschitz constant B=0.B=0. The printed maximum includes only the empty sums at l=0;l=0; footnote 33 explicitly assigns zero to this case, giving β=0\beta=0 and bound zero; the actual final difference is one. Including l=Ll=L gives β∗=1/2\beta_*=1/2 and the bound equals one.

Here the intended inclusive endpoint is explicitly visible in the appendix. With that correction and β∗<1,\beta_*<1, the intended result has a direct proof. Set A=max⁡0≤l≤L∥∑s<lFs∥1A=\max_{0\le l\le L}\|\sum_{s<l}F_s\|_1 and dl=∥xlFT−xlPT∥1.d_l=\|x_l^{\rm FT}-x_l^{\rm PT}\|_1. Telescoping and Lipschitzness give dl≤A+B∑s<lds,dl≤A(1+B)l.d_l\le A+B\sum_{s<l}d_s,\qquad d_l\le A(1+B)^l. Moreover A≤MLβ∗/(1−β∗).A\le ML\beta_* /(1-\beta_*). These yield the intended bound. At β∗=1\beta_*=1 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 M(eBL−1)β/[B(1−β)]M(e^{BL}-1)\beta/[B(1-\beta)] for B>0;B>0; 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.

□\square

Possible revision

Take β∗=max⁡0≤l≤L∥FTCl∥1/(∥PTCl∥1+∥FTCl∥1),\beta_*=\max_{0\le l\le L}\|\mathrm{FTC}_l\|_1/(\|\mathrm{PTC}_l\|_1+\|\mathrm{FTC}_l\|_1), assigning empty 0/00/0 to 0,0, and assume β∗<1;\beta_*<1; then dL≤ML(1+B)L⋅β∗/(1−β∗).d_L\le ML(1+B)^L\cdot\beta_* /(1-\beta_*).

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.

Submit an author revisionContribute a review