Inner Thinking Transformer: Leveraging Dynamic Depth Scaling to Foster Adaptive Internal Thinking

Yilong Chen, Junyuan Shang, Zhenyu Zhang, Yanxi Xie, Jiawei Sheng +5 more
2/19/2025
cs.CL

No official code found. Best implementation: udapy/inner-thinking-transformer (0 stars, MIT, last commit 2025-02-22).

Abstract

Large language models (LLMs) face inherent performance bottlenecks under parameter constraints, particularly in processing critical tokens that demand complex reasoning. Empirical analysis reveals challenging tokens induce abrupt gradient spikes across layers, exposing architectural stress points in standard Transformers. Building on this insight, we propose Inner Thinking Transformer (ITT), which reimagines layer computations as implicit thinking steps. ITT dynamically allocates computation through Adaptive Token Routing, iteratively refines representations via Residual Thinking Connections, and distinguishes reasoning phases using Thinking Step Encoding. ITT enables deeper processing of critical tokens without parameter expansion. Evaluations across 162M-466M parameter models show ITT achieves 96.5\% performance of a 466M Transformer using only 162M parameters, reduces training data by 43.2\%, and outperforms Transformer/Loop variants in 11 benchmarks. By enabling elastic computation allocation during inference, ITT balances performance and efficiency through architecture-aware optimization of implicit thinking pathways.

View on arXivView PDF

Code Implementations(1)

MIT

https://arxiv.org/abs/2502.13842

00Feb 22, 20251 years agoMIT

Similar Papers

Cite this paper

@article{chen2025inner,
  title  = {Inner Thinking Transformer: Leveraging Dynamic Depth Scaling to Foster Adaptive Internal Thinking},
  author = {Yilong Chen and Junyuan Shang and Zhenyu Zhang and Yanxi Xie and Jiawei Sheng and Tingwen Liu and Shuohuan Wang and Yu Sun and Hua Wu and Haifeng Wang},
  year   = {2025},
  eprint = {2502.13842},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.13842v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.13842.svg)](https://codeofpaper.com/paper/2502.13842)

Discussion