FOGO: Forgetting-aware Orthogonalization Optimizer

Toan Nguyen1,2, Yang Liu1, Trung Le3, Celso De Melo4, Flora D. Salim1,2
1UNSW Sydney, Australia   2DataCruiser, Australia   3Monash University, Australia
4DEVCOM Army Research Laboratory, USA
NeurIPS 2026 · Poster #S4726, Hall 1–4 · Tue 8 Dec, 10:00 AM – 1:00 PM AEDT
Update flow of Muon and FOGO

Update flow of Muon and FOGO. (a) Orthogonalized momentum, shared with Muon; FOGO keeps a slow and a fast stream. (b) Correction in a random projected space, followed by a proximal lift back to the weights. (c) Directional memory: an online codebook, with centroids frozen at task boundaries.

Overview

Standard training and continual learning have largely been studied as separate problems, with their own benchmarks, methods and metrics. We take a step toward unifying them. In both, forgetting comes from interference between new updates and existing knowledge: in standard training, gradients dominated by frequent data suppress rare but useful directions at every step (short-term forgetting), and when this knowledge is not revisited, the losses accumulate into the long-term forgetting of continual learning.

FOGO addresses both regimes with one update rule. It extends Muon's orthogonalized momentum with a compact directional memory, a codebook of update directions kept in a random low-dimensional projection, and uses it to correct conflicting updates at every step and to protect important directions at task boundaries. It stores no data. We evaluate it on class-imbalanced classification, domain-, class- and task-incremental learning, continual fine-tuning of LLaVA-1.5-7B, and GPT-2 pretraining.

−59%
forgetting compared with Muon, LLaVA-1.5-7B on 10 VQA tasks
72.05
Task-IL accuracy on CIFAR-100 (GPM: 70.67)
0.55 MB
memory without replay on PACS, ahead of Adam with a 57.4 MB buffer
≈ 6 pts
less rare-class forgetting on imbalanced CIFAR-10

Video

A two-minute walkthrough (no sound): short-term forgetting in standard training, its link to long-term forgetting, how FOGO corrects updates with a directional memory, and the main results.


Demo

CIFAR-100 in ten tasks, learned in sequence by AlexNet without replay (GPM's protocol). The slider sets how many tasks have been learned. Each bar is the current accuracy on a task; the dark tick is its accuracy right after it was learned. GPM barely forgets but learns each new task less well. FOGO learns them better and forgets a little, which gives the higher average. Data from the eight runs in the repository.

FOGO GPM
Average accuracy over tasks seen
Accuracy right after learning each task
Average drop since each task was learned
Memory used by the method

The y-axis starts at 40%. Memory: FOGO's second-order basis and codebook; GPM's basis.

Short-term forgetting in standard training

Short-term forgetting on class-imbalanced CIFAR-10

Class-imbalanced CIFAR-10, ResNet-18, five rare classes at 10% of their data. (a) The gradients of the frequent and rare groups keep a negative cosine similarity throughout training. (b) The combined update first aligns with the frequent group, until the frequent-class loss saturates (around step 200). (c) Meanwhile, each step raises the rare-group loss on a held-out probe by up to 0.10.

In balanced training, random batching revisits every class within a few steps, so the loss increase caused by a single update is undone almost immediately and is hard to observe. This is why short-term forgetting has been overlooked. Under class imbalance, rare data return less often and the damage persists. In a sequence of tasks, data from earlier tasks do not return at all, and the same mechanism accumulates into long-term forgetting (Corollary 3).

Orthogonalization-based optimizers such as Muon flatten the singular spectrum of the momentum, so that a few high-energy modes cannot dominate the update. They leave its singular subspaces unchanged, however: a direction that has decayed out of the momentum cannot be recovered, and weak noise modes are amplified together with weak useful ones (Proposition 6). Protecting past directions therefore requires a state outside the momentum. Continual-learning methods keep such a state as stored samples (GEM), gradient directions (OGD) or representation bases (GPM), but these memories are tied to task boundaries, and storing raw gradients is infeasible at the scale of modern models.

FOGO keeps this state in a random low-dimensional space, where a Rademacher projection preserves the angles between update rows with high probability (Johnson–Lindenstrauss). A codebook in this space identifies useful directions without labels: a direction that recurs coherently across steps forms a stable centroid even when it is weak in every batch, while isolated noise averages out.

Gradient geometry before and after random projection

Random projection of gradient rows (class-imbalanced CIFAR-10, \( d = 128 \)). Pairwise cosines keep a Pearson correlation above 0.9 with their original values and keep their sign about 89% of the time (50% at random), with nearly identical fidelity for frequent and rare classes.


Results

AP ↑: average accuracy after the last task  ·  AF / SF ↓: average / summed forgetting  ·  best second best. We ran all baselines ourselves with the same setup.

Class-imbalanced CIFAR-10 and CIFAR-100

ResNet-18 from scratch, 50 epochs. On CIFAR-10, five classes keep 10% of their training images (ten seeds).

Class-imbalanced CIFAR-10

On CIFAR-10, FOGO raises both rare- and frequent-class accuracy by 2 to 3 points over Adam and Muon, and cuts rare-class forgetting by about 6 points.

CIFAR-100: classes 50 to 99 keep 10% of their images (five seeds, same settings)
OptimizerOverall acc. ↑Rare acc. ↑Rare forgetting ↓
Muon34.94 ± 0.4413.81 ± 0.482.57 ± 0.85
Adam39.18 ± 0.4319.44 ± 1.342.43 ± 0.77
FOGO (ours)40.60 ± 0.3620.03 ± 0.212.32 ± 0.69

Ablations and analysis

Component ablation on class-imbalanced CIFAR-10

Ablation on class-imbalanced CIFAR-10

FOGO without the slow–fast fusion (w/o FS), and without fusion and short-term filtering (w/o FS+ST). Rare-class forgetting grows with each removal. Ten seeds; shading is one standard deviation.


Code

Code for all experiments in the paper: github.com/cruiseresearchgroup/FOGO.

git clone https://github.com/cruiseresearchgroup/FOGO.git
cd FOGO
conda create -n fogo python=3.10 -y && conda activate fogo
pip install -r requirements.txt

# Task-IL on CIFAR-100, GPM protocol
cd continual_learning/task_il_cifar100
bash scripts/run_fogo.sh     # FOGO, seeds 0-3
bash scripts/run_gpm.sh      # GPM,  seeds 0-3

For incremental learning we suggest starting with Task-IL, which uses no replay or DER++, so differences come from the optimizer alone. The scripts use the hyperparameters reported in the paper. For a new model or dataset, \( \gamma_{lt} \) and \( \epsilon_{lt} \) are the first values to adjust.

BibTeX

@inproceedings{nguyen2026fogo,
  title     = {{FOGO}: Forgetting-aware Orthogonalization Optimizer},
  author    = {Nguyen, Toan and Liu, Yang and Le, Trung and De Melo, Celso and Salim, Flora D.},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
  year      = {2026}
}