How Contaminated Is Your Benchmark? Measuring Dataset Leakage in Large Language Models with Kernel Divergence
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
MajorEvidence and reasoning
Problem statement
Let be the pre- and post-fine-tuning embeddings, with unit-norm rows. Define for finite The paper’s actual Eq. (5), p. 4, is The second equality follows exactly from It verifies the common-bandwidth expansions in the paper’s Eqs. (4) and (6).
After rewriting the score using 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, also depends on the dataset and on Neither effect is a common scaling of all scores.
All pre/post rows have unit norm. Same finite positive 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, and The first point is before and after tuning in both. The second points are Every row has norm one: the relevant sums of squared coordinates are and Since for a unit vector where 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 Both normalizers are positive.
The diagonal contributions to the displayed formula vanish, while the two off-diagonal contributions coincide. Therefore Substitution gives the following values, independently checked to 30-digit working precision:
| Ordering
The same reversal follows without relying on decimal rounding. The ratio of score magnitudes is At since At since the positive exponential series gives
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 times multiplies both scores by and preserves the reversal, so the phenomenon is not tied to The replication claim concerns the scoring functional at fixed embeddings, not a claim that retraining on duplicated data leaves a model unchanged.
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
MinorEvidence and reasoning
Problem statement
Let be the pre- and post-fine-tuning embeddings, with unit-norm rows. Define for finite The paper’s actual Eq. (5), p. 4, is The second equality follows exactly from It verifies the common-bandwidth expansions in the paper’s Eqs. (4) and (6).
Common- 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 – estimate the inverse median of off-diagonal Euclidean distances. Lines – estimate this quantity independently before and after tuning; lines – construct the kernels and score. The parser in ``, line defaults `` to ``, and the released experiment scripts omit that option. If a numerical `` is supplied, lines – instead use a common value [code].
Let and be the pre- and post-tuning estimates. The default computes This follows from the static expression and the documented pointwise operation of the pinned PyTorch loss [torch]. No author function was run. the displayed formula measures changes in bandwidth-scaled distances; it reduces to the displayed formula when
Use the same pre-tuning rows for two configurations, and post-tuning rows All rows are unit vectors. The three unordered squared distances are before tuning, after and after The inverse median Euclidean distances are consequently The shared pre-kernel normalizer is Direct evaluation of the two definitions yields
Configuration | Common bandwidth | Separate default bandwidths
Thus in the common-bandwidth definition but under the default. This is not just an overall rescaling.
Even the unchanged pair in receives a nonzero adaptive contribution: its squared distance remains but the log ratio is and its weighted absolute term is The common-bandwidth contribution is zero.
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
MinorEvidence and reasoning
Problem statement
Let be the pre- and post-fine-tuning embeddings, with unit-norm rows. Define for finite The paper’s actual Eq. (5), p. 4, is The second equality follows exactly from 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 normalizer.
Finite RBF bandwidth and distances. Defined full -by- 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 and Figure 6. In the actual rendered graph, the horizontal axis runs from to samples, while the ordinate labeled Kernel Entry Sum has observed values approximately – No axis multiplier or rescaling is displayed [paper, p. 15].
For any finite RBF bandwidth and finite embeddings, Every plotted value is below the corresponding In particular, a value near at 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, 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 at gives which exceeds the reported fit despite being exactly quadratic. The case 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 copies multiplies the numerator by and by so 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.
Possible revision
Obtain plotting calculation; specify actual ordinate, scaling, diagonal handling and then replot/relabel and limit finite-fit inference.
Problem 4. Pile split membership lacks target-model binding
Needs EvidenceEvidence and reasoning
Problem statement
Let be the pre- and post-fine-tuning embeddings, with unit-norm rows. Define for finite The paper’s actual Eq. (5), p. 4, is The second equality follows exactly from 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.
is supplied train/val label. 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 – load the `` and `` splits of `` and assign labels one and zero directly [code].
Let denote this split label and actual membership in the target model’s pretraining corpus. A mixture fraction of equals the intended exposure fraction only with an additional relationship, for example 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.