Conference Paper
Large Language Models

Inner Thinking Transformers

Yi-Long Chen, Jun-Yuan Shang, Zhen-Yu Zhang, Yan Xie, Jiawei Sheng, Tingwen Liu, Shuo-Huan Wang, Yu Sun, Hua Wu, Hai-Feng Wang
February 19, 2025Annual Meeting of the Association for Computational Linguistics71 citations

71

Citations

3

Influential Citations

Annual Meeting of the Association for Computational Linguistics

Venue

2025

Year

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.

Analysis

Why This Paper Matters

Large language models (LLMs) often hit performance ceilings under fixed parameter budgets, especially when processing tokens that require complex reasoning. This paper identifies a concrete architectural symptom: challenging tokens induce abrupt gradient spikes across layers, revealing stress points in standard Transformers. By framing layer computations as implicit thinking steps, the authors propose a way to allocate more computation to critical tokens without increasing model size.

The significance lies in shifting from uniform computation to adaptive, token-level resource allocation. This aligns with a broader trend in AI toward conditional computation and efficient inference. If successful, such approaches could reduce training data requirements and enable smaller models to handle reasoning-intensive tasks, lowering deployment costs and energy consumption.

Moreover, the paper provides empirical evidence that architectural stress points can be diagnosed via gradient behavior and addressed through targeted design. This could inspire further work on architecture-aware optimization and dynamic computation graphs for LLMs.

Technical Contributions

  • Adaptive Token Routing: Dynamically routes critical tokens through additional computation steps, effectively giving them deeper processing without expanding parameters.
  • Residual Thinking Connections: Iteratively refines token representations across thinking steps, preserving information flow and enabling progressive reasoning.
  • Thinking Step Encoding: Distinguishes different reasoning phases by encoding step information, helping the model track its implicit thinking process.
  • Implicit Thinking Steps: Reinterprets standard layer computations as sequential thinking steps, providing a new perspective on Transformer depth.
  • Elastic Inference: Enables computation allocation to be adjusted during inference, balancing performance and efficiency.

Results

Evaluations across 162M–466M parameter models show that ITT achieves 96.5% of the performance of a 466M Transformer using only 162M parameters—a 2.9x parameter reduction with minimal performance loss. ITT also reduces training data by 43.2% and outperforms both standard Transformer and Loop variants on 11 benchmarks. These results suggest that adaptive computation can substitute for parameter scale and data volume to a meaningful degree.

Significance

The work has implications for deploying LLMs in resource-constrained settings. By enabling smaller models to handle critical tokens more effectively, ITT could democratize access to reasoning-capable LLMs. It also opens avenues for research on dynamic computation allocation, gradient-based diagnostics of architectural bottlenecks, and hybrid architectures that combine depth with adaptive routing. However, the approach's overhead and scalability to larger models remain open questions, and broader validation across diverse tasks is needed.