FOGO: Forgetting-aware Orthogonalization Optimizer

Toan Nguyen, Yang Liu, Trung Le, Celso M de Melo, Flora D. SalimNeurIPS 2026

TL;DR

We usually think of "catastrophic forgetting" as a quirk of continual learning—when a neural network learns Task B and forgets Task A. This paper argues that forgetting actually happens at every single optimization step during standard training, whenever loud majority-data gradients drown out quiet minority-data signals. The authors introduce FOGO, an optimizer with a compact "directional memory" that stops updates from stepping on previously learned knowledge, improving both everyday pretraining and sequential continual learning without needing to hoard old training data.

What Problem Does This Paper Address?

Imagine trying to hold a quiet conversation at a loud concert. In standard mini-batch training, frequent or dominant patterns act like the loudspeakers: their gradients dominate the optimizer's momentum, actively overwriting the subtle parameter updates needed for rare, underrepresented data.

In balanced, shuffled datasets, you barely notice this short-term forgetting because the rare data comes back around in a later batch to repair the damage. Under class imbalance, however, rare classes stay suppressed. And when old data never comes back—the classic continual learning setup—those tiny step-by-step erasures compound into long-term catastrophic forgetting.

Figure 1: Short-term forgetting under class imbalance (CIFAR-10, ResNet-18, 5 rare classes at 10% data). (a) Dominant and rare gradients maintain negative cosine similarity throughout training. (b) The combined update initially aligns with the dominant group; after dominant loss saturates (∼step 200), the bias reverses. (c) Per-step change in validation loss on a held-out probe. While the update serves the dominant group, each step raises the rare group’s loss, by up to +0.10, as Corollary 2 predicts.

Existing anti-forgetting methods either store raw past examples (replay buffers, which eat up memory and raise privacy issues) or compute massive, full-dimensional gradient subspaces that buckle under billion-parameter models. Meanwhile, modern matrix-aware optimizers like Muon flatten out dominant gradient directions at the current step, but have amnesia across time—once a useful direction fades from momentum, Muon cannot protect it.

Methods

FOGO (Forgetting-aware Orthogonalization Optimizer) builds directly on Muon's foundation and adds a lightweight, geometry-preserving memory right inside the optimizer. Here is how a step works:

  1. Dual-Stream Orthogonalization: Instead of one momentum buffer, FOGO tracks a slow stream (persistent trends) and a fast stream (emerging signals). Like Muon, it flattens their singular value spectra via Newton–Schulz iterations so high-energy directions don't monopolize the step.
  2. Random Projection & Fusion: Operating in full parameter space is way too expensive. Using a Johnson–Lindenstrauss random projection, FOGO squashes the layer updates into a tiny $d$-dimensional space where angles and distances stay approximately intact, then fuses the slow and fast streams.
  3. Codebook Memory & Conflict Filtering: FOGO maintains a spherical codebook of centroids representing recurring update directions:
  4. Short-term filtering: If the current update clashes with (points opposite to) online centroids, the conflicting component is subtracted out. Over-aligned components are gently deflated to encourage exploration.
  5. Long-term protection: When a task finishes, important centroids are frozen. Future updates are forced to stay nearly orthogonal to them. (For strict replay-free task sequences, FOGO offers a full-capacity variant that tracks second-order update covariance instead of projections.)
  6. Proximal Lift: Because random projections aren't invertible, FOGO solves a quick proximal least-squares problem to map the cleaned-up, low-dimensional adjustment back into full parameter space before updating the weights.

Datasets

  • Controlled Class-Imbalanced CIFAR-10 (Newly Introduced Setup): Standard CIFAR-10 modified so five "rare" classes retain only 10% of their training samples, specifically designed to isolate and measure per-step short-term forgetting.
  • PACS: Visual domain-incremental learning across four domains (Photo, Art Painting, Cartoon, Sketch).
  • Split CIFAR-10 & Split CIFAR-100: Standard class-incremental (5 tasks) and replay-free task-incremental (10 tasks) benchmarks.
  • Continual VisualQA (VQA v2): Multimodal continual fine-tuning across 10 sequential reasoning tasks (200K images, 1.1M questions).
  • OpenWebText: Standard unsupervised language model pretraining from scratch (~49.2B tokens).

