MATH · IN · MODELS
structures / Manifolds / Circle / Generalized Helix

Generalized Helix

OBJECTgeometric-objectembedded-setnonlinearK:variableparametrizationunbounded 1-dimensional curve (non-compact, unlike the circle it generalizes)intermediatehow it's classified →

A scalar quantity a is embedded as helix(a) = C·B(a), where B(a) stacks a linear term with cos/sin pairs at several periods T_1,...,T_k — a single number simultaneously encoded as 'how far along an unbounded axis' and 'where on each of several superposed circles,' generalizing a plain circle (one period) to several periods with generally incommensurate ratios, embedded into a linear subspace by a single learned matrix.

Replicationcomputed from the corpus — never hand-assigned
2 papers · no shared authors1 architecture class1 domain3 model families · across papers
Filled = two or more values reported by papers that share no author — replication. Outlined = two or more values, but all from a single study — breadth, not replication. Grey = a single value. Derived from paper authorship and each model's architecture class, domain and family; it updates itself when a paper is added.

Definition

For a scalar aa (e.g. an integer token value), a generalized helix with kk frequencies is

B(a)=[a, cos(2πT1a), sin(2πT1a), , cos(2πTka), sin(2πTka)]R2k+1B(a) = \big[\,a,\ \cos(\tfrac{2\pi}{T_1}a),\ \sin(\tfrac{2\pi}{T_1}a),\ \ldots,\ \cos(\tfrac{2\pi}{T_k}a),\ \sin(\tfrac{2\pi}{T_k}a)\,\big] \in \mathbb{R}^{2k+1}

helix(a)=CB(a)\mathrm{helix}(a) = C\,B(a)^\top

where CC is a coefficient matrix (fit by linear regression, typically after PCA-reducing the ambient representation) mapping the (2k+1)(2k+1)-dimensional basis into the model’s activation space. k=1k=1 recovers an ordinary 3-coordinate helix (one straight axis plus one circle); k>1k>1 (“generalized”) superposes several periods T1,,TkT_1,\ldots,T_k simultaneously, so the same scalar aa is legible both as a position along an unbounded linear axis (via the raw aa term) and as an angle on each of several circles of different circumference, typically chosen to include both short periods (capturing high-frequency structure) and long periods tied to a numeral system’s base (e.g. T=100T=100 for base-10 magnitudes).

Intuition

A plain circle can represent a genuinely cyclic quantity (day of week, angle) but cannot by itself distinguish aa from a+T,a+2T,a+T,a+2T,\ldots — winding around the same loop indefinitely loses the “how far” information a linear axis provides. A generalized helix keeps that linear axis and adds one or more circles on top of it, the way a spring’s coil (circular cross-section) rises steadily along its length (linear axis): each point is simultaneously “this far along” and “at this angle,” and stacking several different-period circles lets the same combined coordinate disambiguate values that any single period alone would confuse (e.g. two numbers 100 apart look identical on a period-10 circle, but not on a period-100 one).

