P2N: Reusing Deep Representations for Greater Effective Depth
Yiqin Hao, Boyi Zeng, Zitong Wang, He Li, Shixiang Song, Feichen Song, Yifan Liu, Ran Tao, Bryan Dai, Zhouhan Lin
Abstract
Mathematical problem solving and autonomous agents are increasingly important applications of language models, demanding stronger reasoning capabilities. Computational depth is a key resource for such reasoning, but adding model layers increases both training and inference costs, while test-time scaling incurs substantial additional inference computation. We introduce P2N (Previous to Next), which reuses the previous token's deep representations, already available during generation, to increase effective computational depth with negligible decoding overhead. Specifically, P2N adds the previous token's deep hidden state to the current token's shallow representation, allowing subsequent layers to build on previously completed deep computation. This recurrence extends effective computational depth across tokens, while introducing only a single vector addition per decoding step. We train the recurrence using parallel Jacobi updates restricted to a middle-layer core. Experiments with Qwen-style models show that, at 1.5B parameters, P2N improves GSM8K accuracy by over 10 percentage points under both zero-shot and few-shot prompting, with nearly unchanged decoding latency. The benefits also extend to language modeling and average performance on general downstream benchmarks. on general downstream benchmarks.
Create a lesson
Metadata
- Comments
- 23 pages, 10 figures
Related papers
Reading Between the Layers: Where Representation Quality Lives, and What Geometry Reveals
Shared title terminologycs.CLArnesh Batra, Aniket Khandelwal, Arush Gumber et al.
Deneb-Vritra: Descriptions, Edges and Names Examined by Blocking Via Restoring Token Representations and Attention
Shared title terminologycs.CLMohammed Nayeem Khan, Akhil P, Shahina Shaik
Learn the Effects, Not the Examples: Implicit ICL via Attention Patching
Shared title terminologycs.CLSeungwon Woo, Hyunseo Shin, Wonseok Hwang
The Temporal Residual: Fast and Effective Retrofitting of Latent Feedback into Pretrained Language Models
Shared title terminologycs.CLZiyang Cai, Xingyu Zhu, Sanjeev Arora
CompareDR: Benchmarking Deep Research Reports from Individual Quality to Comparative Merit
Shared title terminologycs.CLWanli Wu, He Zhu, Yue Xu et al.
Exploring Recurrent-Depth Language Models for Multitask Clinical Text Processing
Shared title terminologycs.CLXi Yang, Guodong Liu, Cheng Peng et al.