Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusion
ELVIA analysis
Independent review pending
Two defects affect released NLP matching and RegMean dispatch. No substantive issue was found in the inspected vanilla-attention symmetry and binary orthogonal Procrustes derivation. The release defects do not establish historical table failures.
Problem 1. NLP headwise matching uses full-width bias products
MinorEvidence and reasoning
Problem statement
released matching implementation ofAlgorithm1.
heads. fullwidthD=H*dh. default head size64; concreteD128,H2. full projection bias passedbyget_QKVO.
Proof
The release’s `src/model_merge/pi_utils/utils.py`, lines – and – 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 with The sliced Q/K weight blocks have shape so their cross-products are The unsliced biases have length so their outer products are Adding these is dimensionally invalid. For a concrete legal two-head layer with the requested sum adds a matrix to a 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 – obtains full projection tensors and calls both utilities with the default head size `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.
Possible revision
use B_Q1_/B_Q2_/B_K1_/B_K2_ andB_V1_/B_V2_ in head products.
Problem 2. RegMean keyword bypasses Gram-based merging
MinorEvidence and reasoning
Problem statement
NLP regmean_mean configuration invokes RegMean.
standard single_round without separately provided all_grams. regmean_meantrue. fisher_weightedfalse fromdefault.
Proof
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 – 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 –) and matching forwarder (`pi_merger.py`, lines –) preserve this keyword. The callee’s signature, `avg_merger.py`, lines – 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 – is false. With Fisher weighting disabled, the routine reaches ordinary averaging at lines – 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.
Possible revision
explicitlymapgrams toall_grams.
Supporting record & provenance
Work status
Current version
Version 1
Minhao Liu · Initial report · Version 1
Independent review pending
Original claim and review scope
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.
Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 1, Abstract
Actual review scope
The recorded inspection concerns these source locations: src/model_merge/pi_utils/utils.py52–54,76–78;pi_merger.py92–97; base.py377–384;avg_merger.py40–87;pi_merger.py40–50.