ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

How Contaminated Is Your Benchmark? Measuring Dataset Leakage in Large Language Models with Kernel Divergence

Hyeong Kyu Choi, Maxim Khanov, Hongxin Wei, Sharon Li

ELVIA analysis

Independent review pending

This review checks the mathematical explanation, experimental scope, and released implementation of Kernel Divergence Score. A normalized-embedding counterexample reverses score rankings when the bandwidth changes within the paper’s tested range, disproving the algebraic rationale for bandwidth-independent trends. The released default also estimates two bandwidths, whereas the displayed distance-change decomposition assumes one. A normalization plot is incompatible with the defined full kernel sum. The Pile experiment’s model-specific membership labels require additional evidence. The highest supported impact is Major, confined to the bandwidth-robustness argument; the published empirical correlations are not numerically refuted. Scientific adjudication and independent acceptance remain pending.

Problem 1. Bandwidth changes can reverse the score ordering

Major
Evidence and reasoning

Problem statement

Let Z,Z′∈Rn×dZ,Z'\in\mathbb R^{n\times d} be the pre- and post-fine-tuning embeddings, with unit-norm rows. Define uij=∥Zi−Zj∥2,vij=∥Zi′−Zj′∥2,Kijγ=e−γuij,Eγ=(∑i,jKijγ)1/2, u_{ij}=\left\lVert Z_i-Z_j\right\rVert^{2},\quad v_{ij}=\left\lVert Z_i'-Z_j'\right\rVert^{2},\quad K^\gamma_{ij}=e^{-\gamma u_{ij}},\quad E_\gamma=\left(\sum_{i,j}K^\gamma_{ij}\right)^{1/2}, for finite γ>0.\gamma>0. The paper’s actual Eq. (5), p. 4, is Sγ(Z,Z′)=−1Eγ∑i,j∣Kijγlog⁡KijγKij′γ∣=−γEγ∑i,je−γuij∣vij−uij∣. S_\gamma(Z,Z') =-\frac{1}{E_\gamma} \sum_{i,j}\left|K^\gamma_{ij} \log\frac{K^\gamma_{ij}}{K^{\prime\gamma}_{ij}}\right| =-\frac{\gamma}{E_\gamma} \sum_{i,j}e^{-\gamma u_{ij}}\left|v_{ij}-u_{ij}\right|. The second equality follows exactly from log⁡(e−γu/e−γv)=γ(v−u).\log(e^{-\gamma u}/e^{-\gamma v})=\gamma(v-u). It verifies the common-bandwidth expansions in the paper’s Eqs. (4) and (6).

After rewriting the score using γe−uijγ,\gamma e^{-u_{ij}\gamma}, the bandwidth discussion argues that the multiplicative and power factors do not affect trends across contamination rates. It states: This does not influence their relative trends across varying contamination rates. Table 3 reports high correlations on WikiMIA for several bandwidths, and the text presents Eq. (6) as an explanation of that robustness [paper, p. 7].

For an individual positive kernel entry, taking a positive power preserves its order relative to another entry. That observation does not preserve the order of sums with different distance-change weights. Moreover, EγE_\gamma also depends on the dataset and on γ.\gamma. Neither effect is a common scaling of all scores.

n=2,n=2,d=2.d=2. All pre/post rows have unit norm. Same finite positive γ\gamma before/after within each score. Ordinary RBF kernels with diagonals1 and positive eigenvalues. All distance changes in example positive. No assumption of realization by a particular trained LLM.

Proof

The argument following Eq. (6), p. 7, does not establish that changing the bandwidth preserves relative score trends.

Take two two-sample, two-dimensional configurations, AA and B.B. The first point is e1=(1,0)e_1=(1,0) before and after tuning in both. The second points are zA,2=(−1/4,15/4),zA,2′=(−3/4,7/4),zB,2=(3/4,7/4),zB,2′=(3/5,4/5).\begin{aligned} z_{A,2}&=(-1/4,\sqrt{15}/4),& z'_{A,2}&=(-3/4,\sqrt7/4),\\ z_{B,2}&=(3/4,\sqrt7/4),& z'_{B,2}&=(3/5,4/5).\end{aligned} Every row has norm one: the relevant sums of squared coordinates are 1/16+15/16,1/16+15/16, 9/16+7/16,9/16+7/16, and 9/25+16/25.9/25+16/25. Since ∥e1−z∥2=2−2z1\left\lVert e_1-z\right\rVert^{2}=2-2z_1 for a unit vector z,z, (uA,vA,δA)=(5/2,7/2,1),(uB,vB,δB)=(1/2,4/5,3/10),(u_A,v_A,\delta_A)=(5/2,7/2,1),\qquad (u_B,v_B,\delta_B)=(1/2,4/5,3/10), where δ=∣v−u∣.\delta=\left|v-u\right|. Thus all changes are positive, not contractions or cancellation artifacts. The two-point RBF matrices have diagonal one and positive off-diagonal entries; their eigenvalues are 1±e−γu>0.1\pm e^{-\gamma u}>0. Both normalizers are positive.

