ELVIA analysis of: Canonical Rank Adaptation: An Efficient Fine-Tuning Strategy for Vision Transformers — Problem 3: Evaluation mode persists into subsequent training
Original paper: Lokesh Veeramacheneni; Moritz Wolter; Hilde Kuehne; Juergen Gall. Canonical Rank Adaptation: An Efficient Fine-Tuning Strategy for Vision Transformers. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/veeramacheneni25a.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: image_classification/vit_cp.py lines19–20,57–75 src/cara/cara.py dropout forward
Question: What does the recorded analysis establish about “Evaluation mode persists into subsequent training”?
Bounded finding:
Subsequent optimizer updates retain eval-mode stochastic behavior. Local training procedure inconsistency; historical effect unresolved.
Recorded check:
Assessment: Minor; outcome: issue found in the release.
In `vit_cp.py`, `model.train()` is called before the epoch loop. The first intermediate `test()` calls `model.eval()`, and neither its return path nor subsequent epochs restore training mode. The next optimizer updates therefore run in evaluation mode. The inspected CaRA forward path contains dropout, so this changes the training-time stochastic behavior after the first intermediate evaluation. Gradients continue to run: evaluation mode does not itself disable autograd.
This trace is independent of which split the evaluation loader contains. The source does not document such a schedule as intentional. Its numerical effect and connection to historical experiments remain unknown. Restoring the prior training state after evaluation is the local proposed correction, but no author code was edited or executed and no training outcome is certified.
Case-wide limitations:
- Scalar-loss gradients omit the chain rule — Counterevidence: AppendixA validly computes tensor-update Jacobians and absorbs lambda into first factor. Current implementation uses autograd and separate lambda, not displayed custom backward.
- Released training selects checkpoints using test labels — Counterevidence: Combined1000-sample final fit may be legitimate; other branch offers validation; commit not bound to historical paper runs.
- Evaluation mode persists into subsequent training — Counterevidence: Autograd continues; no measured effect or historical provenance; possible intentional schedule not documented.
- Limitations: No author code/tests/training/weight or dataset downloads.
- Limitations: Historical run provenance not established.
- Limitations: Swin/GLUE and saliency experiments not reproduced; AppendixD tables not comprehensively recalculated.
- Limitations: External OpenReview supplementary discovery unavailable.
- 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: p3
Source report index: 3
Original source excerpts (verbatim):
Experimentally, CaRA outperforms existing Parameter-Efficient Fine-Tuning (PEFT) methods in visual classification benchmarks such as the Visual Task Adaptation Benchmark (VTAB)-1k and the Fine-Grained Visual Categorization (FGVC) benchmark.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 1, Abstract
Source PDF SHA-256: 83d16e616b221a18926cc03ed30f50ad5b9988d99bbd93128cbcee1d40056436
Review status: Independent review pending
Case: icml2025-0293-canonical-rank-adaptation-an-efficient-fine-tuning-strategy-for-vi
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0293-canonical-rank-adaptation-an-efficient-fine-tuning-strategy-for-vi.html#problem-3
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0293-canonical-rank-adaptation-an-efficient-fine-tuning-strategy-for-vi/records/icml2025-0293-canonical-rank-adaptation-an-efficient-fine-tuning-strategy-for-vi.r1.json
Canonical record SHA-256: 99b1eb294c12c7ae0488746b5159dcfaba7c2fe68eb157f2d9acce587bee426a
The page follows the latest revision; the versioned record identifies this snapshot.
Analysis citation:
Minhao Liu. ELVIA analysis of: Canonical Rank Adaptation: An Efficient Fine-Tuning Strategy for Vision Transformers — Problem 3: Evaluation mode persists into subsequent training. ELVIA, 2026. https://elvia-atlas.org/atlas/cases/icml2025-0293-canonical-rank-adaptation-an-efficient-fine-tuning-strategy-for-vi.html#problem-3
Case icml2025-0293-canonical-rank-adaptation-an-efficient-fine-tuning-strategy-for-vi; revision 1; Independent review pending. Assessment is limited to the inspected claims. Versioned record: https://elvia-atlas.org/atlas/evidence/icml2025-0293-canonical-rank-adaptation-an-efficient-fine-tuning-strategy-for-vi/records/icml2025-0293-canonical-rank-adaptation-an-efficient-fine-tuning-strategy-for-vi.r1.json
Claim in the source (paraphrase):
Training loop performs100epochs with intermediate evaluation.
First periodic evaluation reached; dropout-sensitive modules exist as declared.
Full finding analysis:
Assessment: Minor; outcome: issue found in the release.
In `vit_cp.py`, `model.train()` is called before the epoch loop. The first intermediate `test()` calls `model.eval()`, and neither its return path nor subsequent epochs restore training mode. The next optimizer updates therefore run in evaluation mode. The inspected CaRA forward path contains dropout, so this changes the training-time stochastic behavior after the first intermediate evaluation. Gradients continue to run: evaluation mode does not itself disable autograd.
This trace is independent of which split the evaluation loader contains. The source does not document such a schedule as intentional. Its numerical effect and connection to historical experiments remain unknown. Restoring the prior training state after evaluation is the local proposed correction, but no author code was edited or executed and no training outcome is certified.
Finding and scope:
Subsequent optimizer updates retain eval-mode stochastic behavior. Local training procedure inconsistency; historical effect unresolved.
Recorded correction and verification scope:
Restore prior training state after evaluation; no author code modified or run.
Displayed problem statement:
Training loop performs100epochs with intermediate evaluation.
First periodic evaluation reached; dropout-sensitive modules exist as declared.
Complete retained report:
Abstract: The core CP fine-tuning parameterization is dimensionally consistent, but the scalar-loss gradients stated in Section 3.3 are tensor Jacobians without the required chain-rule contraction. An admissible rank-one example gives true derivatives 18 and 36 where the displayed objects have an active entry 1. This is a Major defect in a derivation directly concerning the central method. The released training interface also selects checkpoints using test labels and fails to restore training mode after intermediate evaluation. Test-based checkpoint selection is Major for the frozen release’s core evaluation protocol; the training-mode defect remains Minor. Their connection to the historical reported runs is unresolved. The inspected source uses ordinary autograd, which is important counterevidence against inferring incorrect training gradients. Scientific adjudication remains pending.
Author: AI-assisted technical review
Date: Initial review, 25 October 2026
Title: Technical Verification of
Canonical Rank Adaptation
# Identity, reviewed versions, and scope
The paper is Canonical Rank Adaptation: An Efficient Fine-Tuning Strategy for Vision Transformers, by Lokesh Veeramacheneni, Moritz Wolter, Hilde Kuehne, and Juergen Gall, ICML 2025, PMLR 267; assigned identifier I25-43662, display number 0293, OpenReview `vexHifrbJg` [paper]. The reviewed original is the staged 18-page proceedings PDF. Page numbers below are PDF page numbers, which agree with printed numbering.
The review examined the main construction and experiments, especially Sections 3.1–3.4, Equations (8)–(20), Tables 2, 4, and 5, the complete gradient derivation in Appendix A, and implementation details in Appendices B–C. Appendices D–E were read for scope; their experiments and attribution maps were not reproduced. The inspected public source is commit `f0ac9a9730b79578f1c2293bafa0648be038b6be`, acquired during source preparation on 25 October 2026 [code]. It is not established as the commit used for the conference experiments. Available source files and retained archive members were checked without executing author code. No training data, model weights, or new software were downloaded.
# Necessary background and checked components
Equation reference: eq:forward. CaRA tensorizes attention and feed-forward updates and represents each as a CP sum. Writing either update uniformly, with tensor order \(m=3\) or \(4\), \[
W_{\rm eff}=W_0+\alpha\sum_{r=1}^{R}\lambda_r
a_r^{(1)}\circ\cdots\circ a_r^{(m)},\] the factors and \(\lambda_r\) are learned; \(W_0\) is frozen and \(\alpha\) is the external scale. The feed-forward tensor has dimensions \(9l\times d_{\rm model}\times d_{\rm model}\). Equation [eq:forward] (#eq:forward) is a valid parameterization.
The released initialization sets one factor in each CP sum to zero, retaining nonzero other factors and nonzero scaling coefficients. Consequently the initial update is zero but its derivative with respect to the zero factor need not vanish. No dead-gradient initialization was established for the supplied configurations. The ViT-B adaptation parameter count also reconciles: the factors and two coefficient vectors use \(2526R\) parameters and shared biases use \(4608\), yielding \(85440\) at \(R=32\), as in Table 5. The classifier head is trained but excluded from this adaptation count.
# Substantive findings
Problem 1 (The stated scalar-loss gradients omit the chain rule). Assessment: Major; outcome: issue found.
## Original claim and location
Section 3.3, pp. 5–6, explicitly introduces a loss function \(L\) and states its gradients with respect to \(\lambda_r\) and individual factor vectors in Equations (12)–(20). For example, the coefficient gradient is given as the outer product of the factors. This is an order-\(m\) tensor, although the derivative of a scalar loss with respect to scalar \(\lambda_r\) must be scalar. Factor derivatives are similarly given as outer products involving an identity matrix, which are Jacobians of the tensor update, not factor-shaped gradients of \(L\).
## Complete check and independent calculation
Equation reference: eq:lambda, eq:factor. Let \(G=\nabla_{W_{\rm eff}}L\) for a differentiable scalar loss. Direct differentiation of [eq:forward] (#eq:forward) gives \[\begin{aligned}
\frac{\partial L}{\partial\lambda_r}
&=\alpha\left\langle G,\bigcirc_{j=1}^{m}a_r^{(j)}\right\rangle,\\
\left[\nabla_{a_r^{(k)}}L\right]_t
&=\alpha\lambda_r\!
\sum_{\{i_j:j\ne k\}}
G_{i_1\ldots i_{k-1}t i_{k+1}\ldots i_m}
\prod_{j\ne k}a_{i_jr}^{(j)}.\end{aligned}\] These formulas include the upstream loss gradient, its contraction over tensor indices, and the forward scale. In the original independent-parameter coordinates, the factor derivative also includes \(\lambda_r\).
For an explicit example satisfying the paper’s dimensions, take the feed-forward formulation with \(l=1\), \(d_{\rm model}=2\), \(R=1\), and hence shape \(9\times2\times2\). Let all three factors be their first standard basis vectors, \(\alpha=3\), \(\lambda_1=2\), and \[L=\tfrac12\|W_{\rm eff}-W_0\|_F^2.\] No paper assumption excludes this differentiable loss or these parameter values. Only update entry \((1,1,1)\) is nonzero, equal to \(6\). Therefore \(L=18\), \(\partial L/\partial\lambda_1=18\), and \(\nabla_{a_1^{(k)}}L=36e_1\) for each factor. The corresponding entry of the printed outer product or uncontracted Jacobian is \(1\); it also has the wrong output shape. Exact rational central differences of this quadratic loss reproduce 18 and 36, without author-code execution (`verification/0293/check.py` and `check.json`).
## Alternative reading, impact, and repair
Appendix A, pp. 13–14, differentiates the tensor-valued update \(\mathcal F_z\) rather than scalar \(L\), and explicitly absorbs \(\lambda_z\) into the first factor after Equation (23). Those statements supply a valid Jacobian interpretation and explain the origin of the displayed objects. They do not make the main-text equations gradients of an arbitrary scalar loss in the original coordinates, where the coefficient is separately learned. The source retains a separate trainable coefficient. Source-page images `s05.png` and `s13.png` were inspected to exclude an extraction error.
The invalid derivation directly concerns optimization of the paper’s principal parameterization and supports Major under the specified calibration. Equations [eq:lambda] (#eq:lambda)–[eq:factor] (#eq:factor) are a locally verified correction by the chain rule, with no changed parameter domain. This does not establish an erroneous benchmark computation: Section 3.3 says autograd is used, and the inspected source reconstructs CP tensors with TensorLy’s PyTorch backend, applies the scale in the forward pass, and calls `loss.backward()`. It does not implement the erroneous displayed expressions as a custom backward rule. The CP construction and empirical results may survive this derivation error.
Problem 2 (The released training entry point selects checkpoints on the test split). Assessment: Major for the frozen release’s core evaluation protocol; historical empirical impact: Needs Evidence.
## Original claim, assumptions, and source path
Section 4.1, p. 6, describes the VTAB-1k protocol with 800 training and 200 validation samples. The released training route in `image_classification/vit_cp.py`, around lines 152–198, calls `get_data(evaluate=True)` and passes its second loader into `train`. In `image_classification/vtab.py`, lines 83–94, this choice maps the first loader to `train800val200.txt` and the second to `test.txt`. The finding assumes those named lists have their advertised split meanings and the ordinary training branch is used. No dataset bytes were inspected.
## Decisive trace and counterevidence
Inside `train`, lines 57–68, epochs 10, 20, …, 90 trigger evaluation on that second loader; a higher score updates `args.best_acc` and saves the associated checkpoint. Final evaluation also participates in the comparison, and the reported accuracy is the retained best value. Thus the procedure both chooses a checkpoint and reports a maximum using labels from `test.txt`. For evaluated accuracies \(\widehat a_1,\ldots,\widehat a_J\), the reported statistic is \(\max_j\widehat a_j\), which is pathwise at least each individual score. It is not an untouched evaluation of a checkpoint selected independently of test labels.
Combining the 800 and 200 samples for a final fit can be legitimate after model selection; that fact alone is not the defect. The available `evaluate=False` branch provides a validation loader, but this training entry point does not select it. These observations come from reading the complete training and loader files, with archive correspondence independently checked in `a1.json`.
## Bounded impact and correction status
This is a Major defect in the frozen release’s core evaluation protocol: test labels determine both checkpoint selection and the reported maximum. The direct dependency is test-loader labels to checkpoint choice to the reported VTAB accuracy, so the procedure no longer supplies an independent held-out evaluation. The magnitude of selection bias cannot be determined without predictions or reruns. The present commit is not bound to the historical runs underlying Table 2, so those scores are not declared contaminated. This provenance limitation bounds attribution to historical experiments; it does not remove the demonstrated failure of the inspected core evaluation procedure. A protocol using validation scores for selection and one final held-out test evaluation would remove this selection path; a corrected end-to-end training run has not been verified.
Problem 3 (Intermediate evaluation leaves later training in evaluation mode). Assessment: Minor; outcome: issue found in the release.
In `vit_cp.py`, `model.train()` is called before the epoch loop. The first intermediate `test()` calls `model.eval()`, and neither its return path nor subsequent epochs restore training mode. The next optimizer updates therefore run in evaluation mode. The inspected CaRA forward path contains dropout, so this changes the training-time stochastic behavior after the first intermediate evaluation. Gradients continue to run: evaluation mode does not itself disable autograd.
This trace is independent of which split the evaluation loader contains. The source does not document such a schedule as intentional. Its numerical effect and connection to historical experiments remain unknown. Restoring the prior training state after evaluation is the local proposed correction, but no author code was edited or executed and no training outcome is certified.
# Other checked claims and remaining evidence
The 19 printed CaRA accuracies in Table 2 average to \(74.1421\%\), agreeing with the reported overall \(74.14\%\). Averaging the three group means from those rounded entries gives \(76.4274\%\); the reported \(76.46\%\) is within what one-decimal input rounding can explain. No arithmetic defect is asserted there.
The ViT-L parameter count is unresolved. Appendix C.4 reports rank 32, while Table 4 gives \(0.076\)M parameters. Applying the stated full-tensor formula to \(l=24\), \(d_{\rm model}=1024\), \(h=16\), \(d_h=64\) yields \(110144\) CP parameters, or \(116288\) with analogous shared biases. The inspected release hardcodes ViT-B dimensions; no ViT-L branch or reduced adaptation rule was located. The relevant implementation and counting convention are needed before assigning a defect.
At fixed per-projection rank \(R\), a CP tensor unfolding has matrix rank at most \(R\) and is representable by matrix LoRA of rank \(R\). Tensorization therefore introduces structural sharing and inductive bias, rather than proving a strict expressive-power increase over unconstrained matrix updates of the same rank. Equal parameter budgets and cross-layer sharing are different comparisons. Since the paper acknowledges fewer degrees of freedom, this is a scope clarification, not a further substantive finding.
No empirical retraining, significance analysis of baseline comparisons, historical checkpoint provenance check, complete Swin/GLUE reproduction, or saliency-map validation was performed. Appendix D tables were read but not comprehensively recalculated. External supplementary discovery was blocked during source preparation; the embedded appendices were available.
# Overall impact and state
The supported overall assessment is Major, based on the central loss-gradient derivation and the frozen release’s test-dependent core evaluation protocol. The locally corrected derivatives leave the forward CP model intact. Ordinary autograd provides concrete counterevidence against concluding that this mathematical presentation error was used in training. The test-selection defect is separately Major at the release level; the training-mode inconsistency remains Minor. Historical run records and a corrected training procedure are needed to determine consequences for the reported benchmarks.
Item | Assessment | Repair verification | Adoption / remaining work
Loss gradients | Major | Local chain rule verified | Unknown; revise derivation
Test selection | Major | Protocol change proposed | Unknown; run provenance needed
Training mode | Minor | Trace established; no rerun | Unknown; restore state and test
ViT-L count | Needs Evidence | None | Implementation and counting rule needed
Scientific adjudication is pending. No human review or author adoption is claimed.
9 L. Veeramacheneni, M. Wolter, H. Kuehne, and J. Gall. Canonical Rank Adaptation: An Efficient Fine-Tuning Strategy for Vision Transformers. ICML, PMLR 267 (2025). https://proceedings.mlr.press/v267/veeramacheneni25a.html. Reviewed staged proceedings PDF; OpenReview `vexHifrbJg`. CaRA released author source, commit `f0ac9a9730b79578f1c2293bafa0648be038b6be`. Frozen archive and selected extracted members in `sources/0293/r01.zip` and `r01/`, acquisition 25 October 2026. Consulted `src/cara/cara.py`, training/loader/configuration files, dimension experiment, and test source; static inspection only.
# Supporting checks
.
All 27 original input files were inventoried and hashed in `inputs.json`. Six principal source members were compared byte-for-byte with their retained archive entries. Paths and versions are retained in the original `source_manifest.json`; no source identity was replaced.
Reviewer-written `check.py` uses Python standard-library rational arithmetic for the polynomial derivative check and direct arithmetic for counts and means. It does not import or execute the author repository. The exact derivatives are checked by symmetric differences at rational step \(1/100\), which are exact for these quadratic one-variable restrictions. The auxiliary’s independent floating-point differences are supporting diagnostics, not a substitute for the analytic chain rule.
No human endorsement is entered.
No author-code execution or dataset/weight download occurred.
Source PDF SHA-256: 83d16e616b221a18926cc03ed30f50ad5b9988d99bbd93128cbcee1d40056436
Repair verification: pending
Author adoption: not_requested