📑 Table of contents

LimeTree: a linear alternative to the Transformer that extrapolates to 128k tokens with 100% KV recall — trained on a single GPU

Deep Tech 🟢 Beginner ⏱️ 13 min read 📅 2026-11-25

LimeTree: A Linear Alternative to the Transformer That Extrapolates to 128k Tokens with 100% KV Recall — Trained on a Single GPU

🔎 One GPU, 128× the context: the signal we've been waiting for

On November 24, 2026, researchers from Middlesex University published on arXiv LimeTree, a language modeling architecture with linear complexity — in both memory and compute — built on graph neural networks operating on trees. The paper doesn't promise to kill the Transformer. It documents something far more unsettling for the industry: a 381-million-parameter model, trained in 6 hours on 2018-era GPUs, that extrapolates its context from 512 to 65,536 tokens while maintaining 100% accuracy on key-value retrieval tasks.

The second number is heavier still: on PG-19, LimeTree reaches a token perplexity of 10.84 after 35.5 hours of training on a single RTX PRO 6000 Blackwell — a workstation GPU, not a datacenter cluster. And perplexity remains stable (11.38) all the way up to 524,288 tokens, which is the memory limit of that single card.

Why now? Because sub-quadratic alternatives have been hitting the same wall for years: associative recall. Because the race for longer context windows increasingly looks like a stack of post-hoc Band-Aids. And because the cost of quadratic attention — in VRAM, in energy, in API bills — grows heavier by the day. LimeTree attacks the problem at the root: baking retrieval directly into standard language-model training.


Key takeaways

  • Linear architecture: LimeTree (Middlesex University, November 24, 2026) is a GNN over tree graphs, with linear complexity in memory and compute — no all-to-all attention.
  • WikiText-103: token PPL 19.76 (381M parameters, 6 h on 4 Quadro RTX 8000, context 512), ×128 zero-shot extrapolation up to 65,536 tokens, 100% KV recall from 64 to 65,536 tokens.
  • PG-19: token PPL 10.84 (word-level 37.36) in 35.5 h on a single RTX PRO 6000 Blackwell; PPL stable at 11.38 up to 524,288 tokens (single-GPU memory limit).
  • The acknowledged trade-off: word-level PPL remains slightly higher than the Transformer-XL baseline. LimeTree doesn't beat the Transformer on raw quality; it changes the quality-to-memory ratio.
  • The stakes: long-context LM training becomes accessible to the average lab again, and linear inference reopens the door to edge and self-hosting.

Tool Main use Price Ideal for
LimeTree (arXiv paper) Linear modeling with KV recall built into training Free (open access, November 2026) Researchers, reproducibility
YaRN / LongLoRA / StreamingLLM Post-hoc context extension on Transformers Open source Adapting an existing model without full retraining
NVIDIA RTX PRO 6000 Blackwell Single GPU of the PG-19 run (35.5 h, L=4096) ~$8,500 (2025, check on nvidia.com) Labs, advanced self-hosters
Quadro RTX 8000 (×4) 2018 GPU of the WikiText-103 run (6 h) Second-hand: a few hundred to ~€2,000 per unit (November 2026) Reproducing the benchmark on a small budget
Hostinger VPS for serving inference of compact models From ~€5/month (November 2026, check on hostinger.com) Deploying a demo or edge endpoint

Why quadratic attention costs (too much)

Because it compares every token to every token: the computation explodes in O(n²) and the key-value cache grows with every token added to the context. At 4,000 tokens, it's an engineering detail. At 500,000, it's a datacenter problem.

The mechanics are simple: self-attention computes a score for every pair of tokens. Double the window, and the computational cost quadruples. At 100,000 tokens, that's ten billion pairs to evaluate — per layer, per attention head, per query. On top of that comes the KV cache, the memory that stores the representations of all past tokens: it grows linearly, but with constants that become downright indecent as soon as you batch.

This cost flows straight through to your bill. When you query GPT-5.5, Gemini 3.1 Pro, or Claude Opus 4.7 — the top of the current lineup — every context token is read, processed, and billed. XXL windows are an engineering feat you pay for by the token; our guide on LLM billing details this mechanism, cost by context.

The historical workarounds — sliding windows, sparse attention, compression of the past — all hit the same wall: associative recall, the ability to retrieve a specific piece of information dropped 50,000 tokens earlier. That's exactly where LimeTree chooses to strike.


LimeTree in two minutes: trees rather than a grid

LimeTree replaces the full attention grid with a tree graph traversed by message passing — hence linear complexity in both memory and computation. Each token no longer interacts with all the others, but with a hierarchically structured neighborhood.

Concretely, the model is a graph neural network (GNN) that operates on trees built from the sequence. Information flows along the branches; each token aggregates what it needs in a number of operations that grows linearly with length, not with its square. Memory follows the same law — hence the "linear-memory" in the title.