The diagonal contributions to the displayed formula vanish, while the two off-diagonal contributions coincide. Therefore Sγ(u,δ)=−2γe−γuδ2+2e−γu. S_\gamma(u,\delta) =-\frac{2\gamma e^{-\gamma u}\delta} {\sqrt{2+2e^{-\gamma u}}}. Substitution gives the following values, independently checked to 30-digit working precision:

γ∣Sγ(A)∣Sγ(B)\gamma | S_\gamma(A) | S_\gamma(B) | Ordering

0.1∣−0.082580540560∣−0.028891318381∣A<B0.1 | -0.082580540560 | -0.028891318381 | A<B

1∣−0.111595865539∣−0.203022654806∣A>B1 | -0.111595865539 | -0.203022654806 | A>B

The same reversal follows without relying on decimal rounding. The ratio of score magnitudes is Rγ=∣Sγ(A)∣∣Sγ(B)∣=103e−2γ1+e−γ/21+e−5γ/2.R_\gamma=\frac{\left|S_\gamma(A)\right|}{\left|S_\gamma(B)\right|} =\frac{10}{3}e^{-2\gamma} \sqrt{\frac{1+e^{-\gamma/2}}{1+e^{-5\gamma/2}}}. At γ=0.1,\gamma=0.1, Rγ>(10/3)e−1/5>8/3>1,R_\gamma>(10/3)e^{-1/5}>8/3>1, since e1/5<1/(1−1/5)=5/4.e^{1/5}<1/(1-1/5)=5/4. At γ=1,\gamma=1, Rγ<(102/3)e−2<102/21<1,R_\gamma<(10\sqrt2/3)e^{-2}<10\sqrt2/21<1, since the positive exponential series gives e2>7.e^{2}>7.

The order reverses between two bandwidths explicitly tested in Table 3. All exponentials are ordinary finite positive values; numerical underflow is irrelevant. Replicating each embedding type mm times multiplies both scores by mm and preserves the reversal, so the phenomenon is not tied to n=2.n=2. The replication claim concerns the scoring functional at fixed embeddings, not a claim that retraining on duplicated data leaves a model unchanged.

□\square

Possible revision

Retain expansion; replace invariance inference with empirical robustness limited to tested configurations, or supply new sufficient conditions.

Problem 2. Released defaults fit separate bandwidths

Minor
Evidence and reasoning

Problem statement

Let Z,Z′∈Rn×dZ,Z'\in\mathbb R^{n\times d} be the pre- and post-fine-tuning embeddings, with unit-norm rows. Define uij=∥Zi−Zj∥2,vij=∥Zi′−Zj′∥2,Kijγ=e−γuij,Eγ=(∑i,jKijγ)1/2, u_{ij}=\left\lVert Z_i-Z_j\right\rVert^{2},\quad v_{ij}=\left\lVert Z_i'-Z_j'\right\rVert^{2},\quad K^\gamma_{ij}=e^{-\gamma u_{ij}},\quad E_\gamma=\left(\sum_{i,j}K^\gamma_{ij}\right)^{1/2}, for finite γ>0.\gamma>0. The paper’s actual Eq. (5), p. 4, is Sγ(Z,Z′)=−1Eγ∑i,j∣Kijγlog⁡KijγKij′γ∣=−γEγ∑i,je−γuij∣vij−uij∣. S_\gamma(Z,Z') =-\frac{1}{E_\gamma} \sum_{i,j}\left|K^\gamma_{ij} \log\frac{K^\gamma_{ij}}{K^{\prime\gamma}_{ij}}\right| =-\frac{\gamma}{E_\gamma} \sum_{i,j}e^{-\gamma u_{ij}}\left|v_{ij}-u_{ij}\right|. The second equality follows exactly from log⁡(e−γu/e−γv)=γ(v−u).\log(e^{-\gamma u}/e^{-\gamma v})=\gamma(v-u). It verifies the common-bandwidth expansions in the paper’s Eqs. (4) and (6).

