Reproduce “Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decoding” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Sangmin Bae, Jongwoo Ko, Hwanjun Song, Se-Young Yun

Researchers from KAIST AI and AWS AI developed the Fast and Robust Early-Exiting (FREE) framework, which accelerates autoregressive language model inference by up to 2.16x while maintaining 99% of the full model's performance. This framework addresses limitations of prior early-exiting methods through a shallow-deep architecture, synchronized parallel decoding, and an adaptive confidence threshold mechanism.

Key insights

  • State copying, a common technique in early-exiting, significantly degrades performance by introducing inaccurate attention key/value state approximations, especially for larger models and longer sequence generation.
  • Early layers of large transformer models are often unreliable and can produce poor-quality outputs, making exit points at these layers counterproductive for both speed and quality.
  • Leveraging hardware parallelism through synchronized parallel decoding can effectively replace state copying, enabling accurate computation of hidden states without incurring significant latency penalties.
  • Dynamically adapting the confidence threshold during inference using a Beta Mixture Model, based on the consistency between shallow and deep model predictions, is highly sample-efficient and robust across diverse tasks.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.