mlsanityData to 7 Oct 2026

Gecko: An Efficient Neural Architecture Inherently Processing Sequences with Arbitrary Lengths

arXiv 2601.06463 ↗First posted 10 Jan 2026cs.LG cs.CLcited by 0

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2023Mistral 7Bcited by 3,065
  9. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  10. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  11. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  12. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
37 more
  1. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  2. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  3. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  4. 2018Group Normalizationcited by 1,514
  5. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  6. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  7. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  8. 2020Efficient Transformers: A Surveycited by 784
  9. 2024OLMo: Accelerating the Science of Language Modelscited by 599
  10. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  11. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  12. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  13. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  14. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
  15. 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
  16. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  17. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
  18. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  19. 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 363
  20. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  21. 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 266
  22. 2019Stabilizing Transformers for Reinforcement Learningcited by 262
  23. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
  24. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
  25. 2022Transformer Quality in Linear Timecited by 189
  26. 2022Mega: Moving Average Equipped Gated Attentioncited by 178
  27. 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
  28. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
  29. 2017Searching for Activation Functionscited by 158
  30. 2024OLMES: A Standard for Language Model Evaluationscited by 100
  31. 2021Luna: Linear Unified Nested Attentioncited by 96
  32. 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 71
  33. 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
  34. 2020Learning Associative Inference Using Fast Weight Memorycited by 51
  35. 2024Megalodon: Efficient LLM Pretraining and Inference with Unlimited Context Lengthcited by 46
  36. 2019Metalearned Neural Memorycited by 44
  37. 2024A Controlled Study on Long Context Extension and Generalization in LLMscited by 26

Built on by

Not cited yet.