An Optimal Transport-driven Approach for Cultivating Latent Space in Online Incremental Learning

Quyen Tran, Hai Nguyen, Quan Dao, Hoang Phan, Linh Van, Khoat Than, Dinh Phung, Dimitris Metaxas, Trung LeCVPR 2026

TL;DR

Online Class Incremental Learning (OCIL) struggles with complex, multimodal data streams because models typically rely on a single centroid per class or fixed representations that fail as features shift. This paper introduces OTC, a framework that leverages Optimal Transport theory to dynamically update multiple centroids per class via cheap gradient descent steps. Combined with a "Dynamic Preservation" loss, OTC significantly reduces catastrophic forgetting and achieves state-of-the-art accuracy on standard computer vision benchmarks.

What Problem Does This Paper Address?

In Online Class Incremental Learning (OCIL), a machine learning model must learn from a continuous stream of data where new classes appear over time, and old data cannot be revisited. The primary challenge is catastrophic forgetting—the tendency of neural networks to completely overwrite past knowledge when learning new information.

To represent classes in the model's latent space, previous approaches usually use either a single adaptive prototype (centroid) per class or multiple fixed centroids. However, real-world data is often multimodal (e.g., a single class like "dog" contains many distinct clusters or breeds). A single centroid fails to capture this complexity. On the other hand, keeping multiple centroids fixed fails because the underlying neural network backbone is constantly updating, causing a "feature shift" where old fixed centroids no longer align with newly projected features. Traditional methods like Gaussian Mixture Models (GMMs) use the Expectation-Maximization (EM) algorithm to update centroids, but EM requires multiple expensive iterations, making it ill-suited for real-time, online streaming data.

Methods

The authors propose OTC (Optimal Transport-driven Continual learning), which consists of two main pillars:

  1. MMOT (Mixture Model with Optimal Transport): Instead of using the traditional EM algorithm to fit a GMM, the authors leverage Optimal Transport (specifically, the Wasserstein distance). By employing the entropic dual-form of OT and the Gumbel-Softmax trick, they formulate an online optimization problem that updates the mixture model's parameters (means, variances, mixing proportions) using simple gradient descent steps directly on incoming mini-batches. This allows multiple centroids per class to evolve dynamically alongside the network backbone.
  2. Dynamic Preservation Strategy: To keep classes distinct over time, the authors introduce a loss function that utilizes the dynamically updated MMOT centroids. This loss pulls new latent representations closer to their corresponding class centroids while pushing different classes further apart, preserving class separability and preventing the latent space from collapsing.

Additionally, OTC optimizes Replay Memory Selection by storing samples that are closest to the MMOT centroids, ensuring the buffer holds the most representative data. During inference, it classifies unseen samples using the Mahalanobis distance to the closest Gaussian component of each class.

Figure 2. Overview of our framework OTC: (I) Firstly, we perform our MMOT to incrementally characterize each class with a mixture model and multiple centroids, over time. Specifically, our MMOT will map data representations in latent space with the corresponding GMM, which we need to learn for representing the data, in an online manner. Building on this, (II) we apply our Dynamic preservation with memory-buffer selection strategy to strengthen the representation learning of the Online Class Incremental learning model. Representations belonging to the same class will be pulled closer together, and conversely representations of different classes will be pushed further apart.

Datasets

The method was evaluated on four widely used benchmarks in continual learning:

  • MNIST (used primarily for t-SNE visualizations)
  • CIFAR-10
  • CIFAR-100
  • Tiny-ImageNet (a challenging 20-task setup)

Key Insights and Ideas

  • Bypassing EM with Optimal Transport: The core breakthrough is replacing the iterative EM algorithm with an OT-based formulation. This allows GMM parameter learning to be framed as a standard gradient descent problem, making it computationally viable for online, real-time data streams.
  • The Necessity of Multiple Adaptive Centroids: As shown via t-SNE visualizations, a single centroid cannot handle feature drift and multimodality simultaneously. Multiple centroids must adapt with the backbone to prevent a mismatch between training and testing representations.
Figure 1. Motivation of our method (t-SNE visualization on MNIST): Left: the test latent representation of with one adaptive centroid (i.e., visualized by digits) per class. Right: the test latent representation of our OTC with four adaptive centroids per class. The centroids are learned from training samples. Motivation: Based on insights from previous work [38] that identified a shift between the test and train representations, we found that using adaptive centroids is necessary to train the model in OCIL. However, using single-adaptive centroids for each classes like existing work [16, 27] is not enough because the incoming data stream of each class is naturally multimodal, which will limit model performance if these centroids are used in training and testing later. This motivate us to our multiple-adaptive centroids as a more advanced solution.
  • Buffer Efficiency: By selecting buffer samples based on their proximity to the dynamically tracked centroids, the quality and diversity of the episodic memory are significantly improved compared to random sampling.

Key Results

  • State-of-the-Art Accuracy: OTC consistently outperformed 9 competitive baselines (including CoPE, OCM, and BiC+AC). On the highly challenging Tiny-ImageNet dataset, OTC outperformed the closest baselines by up to 13% in Final Average Accuracy.
  • Robustness in Resource-Constrained Settings: The performance gains were most pronounced when the replay memory buffer ($M$) was smallest (e.g., $M=200$ for CIFAR-10), which is the most critical scenario for real-world deployment with limited resources.
  • Mitigating Forgetting: OTC achieved exceptionally low Final Forgetting Measures (FFM), demonstrating that the Dynamic Preservation loss successfully locks in past knowledge.
Figure 3. Average accuracy through tasks.

Limitations and Future Work

While the paper demonstrates strong performance, a few limitations and areas for future exploration are apparent:

  • Hyperparameter Sensitivity: The optimal number of centroids per class ($K$) depends heavily on the memory buffer size and dataset complexity. Exceeding a certain threshold of centroids can degrade performance if the memory buffer is too small to support them.
  • Computational Overhead of the Dual Form: Although cheaper than EM, the framework still requires updating an auxiliary Kantorovich network ($\phi$) a few times per batch, adding some computational complexity.
  • Dependence on Replay Buffers: While OTC optimizes buffer selection, it still fundamentally relies on an episodic replay memory buffer to mitigate forgetting, meaning it is not entirely rehearsal-free.

Summary updated

BibTeX
@inproceedings{tran2026optimal,
  author = {Quyen Tran and Hai Nguyen and Quan Dao and Hoang Phan and Linh Van and Khoat Than and Dinh Phung and Dimitris Metaxas and Trung Le},
  title = {{An Optimal Transport-driven Approach for Cultivating Latent Space in Online Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=rManlnrtBo},
}
Figure