GTFormer: A Syntax-Free Graph Network Alternative to Transformers for 8192× Length Extrapolation in Linear Time
Not on the map. Why?
Abstract (arXiv)
Self-attention mechanisms have established the Transformer as the dominant backbone across natural language processing, source code intelligence, and automated theorem proving. However, all-to-all pairwise token comparison enforces a quadratic O(N2) compute and memory barrier alongside severe softmax attention dilution as sequence length N scales beyond the training horizon. Inspired by recent advances in algebraic graph learning (WPNet), this work introduces GTFormer, a syntax-free hierarchical Graph Neural Network (GNN) that replaces flat self-attention for general long-context sequence modeling. GTFormer organizes raw token streams into a bounded-degree hierarchy combining a balanced binary reduction tree (lceil log2 N rceil depth), horizontal boundary-bridging shift edges, random expander shortcuts, multi-channel convex highway gating, and a top-down broadcast pass. Across eight long-context code, log, and multi-hop retrieval benchmarks trained exclusively on sequences of length N ≤ 512, GTFormer extrapolates zero-shot to N = 4,194,304 (8192×) on a single commodity GPU in linear O(N) memory, maintaining near-perfect accuracy where standard and RoPE Transformers suffer from out-of-distribution attention collapse and out-of-memory exhaustion.
Key facts. Cited by 1 paper in the map (data through 26 Nov 2026). Builds on 19 of its 27 references that are in the map. Submitted 27 Oct 2026.
Builds on
19 of 27 references.
References · 19
- 2017Attention Is All You Needcited by 62,125
- 2020Language Models are Few-Shot Learnerscited by 33,113
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,133
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 5,111
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2020Longformer: The Long-Document Transformercited by 3,606
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,611
- 2020Big Bird: Transformers for Longer Sequencescited by 1,729
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,283
- 2015Gated Graph Sequence Neural Networkscited by 817
- 2020Efficient Transformers: A Surveycited by 812
- 2021Carbon Emissions and Large Neural Network Trainingcited by 601
7 more
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 348
- 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 312
- 2024The Illusion of State in State-Space Modelscited by 210
- 2023Exphormer: Sparse Transformers for Graphscited by 176
- 2021H-Transformer-1D: Fast One-Dimensional Hierarchical Attention for Sequencescited by 50
- 2019BP-Transformer: Modelling Long-Range Context via Binary Partitioningcited by 40
- 2026Learning the Word Problem: Geodesic Lengths and Cryptographic Applicationscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.