Subjective Depth and Timescale Transformers: Learning Where and When to Compute

Frederico Wieser, Martin Benfeghoul, Haitham Bou-Ammar, Jun Wang, Zafeirios Fountas · DOI

Introduction

Standard Transformer architectures are inherently rigid, allocating an identical amount of computation to every token in a sequence. This uniform processing is inefficient; common or highly predictable tokens (e.g., "the") receive the same computational budget as complex, information-dense terms. As sequence lengths grow and self-attention costs scale quadratically, this inefficiency becomes a significant bottleneck.

This paper introduces two novel architectures, Subjective Depth Transformers (SDT) and Subjective Timescale Transformers (STT), grounded in the Bayesian Surprise Principle. By quantifying "surprise"—the degree to which a model's internal state changes upon receiving new data—these models dynamically route tokens. Predictable tokens bypass expensive layers, while surprising tokens receive full processing, leading to substantial reductions in computational overhead.

Methods: Architecture and Routing

Comparison of standard Transformer (A), Subjective Depth (B), Subjective Timescale (C), and the Decision Plane (D).

Subjective Depth Transformers (SDT)

SDT introduces a spatial prior to the Transformer block. It alternates between "Decision" and "Dynamic" layers. A Decision Layer computes both a full posterior state and a lightweight "prior" prediction via a Feed-Forward Network (FFN). The Dynamic Layer then calculates the "surprise"—approximated as the Mean Squared Error (MSE) between the prediction and the actual state. A router uses this signal to select a Top-K subset of tokens for processing, while others bypass the block via residual connections.

Subjective Timescale Transformers (STT)

STT adapts the surprise principle to the temporal domain. Instead of a parallel spatial prior, it utilizes a Transition Network to predict the current token's state based on the previous token's state. This temporal prior aligns with sequential processing in biological systems, where events are detected based on deviations from temporal expectations.

Detail of the Subjective Timescale Transformer architecture and the Plane of Decision Criteria.

Decision Logic

The routing decision is visualized as a Plane of Decision Criteria. The model determines whether to enter a Compute Unit (CU) or execute a Compute Exit (CE) based on the distance between the predicted state and the actual state ($D_{st}$) and the change in state ($D_{ch}$). This allows the model to prioritize computation for tokens that represent significant updates to its internal representation.

Experimental Setup

The models were developed using a transfer-learning regime, starting from a pre-trained Qwen2.5-0.5B backbone. Training data consisted of a diverse mixed corpus (WikiText-103, Cosmopedia, etc.). Evaluation spanned standard benchmarks including MMLU (general knowledge), ARC-Challenge (reasoning), and HellaSwag (common sense).

Key Results and Insights

  • Efficiency Gains: For fixed-capacity models, self-attention workload was reduced to 62.5% of the dense baseline. Within specific skipping layers, self-attention computation dropped by 75% and KV-cache memory requirements by 50%.
  • Competitive Performance: Surprise-based routing matched or exceeded the performance of heuristic methods like Mixture-of-Depths (MoD). The STT (Dynamic Capacity) model achieved the highest scores among conditional models on ARC-C and MMLU.
  • Hierarchical Processing: Variable-capacity models naturally learned to allocate less compute to deeper layers. This suggests that deeper layers process more abstract, slower-changing information, mirroring neuroscientific theories of hierarchical brain function.
  • Temporal Superiority: The STT's temporal prior proved more accurate than the SDT's spatial prior, indicating that causal history is a more potent predictor of state updates than internal parallel predictions.

Discussion and Future Work

While SDT and STT significantly improve efficiency, a performance gap remains compared to full "Dense" models. Future research will focus on scaling these architectures to larger parameter counts (7B+) and optimizing the "Variable-Capacity" versions for standard GPU hardware, which currently struggles with dynamic computation graphs. Improving the causal router for real-time generation also remains a priority for practical deployment.

Summary updated

BibTeX
@misc{wieser2025subjective,
  author = {Frederico Wieser and Martin Benfeghoul and Haitham Bou-Ammar and Jun Wang and Zafeirios Fountas},
  title = {{Subjective Depth and Timescale Transformers: Learning Where and When to Compute}},
  year = {2025},
  eprint = {2511.21408},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.21408},
}
Figure