AbbIE: Autoregressive Block-Based Iterative Encoder for Efficient Sequence Modeling

Preslav Aleksandrov, Meghdad Kurmanji, Fernando García-Redondo, David O'Shea, William F. Shen, Alex Iacob, Lorenzo Sani, Xinchi Qiu, Nicola Cancedda, Nicholas D. LanearXiv 2025

Abstract

We introduce the Autoregressive Block-Based Iterative Encoder (AbbIE), a novel recursive generalization of the encoder-only Transformer architecture. AbbIE achieves superior perplexity compared to standard Transformers and enables dynamic scaling of compute resources at test time. This recursive approach complements traditional scaling through parameter and token counts by performing iterations in latent space. Unlike many latent reasoning models, AbbIE does not require specialized datasets or training protocols. We demonstrate that AbbIE "upward generalizes"—the ability to generalize to arbitrary iteration lengths at test time—after being trained on only two iterations. This capability allows for up to a 12% improvement in zero-shot in-context learning tasks and a 5% improvement in language perplexity. Our evaluations on models up to 350M parameters suggest a new avenue for Transformer performance scaling.

Introduction

The prevailing paradigm for improving Transformer performance involves increasing parameter counts or training on larger token sets. However, the growth of GPU memory capacity lags significantly behind computational throughput, creating a bottleneck for traditional scaling. Recurrent Transformers, which reuse weights across multiple steps, offer a potential solution by increasing depth without expanding the memory footprint. Yet, existing recurrent models often face challenges: they can be expensive to train, frequently overfit to a specific number of iterations, and often necessitate complex training protocols or specialized datasets.

AbbIE addresses these issues as a "drop-in" replacement for standard Transformers, designed to scale compute dynamically during inference.

Architecture and Methods

AbbIE decomposes the Transformer architecture into three functional components:

  1. The Head: Projects input tokens into a high-dimensional "concept space" (latent space).
  2. The Body: A recursive stack of Transformer blocks. Instead of a single pass, data iterates through this block $r$ times.
  3. The Tail: Maps the final latent representations back into token space for prediction.

The research explores two logic variants for the recursive body:

  • AbbIE-C (Continuous): Direct recursion where $h_{k+1} = B(h_k)$.
  • AbbIE-D (Diffusion-inspired): Incorporates an inter-iteration residual connection: $h_{k+1} = B(h_k) + h_k$.

The inclusion of the inter-iteration residual in AbbIE-D is critical. It facilitates Path Independence (PI), encouraging the model to converge toward a stable fixed point. While AbbIE-C tends to diverge, the residual stream in AbbIE-D ensures stability, allowing the model to refine its internal representations through successive iterations.

Experimental Setup

Models were trained on a high-quality data mixture comprising FineWeb-Edu (80%), Cosmopedia-v2 (10%), and Python-Edu (10%). Evaluation focused on zero-shot In-Context Learning (ICL) benchmarks, including HellaSwag, LAMBADA, ARC-Easy, and CommonsenseQA.

Key Results and Discussion

A defining characteristic of AbbIE-D is its ability to "upward generalize." While trained using only two iterations, the model demonstrates monotonic performance improvements when run for 4, 8, or more iterations at test time. This allows for a flexible trade-off between computational expenditure and accuracy.

Zero-shot performance of AbbIE-D 350M across various benchmarks as a function of test-time iterations.

Performance Gains

  • Zero-Shot Accuracy: The 350M parameter AbbIE-D model achieved a 12% improvement on HellaSwag compared to standard baselines.
  • Perplexity: AbbIE demonstrated a ~5% improvement in language modeling perplexity over standard Transformers with equivalent parameter counts.
  • Emergent Reasoning: AbbIE-D was the only model in the study to significantly exceed the random baseline on the CommonsenseQA task, suggesting that latent space iteration facilitates deeper reasoning.
  • Backward Compatibility: When configured for a single iteration ($r=1$), AbbIE matches the performance of standard Transformers, ensuring it can serve as a safe, flexible upgrade.

Conclusion and Future Work

AbbIE presents a promising method for scaling Transformer performance through recursive computation in latent space. While it introduces some initial computational overhead, its FLOP efficiency improves during the extensive training cycles typical of modern LLMs. Future research will focus on optimizing fixed-point alignment and scaling the architecture to larger models (e.g., 7B to 70B parameters) to determine if these recursive benefits persist at the frontier of language modeling.

Summary updated

BibTeX
@misc{aleksandrov2025abbie,
  author = {Preslav Aleksandrov and Meghdad Kurmanji and Fernando García-Redondo and David O'Shea and William F. Shen and Alex Iacob and Lorenzo Sani and Xinchi Qiu and Nicola Cancedda and Nicholas D. Lane},
  title = {{AbbIE: Autoregressive Block-Based Iterative Encoder for Efficient Sequence Modeling}},
  year = {2025},
  eprint = {2507.08567},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.08567},
}
Figure