ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: What Makes In-context Learning Effective for Mathematical Reasoning — Problem 1: Loss-decrease guarantee not established for stated ICL setting

Original paper: Jiayu Liu; Zhenya Huang; Chaokun Wang; Xunpeng Huang; Chengxiang Zhai; Enhong Chen. What Makes In-context Learning Effective for Mathematical Reasoning. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/liu25ac.html
Source version: 14 physical-page proceedings PDF; LMS3 600a94a5300d9fdd5e023a93cc6ba5d883233211
Source location: Eq3-12 pp. 3-4; Theorems1-2; A Eq25-38 pp. 12-13; rejection prosep5

Question: What does the recorded analysis establish about “Loss-decrease guarantee not established for stated ICL setting”?
Bounded finding:
The published assumptions do not establish the advertised loss-decrease guarantee or justify equating attention with retraining. Rejection from failure of the sufficient condition is separately unsupported.

Recorded check:
Theorem 1 and its proof, equations (11)–(12) on page 4 and (33)–(34) on page 12, use within-loss smoothness as a bound between gradients from different labeled samples. Equations (3)–(9) also identify incompatible parameter updates.
The notation section says that labels are omitted for brevity. Under this ordinary supervised reading, Lipschitz continuity of \(\nabla_F\ell_y(F)\) in \(F\), for each label \(y\), does not imply \[
 \|\nabla_F\ell_{y_t}(Wh_t)-\nabla_F\ell_{y_0}(Wz_0)\|
 \leq\mu\|W(h_t-z_0)\|.\] There is an uncontrolled label-dependent term. Take scalar squared loss \(\ell_y(F)=\tfrac12(F-y)^{2}\) and \[d=d'=1,\quad h_t=h=W_K=W_V=1,\quad z_0=1,
 \quad y_0=0,\quad y_t=2.\] Let the pretraining set have \(n\) copies of input \(2\) and label \(2\). Its average loss is \(\tfrac12(2W-2)^{2}\), so \(\widehat W=1=W_0\) as required by (4), and \(H=4>0\). Each output-loss gradient is globally 1-Lipschitz. The demonstration satisfies (5), since \(\nabla_F\ell_0(1)=1=W_Vh/\sqrt d\).
