PonderLM-3: Adaptive Token-Wise Pondering with Differentiable Masking
Organizations: LUMIA Lab, School of Artificial Intelligence, Shanghai Jiao Tong University · Shanghai AI Laboratory · Shanghai Jiao Tong University · Shanghai Innovation Institute
Abstract
Test-time scaling has shown that allocating more additional computation at inference can improve generation quality, motivating a natural follow-up question: where should this computation be spent? Building on this insight, we introduce PonderLM-3, a pretraining framework for token-wise adaptive pondering that learns to selectively allocate additional computation under purely self-supervised objectives, built on top of the PonderLM-2 backbone. This makes additional inference computation an allocatable per-token resource, so tokens receive more computation only when it is beneficial, rather than paying a uniform extra cost. To make this allocation learnable while maintaining train-inference consistency, PonderLM-3 injects a differentiable attention mask during pretraining and pairs it with a matching hard pruning rule at inference. PonderLM-3 defines a stronger Pareto frontier: compared with existing recursive or adaptive baselines, it achieves lower pretraining perplexity at equal inference FLOPs. On downstream benchmarks, PonderLM-3 attains comparable performance to fixed-step PonderLM-2 under the same maximum number of additional computation steps, while using fewer inference FLOPs in practice. Overall, PonderLM-3 provides an end-to-end differentiable and train-inference consistent framework for token-wise adaptive computation, enabling additional inference compute to be allocated where it is most useful rather than paid uniformly by every token.
Figures & tables
| Method | Training Paradigm | Adaptivity Source | Constraints / Priors |
| PonderNet | Pretraining | Learned stopping distribution | Geometric prior |
| MoR / MoD / ITT | Pretraining | Router-based token selection | Fixed continuation ratio |
| Think-at-Hard | SFT (LoRA) | Supervised step targets | External step labels |
| Learning to Ponder | RL (GRPO) | Learned controller | Frozen backbone; reward-shaped budget |
| CALM / DAT | Post-hoc | Confidence-based stopping | Calibration of threshold |
| LayerSkip | Pretraining | Draft–verify | Static exit policy |
| Model | Inf. FLOPs (G/token) | Lambada OpenAI | ARC -E | Lambada Standard | ARC -C | Wino Grande | PIQA | Hella Swag | SciQ | RACE | Avg. |
| 5-shot | |||||||||||
| LoopedLM (4 loops) | 9.84 | 34.2 | 48.2 | 26.6 | 20.6 | 47.0 | 64.2 | 30.7 | 83.4 | 27.8 | 42.5 |
| Pause (3 pauses) | 9.84 | 30.7 | 46.9 | 26.3 | 21.8 | 51.6 | 63.4 | 30.1 | 81.8 | 28.5 | 42.3 |
| MoR ( max 3 steps) | 8.44 | 31.5 | 48.5 | 25.3 | 20.0 | 51.0 | 63.7 | 30.6 | 84.7 | 28.0 | 42.6 |
| PonderLM-1 (3 steps) | 9.84 | 34.0 | 49.1 | 28.4 | 21.8 | 49.7 | 64.1 | 30.9 | 84.4 | 29.5 | 43.5 |
| PonderLM-2 (3 steps) | 9.84 | 37.6 | 50.6 | 34.0 | 21.8 | 53.5 | 65.0 | 32.5 | 87.5 | 31.2 | 46.0 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.