ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusion — Problem 2: RegMean keyword bypasses Gram-based merging

Original paper: Binchi Zhang; Zaiyi Zheng; Zhengzhang Chen; Jundong Li. Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusion. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/zhang25dk.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: base.py377–384;avg_merger.py40–87;pi_merger.py40–50

Question: What does the recorded analysis establish about “RegMean keyword bypasses Gram-based merging”?
Bounded finding:
released default RegMean path ignores collected Gram stats. releasebaseline/methoddispatch; historical results NeedsEvidence.

Recorded check:
The NLP pipeline sends the collected Gram matrices under keyword `grams`, but the averaging routine consumes `all_grams`.
In `src/model_merge/base.py`, lines 377–384, the RegMean flag collects Gram matrices under the dictionary key `grams`. It forwards this dictionary to `merge_to_global`. The baseline forwarder (`avg_merger.py`, lines 40–43) and matching forwarder (`pi_merger.py`, lines 40–50) preserve this keyword. The callee’s signature, `avg_merger.py`, lines 45–53, instead declares `all_grams=None` plus `**kwargs`.
For the normal call without separately supplied `all_grams`, Python binds `grams` to the unused extra-keyword dictionary. The test `if all_grams` at lines 65–69 is false. With Fisher weighting disabled, the routine reaches ordinary averaging at lines 81–87. These conditions are concrete: the default configuration disables Fisher weighting, while the DeBERTa NER RegMean configuration enables `regmean_mean`. This static argument establishes the branch without executing the author pipeline.
Renaming or explicitly forwarding the argument restores this dispatch connection, but does not by itself certify all downstream statistics or matching behavior. The ViT entry point passes `all_grams` correctly and computes statistics after matching. Similarities between published simple-averaging and RegMean scores are not evidence that this release defect caused the historical numbers. The problem remains a supported release-level Minor defect.

Case-wide limitations:
- P1 — NLP headwise matching uses full-width bias products — Counterevidence: paperhead-localformulacorrect
- P1 — NLP headwise matching uses full-width bias products — Counterevidence: separateViTcodeusestheslices
- P1 — NLP headwise matching uses full-width bias products — Counterevidence: publicationtimeversionunknown
- P2 — RegMean keyword bypasses Gram-based merging — Counterevidence: ViTpassesall_grams correctly
- P2 — RegMean keyword bypasses Gram-based merging — Counterevidence: similarTable1numbersnotcausalproof
- Limitations: preserved/hashchecked; notexhaustive
- Limitations: no acquired bindingofhistoricalexecution; authorcodeexecutionandmodeldownloadsnotperformed
- Limitations: acquisition OpenReviewHTTP403
- Limitations: fixedversion initialreview
- 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: p2
Source report index: 2

Original source excerpts (verbatim):
In this paper, we introduce rotation symmetry, a novel form of parameter space symmetry for transformers that generalizes permutation symmetry by rotating parameter matrices in self-attention layers.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 1, Abstract
Source PDF SHA-256: 6873e1159c4ac5b37a5271d2883ff8810155b895abb48e24d67e26c5f329e235

Review status: Independent review pending
Case: icml2025-0265-beyond-the-permutation-symmetry-of-transformers-the-role-of-rotati
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0265-beyond-the-permutation-symmetry-of-transformers-the-role-of-rotati.html#problem-2
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0265-beyond-the-permutation-symmetry-of-transformers-the-role-of-rotati/records/icml2025-0265-beyond-the-permutation-symmetry-of-transformers-the-role-of-rotati.r1.json
Canonical record SHA-256: bd5dc7b0674e830e3f991a871e00c7b4f17f5ae6bc69ec01540efb2432b345df
The page follows the latest revision; the versioned record identifies this snapshot.

Analysis citation:
Minhao Liu. ELVIA analysis of: Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusion — Problem 2: RegMean keyword bypasses Gram-based merging. ELVIA, 2026. https://elvia-atlas.org/atlas/cases/icml2025-0265-beyond-the-permutation-symmetry-of-transformers-the-role-of-rotati.html#problem-2
Case icml2025-0265-beyond-the-permutation-symmetry-of-transformers-the-role-of-rotati; revision 1; Independent review pending. Assessment is limited to the inspected claims. Versioned record: https://elvia-atlas.org/atlas/evidence/icml2025-0265-beyond-the-permutation-symmetry-of-transformers-the-role-of-rotati/records/icml2025-0265-beyond-the-permutation-symmetry-of-transformers-the-role-of-rotati.r1.json