The two gradients with respect to \(W\) are \(g_t=-1\) and \(g_0=1\). The eigenvalue ratio in (7) is one. Its left side is \(1\), while its right side is zero because \(h_t=z_0\). Thus its strict sufficient condition holds. Nevertheless, \[\widehat W_{\epsilon,z_0}=\frac4{4+\epsilon}<1,
 \qquad \ell_2(\widehat W_{\epsilon,z_0})>\ell_2(1)=\frac12
 \quad(\epsilon>0).\] For \(n=1000\), \(\epsilon=1/n\), the exact new loss is \(8008002/16008001\), an increase of approximately \(0.00024997\). The derivative at zero is \(+1/4\), so making the upweighting arbitrarily small does not help. The failed step [missing] (#missing) tries to bound \(2\) by zero.
Distinct labeled problems are not assumed to have injective representations in the paper. This example uses the permitted coincidence of representations, not contradictory labels for one stipulated deterministic mathematical problem. If the intended theorem instead assumes one common, label-independent loss function or explicitly assumes the cross-sample bound [missing] (#missing), this particular example is excluded. That would be a materially narrower hypothesis than ordinary per-label smoothness and must be stated and justified for the reasoning task.
Set the test label to zero in the preceding construction and leave everything else unchanged. The theorem condition still holds. The surrogate minimizer now does reduce the test loss, so this variant is not a counterexample to that surrogate conclusion. However, equation (3) has zero-shot output \(1\) and one-shot linear-attention output \(1+1=2\). Its squared test loss rises from \(1/2\) to \(2\).
This directly refutes the claimed identification of the two procedures inside the paper’s own linearized model. Under (5), the attention increment is a positive gradient outer product; [influence] (#influence) is a negative Hessian-preconditioned increment. Calling the former a conceptual analogy does not make their loss changes equal. Reversing the loss-gradient convention would also require changing (5) and the influence calculation. Moreover, no approximation error bound connects softmax attention (2), linear attention (3), contextual representations and the final answer loss.
The proof’s first-order Taylor step (9)/(30) also supplies no remainder bound ensuring that the particular finite choice \(\epsilon=1/|D_{\rm pre}|\) stays in a loss-decreasing neighborhood. A valid negative derivative establishes a sufficiently small neighborhood under regularity, not an unquantified universal finite-step guarantee. This is an additional proof-scope limitation; the two exact examples above do not rely on it.
Page 5 states that examples failing the condition will have a negative effect. Theorems 1 and 2 are presented as sufficient conditions, not necessary ones. Even in the retraining surrogate with a shared zero-label squared loss, put \(h=3\), \(h_t=W_K=W_V=1\) and keep the same pretraining objective. Equation (5) holds, \(C_1=1\), and (7) reads \(1>8\), which fails. Yet \(\widehat W_\epsilon=4/(4+9\epsilon)\) reduces test loss for every \(\epsilon>0\). Failure of the bound therefore cannot establish harmfulness. Replacing unknown absolute quantities by a percentile threshold, as LMS3 does, is a practical heuristic that needs empirical validation.
The assessment of Problem 1 is Major. It affects the advertised theoretical explanation and guarantee, not a peripheral presentation detail. A defensible repair must state the required loss/label regularity, derive the loss change for the actual attention update or explicitly limit the theorem to retraining, control finite-step/approximation errors where a guarantee is claimed, and describe rejection as a heuristic unless a separate necessity result is established. This review does not supply or certify such a replacement theorem. The empirical success of the score is not refuted by these examples.

Case-wide limitations:
- P1 — Loss-decrease guarantee not established for stated ICL setting — Counterevidence: Labelcounterexample excluded if one expressly assumes common label-independent gradient or stronger cross-samplebound; paper says labels merely omitted
- P1 — Loss-decrease guarantee not established for stated ICL setting — Counterevidence: Same-label example doesnot refute surrogate theorem itself; refutes mapping toattention
- P1 — Loss-decrease guarantee not established for stated ICL setting — Counterevidence: Softmax already approximated; no bounded approximationerror given
- P1 — Loss-decrease guarantee not established for stated ICL setting — Counterevidence: Empirical score canwork despiteinvalidguarantee
- P2 — Released similarity uses KQ instead of K-transpose-Q — Counterevidence: SymmetricKwouldmaskdifference
- P2 — Released similarity uses KQ instead of K-transpose-Q — Counterevidence: No actualmodelweights/inference run
- P2 — Released similarity uses KQ instead of K-transpose-Q — Counterevidence: Exact historicalimplementationunknown
- P3 — Ranking prose says highest where algorithm minimizes — Counterevidence: Algorithm1 andnp.argsortfirstk arecorrectlyascending
- P4 — AppendixD says bothbaselines wrong in cases1and2 — Counterevidence: Figure6greencheckscorrectlymarkthesebaselines
- P4 — AppendixD says bothbaselines wrong in cases1and2 — Counterevidence: Case3rejectionandanswer51remainconsistent
- Unresolved: Per-label vs commonloss assumption ambiguity explicitlyhandled
- Unresolved: Fullsolutionpath describedbutreleasedselectionencodesquestiononlyandtruncates128tokens; historicalcontextunknown
- Unresolved: Rawoutputs,statisticaltest,runrepetitions,Figure4normalizationunavailable
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p1
Source report index: 1

Original source excerpts (verbatim):
We prove that the reasoning efficacy (measured by empirical prediction loss) can be bounded by an LLM-oriented semantic similarity and an inference stability of demonstrations, which is general for both one-shot and few-shot scenarios.
Source: 14 physical-page proceedings PDF; LMS3 600a94a5300d9fdd5e023a93cc6ba5d883233211
Locator: PDF p. 1, Abstract
Source PDF SHA-256: 41da4e437c62c9061e0dc8f9a9c3bb59d2c4eead332f7140545a508abebef9b2

Review status: Independent review pending
Case: icml2025-0345-what-makes-in-context-learning-effective-for-mathematical-reasonin
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0345-what-makes-in-context-learning-effective-for-mathematical-reasonin.html#problem-1
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0345-what-makes-in-context-learning-effective-for-mathematical-reasonin/records/icml2025-0345-what-makes-in-context-learning-effective-for-mathematical-reasonin.r1.json
Canonical record SHA-256: 9bdb5db87bb6555918b466640d6d71d66ca24ef6c0ad661c6bfb2d6d0b7c148c
The page follows the latest revision; the versioned record identifies this snapshot.