The second ingredient is the most interesting: synthetic KV retrieval tasks are integrated directly into standard language training. The model doesn't merely hope to be able to retrieve a key-value pair seen 60,000 tokens earlier: it is explicitly taught, in every batch, by mixing these tasks into the classic next-token prediction objective.

This is a reversal of philosophy. Position Interpolation (2023), YaRN (2023), LongLoRA (2023), or StreamingLLM (2023) repair a Transformer after the fact. LimeTree designs the architecture and the training signal together. The authors put the diagnosis bluntly: existing sub-quadratic alternatives suffer from severe weaknesses in associative recall and length extrapolation — and even standard Transformers struggle (full text).


The numbers that matter

Two benchmarks, two messages: WikiText-103 proves extrapolation from a short training run, PG-19 proves endurance on the standard test bench for context-extension methods.

Benchmark Training Token PPL Word PPL Extrapolation KV Recall
WikiText-103 6 h, 4× Quadro RTX 8000, 381M params, ctx 512 19.76 — 65,536 tokens (×128), zero-shot 100% from 64 to 65,536 tokens
PG-19 35.5 h, 1× RTX PRO 6000 Blackwell, L=4096 10.84 37.36 524,288 tokens (×128), PPL 11.38 — (GPU memory limit)

A reminder on interpretation, so you read these numbers correctly: a perplexity of 20 corresponds to uncertainty equivalent to choosing uniformly among 20 tokens. The lower, the better — and comparisons are always made at equal units.

The PG-19 protocol consists of: 28,752 Project Gutenberg books from before 1919, roughly 1.97 billion training tokens. It's the standard testbed used by Position Interpolation, YaRN, LongLoRA, or StreamingLLM. The results are therefore directly comparable to the literature — that's rare, and it's valuable.

"Zero-shot" here has a strong meaning: the WikiText-103 model is trained at context 512 and evaluated at 65,536 without any fine-tuning, with perfect KV recall across the entire range. That's the very definition of extrapolation, and it's the first point where vanilla Transformers fall apart.

And the honesty point that many articles will forget: LimeTree's word-level PPL remains slightly higher than that of the Transformer-XL baseline. The paper doesn't claim to beat the Transformer on raw quality at short range. It claims a combination — perplexity, training throughput, recall, extrapolation — that the Transformer doesn't offer at this budget.


Mamba, SSM, LimeTree: the linear showdown

State Space Models like Mamba have proven that sequences can be modeled in linear time, but they stumble precisely on associative recall — the very point that LimeTree attacks head-on.

We previously painted a portrait of Mamba and State Space Model architectures: excellent throughput and memory promises, but a recurring doubt about the ability to retrieve specific information from a long context. The LimeTree paper confirms this diagnosis — and above all, it makes it its starting point.

Approach Complexity Associative recall Length extrapolation
Transformer (full attention) Quadratic Solid at short range, fragile beyond Limited without patches
SSM / Mamba Linear Documented weakness Limited
LimeTree Linear (memory and compute) Explicitly trained — 100% on WikiText-103 ×128 demonstrated, zero-shot

The difference boils down to one sentence: Mamba hopes its recurrence selects the right information; LimeTree trains retrieval as a first-class skill. Synthetic KV tasks are not a side evaluation, they are part of the loss.

My take: the lasting contribution of this paper is not the tree, it's the architecture/objective co-design. The same recipe — retrieval integrated into training — applies to other linear families. If it generalizes, "linear but amnesiac" will cease to be the disqualifying flaw of Transformer alternatives.


The context window race had no finish line

Because stacking tokens in a Transformer window costs quadratically and eventually degrades quality — a finding that an NVIDIA preprint documented unambiguously.

See NVIDIA publishes a preprint that buries the context window race. The commercial competition over millions of context tokens was as much marketing as measurable utility: past a certain threshold, actual recall falls off a cliff, and inference cost follows the quadratic curve.

LimeTree belongs to the other philosophy: not winning the window race, but making it moot. A linear model that extrapolates ×128 by construction doesn't need to display "10 million tokens" in large type on its homepage. It processes whatever its memory allows, with no regime change and no patches.

One question remains that the paper doesn't settle: real-world usefulness at very long range. A stable PPL of 11.38 up to 524,288 tokens says the model predicts the next word well. It says nothing about downstream tasks — summarizing 500 pages, answering questions about an entire codebase. Caution is warranted, on the usage side as much as on the benchmark side.


Self-hosting and edge: LimeTree's real playground

A long-context LM trainable in 35.5 hours on a workstation GPU changes the economic equation — from academic research to embedded inference.

