EAGLE: Efficient Analytical Gradient LinearEvaluation for Enhanced Recomputation in Large Language Models

Huang Huang, Jianqing Zhu, huang xuerong, Chen Zhang, Zhi Chen, Hua WangOpenReview 2026 · Submission to ICLR 2026 · Rejected · OpenReview

TL;DR

EAGLE (Efficient Analytical Gradient Linear Evaluation) significantly speeds up large language model (LLM) training by eliminating redundant forward passes during gradient checkpointing. By leveraging closed-form analytical gradients for linear layers and integrating directly with FlashAttention’s backward pass, EAGLE improves Model FLOPs Utilization (MFU) by up to 33% without affecting training convergence.

What Problem Does This Paper Address?

Training state-of-the-art LLMs is a constant battle against memory limits. A massive portion of a GPU's memory is consumed by activations—the intermediate results of a forward pass that must be stored to calculate gradients during the backward pass.

To fit larger models or longer sequences, researchers use gradient checkpointing (or activation recomputation). This technique saves memory by deleting most activations and re-calculating them on the fly during the backward pass. The catch? It’s slow. Standard recomputation typically adds a 33% computational overhead because it blindly re-runs the forward pass for every operation. The authors of EAGLE noticed that for the most common operations in Transformers—linear transformations—this "blind replay" is mathematically unnecessary.

Methods

EAGLE moves away from the "uniform recomputation" strategy used by standard autograd tools. Its core innovation is a selective approach:

  1. Analytical Gradients for Linear Layers: For a standard linear layer $y = Wx$, standard checkpointing recomputes $y$ just to find the gradients. EAGLE realizes that if you have the input $x$ and the incoming gradient $\nabla_y$, you can compute $\nabla_W$ and $\nabla_x$ directly using closed-form solutions ($\nabla_W = \nabla_y x^T$ and $\nabla_x = W^T \nabla_y$). This skips the matrix multiplication needed to re-generate $y$.
  2. FlashAttention Integration: In attention blocks, standard methods re-run the FlashAttention forward pass. EAGLE bypasses this by calling the FlashAttention backward algorithm directly using preserved outputs, eliminating the redundant attention forward step.
  3. Hybrid Execution: EAGLE doesn't try to reinvent the wheel for everything. It still uses standard recomputation for non-linear operations (like SiLU activations) but plugs in its optimized "analytical kernels" for the compute-heavy linear and attention components.

Datasets

The researchers evaluated EAGLE on production-scale model architectures rather than specific static datasets, focusing on training efficiency across:

  • DeepSeek-V2 & DeepSeek-V3: Large-scale Mixture-of-Experts (MoE) models (up to 694B parameters).
  • LLaMA3-70B: A dense Transformer architecture.
  • LLaMA3-8B: Used for sensitivity studies regarding sequence length.

Evaluation was performed using 80GB NVIDIA A100 GPUs in distributed configurations (up to 2048 GPUs for the largest models).

Key Insights and Ideas

  • Mathematical Exploitation: The "aha moment" is the realization that the forward output of a linear layer is a "middleman" we don't actually need for backpropagation if we have the inputs. By skipping the generation of this middleman, we save raw FLOPs.
  • Complementary, Not Competitive: EAGLE isn't a replacement for existing scheduling frameworks like CheckMate or Adacc. Instead, it’s a lower-level optimization. While those tools decide which layers to recompute, EAGLE changes how they are recomputed, making it a "plug-in" speedup for existing memory-saving strategies.
  • Lossless Optimization: Because the analytical formulas are mathematically identical to the chain rule used in autograd, the gradients are bit-wise identical (when using deterministic kernels). This means you get the speedup with zero risk to model accuracy or convergence.

Key Results

EAGLE demonstrates impressive gains across various modules and model scales:

  • Module-Level Speedups: The most dramatic gain was a 9.75× speedup for RMSNorm+Linear modules. MLP and MoE modules saw ~1.46–1.48× speedups, while Multi-head Latent Attention (MLA) achieved a 2.98× speedup.
  • End-to-End Efficiency: On massive models (70B–694B parameters), EAGLE improved Model FLOPs Utilization (MFU) by 18% to 33% compared to full recomputation.
  • Throughput: In sequence length sensitivity tests on LLaMA3-8B, EAGLE’s throughput gains increased as sequences got longer, reaching a 17.9% throughput increase at 32k tokens.
  • Stability: Training logs showed that EAGLE introduces no measurable change to the loss curve compared to standard training, confirming its numerical reliability.

Limitations and Future Work

  • Specific Bottlenecks: EAGLE is most effective when the recompute path has small inputs but large intermediate activations and a compute-heavy final layer. If the non-linear parts of a custom architecture dominate the compute, the gains may be less pronounced.
  • Kernel Dependency: The efficiency of the attention optimization relies on the availability and integration of high-performance kernels like FlashAttention.
  • Future Directions: The authors suggest that EAGLE’s analytical approach could be extended to other structured layers beyond simple linear transformations, potentially further reducing the "recomputation tax" in even more diverse neural architectures.

Summary updated

Abstract

Training large language models requires substantial memory to store intermediate activations, often exceeding the capacity of modern accelerators. Gradient checkpointing addresses this challenge by trading computation for memory, but introduces significant overhead due to forward passes during recomputation. In this work, we present EAGLE (Efficient Analytical Gradient Linear Evaluation), a recomputation strategy that leverages closed-form gradients for linear transformations and integrates FlashAttention's backward algorithm for attention blocks. Unlike traditional checkpointing that uniformly replays the forward pass with autograd, EAGLE computes gradients analytically for linear layers and calls FlashAttention's backward directly, while keeping standard recomputation for nonlinear operations. On production-scale models including DeepSeek-V2, DeepSeek-V3, and LLaMA3-70B (70B--694B parameters), EAGLE improves Model FLOPs Utilization by 18--33\% over Full Recompute and achieves up to $9.75\times$ module-level recomputation speedups, and our analysis and experiments show that these gains are achieved without changing training convergence.
BibTeX
@misc{huang2026eagle,
  author = {Huang Huang and Jianqing Zhu and huang xuerong and haoran huang and Chen Zhang and Zhi Chen and Hua Wang},
  title = {{EAGLE: Efficient Analytical Gradient LinearEvaluation for Enhanced Recomputation in Large Language Models}},
  year = {2026},
  url = {https://openreview.net/forum?id=GjBvGKIalG},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure