FOGO: Forgetting-aware Orthogonalization Optimizer
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.