Gecko: An Efficient Neural Architecture Inherently Processing Sequences with Arbitrary Lengths
Not on the map. Why?
Abstract (arXiv)
Designing a unified neural network to efficiently and inherently process sequential data with arbitrary lengths is a central and challenging problem in sequence modeling. The design choices in Transformer, including quadratic complexity and weak length extrapolation, have limited their ability to scale to long sequences. In this work, we propose Gecko, a neural architecture that inherits the design of Mega and Megalodon (exponential moving average with gated attention), and further introduces multiple technical components to improve its capability to capture long range dependencies, including timestep decay normalization, sliding chunk attention mechanism, and adaptive working memory. In a controlled pretraining comparison with Llama2 and Megalodon in the scale of 7 billion parameters and 2 trillion training tokens, Gecko achieves better efficiency and long-context scalability. Gecko reaches a training loss of 1.68, significantly outperforming Llama2-7B (1.75) and Megalodon-7B (1.70), and landing close to Llama2-13B (1.67). Notably, without relying on any context-extension techniques, Gecko exhibits inherent long-context processing and retrieval capabilities, stably handling sequences of up to 4 million tokens and retrieving information from contexts up to 4× longer than its attention window. Code: https://github.com/XuezheMax/gecko-llm
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 49 of its 60 references that are in the map. First posted on arXiv 10 Jan 2026.
Builds on
49 of 60 references.
References · 49
- 2017Attention Is All You Needcited by 59,932
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023Mistral 7Bcited by 3,065
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
37 more
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2018Group Normalizationcited by 1,514
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2020Efficient Transformers: A Surveycited by 784
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 363
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 266
- 2019Stabilizing Transformers for Reinforcement Learningcited by 262
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2022Transformer Quality in Linear Timecited by 189
- 2022Mega: Moving Average Equipped Gated Attentioncited by 178
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2017Searching for Activation Functionscited by 158
- 2024OLMES: A Standard for Language Model Evaluationscited by 100
- 2021Luna: Linear Unified Nested Attentioncited by 96
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 71
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
- 2020Learning Associative Inference Using Fast Weight Memorycited by 51
- 2024Megalodon: Efficient LLM Pretraining and Inference with Unlimited Context Lengthcited by 46
- 2019Metalearned Neural Memorycited by 44
- 2024A Controlled Study on Long Context Extension and Generalization in LLMscited by 26
Built on by
Not cited yet.