Properties

  • A multi-period generalization of Circle, not a compact loop itself. Because the basis includes an unbounded linear term aa alongside the periodic terms, the resulting curve does not close up into a loop the way a bare circle does — it is topologically an unbounded curve, with the periodic terms providing local disambiguation/redundancy layered on top of monotonic linear structure, not full compactness.
  • Superposed periods can be read out independently or jointly. Because each frequency contributes its own (cos,sin)(\cos,\sin) pair to B(a)B(a), a probe or intervention can target one period’s circular subspace in isolation (as in a bare-circle claim for a single TT) or the full generalized-helix fit across all kk periods jointly; the two are related but empirically distinguishable claims about how much of the representation’s structure a single period captures versus how much additional structure the other periods add.
  • First quantified case in this map: numbers represented as a period-[2,5,10,100] helix in transformer residual streams, causally implicated for addition via activation patching. Kantamneni & Tegmark (2025) fit helix(a)=CB(a)\mathrm{helix}(a)=C\,B(a)^\top for token values a[0,99]a\in[0,99] in GPT-J-6B (also Pythia-6.9B and Llama3.1-8B), identifying four dominant Fourier periods T=[2,5,10,100]T=[2,5,10,100] from the layer-0 residual stream’s own Fourier spectrum (short periods for high-frequency structure, T=100T=100 for both raw signal strength and the base-10 numeral system). Activation-patching experiments that reconstruct the residual stream from a fitted geometric form and measure the resulting logit-difference recovery (higher = more of the true causal effect reproduced) find the full (kk-frequency) helical and circular fits are the strongest tested reconstructions on the primary addition task (fitted-form logit-difference of 7.21 and 6.83 respectively, versus 8.34 for patching the true unmodified activations, 6.13 for an equal-parameter PCA-only baseline with no periodic structure, and only 3.09 for a polynomial-only fit) — direct causal evidence that the periodic (helical/circular) component of the representation, not just its magnitude-carrying linear component, is doing real computational work. The same helical fit is also causally relevant (though the helix does not always outperform a plain PCA baseline) for subtraction, integer division, multiplication, and modular arithmetic, tested across the same four-way (Full/PCA/Helix/Circle/Polynomial) patching comparison. See kantamneni-tegmark-2025-numbers-are-represented-as-a-multi-period-generalized-helix-causally-implicated-in-addition-via-the-clock-algorithm.
  • The same computational mechanism can be shared by a concept whose own representation is a different shape entirely. Feucht, Haklay, Bhalla, Wurgaft, Rager, Sarfati, Merullo, McGrath, Lewis, Lubana, Fel & Geiger (2026) find that Llama-3.1-8B’s cyclic concepts (months, weekdays, hours) are represented as circles (see Circle) at the input-token position, but the offset arithmetic needed to answer “six months after August” is computed via the same base-10 Fourier-period addition machinery as plain integer addition — periods T{2,5,10,20,50,100}T\in\{2,5,10,20,50,100\} (extending Kantamneni & Tegmark’s T{2,5,10,100}T\in\{2,5,10,100\} with T=20,50T=20,50), localized to a shared, sparse 28-neuron circuit (~0.2% of the MLP) at layer 18, active across addition, months, weekdays, and hours alike. Cross-task activation patching (addition activations into cyclic-task forward passes and vice versa) directly demonstrates the shared mechanism, and the circular representation of the output concept only re-emerges very late (layers 22-25), well after the underlying arithmetic has already been computed via the helical/Fourier route — a dissociation between what a concept is represented as and what geometry is used to compute with it, not a claim that the helix and the circle are the same object. See feucht-haklay-etal-2026-cyclic-concept-arithmetic-is-computed-via-a-shared-base-10-fourier-addition-circuit-not-a-modular-clock-mechanism-dissociating-representational-and-computational-geometry.
  • Distinguishable from, and an explicit generalization/synthesis of, prior single-period claims for numeric/cyclic quantities in this map. Where other observations in this map document a single circular period for a specific bounded cyclic quantity (e.g. days of the week, a 12-hour clock face), the generalized-helix claim is that an unbounded, non-cyclic quantity (an arbitrary integer) is represented via several periods simultaneously plus a linear term — a genuinely different structure from, not a relabeling of, a single-period circle claim, and only reduces to a bare circle in the special case k=1k=1 with the linear term’s coefficient in CC negligible.

Exercises

Base

  1. For k=1k=1 with period TT, write out B(a)B(a) explicitly and explain in what sense this is “an ordinary helix.”
Solution

B(a)=[a,cos(2πTa),sin(2πTa)]R3B(a) = [a, \cos(\tfrac{2\pi}{T}a), \sin(\tfrac{2\pi}{T}a)] \in \mathbb{R}^3. Plotting the three coordinates of helix(a)=CB(a)\mathrm{helix}(a)=C B(a)^\top against each other traces out a standard 3D helix when CC is (close to) the identity on this basis: a point that moves steadily along one axis (the raw aa term) while its projection onto the other two axes traces a circle of circumference TT — exactly the shape of a coiled spring.

  1. Why can a bare period-10 circle alone not distinguish a=7a=7 from a=17a=17, while a generalized helix with periods T=[10,100]T=[10,100] can?
Solution

On a period-10 circle, cos(2π107)=cos(2π1017)\cos(\tfrac{2\pi}{10}\cdot 7)=\cos(\tfrac{2\pi}{10}\cdot 17) and likewise for sin\sin, since 17=7+1017=7+10 and the period-10 terms are invariant under adding exactly one period — the two values map to the identical point on that circle. Adding a period-100 term (or the raw linear term aa) breaks this degeneracy, since cos(2π1007)cos(2π10017)\cos(\tfrac{2\pi}{100}\cdot 7) \ne \cos(\tfrac{2\pi}{100}\cdot 17) — the longer period (or the unbounded linear axis) resolves exactly the ambiguity the shorter period cannot.

Middle

  1. Kantamneni & Tegmark’s activation-patching comparison finds the full helical fit (7.21) underperforms the plain PCA baseline (6.13) is false on the primary addition task but is true on some other arithmetic tasks (e.g. integer division, where Helix scores 4.55 against PCA’s 5.24). What would this pattern suggest about whether the helical structure is used uniformly across all arithmetic operations?
Solution

It suggests the helical/periodic structure is not uniformly load-bearing across every arithmetic task tested — for addition (and subtraction), the periodic decomposition captures most or all of the causally relevant structure (helix/circle fits approach the true-activation patching score and clearly beat PCA), while for division, multiplication, and the “solve for x” task, a generic same-parameter-count PCA fit captures the causally relevant structure at least as well as the specifically helical/circular form. This is evidence for a graded, task-dependent claim (“the helix is the right geometric description for addition/subtraction specifically”) rather than a universal claim that all numeric computation in the model routes through this particular periodic structure.

Found in (2 observations · 3 families)

Llama

Arithmetic in the Wild: Llama Uses Base-10 Addition to Reason About Cyclic Concepts (2026)measured

Cyclic-concept arithmetic uses base-10 Fourier addition, not a modular clock

