P2N: Reusing Deep Representations for Greater Effective Depth

Yiqin Hao, Boyi Zeng, Zitong Wang, He Li, Shixiang Song, Feichen Song, Yifan Liu, Zhouhan LinarXiv 2026

TL;DR

P2N (Previous to Next) is a parameter-free architectural tweak that reuses a model's "deep thoughts" from the previous token to boost the reasoning power of the current token. By adding the previous token's deep hidden state to the current token's shallow representation, it significantly increases effective computational depth—yielding over 10 percentage point gains on GSM8K—with virtually zero impact on inference speed.

What Problem Does This Paper Address?

Reasoning is computationally expensive. To solve complex mathematical problems or act as effective autonomous agents, Large Language Models (LLMs) typically need "depth"—more layers to refine their internal representations. However, adding layers increases both training costs and inference latency.

While recent "test-time scaling" methods allow models to "think longer" by generating more tokens or using search, these also incur heavy inference overhead. The authors of P2N ask a clever question: Can we get more depth for free by reusing computation that has already happened? During autoregressive generation, the deep representation of the previous token is already sitting in memory; P2N finds a way to feed that "deep" information back into the "shallow" layers of the next token.

Methods

The core idea of P2N is a cross-token recurrence. Instead of each token starting its journey through the Transformer layers from scratch, it inherits the "wisdom" of its predecessor.

  1. The Recurrence: The model is divided into three parts: Prefix, Core, and Suffix layers. At each decoding step, the output of the Core layers for the previous token is added to the input of the Core layers for the current token. This is a simple, parameter-free vector addition: $h_t = \text{Core}(x_t + h_{t-1})$.
  2. Parallel Training with Jacobi Iteration: Standard Transformer training is parallel across tokens, but recurrence introduces a sequential dependency (you need token $t-1$ to compute token $t$). To fix this, the authors use Jacobi updates. They perform an initial "warm pass" to get baseline states, then refine all tokens in parallel over a few iterations. This preserves the efficiency of modern GPU training.
  3. Partial Architecture: To keep training costs manageable, the authors only apply this recurrence to the middle third of the model's layers.
Overview of the P2N architecture showing how deep representations are recycled during training and inference.

Datasets

The authors evaluated P2N across a wide range of scales (150M to 1.5B parameters) using:

  • Pretraining: The Pile, a massive 800GB dataset of diverse text.
  • Reasoning: GSM8K (Grade School Math 8K) for mathematical word problems.
  • Instruction Following: MT-Bench (evaluated using GPT-5.5 as a judge) after fine-tuning on the Alpaca dataset.
  • General Benchmarks: A suite of nine tasks including LAMBADA, PIQA, HellaSwag, ARC, and RACE.

Key Insights and Ideas

  • "Free" Depth: Because the previous token's state is already computed during generation, P2N adds almost no latency. It’s essentially a way to stack layers "horizontally" across time rather than just "vertically" within a single step.
  • The Middle-Third Sweet Spot: Ablation studies revealed that applying recurrence to the middle layers of the network is more effective than applying it to the very beginning or end. This suggests that the middle layers are where the most critical "refinement" of reasoning happens.
  • Stability through Randomization: During training, the authors randomly sampled the number of Jacobi iterations ($K \in \{2, 3\}$). This prevents the model from over-specializing to a specific number of "thinking steps" and ensures the hidden states converge stably during inference.
  • Scaling Consistency: P2N doesn't just work for small models; it shows consistent improvements in both validation loss and downstream accuracy as the model size increases from 150M to 1.5B parameters.
Scaling behavior of P2N compared to Vanilla models across different parameter counts.

Key Results

The performance gains, especially in reasoning, are striking:

  • Mathematical Reasoning: On the GSM8K benchmark, the 1.5B P2N model improved accuracy by 10.9 percentage points (zero-shot) and 11.1 percentage points (eight-shot) over the vanilla baseline—a relative gain of over 50%.
  • Zero Latency Penalty: Benchmarks on a single GPU showed that P2N's decoding speed (Time Per Output Token) is virtually identical to a vanilla Transformer (relative latency of ~1.00x).
  • General Improvements: P2N consistently lowered perplexity on language modeling tasks and improved average scores across general downstream benchmarks by ~1.7 to 2.1 points.
GSM8K reasoning performance at 1B and 1.5B scales, showing significant gains for P2N.

Limitations and Future Work

  • Training Compute: While inference is "free," training is not. The Jacobi iteration method increases estimated training compute to approximately 1.83x that of a vanilla model.
  • Decoding Compatibility: The sequential dependency on the exact previous hidden state might make P2N difficult to integrate with advanced decoding techniques like speculative decoding or multi-token prediction, which often process multiple future tokens in parallel.
  • Future Directions: The authors suggest exploring more efficient training schedules and investigating how this cross-token recurrence interacts with even larger model scales and different architectural variants like Mixture-of-Experts (MoE).

Summary updated

BibTeX
@misc{hao2026p,
  author = {Yiqin Hao and Boyi Zeng and Zitong Wang and He Li and Shixiang Song and Feichen Song and Yifan Liu and Zhouhan Lin},
  title = {{P2N: Reusing Deep Representations for Greater Effective Depth}},
  year = {2026},
  eprint = {2610.25076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.25076},
}

Loading related content...

Figure