Publications

Selected Highlights

In review · ARR · 2026

DAGFormer: Global Topology Prediction for Transformer Cross-Layer Connections

Xiaocong Yang*, Yuren Hao*, ChengXiang Zhai · *Equal contribution

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.

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

Xiaocong Yang, Xuanyu Meng, Yuji Zhang, Jiawei Han, ChengXiang Zhai

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.

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.

Figure 1 · Two cascades of draft models

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.

All Publications

* Equal contribution. Also on Google Scholar.

  1. DAGFormer: Global Topology Prediction for Transformer Cross-Layer Connections Xiaocong Yang*, Yuren Hao*, ChengXiang Zhai In review, ARR
  2. Sparse Autoencoders Are a Shared Coordinate System for Symbolic Matching Xiaocong Yang, Xuanyu Meng, Yuji Zhang, Jiawei Han, ChengXiang Zhai In review, ARR
  3. Resisting Harmful Instructions through Training-Free Weight Editing Ali Ebrahimpour-Boroojeny*, Xiaocong Yang*, Samuel Schapiro, Zahra Borhani, Francisco R Ortega, Yujia Zheng, ChengXiang Zhai In review, ARR
  4. Skip the Compressor: Coding Agents Fix More Issues When They Pick Whole Files Xiaocong Yang*, Rishit Chatterjee*, Himanshu Udupi, Vikram Ramavarapu, ChengXiang Zhai In review, ARR
  5. Generative Interpretability via Scalable Neuro-Symbolic Models Xiaocong Yang ACM AI Leadership Summit 2026
  6. Globally Optimal Training of Spiking Neural Networks via Parameter Reconstruction Himanshu Udupi, Xiaocong Yang, ChengXiang Zhai In submission, AISTATS 2027
  7. LLM2IR: Simple Unsupervised Contrastive Learning Makes Long-Context LLM Great Retriever Xiaocong Yang M.S. Thesis, UIUC
  8. Learning by Analogy: Enhancing Few-Shot Prompting for Math Word Problem Solving with Computational Graph-Based Retrieval Xiaocong Yang, Jiacheng Lin, Ziqi Wang, Chengxiang Zhai Preprint
  9. Cascade Speculative Drafting for Even Faster LLM Inference Ziyi Chen, Xiaocong Yang, Jiacheng Lin, Chenkai Sun, Kevin Chen-Chuan Chang, Jie Huang NeurIPS 2024
  10. Parameter-efficient Tuning with Special Token Adaptation Xiaocong Yang, James Huang, Wenxuan Zhou, Muhao Chen EACL 2023
  11. NLP from Scratch Without Large-Scale Pretraining: A Simple and Efficient Framework Xingcheng Yao, Yanan Zheng, Xiaocong Yang, Zhilin Yang ICML 2022
  12. Towards Natural Language Interfaces for Data Visualization: A Survey Leixian Shen, Enya Shen, Yuyu Luo, Xiaocong Yang, Xuming Hu, Xiongshuai Zhang, Zhiwei Tai, Jianmin Wang TVCG 2022
  13. EVA: An Open-Domain Chinese Dialogue System with Large-Scale Generative Pre-Training Hao Zhou, Pei Ke, Zheng Zhang, Yuxian Gu, Yinhe Zheng, Chujie Zheng, Yida Wang, Chen Henry Wu, Hao Sun, Xiaocong Yang, Bosi Wen, Xiaoyan Zhu, Minlie Huang, Jie Tang Preprint