Reproduce “Early Exit Is a Natural Capability in Transformer-based Models: An Empirical Study on Early Exit without Joint Optimization” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

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

About this paper

Weiqiao Shan, Long Meng, Tong Zheng, Yingfeng Luo, Bei Li, junxin Wang, Tong Xiao, Jingbo Zhu

Transformer-based models are empirically shown to inherently possess the capability to produce stable and accurate predictions from intermediate layers, obviating the need for additional output layers or joint optimization. While joint optimization can enhance the effectiveness of gating functions for identifying early exit points, it is not essential for the capability itself and can negatively impact full model performance and Key-Value cache consistency during token-level decoding.

Key insights

  • Transformer-based models possess an intrinsic early exit capability, allowing accurate predictions from intermediate layers without requiring additional output layers or a joint optimization training stage.
  • Joint optimization primarily improves the accuracy of gating functions in identifying optimal early exit points by modifying output distributions, rather than bestowing the core early exit capability itself.
  • Token-level early exit with KV cache copying can lead to error propagation, and surprisingly, joint optimization exacerbates this issue by potentially disrupting the intrinsic consistency of KV pairs across layers.

Summary by alphaXiv.

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