Papers › A Geometric Analysis of Sign-Magnitude Asymmetry in a ReLU + RMSNorm Block under...

A Geometric Analysis of Sign-Magnitude Asymmetry in a ReLU + RMSNorm Block under Ternary Quantization

18 May 2026arXiv:2605.18933added by Syntology

Lei Dong

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Pre-norm Transformers with RMSNorm tolerate ternary {-1,0,+1} weight quantization with surprisingly small loss (Ma et al., 2024). We give a geometric explanation via sign-magnitude decomposition of weight perturbations. In a two-layer ReLU + RMSNorm model with i.i.d. Gaussian weights, sign-flips produce π/(π-2) ≈2.75 times more transverse output energy than sign-preserving magnitude perturbations of equal Frobenius norm, as the flip rate p →0 (Theorem 3). The mechanism: ReLU creates a hidden-space directional asymmetry between the two perturbation types, which RMSNorm's transverse-projection Fréchet derivative selectively exposes. Sign-quantization error is itself a sign-preserving perturbation with angular alignment cos² →2/π (Theorem 4); its post-ReLU radial fraction ($0.365$) matches the pre-ReLU value 1-2/π within 0.4%, so ReLU is approximately transparent to ternary error. Multi-layer compounding of the 2.75× factor is not experimentally supported; the gap to real-model sign sensitivity arises from outlier features violating delocalization. For an input dimension with amplitude α, a single sign-flip produces post-ReLU energy amplified by R ≈nα² relative to a delocalized entry. On TinyLlama-1.1B, at linear response (p ≤0.5%), count-matched NLL leverage stabilizes at ∼10×≈n𝔼[α²], matching the per-entry theory; the all-column NLL ratio of 5.0× falls within R_(col) ≤19 (67× PPL gap reflects metric nonlinearity). Measured outlier α at layer 12 (median $0.024$, max $0.26$) confirms heavy-tailed concentration. The Bussgang constant 2/π, RMSNorm geometry, and ReLU half-space structure together explain sign-magnitude asymmetry in pre-norm models, with R ∝nα² accounting for real-model deviations.

PaperPDFCode Syntology ran

In Syntology For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.18933")

Code

Syntology Ran 15 of 19 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 15 ran with no contract checked.

By repository: found in paper text by Syntology: 19 samples from 1 repository, 15 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

donglei628/sign-magnitude-pre-norm found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 15 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

15ran
4unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from donglei628/sign-magnitude-pre-norm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

c_theory donglei628/sign-magnitude-pre-norm/experiments/verify_theorem3.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 9b96d89c732cb3af · report
c_theory donglei628/sign-magnitude-pre-norm/figures/plot_theorem3.py found in paper text by Syntology ran fingerprinted MIT (permissive) · c11618d04e506835 · report
compute_stats donglei628/sign-magnitude-pre-norm/experiments/exp5_multilayer_toy.py found in paper text by Syntology ran fingerprinted MIT (permissive) · e31e075089fb7349 · report
compute_stats donglei628/sign-magnitude-pre-norm/experiments/exp5_trained_weights.py found in paper text by Syntology ran fingerprinted MIT (permissive) · e1546806333b4018 · report
compute_stats donglei628/sign-magnitude-pre-norm/experiments/verify_theorem3.py found in paper text by Syntology ran fingerprinted MIT (permissive) · aa5f1ef94374f662 · report
get_activation_fn donglei628/sign-magnitude-pre-norm/experiments/exp5_multilayer_toy.py found in paper text by Syntology ran MIT (permissive) · 5fec7274c7f22bcc · report
get_linear_layers donglei628/sign-magnitude-pre-norm/experiments/dn_outlier.py found in paper text by Syntology ran MIT (permissive) · d1ef356d1d206cff · report
load_multilayer_data donglei628/sign-magnitude-pre-norm/figures/plot_multilayer.py found in paper text by Syntology ran MIT (permissive) · bcc415f45b6d945e · report
load_trained_data donglei628/sign-magnitude-pre-norm/figures/plot_multilayer.py found in paper text by Syntology ran MIT (permissive) · 490bea4818f080cc · report
make_independent_mag_perturbation donglei628/sign-magnitude-pre-norm/experiments/verify_proposition1.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 7662426d80eb3e6d · report
make_sign_perturbation donglei628/sign-magnitude-pre-norm/experiments/exp5_trained_weights.py found in paper text by Syntology ran fingerprinted MIT (permissive) · e93f530e8da8fbaf · report
make_sign_perturbation donglei628/sign-magnitude-pre-norm/experiments/verify_proposition1.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 596414b45c03dcc9 · report
measure_row_cos2 donglei628/sign-magnitude-pre-norm/experiments/verify_theorem4.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 91b129a974e8046b · report
measure_vector_cos2 donglei628/sign-magnitude-pre-norm/experiments/verify_theorem4.py found in paper text by Syntology ran MIT (permissive) · 6591234932f35f45 · report
sample_sphere donglei628/sign-magnitude-pre-norm/experiments/exp5_multilayer_toy.py found in paper text by Syntology ran MIT (permissive) · 6bd3e54f06121c07 · report
collect_activation_stats donglei628/sign-magnitude-pre-norm/experiments/dn_outlier.py found in paper text by Syntology unverified MIT (permissive) · da3a837e5baf47c9 · report
evaluate_ppl donglei628/sign-magnitude-pre-norm/experiments/dn_outlier.py found in paper text by Syntology unverified MIT (permissive) · 7edbc98433bb3a0d · report
measure_alpha_all_dims donglei628/sign-magnitude-pre-norm/experiments/column_flip_verify.py found in paper text by Syntology unverified MIT (permissive) · 364061df24326431 · report
measure_column_perturbation_energy donglei628/sign-magnitude-pre-norm/experiments/activation_level_verify.py found in paper text by Syntology unverified MIT (permissive) · 1e486d651f88f1bd · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.18933, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections