Graph Machine: Towards Better Pretraining via Edges
Abstract
A Graph Machine architecture uses sparse dynamic routing and differentiable pointer chasing to maintain linear state complexity, enabling efficient replacement of dense Transformer layers with minimal loss degradation.
We introduce the Graph Machine (GM), an architecture that maintains an O(n)-sized state and accesses it through sparse, dynamic routing. Unlike methods with fixed-size states or sparse but static routing, GM preserves O(n) complexity in its sparse layers without restricting the potentially accessible state size to O(1). Instead, GM uses edges - pointer-like objects updated differentiably by a referral mechanism resembling pointer chasing. We replace 75% of the dense Transformer layers in Qwen3-0.6B with GM sparse layers and pretrain from scratch on 15.7B tokens. With only 2 of 4,096 tokens retrieved per KV head in each sparse layer, loss degrades only slightly; with 4, the best model marginally improves loss.
Community
Author here! How many tokens does an attention head need to retrieve? In these experiments, just 2–4 out of 4,096 can be enough.
Graph Machine replaces 75% of Qwen3-0.6B's dense attention layers with sparse layers using dynamic pointers. Attention follows pointers to retrieve content; referral passes addresses through a form of pointer chasing with gradients. The sparse layers have linear compute.
I pretrained from scratch for 15.7B FineWeb-Edu tokens using a standard LLM recipe. Compared with the dense baseline, the best model retrieving 2 tokens per KV head raises validation loss by just 0.014; at 4 tokens, the best model improves it by 0.003.
Code · Checkpoints · Training curves
Happy to discuss the architecture and results!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Graph Machine: Exploring Edge Mechanisms as an Inductive Bias (2026)
- LoGo: Token-Level Dynamic Local-Global Attention (2026)
- xHC: Expanded Hyper-Connections (2026)
- MARCH: Scaling Recurrent Memory with Content-Routed State Anchors (2026)
- Decode-Branch Transformers: Decoupling the Primary Prefill Path from Additional Decode Computation (2026)
- DASC: Decay-Aware State Compression for Hybrid Linear-Attention Serving (2026)
- Prox: Training-Free FFN Activation Sparsity via Approximate Intermediate-Channel Salience in LLMs (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2609.02881 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 1
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper