Gecko: An Efficient Neural Architecture Inherently Processing Sequences with Arbitrary Lengths
Xuezhe MaSWShicheng WenLJLinghao Jin
Bilge Acun
Ruihang LaiBHBohan HouWill LinHZHao Zhang
Songlin YangRLRyan LeeMWMengxi Wu
Jonathan May +2
Xuezhe Ma
SWShicheng Wen
LJLinghao Jin

Bilge Acun

Ruihang Lai
BHBohan Hou
Will Lin
HZHao Zhang

Songlin Yang
RLRyan Lee
MWMengxi Wu

Jonathan May
+14
Gecko is a neural architecture for sequence modeling that builds on the exponential moving average with gated attention from Mega and Megalodon. It introduces timestep decay normalization, sliding chunk attention, and adaptive working memory to better capture long-range dependencies. In a controlled 7B-parameter, 2T-token pretraining comparison, Gecko achieves a training loss of 1.68, outperforming Llama2-7B (1.75) and Megalodon-7B (1.70) and approaching Llama2-13B (1.67). Without context-extension techniques, Gecko inherently processes up to 4 million tokens and retrieves information from contexts $4\times$ longer than its attention window.

arXiv ·
· January 10, 2026