Graph Machine: Towards Better Pretraining via Edges
Summary
The paper introduces Graph Machine, a method to replace dense attention layers in transformers with sparse layers using dynamic pointers, improving efficiency and maintaining or enhancing performance during pretraining.
View Cached Full Text
Cached at: 09/10/26, 02:15 AM
Paper page - Graph Machine: Towards Better Pretraining via Edges
Source: https://huggingface.co/papers/2609.02881 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!
Similar Articles
Graph Machine: Exploring Edge Mechanisms as an Inductive Bias
This paper introduces Graph Machine, an architecture with explicit edge-based mechanisms (edge-augmented attention and edge-centric referral) to improve iterative relational reasoning. Experiments on Sudoku show it outperforms Transformer baselines, with ablations and mechanistic analysis attributing gains to the edge mechanisms.
Spatiotemporal Graph Transformer for Traffic Intelligence in Edge Computing
This paper proposes a spatiotemporal graph Transformer framework for traffic forecasting in edge computing, combining graph neural networks for spatial correlations and Transformer self-attention for long-range temporal dependencies. Experiments on real-world cellular data show it outperforms recurrent graph-based baselines like GCN-LSTM and GCN-GRU.
When Should Graph Attention Be Sparse? Learning a Per-Edge Tsallis Index
This paper proposes LTGA, a graph attention layer that learns a per-edge Tsallis entropic index to interpolate between heavy-tailed, softmax, and compact-support attention, offering interpretable sparse attention and competitive performance on graph benchmarks.
Target-Oriented Pretraining Data Selection via Neuron-Activated Graph
Introduces Neuron-Activated Graph Ranking, a training-free method that uses sparse high-impact neuron sets to select pretraining data for target tasks, boosting average benchmark performance by 4.9%.
Grammatically-Guided Sparse Attention for Efficient and Interpretable Transformers
This paper introduces a grammatically-guided sparse attention mechanism for Transformers, aiming to improve efficiency and interpretability by leveraging linguistic structure.