A transformer architecture alteration to incentivise externalised reasoning
Organizations: MARS · Geodesic Research, equal contribution · University of Amsterdam
Abstract
We propose a new architectural change, and post-training pipeline, for making LLMs more verbose reasoners by teaching a model to truncate forward passes early. We augment an existing transformer architecture with an early-exit mechanism at intermediate layers and train the model to exit at shallower layers when the next token can be predicted without deep computation. After a calibration stage, we incentivise the model to exit as early as possible while maintaining task performance using reinforcement learning. We provide preliminary results to this effect for small reasoning models, showing that they learn to adaptively reduce computations across tokens. We predict that, applied at the right scale, our approach can minimise the amount of excess computation that reasoning models have at their disposal to perform non-myopic planning using their internal activations, reserving this only for difficult-to-predict tokens.
Figures & tables
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Avg. Coherence | Early Exit Rate | Avg. Layer Savings |
|---|---|---|---|
| KL factor 0.25 | 1.1 | 59% | 22.4% |
| KL factor 0.5 | 5.5 | 49% | 8.1% |
| KL factor 1.0 | 7.5 | 47% | 6.4% |
| KL factor 2.0 | 8.4 | 43% | 5.3% |
| KL factor 4.0 | 8.5 | 37% | 4.6% |
| Base Model | 8.9 | 0% | 0.0% |
Efficient Language Model Inference
Efficient language model inference reduces the compute, memory, latency, and energy needed to generate useful outputs.
See all 317 papers