A small causal Transformer reads the input tokens and plans every cross-layer connection of the backbone at once: what each attention head's query, key and value, and each layer's residual input, reads from the embedding and all earlier layers.
@article{yang2026dagformer,
title = {{DAGFormer}: Global Topology Prediction for Transformer Cross-Layer Connections},
author = {Yang, Xiaocong and Hao, Yuren and Zhai, ChengXiang},
journal = {arXiv preprint arXiv:2610.19625},
year = {2026}
}
Figure 1 · What each layer reads in a trained DAGFormer
Switch the model, the read and the weights. Hover or tab through a cell.
Model
Read
Weights
Each row is a layer of the backbone, each column a source it can read: the embedding X0 and the outputs of all earlier layers. A cell is the planned weight for the selected read, averaged over attention heads (one row for the residual) and over tokens. Vanilla is DAGFormer at initialization. Planned α̂ is the topology predictor's output, averaged over 128 held-out windows of 1,024 tokens; + refinement adds the local refinement. Layer 1 can read only X0 and is left out. The 75M model is from the routing-source ablation; the 300M and 1B models are the 10B-token runs from Table 1.
On matched OLMo-2 pairs from 75M to 1B parameters, DAGFormer lowers WikiText-2 perplexity by 17% to 25%. A 1B DAGFormer trained on 5B tokens beats the vanilla 1B trained on 10B.
Lowest perplexity of four routing baselines at 75M, 300M and 1B. The gain carries over to 13 evaluation tasks (+2.0 to +2.5 mean accuracy), to instruction finetuning (63% to 70% AlpacaEval win rate) and to structured pruning.
The topology is planned once, from the tokens alone, so the whole graph can be read as one object.
In review · ARR · 2026
Sparse Autoencoders Are a Shared Coordinate System for Symbolic Matching
SAE-IDF matches symbols across proof assistants, programming languages, table schemas, knowledge graphs and ontologies. It reads each symbol with an LLM, encodes it with a pretrained sparse autoencoder and weights each feature by its rarity. Nothing is trained.
@misc{yang2026sparse,
title = {Sparse Autoencoders Are a Shared Coordinate System for Symbolic Matching},
author = {Yang, Xiaocong and Meng, Xuanyu and Zhang, Yuji and Han, Jiawei and Zhai, ChengXiang},
year = {2026},
eprint = {2610.19636},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2610.19636}
}
Figure 1 · One NELL class matched against all DBpedia classes
Pick a query and compare the three representations.
Jump to
Common-KG NELL → DBpedia, replayed from the stored run behind the paper's tables: Gemma-2-9B at layer 20, Gemma Scope SAE with 131,072 features, 129 reference pairs, each query ranked against the same 137 DBpedia classes. Dense is the cosine of hidden states; SAE unweighted the cosine of sparse codes; SAE-IDF weights each feature by inverse document frequency over the 266 symbols first. Each column is drawn on its own scale, with the gold class marked. Feature names are Neuronpedia's automatic explanations and play no part in the score.
On 12 tasks across 6 kinds of symbolic system, SAE-IDF beats the same model's dense hidden state on every task with Gemma-2-9B and on all but one with Llama-3.1-8B, by up to 0.45 MRR (Lean 4 → Metamath).
Needs no training and no aligned pairs: the pretrained SAE serves as a coordinate system that different symbolic systems share.
Every coordinate is a named feature, so each match splits into a few rare concepts. Without the weighting, features active on more than 1% of the Pile carry 56% to 91% of the cosine; with it, 0% to 6%.
NeurIPS 2024
Cascade Speculative Drafting for Even Faster LLM Inference
Ziyi Chen, Xiaocong Yang, Jiacheng Lin, Chenkai Sun, Kevin Chen-Chuan Chang, Jie Huang
Speculative decoding lets a small draft model propose tokens that a large target model verifies in parallel. Cascade Speculative Drafting speeds up the drafting itself, by cascading draft models in two directions.
Schematic of the two cascades. The vertical cascade drafts for each draft model with a smaller one, bottoming out in a statistical language model, so no neural model drafts autoregressively. The horizontal cascade assigns early draft positions, which the target is most likely to accept, to larger drafters and later positions to smaller ones.
The cascade is proved to be more efficient than standard speculative decoding and reaches up to 81% additional speedup in experiments.
As in standard speculative decoding, the target model verifies every drafted token, so the output distribution is the target model's own.