potentialpaper

The Factorization Was the Circuit: Chinese Remainder Theorem in Transformers

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:48 UTC · c8a5acfdfd28 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "vd991L1wKE"
- }
- ],
- "title": "The Factorization Was the Circuit: Chinese Remainder Theorem in Transformers",
- "authors": [],
- "abstract": "Emergent algorithms can arise in neural networks trained on simple tasks. Twenty small transformers (1-layer, no LayerNorm) trained to solve $a^{b} \\bmod p$ over a range of primes $p$ exhibit perfect generalization after grokking. We reverse engineer the emergent mechanism and find that the model first rewrites the answer as $g^{\\gamma}$, and $\\gamma = \\log_{g}(a) \\cdot b \\bmod q$, where $q = p-1$ and $g$ is a primitive root of $p$. It then splits that product using the $\\textit{Chinese Remainder Theorem}$ (CRT): computing $\\gamma \\bmod m_i$ on independent streams, where $m_i$ are the prime-power factors of $q$; then recombining the residues in the unembedding. Similar to prior work, we learn that the model uses a sparse set of \"key\" frequencies, which index the irreducible representations. Unlike prior work, this set is completely deterministic, as it is the union of disjoint bands of the Fourier spectrum at the multiples of $q/m_i$. We call these bands the CRT bands. Through causal tests, we show that each band controls its own corresponding stream independently. Furthermore, for prime-power streams $m_i = \\ell^{e}$ (e.g., $\\mathbb{Z}/16\\mathbb{Z}$), the irreducible representations of these groups are filtered by order, dual to the quotient tower: $\\mathbb{Z}/\\ell^{e}\\mathbb{Z} \\twoheadrightarrow \\cdots \\twoheadrightarrow \\mathbb{Z}/\\ell\\mathbb{Z}$. With the a priori knowledge of these irreducible representations and their frequencies, we are able to show the streams' independence causally, as well as isolate and observe the mechanism's circuitry formation during grokking.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "258da866-682b-4688-af9f-fbf8dce60a53"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "The Factorization Was the Circuit: Chinese Remainder Theorem in Transformers",
+ "authors": [],
+ "abstract": "Emergent algorithms can arise in neural networks trained on simple tasks. Twenty small transformers (1-layer, no LayerNorm) trained to solve $a^{b} \\bmod p$ over a range of primes $p$ exhibit perfect generalization after grokking. We reverse engineer the emergent mechanism and find that the model first rewrites the answer as $g^{\\gamma}$, and $\\gamma = \\log_{g}(a) \\cdot b \\bmod q$, where $q = p-1$ and $g$ is a primitive root of $p$. It then splits that product using the $\\textit{Chinese Remainder Theorem}$ (CRT): computing $\\gamma \\bmod m_i$ on independent streams, where $m_i$ are the prime-power factors of $q$; then recombining the residues in the unembedding. Similar to prior work, we learn that the model uses a sparse set of \"key\" frequencies, which index the irreducible representations. Unlike prior work, this set is completely deterministic, as it is the union of disjoint bands of the Fourier spectrum at the multiples of $q/m_i$. We call these bands the CRT bands. Through causal tests, we show that each band controls its own corresponding stream independently. Furthermore, for prime-power streams $m_i = \\ell^{e}$ (e.g., $\\mathbb{Z}/16\\mathbb{Z}$), the irreducible representations of these groups are filtered by order, dual to the quotient tower: $\\mathbb{Z}/\\ell^{e}\\mathbb{Z} \\twoheadrightarrow \\cdots \\twoheadrightarrow \\mathbb{Z}/\\ell\\mathbb{Z}$. With the a priori knowledge of these irreducible representations and their frequencies, we are able to show the streams' independence causally, as well as isolate and observe the mechanism's circuitry formation during grokking.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}