CorX Labs · Technical report 04 · October 2026

HELIX: separating memory capacity from bandwidth in a linear-scaling sequence model

Nathan · CorX Labs, Westmoreland, Jamaica · corx-labs.com

Abstract

HELIX is a sequence architecture that drops attention's quadratic cost without giving up exact long-range recall. Each block braids three mixers over one residual stream: an exact local window, a matrix-valued delta-rule recurrent state, and an index that retrieves whole past blocks by beam descent over a tree of learned landmarks. Storage grows linearly and is append-only, while each step holds O(1) hot state and makes O(log N) probes. In a reference implementation, attention pairs scale as N1.00 against N2.00 for full attention, 32 times fewer at 32k tokens; on multi-query associative recall HELIX ties full attention (30.8% against 32.0%, z = 0.72) while the same model without its index falls to chance. There are no trained checkpoints and no claims about language quality.

Mixers per block
3
Pairs scaling
N1.00
Probes per step
O(log N)
Trained checkpoints
None

1The problem

A transformer compares every token with every other [1]: doubling the input quadruples the work. Linear-time alternatives compress the past into a fixed-size state, and then they cannot quote back a name they saw once. That is a counting argument, not an engineering gap: a state of S bits cannot distinguish more than 2S histories [2]. HELIX (Hierarchical Episodic Linear IndeX) does not try to compress around it. It separates memory capacity from memory bandwidth: storage grows linearly, is append-only and can live in cold memory, while what any one token reads stays bounded. The claim is O(1) hot state and O(log N) probes per step, not O(1) total memory, which is impossible for anything that can quote an exact name from a million tokens back.

2Three strands over one residual stream

StrandReadsTraining costHeld at decode
L, localthe last few blocks exactly, a different window per head group [3]O(N x span)a window-sized ring buffer
R, recurrenteverything, compressed into a matrix-valued delta-rule state [4, 5]O(N x dk x dv)one matrix and two convolution states per head
I, indexa few whole blocks chosen anywhere in the past by descending a landmark tree [6]O(N x top-k x block) + O(N log N) routingthe key/value history and the tree, of which a step reads O(top-k x block + branching x log N)

Table 1. Every block braids the three mixers back into the same residual stream. The right-hand column decides whether the model is usable at inference.

The index

The past is cut into blocks. Each closed block gets a landmark, a learned summary mixing a plain mean with an attention pool (a mean alone erases the rare token a later query will be looking for), and landmarks are pooled again, a fixed number at a time, into a tree with one weight-shared pooler per level. A query block retrieves in four moves: start at the root using routing taken from the end of the previous block; keep a fixed beam of nodes per level, scoring the beam's children plus that level's frontier; descend to the landmarks; and read the top-k whole blocks exactly, as tokens rather than summaries. Selection scores are added to the attention logits along the path, so gradient reaches every level of the tree.

Two rules keep it causal and parallel. A node is eligible for query block J only if the whole span it summarises ends before J, so a summary is never consulted by a query it partly describes and every landmark is computed once. Routing for block J comes from the hidden state at the end of block J-1, so one gather serves the whole block; anything routing could not anticipate inside the block is covered exactly by the local strand. The frontiers at every level tile [0, J) exactly, so nothing reachable is cut off by a beam that descended elsewhere.

3Measurements

All on small models on four CPU cores, reproducible with helix bench and helix recall. Attention pairs are counted by instrumenting the attention call, not estimated from a formula.

050,000100,000150,000200,000250,000409681921638432768Context length (tokens)Attention pairs per tokenFull attentionHELIX
TokensHELIX pairs/tokenFull attention pairs/tokenHELIX timeFull attention time
4,0968,19232,7760.4 s0.2 s
8,1928,19265,5440.9 s0.6 s
16,3848,192131,0801.7 s1.9 s
32,7688,192262,1524.3 s6.7 s

Figure 1 and Table 2. HELIX fits N1.00 in attention pairs and full attention N2.00. At 32k tokens HELIX forms 32 times fewer pairs and runs 1.6 times faster, as unfused reference PyTorch against a fused attention kernel. At 4k tokens full attention is still faster; the crossover is between 8k and 16k on this hardware.

Multi-query associative recall [7]Recall95% interval
HELIX (local + recurrent + index)30.8%28.5-33.1%
HELIX without the index (local + recurrent)6.0%4.8-7.2%
Full attention32.0%29.7-34.3%
Chance6.2%

Table 3. Bindings written near the start and queried about 200 tokens later, outside the local window. Removing the index leaves the same model at chance (a gap of about 21 standard errors): the window cannot see the bindings and the recurrent state cannot hold them. Against full attention it is a tie, 1.2 points with a 1.7-point standard error (z = 0.72), and reporting it as a win would be reading noise.

4Correctness

The test suite checks what can be checked without training: strict causality (editing token t leaves every earlier logit bitwise unchanged); token-by-token decoding from the fixed-size state reproduces the one-shot forward pass, as does unaligned chunked prefill; right padding is exactly invariant; each query reads the same number of keys at any length; the cache holds only what the architecture claims; attention tiling is bitwise inert; and every parameter, landmark poolers included, receives gradient.

5What this is not

There are no trained checkpoints. Nobody has trained HELIX on real text. Everything above concerns complexity, causality and recall mechanics, properties provable on an untrained model or measurable on a synthetic probe, not perplexity or language quality. HELIX is an architecture proposal with a tested reference implementation, not a better model; finding out whether it is one needs real training runs.

NatureV1's attention engine, iHELIX, grew out of this design and applies it to the sphere.

6Availability

pip install helix-lm
helix bench     # cost against context length
helix recall    # train with and without the index strand, and compare

References

  1. Vaswani, A., et al. (2017). Attention is all you need. NeurIPS.
  2. Jelassi, S., et al. (2024). Repeat after me: Transformers are better than state space models at copying. ICML.
  3. Beltagy, I., M. E. Peters, and A. Cohan (2020). Longformer: The long-document transformer. arXiv:2004.05150.
  4. Schlag, I., K. Irie, and J. Schmidhuber (2021). Linear transformers are secretly fast weight programmers. ICML.
  5. Yang, S., et al. (2024). Parallelizing linear transformers with the delta rule over sequence length. NeurIPS.
  6. Mohtashami, A., and M. Jaggi (2023). Landmark attention: Random-access infinite context length for transformers. NeurIPS.
  7. Arora, S., et al. (2024). Zoology: Measuring and improving recall in efficient language models. ICLR.
CorX Labs technical report 04. Not peer reviewed. Every number in it was measured by the lab or is read from the released files; where something has not been measured, the report says so. Released under CC BY 4.0; the models and code are Apache-2.0.