Key Insights and Ideas

  • Standard training and continual learning are two timescales of the same bug: Forgetting isn't triggered magically by "task boundaries." Even exact full-batch gradient descent can increase loss on a rare subgroup in a single step if majority and minority gradients mildly conflict.
  • You don't need labels to spot "useful" directions: How does FOGO tell a weak, rare-class signal apart from random mini-batch noise? Persistence. Noise averages out in exponential moving averages, whereas a rare but genuine signal keeps nudging the same direction across steps, forming a stable centroid in the codebook.
  • Tiny optimizer memory beats big data buffers: By compressing gradient geometry via random projections, FOGO's memory size doesn't scale with parameter dimension—letting a fraction of a megabyte of centroids outperform puluhan-megabyte image replay buffers.

Key Results

On class-imbalanced CIFAR-10, FOGO boosts both rare and non-rare accuracy while cutting rare-class forgetting compared to Adam and Muon.

On class-imbalanced CIFAR-10, FOGO boosts both rare and non-rare accuracy while cutting rare-class forgetting compared to Adam and Muon.
  • Class-Imbalanced CIFAR-10: FOGO improves both rare- and majority-class accuracy by ~2–3 percentage points over Adam and Muon, while cutting rare-class forgetting by ~6 points.
  • Domain-Incremental Learning (PACS): Without replay, FOGO uses just 0.55 MB of centroid memory to reach 87.89% average performance (AP) and 6.77% average forgetting (AF)—beating Adam with a 57.4 MB replay buffer (87.50% AP, 9.81% AF).
  • Task-Incremental CIFAR-100: FOGO's second-order variant hits 72.05% accuracy vs. 70.67% for GPM at comparable memory (~13.5 MB vs. 12.9 MB) with zero stored data samples.
  • LLaVA-1.5-7B Fine-Tuning (VQA v2): Paired with LoRAMoE, FOGO boosts average accuracy by ~2 points (62.50%) over AdamW, Muon, and CL-MoE, while slashing total forgetting from ~17–18 points down to 7.14.
  • GPT-2 (125M) Pretraining: FOGO converges noticeably faster than both Adam and Muon across the first 30K steps on OpenWebText, proving directional memory helps standard pretraining too.

Limitations and Future Work

  • Task Boundaries for Long-Term Memory: Freezing centroids or Basis eigenvectors for long-term protection currently relies on knowing when a task ends. Extending long-term protection to completely boundary-free continual streams is left for future work.
  • Fixed Codebook Sizing: The number of centroids is currently fixed as a hyperparameter; the authors suggest adaptive codebook sizing and dynamic centroid management as natural next steps.
  • Modest Compute Overhead: Maintaining dual streams, projections, and codebook lookups adds a small wall-clock cost (e.g., 9.84 minutes vs. 8.15 minutes for Muon on PACS).

Summary updated

Abstract

We argue that forgetting is not confined to continual learning but is a general optimization phenomenon: during standard training, dominant mini-batch gradients suppress rare but useful update directions, causing short-term forgetting at every step. When such knowledge is never revisited, these losses compound into long-term forgetting, the classical failure mode of continual learning. We introduce FOGO, a scalable optimizer that continuously detects and resolves gradient interference across both regimes. FOGO spectrally orthogonalizes momentum updates to prevent dominant directions from monopolizing optimization, then stores representative past directions in a compact codebook memory built on random projection, where pairwise distances are approximately preserved in a low-dimensional space. At each step, it resolves conflicts between the current update and the stored directions with a lightweight orthogonal correction and lifts the result back through a proximal step, with minimal overhead and without storing raw data. For replay-free task sequences, the same update stream can also be summarized by its second-order statistics, giving a full-capacity variant that outperforms a strong gradient-projection baseline at comparable memory, without storing any sample. Across class-imbalanced classification, continual visual learning under domain and class shifts, continual fine-tuning of LLaVA-7B, and GPT-2 pre-training, FOGO consistently improves convergence and knowledge retention over Adam and Muon.
BibTeX
@inproceedings{nguyen2026fogo,
  author = {Toan Nguyen and Yang Liu and Trung Le and Celso M de Melo and Flora D. Salim},
  title = {{FOGO: Forgetting-aware Orthogonalization Optimizer}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=QBkoiaQrV0},
}
Figure