Traditional mathematical optimization is often fundamentally memoryless. Algorithms like standard gradient descent or vanilla zeroth-order methods operate under a strict Markovian assumption: to compute the next step, they look only at the current position and its immediate local geometry.
While computationally cheap per iteration, this forgetfulness introduces significant inefficiencies. In complex, non-convex landscapes, memoryless optimizers are prone to severe zigzagging, require expensive line searches to maintain stability, and frequently get trapped in sub-optimal local minima.
A powerful alternative paradigm has emerged across first-order, zeroth-order, and black-box optimization: explicitly utilizing the historical trajectory of the optimization process. By storing, aggregating, and extrapolating from a history of past gradients, search directions, or function evaluations, these methods reconstruct global landscape curvature and stabilize trajectories at a fraction of the cost of traditional second-order methods.
Reconstructing Curvature Without Second-Order Cost
To navigate a complex loss surface efficiently, an optimizer needs to understand its curvature. Second-order methods like Newton's method achieve this by computing the Hessian matrix, but its $O(d^2)$ space and $O(d^3)$ time complexities make it prohibitive for high-dimensional problems.
Historical trajectories offer a clever shortcut. A single gradient vector tells you the slope at your current position. However, two or more successive gradients reveal how that slope is changing. This change in slope is precisely what curvature is.
Memoryless Step: Current Position ──(Current Gradient)──> Next Position
Memory-Augmented: Past Trajectory ──┐
├─(Subspace/Curvature)─> Optimized Step
Current Gradient ─┘
Instead of computing a full Hessian, memory-augmented optimizers maintain a history of recent directions to approximate this curvature:
- Multi-step Search Directions: Song et al. demonstrate that calculating search directions using a weighted linear combination of the current gradient and several previous search directions captures local curvature information. This provides convergence acceleration mimicking second-order methods while maintaining first-order computational overhead. To guarantee global convergence without assuming bounded iteration sequences, Sun introduces a three-term memory framework that incorporates the current gradient alongside search directions from the two preceding iterations, significantly stabilizing the trajectory through complex mathematical landscapes.
- Subspace Optimization: Rather than just blending vectors, one can optimize within a low-dimensional space spanned by the past. Richardson et al. propose SEBOOST, a wrapper technique that periodically runs a secondary optimization step within a low-dimensional subspace of recent descent directions and historical anchor points. This gives the optimizer a broader geometric perspective of the loss surface.
- Principled Averaging: Moving beyond heuristic memory usage, Drusvyatskiy et al. show that incorporating a memory of past function states can be rigorously formulated as solving a small-scale quadratic program to find an optimal average of multiple lower bounds, creating a limited-memory framework competitive with industry standards like L-BFGS.
Curing Amnesia in Deep Learning
In deep learning, adaptive optimizers like Adam use an exponential moving average (EMA) to keep track of past gradient magnitudes. However, EMA is a form of lossy compression—it inherently prioritizes the recent past and rapidly "forgets" older information.
Reddi et al. showed that this forgetfulness is a fundamental flaw: when a sequence of updates provides rare but highly informative gradients, the exponential decay causes the optimizer to forget them too quickly, leading to divergence even on simple convex problems. Their solution, AMSGrad, maintains a long-term memory of the maximum gradient magnitudes seen so far.
To scale this intuition, researchers have turned to explicit memory buffers:
- Critical Gradient Buffers: McRae introduces a framework that augments standard deep learning optimizers with a fixed-size memory buffer dedicated to storing "critical" past gradients. These high-importance gradients are aggregated (via mean or sum) and injected into the current mini-batch update, preventing the network from overriding previously learned directional constraints.
- Magnitude-Based Selection: In black-box settings, Hui et al. propose storing past gradients deemed most informative, using their magnitude as an explicit importance metric to guide current optimization steps and drastically reduce the number of expensive model queries.
- Continuous Mathematical Memory: Rather than using discrete buffers, Tian incorporates fractional-order derivatives into optimization. Because fractional calculus natively depends on the entire history of the function's states, it introduces a continuous mathematical memory effect. This smooths the trajectory toward global optima and helps the model escape sub-optimal local minima.
Stopping the Waste in Zeroth-Order Optimization
The benefits of history utilization are perhaps most dramatic in Zeroth-Order (ZO) optimization, where explicit gradients are unavailable and must be estimated solely through function evaluations (queries).
Traditional ZO methods are notoriously sample-inefficient. To estimate a gradient at step $t$, they perturb the current parameters, evaluate the objective, compute a finite-difference approximation, and then immediately discard those cost samples. At step $t+1$, they start completely from scratch.
This is incredibly wasteful. Even if the parameters have moved, the function evaluations from step $t$ still contain massive amounts of information about the local topography.
Traditional ZO: Step t (Query & Discard) ──> Step t+1 (Query from scratch)
Trajectory ZO: Step t (Query) ──┐
├─> [Trajectory Memory] ─> Informed Gradient
Step t+1 ────────┘ Estimation
By retaining query histories, modern ZO algorithms transform how derivatives are estimated:
- Surrogate Trajectories: Shu et al. (ZORD) and Shu et al. (FZooS) leverage Gaussian Processes to build surrogate models of the objective function informed entirely by the accumulated history of function queries. Instead of executing expensive new oracle queries at every step, they use the historical trajectory to perform "virtual updates," drastically improving query and communication efficiency.
- Experience Replay: By establishing a mathematical equivalence between ZO optimization and single-step Policy Optimization in Reinforcement Learning, Qiu et al. introduce an "experience replay" mechanism to reuse historical query data, achieving up to 16x speedups in convergence.
- Auxiliary Perturbation Memory: Carnevale et al. introduce a remarkably simple yet effective memory mechanism: their algorithm stores the most recent evaluation for each perturbation direction. This auxiliary memory provides immediate local geometric context, allowing the algorithm to estimate reliable descent directions without increasing the query burden on the underlying system.
Extrapolation and Fixed-Point Acceleration
Beyond stabilizing steps or estimating gradients, historical trajectories allow optimizers to look ahead by predicting where the optimization path is leading.
In sparse optimization, Massias et al. introduce "dual extrapolation" for solving the Lasso problem. Instead of using only the current iteration's state to estimate the dual solution, their solver tracks the historical trajectory of previous iterations to predict the optimal dual point. This yields tighter optimality bounds early in the process, enabling aggressive and highly efficient feature pruning.
Similarly, optimization can be framed as finding the fixed point of an update operator. Sun et al. utilize Anderson Mixing in deep reinforcement learning, incorporating a memory of previous function estimates into the update rule. This historical mixing provides an additional contraction factor for the optimization process, effectively expanding the convergence radius and stabilizing learning in notoriously volatile environments.
Finally, this cumulative strategy shines in saddle-point problems. Xu et al. demonstrate that storing a "bundle" of historical gradient information in cutting-plane methods allows the solver to leverage the global structure of the objective function. This historical context eliminates the need for computationally expensive line searches, allowing the algorithm to reach optimal solutions with significantly fewer calls to expensive underlying sub-solvers.
Key Foundational Work
An Extended Level Method for Efficient Multiple Kernel Learning (2008) — contributed 3 concept elements to this direction.
GLOBAL CONVERGENCE RESULTS OF A NEW THREE-TERM MEMORY GRADIENT METHOD (2004) — contributed 3 concept elements to this direction.