Claim in the source (paraphrase):
NLP regmean_mean configuration invokes RegMean.
standard single_round without separately provided all_grams. regmean_meantrue. fisher_weightedfalse fromdefault.

Full finding analysis:
The NLP pipeline sends the collected Gram matrices under keyword `grams`, but the averaging routine consumes `all_grams`.
In `src/model_merge/base.py`, lines 377–384, the RegMean flag collects Gram matrices under the dictionary key `grams`. It forwards this dictionary to `merge_to_global`. The baseline forwarder (`avg_merger.py`, lines 40–43) and matching forwarder (`pi_merger.py`, lines 40–50) preserve this keyword. The callee’s signature, `avg_merger.py`, lines 45–53, instead declares `all_grams=None` plus `**kwargs`.
For the normal call without separately supplied `all_grams`, Python binds `grams` to the unused extra-keyword dictionary. The test `if all_grams` at lines 65–69 is false. With Fisher weighting disabled, the routine reaches ordinary averaging at lines 81–87. These conditions are concrete: the default configuration disables Fisher weighting, while the DeBERTa NER RegMean configuration enables `regmean_mean`. This static argument establishes the branch without executing the author pipeline.
Renaming or explicitly forwarding the argument restores this dispatch connection, but does not by itself certify all downstream statistics or matching behavior. The ViT entry point passes `all_grams` correctly and computes statistics after matching. Similarities between published simple-averaging and RegMean scores are not evidence that this release defect caused the historical numbers. The problem remains a supported release-level Minor defect.

Finding and scope:
released default RegMean path ignores collected Gram stats. releasebaseline/methoddispatch; historical results NeedsEvidence.

Recorded correction and verification scope:
explicitlymapgrams toall_grams.

Displayed problem statement:
NLP regmean_mean configuration invokes RegMean.
standard single_round without separately provided all_grams. regmean_meantrue. fisher_weightedfalse fromdefault.

Complete retained report:

