On Learning the Geodesic Path for Incremental Learning

Christian Simon, Piotr Koniusz, Mehrtash Harandi · DOI

Abstract

Incremental Learning (IL) often suffers from catastrophic forgetting, where neural networks lose knowledge of previous tasks when learning new ones. This paper introduces GeoDL (Geodesic Distillation Loss), a novel technique that models the transition between old and new models as a path on a geometric manifold. By distilling knowledge along the shortest path (geodesic) on a Grassmann manifold, GeoDL maintains a superior balance between stability and plasticity, achieving state-of-the-art results on major benchmarks.

Introduction

In standard deep learning, models are typically trained on a static dataset. However, real-world applications often require Incremental Learning (IL), where a model must learn new classes sequentially. The primary challenge in IL is catastrophic forgetting: as weights are updated for new data, the representations necessary for old tasks are effectively overwritten.

Existing solutions often employ Knowledge Distillation, penalizing the model if its outputs or internal features deviate too significantly from the "old" version of itself. However, common metrics like Euclidean distance or Cosine similarity treat the feature space as a flat plane. This paper argues that such "rigid" metrics fail to capture the underlying manifold structure of the data, leading to sub-optimal retention of past knowledge.

Methodology: Geodesic Distillation Loss (GeoDL)

The core contribution of this work is the shift from point-to-point comparison to path-based distillation. Instead of simply comparing the old and new models at discrete time steps, the authors represent feature spaces as subspaces on a Grassmann manifold.

Conceptual overview of GeoDL, illustrating the transition between old and current model feature spaces as a geodesic path on a Grassmann manifold.

The Geodesic Path

A geodesic is the shortest path between two points on a curved surface. In GeoDL, the "points" are the subspaces defined by the old and current models. By calculating the geodesic path between these subspaces, the model can "walk" gradually from the old state to the new one.

Distillation along the Flow

Unlike previous methods that only enforce consistency at the endpoints, GeoDL enforces consistency along the entire "flow" of the geodesic. This provides a more natural regularization that respects the geometry of the feature representations. To ensure this remains computationally feasible, the authors derived a closed-form solution using a matrix $Q$, avoiding the need to explicitly compute every intermediate step during backpropagation.

Comparative Analysis

GeoDL represents an evolution of distillation techniques. While earlier methods like Learning without Forgetting (LwF) focused on output predictions and LUCIR focused on feature vectors, GeoDL incorporates the geometric relationship between these states.

Comparison of distillation strategies: LwF uses predictions, LUCIR uses feature vectors, and GeoDL utilizes feature projections along the geodesic path.

As shown in the comparison above, GeoDL's use of the Grassmann manifold allows for a more flexible and geometrically-aware distillation process compared to the "straight-line" approaches of its predecessors.

Experimental Results

The authors evaluated GeoDL on CIFAR-100 and ImageNet (both subset and full versions). Key findings include:

  • State-of-the-Art Accuracy: On CIFAR-100 (10-task split), GeoDL combined with LUCIR achieved 65.03% average accuracy, a significant improvement over LUCIR's baseline of 60.14%.
  • Reduced Forgetting: The method significantly lowered the "Forgetting Rate." On ImageNet-subset, GeoDL reduced forgetting to 13.78%, outperforming the previous best of 17.40%.
  • Scalability: The method maintained its performance gains on the full 1000-class ImageNet dataset, demonstrating its robustness for large-scale applications.

Discussion and Limitations

While GeoDL offers superior performance, it introduces some computational overhead. The use of Singular Value Decomposition (SVD) and matrix operations makes training approximately 1.3x to 1.4x slower per iteration. Additionally, it requires slightly more GPU memory (~2.4GB vs ~1.7GB) to store the manifold-related tensors. Despite these costs, the significant gains in accuracy and knowledge retention make it a compelling choice for complex incremental learning scenarios.

Conclusion

GeoDL demonstrates that the geometry of the feature space is a critical factor in preventing catastrophic forgetting. By moving beyond simple Euclidean distances and embracing the manifold structure of neural representations, researchers can create models that learn more like humans—gradually and without erasing the past.

Summary updated

BibTeX
@inproceedings{simon2021learning,
  author = {Christian Simon and Piotr Koniusz and Mehrtash Harandi},
  title = {{On Learning the Geodesic Path for Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00164},
}
Figure