Common-γ\gamma distance-change decomposition and unspecified median-heuristic fitting policy.

Static source at pinned commit. Positive finite medians. Unit-norm three-point configurations. Author code not executed.

Proof

The released default compares two kernels fitted with different bandwidths, whereas the paper’s distance-change decomposition uses a common bandwidth.

In ``, lines 1010–1616 estimate the inverse median of off-diagonal Euclidean distances. Lines 8585–8686 estimate this quantity independently before and after tuning; lines 9090–9494 construct the kernels and score. The parser in ``, line 195,195, defaults `` to ``, and the released experiment scripts omit that option. If a numerical `` is supplied, lines 8787–8888 instead use a common value [code].

Let gg and hh be the pre- and post-tuning estimates. The default computes Sg,h=−∑i,je−guij∣hvij−guij∣∑i,je−guij. S_{g,h} =-\frac{\sum_{i,j}e^{-g u_{ij}}\left|h v_{ij}-g u_{ij}\right|} {\sqrt{\sum_{i,j}e^{-g u_{ij}}}}. This follows from the static expression and the documented pointwise operation of the pinned PyTorch 2.12.1 loss [torch]. No author function was run. the displayed formula measures changes in bandwidth-scaled distances; it reduces to the displayed formula when g=h.g=h.

Use the same pre-tuning rows for two configurations, Z=((1,0),(0,1),(−1,0)),Z=((1,0),(0,1),(-1,0)), and post-tuning rows ZA′=((1,0),(0,1),(1/2,1/2)),ZB′=((1,0),(0,1),(0,−1)).Z'_A=((1,0),(0,1),(1/\sqrt2,1/\sqrt2)),\qquad Z'_B=((1,0),(0,1),(0,-1)). All rows are unit vectors. The three unordered squared distances are (2,4,2)(2,4,2) before tuning, (2,2−2,2−2)(2,2-\sqrt2,2-\sqrt2) after A,A, and (2,2,4)(2,2,4) after B.B. The inverse median Euclidean distances are consequently g=12,hA=12−2,hB=g.g=\frac{1}{\sqrt2},\qquad h_A=\frac{1}{\sqrt{2-\sqrt2}},\qquad h_B=g. The shared pre-kernel normalizer is E=3+4e−2+2e−22=2.0225425658958995.E=\sqrt{3+4e^{-\sqrt2}+2e^{-2\sqrt2}} =2.0225425658958995. Direct evaluation of the two definitions yields

Configuration | Common bandwidth gg | Separate default bandwidths

A∣−0.381510516420∣−0.564793914760A | -0.381510516420 | -0.564793914760

B∣−0.422643398152∣−0.422643398152B | -0.422643398152 | -0.422643398152

Thus A>BA>B in the common-bandwidth definition but A<BA<B under the default. This is not just an overall rescaling.

Even the unchanged pair (1,2)(1,2) in AA receives a nonzero adaptive contribution: its squared distance remains 2,2, but the log ratio is 2(hA−g)=1.198912367380,2(h_A-g)=1.198912367380, and its weighted absolute term is 0.291475659630.0.291475659630. The common-bandwidth contribution is zero.

□\square

Possible revision

Specify per-experiment bandwidth policy and generating code; use adaptive decomposition when applicable, or fit once and evaluate shared-bandwidth variant.

Problem 3. Normalization plot conflicts with defined kernel sum

Minor
Evidence and reasoning

Problem statement

