AIFeed

Identifiability of LLaMA-style decoders

Summary

arXiv:2612.02679v1 Announce Type: cross Abstract: We prove that a LLaMA-style decoder, with pre-norm RMSNorm, skip connections, rotary positions, grouped-query attention, a causal mask, SwiGLU feed-forward layers and a tied or untied unembedding, is determined by the function it computes on soft tokens, up to an explicit gauge group, for all parameters outside a proper algebraic subset. The group consists of one orthogonal change of frame of the residual stream, a torus and a general linear group for each key-value group, a scaling for each neuron, and permutations. For Mistral-7B its orbits have dimension $1.3\cdot10^{7}$, which is 0.18% of the parameters. For $\varepsilon>0$ and contexts longer than three times the head dimension, the function also determines each of the 2D sublayers at non-generic parameters and against wider networks, whenever every block has a head whose attention pattern occurs in no other block. A tied unembedding fixes the frame of the residual stream up to sig…

Original text(via arXiv cs.CL)

Computer Science > Machine Learning

Title:Identifiability of LLaMA-style decoders

Abstract:We prove that a LLaMA-style decoder, with pre-norm RMSNorm, skip connections, rotary positions, grouped-query attention, a causal mask, SwiGLU feed-forward layers and a tied or untied unembedding, is determined by the function it computes on soft tokens, up to an explicit gauge group, for all parameters outside a proper algebraic subset. The group consists of one orthogonal change of frame of the residual stream, a torus and a general linear group for each key-value group, a scaling for each neuron, and permutations. For Mistral-7B its orbits have dimension $1.3\cdot10^{7}$, which is 0.18% of the parameters. For $\varepsilon>0$ and contexts longer than three times the head dimension, the function also determines each of the 2D sublayers at non-generic parameters and against wider networks, whenever every block has a head whose attention pattern occurs in no other block. A tied unembedding fixes the frame of the residual stream up to signed permutations. The method treats exponentials of attention scores and gate pre-activations as coordinates on a torus, shows that the partition function of a head that sees three positions is prime, and isolates heads and neurons by residues of an expansion at large input norm. We then test what exact equality leaves open in practice. In six released checkpoints of up to $7.2\cdot10^{9}$ parameters, the assumptions of the long-context corollary hold, and random gauge transformations move the weights by more than their norm while changing the logits by at most $5\cdot10^{-13}$. On small decoders, all 580 students that converge to their teacher lie on its orbit, or agree with it sublayer by sublayer when they are wider. At the trained weights of small decoders the differential of the parameter map has rank equal to the number of parameters minus the dimension of the group, on soft tokens and on sequences of hard tokens in which every token occurs.
Subjects:Machine Learning (cs.LG) ; Computation and Language (cs.CL); Algebraic Geometry (math.AG)
Cite as:arXiv:2612.02679 [cs.LG]
(or arXiv:2612.02679v1 [cs.LG] for this version)
https://doi.org/10.48550/arXiv.2612.02679 arXiv-issued DOI via DataCite (pending registration)

Submission history

Access Paper:

  • HTML (experimental)

Additional Features

  • Audio Summary

Current browse context:

References & Citations

  • Google Scholar
  • Semantic Scholar

BibTeX formatted citation

Bookmark

Bibliographic and Citation Tools

Code, Data and Media Associated with this Article

Demos

Recommenders and Search Tools

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by arXiv cs.CL
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