Abstract: The inspected vanilla-attention invariance and two-model orthogonal Procrustes argument are valid within the paper’s stated scope. Two released NLP implementation defects are established by static source tracing: incompatible bias dimensions in headwise matching and a keyword mismatch that bypasses RegMean. Their effects on publication-time results remain unverified. The overall assessment is Minor, with scoped No Issue Found for the core mathematical derivation and Needs Evidence for historical implementation correspondence.
Author: AI-assisted technical review
Title: Technical Verification of Rotation Symmetry for Model Fusion
# Identity and coverage
Binchi Zhang, Zaiyi Zheng, Zhengzhang Chen and Jundong Li, Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusion, ICML 2025, PMLR 267, I25-43634 (0265), is reviewed in its 17-page proceedings version [paper]. Physical and printed page numbers agree. The independent check inspected the main argument and experiments, pp. 1–9, and Appendices A–D, pp. 15–17. Original pages 3, 5, 8 and 15 were rendered to verify equations, proof and the loss/runtime figure page. Page 8’s extracted text contains duplicated background material; the rendered original was used as the authority.
The release at commit `b89d081429d6e6351f3449d60df5562dfa146664` was examined statically [code]. The independent check read the complete NLP matching utilities and merger, relevant averaging/dispatch code, README and configurations. Auxiliary checks also covered the ViT path. No trained model, dataset or author program was executed.
# Core derivation: no issue found in the declared scope
## Attention invariance
For one head let \(Q=XW_Q^\top+b_Q\), \(K=XW_K^\top+b_K\), \(V=XW_V^\top+b_V\), with biases broadcast by token. Under Eq. (5), p. 3, orthogonal \(R_{qk}\) gives \(Q'=QR_{qk}\) and \(K'=KR_{qk}\). Consequently \[Q'(K')^\top=QR_{qk}R_{qk}^\top K^\top=QK^\top.\] Thus the softmax attention matrix is unchanged. Independently, with \(V'=VR_{vo}\) and \(W_O'=W_OR_{vo}\), \[V'(W_O')^\top=VR_{vo}R_{vo}^\top W_O^\top=VW_O^\top.\] Headwise sums, the unchanged output bias and residual therefore agree exactly before LayerNorm is applied. No commutation of a general rotation through LayerNorm or a coordinatewise nonlinearity is required. The FFN argument uses permutations, which do commute with its coordinatewise activation.
The paper defines its rotation set by \(RR^\top=I\) and does not impose \(\det R=1\). The derived solution is therefore assessed on the orthogonal group, including reflections. This is consistent with its inclusion of permutation matrices. A special-orthogonal determinant objection would change the stated domain.
## Two-model matching
Stack the transposed Q/K weights and bias rows into matrices \(A_1,A_2\). Theorem 4.1 minimizes \[\|A_1R_1-A_2R_2\|_F^2,\qquad R_1,R_2\in O(d_h).\] Right multiplication by \(R_2^\top\) reduces this to \(\|A_1R-A_2\|_F^2\), where \(R=R_1R_2^\top\). For \(C=A_1^\top A_2=U\Sigma V^\top\), \[\|A_1R-A_2\|_F^2
=\|A_1\|_F^2+\|A_2\|_F^2-2\operatorname{tr}(R^\top C).\] Because \(U^\top RV\) is orthogonal and each diagonal entry is at most one, \(\operatorname{tr}(R^\top C)\le\sum_i\sigma_i\). Equality is attained by \(R=UV^\top\). This proves the stated solution and permits \(R_2=I\) without loss. Rank deficiency can produce additional optima but does not invalidate this one. The VO case has the same stacked least-squares form. The proof explicitly uses an SVD; the occasional word eigendecomposition does not change the derivation.
The rescaling objective has the form \(Aa^2-2Ba+D/a^2-2C/a+\mathrm{const}\), with \(a\ne0\). Its stationary condition is \(Aa^4-Ba^3+Ca-D=0\), matching Eq. (12). Choosing a global rescaling optimum still requires comparing admissible stationary candidates. Appendix D explicitly limits optimality to binary rotation matching, acknowledges larger symmetry classes, and disclaims global optimality for sequential rotation/rescaling and arbitrary multi-model fusion. Those disclosed limits are not relabeled as defects.
A Independently authored NumPy calculation, seed 5265, corroborates the algebra with two attention heads, nonzero biases, residual and fixed affine LayerNorm: maximum final difference \(2.22\times10^{-16}\). A separate Procrustes calculation agrees with the analytic optimum within \(2.14\times10^{-14}\). These are finite checks accompanying the proof, not substitutes for it or tests of pretrained models.
# Released NLP implementation defects
Problem 1 (Full-width bias products are added to headwise matrices: Minor).  The release’s `src/model_merge/pi_utils/utils.py`, lines 52–54 and 76–78, computes head-local weight products but uses unsliced full-width bias outer products in `Chunk_SVD_QK` and `Chunk_SVD_VO`.
Let the full hidden width be \(D=Hd_h\) with \(H>1\). The sliced Q/K weight blocks have shape \(d_h\times D\), so their cross-products are \(d_h\times d_h\). The unsliced biases have length \(D\), so their outer products are \(D\times D\). Adding these is dimensionally invalid. For a concrete legal two-head layer with \(d_h=64\), the requested sum adds a \(64\times64\) matrix to a \(128\times128\) matrix. An independent NumPy shape calculation raises the expected incompatible-broadcast error. Zero bias values do not cure their incompatible dimensions.
This is on the released caller path: `pi_merger.py`, lines 92–97, obtains full projection tensors and calls both utilities with the default head size 64; `get_QKVO` returns full biases. The README’s `–use_pi` example and DeBERTa configuration select that pipeline. Although correctly sliced variables ending in an underscore already exist, they are not used in these sums.
Using the corresponding head-local bias slices restores the intended matrix dimensions and matches Algorithm 1’s per-head cross-products. A full source patch was not applied or executed. The separate ViT implementation already uses sliced bias products, providing counterevidence to a repository-wide failure claim. The defect obstructs this released multi-head NLP path, but does not falsify the mathematical theorem or establish which version produced Table 1. Its supported scope is a release-level Minor finding; historical empirical impact is Needs Evidence.
Problem 2 (RegMean statistics are silently ignored by the default NLP dispatch: Minor).  The NLP pipeline sends the collected Gram matrices under keyword `grams`, but the averaging routine consumes `all_grams`.
In `src/model_merge/base.py`, lines 377–384, the RegMean flag collects Gram matrices under the dictionary key `grams`. It forwards this dictionary to `merge_to_global`. The baseline forwarder (`avg_merger.py`, lines 40–43) and matching forwarder (`pi_merger.py`, lines 40–50) preserve this keyword. The callee’s signature, `avg_merger.py`, lines 45–53, instead declares `all_grams=None` plus `**kwargs`.
For the normal call without separately supplied `all_grams`, Python binds `grams` to the unused extra-keyword dictionary. The test `if all_grams` at lines 65–69 is false. With Fisher weighting disabled, the routine reaches ordinary averaging at lines 81–87. These conditions are concrete: the default configuration disables Fisher weighting, while the DeBERTa NER RegMean configuration enables `regmean_mean`. This static argument establishes the branch without executing the author pipeline.
Renaming or explicitly forwarding the argument restores this dispatch connection, but does not by itself certify all downstream statistics or matching behavior. The ViT entry point passes `all_grams` correctly and computes statistics after matching. Similarities between published simple-averaging and RegMean scores are not evidence that this release defect caused the historical numbers. The problem remains a supported release-level Minor defect.
# Experimental scope and alternative readings
The independent check read the reported language/vision metrics, ablations, parameter distances, loss barriers, runtimes and subset-layer experiments. The displayed comparisons do not establish a theorem that reducing weight distance always improves test utility; the Procrustes theorem guarantees its specified parameter-distance optimum. No loss/accuracy curve or timing was regenerated, and no significance assessment from raw seeds was possible.
The exact symmetry proof applies to the explicitly modeled original attention architecture (p. 3, footnote 1). Architecture-specific relative-position operations require separate correspondence checks. Relative attention alone does not establish failure: when positional Q/K vectors use the same projection modules, they may rotate automatically and preserve their dot products. Separately parameterized positional projections would require corresponding transformations. The acquired model configuration/forward implementation was not sufficient here to decide the actual DeBERTa setting; this remains Needs Evidence, not a demonstrated symmetry violation.
Auxiliary static inspection of the ViT data helper found a validation split drawn from training data and a separate official test set. No test-selection leakage was established in that path. The precise historical checkpoints, outputs and environment remain unbound to the inspected commit. The two release findings therefore cannot support a claim that the reported fusion improvements are false.
Dimension | State
Assessment | Minor: two NLP release defects; core vanilla symmetry/Procrustes No Issue Found within scope
Adjudication | Pending; no human reviews
Repair verification | Bias dimensions and argument routing checked analytically; no integrated source repair
Author adoption | Not requested; unknown
Remaining evidence | Publication-time source/checkpoints; architecture-specific positional correspondence
9 B. Zhang, Z. Zheng, Z. Chen and J. Li. Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusion. ICML 2025, PMLR 267, 17-page proceedings PDF. https://proceedings.mlr.press/v267/zhang25dk.html. OpenReview: `wBJIO15pBV`. zhengzaiyi/RotationSymmetry, commit `b89d081429d6e6351f3449d60df5562dfa146664`. https://github.com/zhengzaiyi/RotationSymmetry. Static snapshot inspected; source bytes unchanged.
# Supporting checks
PDF SHA-256: 6873e1159c4ac5b37a5271d2883ff8810155b895abb48e24d67e26c5f329e235. No author code was imported or executed.
Source-integrity transport is mechanical. Bibliography originals, repository illustration PDFs and all nonessential source files were not exhaustively reviewed. Separate attachments could not be enumerated after acquisition-time OpenReview HTTP 403. Later revisions/errata were not surveyed.

Source PDF SHA-256: 6873e1159c4ac5b37a5271d2883ff8810155b895abb48e24d67e26c5f329e235
Repair verification: pending
Author adoption: not_requested