Let Z,Z′∈Rn×dZ,Z'\in\mathbb R^{n\times d} be the pre- and post-fine-tuning embeddings, with unit-norm rows. Define uij=∥Zi−Zj∥2,vij=∥Zi′−Zj′∥2,Kijγ=e−γuij,Eγ=(∑i,jKijγ)1/2, u_{ij}=\left\lVert Z_i-Z_j\right\rVert^{2},\quad v_{ij}=\left\lVert Z_i'-Z_j'\right\rVert^{2},\quad K^\gamma_{ij}=e^{-\gamma u_{ij}},\quad E_\gamma=\left(\sum_{i,j}K^\gamma_{ij}\right)^{1/2}, for finite γ>0.\gamma>0. The paper’s actual Eq. (5), p. 4, is Sγ(Z,Z′)=−1Eγ∑i,j∣Kijγlog⁡KijγKij′γ∣=−γEγ∑i,je−γuij∣vij−uij∣. S_\gamma(Z,Z') =-\frac{1}{E_\gamma} \sum_{i,j}\left|K^\gamma_{ij} \log\frac{K^\gamma_{ij}}{K^{\prime\gamma}_{ij}}\right| =-\frac{\gamma}{E_\gamma} \sum_{i,j}e^{-\gamma u_{ij}}\left|v_{ij}-u_{ij}\right|. The second equality follows exactly from log⁡(e−γu/e−γv)=γ(v−u).\log(e^{-\gamma u}/e^{-\gamma v})=\gamma(v-u). It verifies the common-bandwidth expansions in the paper’s Eqs. (4) and (6).

Figure6 labeled/captioned full kernel-entry sum; finite linear fit used to motivate ∑K\sqrt{\sum K} normalizer.

Finite RBF bandwidth and distances. Defined full nn-by-nn sum includes diagonal. Graph interpreted according to visible label/caption.

Proof

Figure 6’s stated kernel sum is incompatible with the diagonal contribution of the defined RBF kernel.

Appendix D, p. 15, motivates the square-root normalizer by describing the sum of kernel entries as linear in subset size. It cites a linear-fit R2=0.9766R^{2}=0.9766 and Figure 6. In the actual rendered graph, the horizontal axis runs from 350350 to 700700 samples, while the ordinate labeled Kernel Entry Sum has observed values approximately 5555–165.165. No axis multiplier or rescaling is displayed [paper, p. 15].

For any finite RBF bandwidth and finite embeddings, Kii=1,Kij>0⟹Tn:=∑i,j=1nKij=n+∑i≠jKij≥n. K_{ii}=1,\quad K_{ij}>0 \quad\Longrightarrow\quad T_n:=\sum_{i,j=1}^{n}K_{ij} =n+\sum_{i\ne j}K_{ij}\ge n. Every plotted value is below the corresponding n.n. In particular, a value near 5555 at n=350n=350 cannot be the full sum. This argument needs no assumptions about membership, training, unit normalization, or a particular bandwidth choice.

A scaled sum, a square root, or an off-diagonal-only quantity could explain the graph. Figure 2 explicitly zeroes its diagonal for visualization, so a similar convention is a plausible alternative; Figure 6 does not disclose it. None of these interpretations equals the full raw sum in the displayed formula. The plot alone cannot identify the correct replacement label.

For IID embeddings from a fixed distribution and a fixed kernel, E[Tn]=n+n(n−1)μ,μ=E[k(Z1,Z2)]>0. \mathbb E[T_n]=n+n(n-1)\mu,\qquad \mu=\mathbb E[k(Z_1,Z_2)]>0. This calculation is not asserted unchanged when the bandwidth is re-estimated from each subset. It shows why a finite linear fit does not by itself establish a scaling law. As an independent illustration, fitting a line to the exactly quadratic values n2n^{2} at n=350,400,…,700n=350,400,\ldots,700 gives T^n=1050n−262500,R2=441445=0.991011235955,\widehat T_n=1050n-262500,\qquad R^{2}=\frac{441}{445} =0.991011235955, which exceeds the reported fit despite being exactly quadratic. The case Kij=1K_{ij}=1 is realized by equal unit embeddings at any fixed positive bandwidth; the illustration is not a reconstruction of the authors’ plotted data.

Assessment: Minor. The displayed quantity cannot support Appendix D’s stated account of the raw sum. This does not establish incorrect score computation or changed fixed-size benchmark correlations.

The paper claims mitigation of size effects, not exact size invariance. Indeed, for fixed embedding maps and common bandwidth, replacing every row by mm copies multiplies the numerator by m2m^{2} and EE by m,m, so Sreplicated=mS.S_{\rm replicated}=mS. The normalizer reduces this replication scaling from quadratic to linear; non-invariance alone is not a separate broken promise. Unequal-size cross-benchmark comparisons still need an appropriate scope or calibration.

□\square

Possible revision

Obtain plotting calculation; specify actual ordinate, scaling, diagonal handling and γ,\gamma, then replot/relabel and limit finite-fit inference.

Problem 4. Pile split membership lacks target-model binding

