ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: A Stronger Mixture of Low-Rank Experts for Fine-Tuning Foundation Models — Problem 1: Detached values are incorrectly frozen across an update

Original paper: Mengyang Sun; Yihao Wang; Tao Feng; Dan Zhang; Yifan Zhu; Jie Tang. A Stronger Mixture of Low-Rank Experts for Fine-Tuning Foundation Models. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/sun25s.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: PDF pp. 5,15; moe_lora.py97-108,123-133; custom_optimizer.py165-208

Question: What does the recorded analysis establish about “Detached values are incorrectly frozen across an update”?
Bounded finding:
The forward-value identity in [stop] (#stop) is correct. Its direct derivative with respect to a gate also remains \(B_iA_i\) at the current forward. Neither fact permits treating detached numerical values as persistent state. If the intended object were only the frozen local computational surrogate, Appendix E’s linear coefficient would be appropriate; the claimed behavior of the next model forward would still require a different argument.
The paper explicitly calls the implementation an approximation, but supplies an equality derivation and says that Equation (12) is achieved. The exhibited difference does not become a second-order approximation error. The released SGD’s ridge regularizer \(10^{-6}\) perturbs the example’s coefficients to \(\sqrt2/(1+10^{-6})\) and \(2/(1+10^{-6})\); it does not remove the discrepancy. For \(g_i=1\), the powers agree, a valid special case with no multi-expert rescaling.
Equation [actual] (#actual) is a verified correction to the local SGD description, not a certified replacement algorithm. Multi-token shared parameters, changing gates, upstream gradients, adaptive AdamW moments, and a full revised training method require separate analysis. The engineering mechanism is the paper’s central implementable contribution and Appendix E is its explicit link to the ideal update. That invalid link supports Major independently of benchmark effects.
A first-order difference survives eta->0; static release confirms recomputation. Major core derivation; no benchmark refutation.

Recorded check:
Supported impact: Major. Section 3.3, Equation (13), and Appendix E on p. 15 claim that the engineering forward rule achieves Equation (12) while preserving the normal forward value. Write \(\operatorname{sg}\) for a stop-gradient operation. The proposed contribution of an expert is \[
 \sqrt{\operatorname{sg}(g_i)}\,B_iA_i+
 \bigl(g_i-\sqrt{\operatorname{sg}(g_i)}\bigr)
          \operatorname{sg}(B_i)\operatorname{sg}(A_i).\] Numerically this equals \(g_iB_iA_i\). Its autodifferentiation rule with respect to \(A_i,B_i\), however, uses \(\sqrt{g_i}\), not \(g_i\). After Equation (6), the factor increments are therefore \[\Delta A_i=\sqrt{g_i}(B_i^TB_i)^{-1}B_i^TG,\qquad
 \Delta B_i=\sqrt{g_i}GA_i^T(A_iA_i^T)^{-1}.\]
Appendix E’s first line substitutes updated \(A_i,B_i\) only into the first term of [stop] (#stop), leaving the detached product at its old value. This is a local surrogate with frozen numerical constants. It is not the output of Algorithm 1 evaluated after an optimizer step. In that algorithm, `exp_out.detach()` is recomputed from the current `exp_out` on every forward pass. Consequently the next numerical value, with gates fixed as assumed in the paper’s derivation, is \[W+\sum_i g_i(B_i-\eta\Delta B_i)(A_i-\eta\Delta A_i).\] Its correct first-order expansion is \[
 X_{\rm new}=X-\eta\sum_i g_i^{3/2}(P_iG+GQ_i)+O(\eta^{2}),\] not [target] (#target). The error is first order in the step size and survives the paper’s deliberate omission of second-order terms.
The released `moe_lora.py`, lines 97–108, computes the same rule with cloned, detached values on each call. The alternate branch at lines 123–133 does likewise. The released `custom_optimizer.py`, lines 165–208, supplies the simultaneous preconditioned SGD updates. Static inspection therefore corroborates the recomputation semantics, without executing either program.
Let \(d=2,r=1,N_{\rm Expert}=2\), with both experts active, \[A_1=A_2=(1,0),\quad B_1=B_2=(1,0)^T,\quad
 g_1=g_2=\tfrac12,\quad W=0,\quad
 \mathcal L(X)=\tfrac12\|X\|_F^2.\] Thus \(X=G=P=\operatorname{diag}(1,0)\) and all four Gram matrices are the scalar one. Gates are positive and normalized; equal softmax logits realize them. Identical expert outputs give zero gradient to those gate logits, so holding them fixed is also consistent with their actual update in this example. The example uses the deterministic algebra of Section 3 and Appendix E, not an assumption about a stochastic benchmark training trajectory.
For each factor, the engineering update multiplies its nonzero entry by \(1-\eta/\sqrt2\). Re-evaluating the ordinary numerical forward gives exactly \[
 X_{\rm engineering}
   =\left(1-\frac{\eta}{\sqrt2}\right)^2P
   =\left(1-\sqrt2\eta+\frac{\eta^{2}}{2}\right)P.\] Equation (11), by contrast, gives \((1-\eta)^2P\), whose first-order coefficient is \(2\). Freezing the detached old products as in Appendix E gives the different surrogate \[\left[\sqrt2\left(1-\frac{\eta}{\sqrt2}\right)^{2}+1-\sqrt2\right]P
 =\left(1-2\eta+\frac{\eta^{2}}{\sqrt2}\right)P.\] At \(\eta=10^{-4}\), the actual engineering value has coefficient \(0.9998585836437626\) on \(P\), while Equation (11)’s value is \(0.9998000100000001\). Reviewer-written symbolic expansion and finite arithmetic verified these formulas and the limit of the engineering descent coefficient, \(\sqrt2\), as \(\eta\to0\). The script and outputs are in and its JSON/stdout companions.

Case-wide limitations:
- Limitations: No author-code execution or benchmark reproduction.
- Limitations: No historical experiment/source binding established.
- Limitations: No full multi-token, changing-gate, upstream-gradient or AdamW repair certified.
- Limitations: References pp10-12 not exhaustively checked; no comprehensive later-version/erratum search.
- Limitations: Optional OpenReview metadata unavailable (403); embedded appendix available.
- Limitations: Controller-owned conversation URL and visible-model observation not supplied.
- P1 — Counterevidence: Forward values and direct gate derivative preserved; frozen local surrogate has paper coefficient but is not next model output; g=1 is valid; ridge1e-6 does not fix mismatch.
- P1 — Limits: Not a repaired full algorithm; shared-token and AdamW behavior need separate analysis.
- P2 — Counterevidence: Qualitative empirical tendency could hold; learning-rate retuning matches this one example but does not prove a general claim. No quantified benchmark performance conclusion.
- P2 — Limits: No universal replacement theorem asserted.
- 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):
This occurs since the low-rank matrices \(A\) and \(B\) together form a quotient manifold space with a certain curvature, leading to an inconsistency between the inner-manifold optimal and the full-rank optimal gradient.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 1
Source PDF SHA-256: 9381db8b4697bba691a486d9d839cce6f68117259049cf10513874ccfa210ea5

Review status: Independent review pending
Case: icml2025-0139-a-stronger-mixture-of-low-rank-experts-for-fine-tuning-foundation
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0139-a-stronger-mixture-of-low-rank-experts-for-fine-tuning-foundation.html#problem-1
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0139-a-stronger-mixture-of-low-rank-experts-for-fine-tuning-foundation/records/icml2025-0139-a-stronger-mixture-of-low-rank-experts-for-fine-tuning-foundation.r1.json
Canonical record SHA-256: a4afc5823694df0db95e79f2fffc1aca662615a9212e1940a683d3edef1a5d0f
The page follows the latest revision; the versioned record identifies this snapshot.