Details

Feucht, Haklay et al. confirm Llama-3.1-8B represents cyclic concepts (months, weekdays, hours) as circles at the input-token position [feucht-haklay-etal-2026-arithmetic-in-the-wild] Distributed alignment search causally isolates the input concept and offset (rank k=8-16) with over 95% accuracy before layer 18, but the circular representation is not recoverable at the final-token position until layers 22-25 [feucht-haklay-etal-2026-arithmetic-in-the-wild] Offset arithmetic is computed with the same base-10 Fourier periods (T in {2,5,10,20,50,100}) found for plain integer addition, not a mod-12/mod-7/mod-24 clock mechanism [feucht-haklay-etal-2026-arithmetic-in-the-wild] Cross-task activation patching between addition and cyclic tasks recovers the pre-modulo sum, and the computation localizes to a shared 28-neuron layer-18 circuit (~0.2% of the MLP) [feucht-haklay-etal-2026-arithmetic-in-the-wild] This dissociates representational geometry (a circle) from computational geometry (base-10 Fourier addition) for the same concept [feucht-haklay-etal-2026-arithmetic-in-the-wild]

models: Llama-3.1-8B · method: Distributed Alignment Search (DAS), Activation patching, Activation Steering (Addition)
Language Models Use Trigonometry to Do Addition (2025)measured

Integers are represented as a multi-period helix used for addition

Details

Kantamneni & Tegmark find GPT-J-6B, Pythia-6.9B, and Llama-3.1-8B represent integer token values as a generalized helix: a linear axis plus cos/sin pairs at periods T=[2,5,10,100] [kantamneni-tegmark-2025-trigonometry-addition] The four periods are read directly from the layer-0 residual stream's own Fourier spectrum, tied to the base-10 numeral system [kantamneni-tegmark-2025-trigonometry-addition] Activation-patching reconstructions show the helix and circle fits recover most of addition's logit-difference effect (Helix 7.21, Circle 6.83 versus Full 8.34) and beat an equal-parameter non-periodic PCA baseline (6.13) [kantamneni-tegmark-2025-trigonometry-addition] The helical structure is load-bearing for addition and subtraction but not uniformly, underperforming a plain PCA baseline for division and multiplication [kantamneni-tegmark-2025-trigonometry-addition] They propose a Clock algorithm manipulating the a and b helices, extending Nanda et al.'s modular-addition Clock to general integer addition [kantamneni-tegmark-2025-trigonometry-addition]

models: Llama-3.1-8B · method: Activation patching

GPT-J

Language Models Use Trigonometry to Do Addition (2025)measured

Integers are represented as a multi-period helix used for addition

Details

Kantamneni & Tegmark find GPT-J-6B, Pythia-6.9B, and Llama-3.1-8B represent integer token values as a generalized helix: a linear axis plus cos/sin pairs at periods T=[2,5,10,100] [kantamneni-tegmark-2025-trigonometry-addition] The four periods are read directly from the layer-0 residual stream's own Fourier spectrum, tied to the base-10 numeral system [kantamneni-tegmark-2025-trigonometry-addition] Activation-patching reconstructions show the helix and circle fits recover most of addition's logit-difference effect (Helix 7.21, Circle 6.83 versus Full 8.34) and beat an equal-parameter non-periodic PCA baseline (6.13) [kantamneni-tegmark-2025-trigonometry-addition] The helical structure is load-bearing for addition and subtraction but not uniformly, underperforming a plain PCA baseline for division and multiplication [kantamneni-tegmark-2025-trigonometry-addition] They propose a Clock algorithm manipulating the a and b helices, extending Nanda et al.'s modular-addition Clock to general integer addition [kantamneni-tegmark-2025-trigonometry-addition]

models: GPT-J-6B · method: Activation patching

Pythia

Language Models Use Trigonometry to Do Addition (2025)measured

Integers are represented as a multi-period helix used for addition

Details

Kantamneni & Tegmark find GPT-J-6B, Pythia-6.9B, and Llama-3.1-8B represent integer token values as a generalized helix: a linear axis plus cos/sin pairs at periods T=[2,5,10,100] [kantamneni-tegmark-2025-trigonometry-addition] The four periods are read directly from the layer-0 residual stream's own Fourier spectrum, tied to the base-10 numeral system [kantamneni-tegmark-2025-trigonometry-addition] Activation-patching reconstructions show the helix and circle fits recover most of addition's logit-difference effect (Helix 7.21, Circle 6.83 versus Full 8.34) and beat an equal-parameter non-periodic PCA baseline (6.13) [kantamneni-tegmark-2025-trigonometry-addition] The helical structure is load-bearing for addition and subtraction but not uniformly, underperforming a plain PCA baseline for division and multiplication [kantamneni-tegmark-2025-trigonometry-addition] They propose a Clock algorithm manipulating the a and b helices, extending Nanda et al.'s modular-addition Clock to general integer addition [kantamneni-tegmark-2025-trigonometry-addition]

models: Pythia-6.9B · method: Activation patching