Needs Evidence
Evidence and reasoning

Problem statement

Let Z,Z′∈Rn×dZ,Z'\in\mathbb R^{n\times d} be the pre- and post-fine-tuning embeddings, with unit-norm rows. Define uij=∥Zi−Zj∥2,vij=∥Zi′−Zj′∥2,Kijγ=e−γuij,Eγ=(∑i,jKijγ)1/2, u_{ij}=\left\lVert Z_i-Z_j\right\rVert^{2},\quad v_{ij}=\left\lVert Z_i'-Z_j'\right\rVert^{2},\quad K^\gamma_{ij}=e^{-\gamma u_{ij}},\quad E_\gamma=\left(\sum_{i,j}K^\gamma_{ij}\right)^{1/2}, for finite γ>0.\gamma>0. The paper’s actual Eq. (5), p. 4, is Sγ(Z,Z′)=−1Eγ∑i,j∣Kijγlog⁡KijγKij′γ∣=−γEγ∑i,je−γuij∣vij−uij∣. S_\gamma(Z,Z') =-\frac{1}{E_\gamma} \sum_{i,j}\left|K^\gamma_{ij} \log\frac{K^\gamma_{ij}}{K^{\prime\gamma}_{ij}}\right| =-\frac{\gamma}{E_\gamma} \sum_{i,j}e^{-\gamma u_{ij}}\left|v_{ij}-u_{ij}\right|. The second equality follows exactly from log⁡(e−γu/e−γv)=γ(v−u).\log(e^{-\gamma u}/e^{-\gamma v})=\gamma(v-u). It verifies the common-bandwidth expansions in the paper’s Eqs. (4) and (6).

Pile train/val mixtures validate actual contamination scoring without temporal confounding.

LL is supplied train/val label. MM is actual membership in the selected model's pretraining set.

Verification

The Pile evaluation requires a documented link between dataset splits and the target model’s actual pretraining exposure.

Section 6, p. 8, treats Pile training samples as seen and validation samples as unseen, then interprets Tables 5–6 as contamination validation without temporal confounding [paper]. The released `` selects `` for all six sources. The registry maps that choice to ``. In ``, lines 88–1515 load the `` and `` splits of `` and assign labels one and zero directly [code].

Let LL denote this split label and MM actual membership in the target model’s pretraining corpus. A mixture fraction of L=1L=1 equals the intended exposure fraction only with an additional relationship, for example Pr⁡(M=1∣L=1)=1,Pr⁡(M=1∣L=0)=0.\Pr(M=1\mid L=1)=1,\qquad \Pr(M=1\mid L=0)=0. A weaker relation could support a weaker interpretation, but it must be specified. IID splitting by itself does not prove the target-model relationship. The inspected paper and release do not establish it.

Random train/validation splitting is a sensible way to reduce temporal cues, and the assigned labels could be correct. The issue is missing provenance, not demonstrated mislabeling. The released commit is also not proven to have generated Tables 5–6. Those tables directly report correlations with the constructed labels; their interpretation as validated pretraining exposure depends on the missing link.

Assessment: Needs Evidence. This item does not raise the supported severity. It concerns the principal empirical response to temporal confounding, so resolving it matters. Supply model-specific training/held-out provenance, or use a model with documented membership for the evaluated splits. If that link cannot be established for existing results, a new evaluation is needed; a prose-only replacement is not a verified empirical repair.

Possible revision

Supply model-specific training/held-out provenance or evaluate a model with known membership.

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

To address this problem, we propose Kernel Divergence Score (KDS), a novel method that evaluates dataset contamination by computing the divergence between the kernel similarity matrix of sample embeddings, before and after fine-tuning on the benchmark dataset.

Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 1, Abstract

Actual review scope

The recorded inspection concerns these source locations: Pdf page: 7 Section: 5 bandwidth discussion Equation: 6; Pdf pages: 3 Pdf pages: 4 Pdf pages: 7 Equations: 2 Equations: 3 Equations: 4 Equations: 5 Equations: 6 Code: src/profiler.py lines10-16,85-94 Code: src/main.py line195 Code: scripts/*.sh; Pdf page: 15 Appendix: D Figure: 6; Pdf page: 8 Section: 6 Tables: 5 Tables: 6 Code: scripts/pile.sh Code: src/data/pile.py lines8-15 Code: src/model/model_utils.py.

Submit an author revisionContribute a review