On the research side, the WikiText-103 run is almost provocative: 6 hours on four Quadro RTX 8000s — 2018 GPUs with 48 GB of VRAM that can now be found secondhand for next to nothing. The PG-19 run fits on a single RTX PRO 6000 Blackwell (96 GB of VRAM) — high-end, but workstation hardware, not datacenter. An average university lab can enter the long-context race.

On the edge side, the argument is structural: linear memory means the context footprint no longer explodes with its length. For an embedded agent — a robot that must keep the full history of a mission locally — it's the difference between feasible and prohibitively expensive. The Boston Dynamics Atlas already illustrates what embedded AI demands: local compute, deterministic latency, no dependence on a capricious cloud.

On the self-hosting side, let's be precise: nothing indicates that LimeTree weights are available today. But the trajectory is clear — a compact linear model serves beautifully from a small server. A VPS from Hostinger is enough to host a demo endpoint for a model of this size; training, meanwhile, will stay on your GPU.

And to be complete: 381 million parameters won't rival GPT-5.5 or Gemini 3.1 Pro on general quality. LimeTree is not a chatbot replacement — it's a building block for cases where long context and memory budget are the dominant constraints. That's also where generalist models are most vulnerable: their quality costs, and their context costs even more.


Limitations: what LimeTree does not prove (yet)

A lot — and that is precisely what makes the paper credible.

  • Raw quality: word-level PPL slightly higher than the Transformer-XL baseline. The gain lies elsewhere — memory, extrapolation, throughput — not in short-range next-word prediction.
  • Scale: 381M parameters. The scaling laws of GNNs on trees are unknown; nothing guarantees the recipe holds at 100 billion parameters.
  • Evaluation scope: WikiText-103 and PG-19 are language modeling benchmarks. No downstream tasks (long-context QA, summarization, code) are reported in the source.
  • Status: arXiv preprint dated November 24, 2026, not yet peer-reviewed. One positive point: the hardware specifications are published, which makes reproduction realistic — already better than many industry papers.

❌ Common Mistakes

Mistake 1: confusing token PPL and word PPL

10.84 and 37.36 are not two different quality levels: they are two different units. Token PPL counts choices between tokens, word-level PPL between words. A PPL of 20 ≈ choosing uniformly among 20 units. Always compare on a same-unit basis, otherwise the whole debate is biased.

Mistake 2: believing that 100% KV recall eliminates hallucinations

KV recall measures the ability to retrieve key-value pairs seen in the current context — not the truthfulness of the model's knowledge. A perfect internal retrieval can faithfully reproduce false information. Hallucination detection remains a distinct problem.

Mistake 3: extrapolating the 381M results to the frontier

The reported figures hold for a 381-million-parameter model. Claiming that "LimeTree would have 100% recall at GPT-5.4 Pro scale" is speculation: the scaling laws of this family of architectures are uncharted territory.

Mistake 4: confusing training cost with total cost

35.5 GPU hours is the training cost, not the cost of a product. The ecosystem is missing: tokenization, quantization, inference tooling, fine-tuning, monitoring. The history of Transformer alternatives is full of elegant papers that died for lack of tooling.


❓ Frequently Asked Questions

Is LimeTree open source?

The paper is freely available on arXiv, with detailed hardware specifications that make reproduction easier. However, no code or weight release is announced in the cited source. Keep an eye on the Middlesex University authors' repository if the topic interests you.

Do you really need an RTX PRO 6000 to reproduce the results?

Not for WikiText-103: four 2018 Quadro RTX 8000s were enough, for 6 hours of training. For PG-19 with L=4096, count on a single RTX PRO 6000 Blackwell and 35.5 hours. So a high-end workstation GPU — not a datacenter cluster.

What exactly does "100% KV recall" mean?

During training, synthetic tasks require retrieving the value associated with a key that appeared earlier in the sequence. After training at a context of 512, LimeTree achieves 100% accuracy on these tasks ranging from 64 to 65,536 tokens, in zero-shot extrapolation.

Will LimeTree replace Transformers?

Not in the short term. Its word-level PPL remains slightly higher than Transformer-XL's, the Transformer ecosystem remains dominant, and scaling up has not been demonstrated. It's a credible alternative for long-context on a constrained budget, not a coup d'état.

What is its relationship with today's general-purpose models?

No direct rival: GPT-5.5, Gemini 3.1 Pro, or Claude Opus 4.7 aim for general quality, while LimeTree targets memory efficiency and extrapolation. The trajectories may cross if trained retrieval recipes migrate to large closed or open models.


✅ Conclusion

LimeTree doesn't bury the Transformer, but it proves that a mid-tier lab can now play in the big leagues of very long contexts: 35.5 hours on a single GPU for 128× extrapolation and perfect KV recall. Read the full paper on arXiv — and while waiting for what's next, audit what each context token really costs you.