LimeTree: Linear-Memory Graph Neural Networks over Tree-Graphs for Resource-Efficient Language Modeling and Context Extrapolation
Abstract
The search for computationally efficient alternatives to the Transformer has yielded numerous architectures in recent years; however, most exhibit severe weaknesses in associative recall-such as key-value (KV) retrieval-and length extrapolation, where even standard Transformers struggle. This paper introduces LimeTree, a linear-complexity architecture in both memory and compute for sequence modeling. By integrating synthetic KV retrieval tasks directly into standard language modeling training, LimeTree achieves strong perplexity alongside reliable recall. Two variants were evaluated on WikiText-103 and PG-19 under strict compute constraints. On WikiText-103, LimeTree reaches a token-level perplexity of 19 in just 6 hours on four Quadro RTX 8000 GPUs, while maintaining 100\% KV retrieval accuracy even when extrapolating from a training context length of 512 to an evaluation length of 16,384. On PG-19, the model achieves a token-level perplexity of 13 in 35 hours on a single RTX PRO 6000 Blackwell GPU with minimal hyperparameter tuning. These results position LimeTree as a competitive linear-complexity alternative to Transformers, combining superior perplexity and training throughput with robust in-context retrieval and length extrapolation.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
Related papers
DKnown-Jev-2: Article-Level Answer-Evidence Classification and Efficient Inference with a Pre-trained Language Model
Shared title terminologycs.CLQi Li, Jianjun Xu, Jiu Li et al.
DUET: Dual-MDL Unsupervised Entropy-Trie Segmentation for Low-Resource Languages
Shared title terminologycs.CLXiaotian Wang, Youyuan Lin, Zhan Shen et al.
ESGPT: A Data-Centric ESG Language Model with Unified Instruction and Benchmark Resources
Shared title terminologycs.CLJaeyoung Lee, Misuk Kim
HGDNA: Overlapping k-mer Tokenization for Efficient Autoregressive Genomic Language Models
Shared title terminologycs.CLXudong Wang, Siwei Cheng, Haozhe Hu
Definition-Guided In-Context Learning for Zero-Shot Spoken Language Understanding
Shared title terminologycs.CLNeeraj Agrawala, Sriram Ganapathy
MemOnce: A Scalable Memory Architecture for Large Language Models
Shared title terminologycs.CLChang Nie, Chaoyou Fu, Songlin Liu et al.