Grassmannian learning mutual subspace method for image set recognition

Lincon S. Souza, Naoya Sogi, Bernardo B. Gatto, Takumi Kobayashi, Kazuhiro FukuiarXiv 2021

TL;DR

The authors introduce the Grassmannian Learning Mutual Subspace Method (G-LMSM), a novel neural network layer that treats image sets as low-dimensional linear subspaces. By optimizing class reference subspaces directly on the Grassmann manifold using Riemannian stochastic gradient descent, G-LMSM integrates seamlessly with CNN backbones to enable stable, end-to-end learning for image set recognition.

What Problem Does This Paper Address?

Standard convolutional neural networks (CNNs) excel at classifying single images, but they struggle to effectively process sets of images (such as video frames or multi-camera feeds) as a single cohesive input. Typically, deep learning frameworks handle image sets using naive heuristics like averaging the feature vectors or taking a majority vote across frames. These approaches completely ignore the variance and underlying geometric distribution of the set.

While classic computer vision relies on "subspace methods" to model image sets as low-dimensional linear subspaces, these methods have historically been decoupled from deep learning. Integrating them into modern neural networks is challenging because standard gradient descent (in Euclidean space) breaks the strict mathematical constraints required to keep subspace bases orthogonal, leading to unstable training or requiring slow, ad-hoc mathematical corrections.

Methods

The authors bridge this gap by reformulating classic subspace learning (specifically Oja's rule) into a differentiable gradient update layer that can sit on top of any standard CNN backbone.

The core pipeline operates as follows:

  1. Subspace Generation: An input image set is passed through a CNN backbone, and noncentered Principal Component Analysis (PCA) is used to compress the features into a low-dimensional input subspace.
  2. Subspace Matching: The similarity between this input subspace and learned class reference subspaces is calculated using canonical angles (implemented efficiently via a matrix trace operation).
  3. Manifold Optimization: To train the network, the authors propose two variants:
  4. LMSM: Updates reference subspaces using standard Euclidean Stochastic Gradient Descent (SGD), utilizing a pseudoinverse trick to handle non-orthogonal bases.
  5. G-LMSM: Optimizes reference subspaces directly on the Grassmann manifold (the mathematical space of linear subspaces) using Riemannian Stochastic Gradient Descent (RSGD). This ensures that the reference bases remain perfectly orthogonal at every step along a geodesic path, eliminating the need for computationally expensive post-processing like Singular Value Decomposition (SVD).
Fig. 1: Diagram of the proposed method embedded as a layer in an end-to-end learning framework.

Additionally, the authors introduce a repulsion loss to force different class subspaces to mutually repel each other during training, preventing overlap and improving class separation.

Datasets

The method was evaluated on three distinct image set recognition tasks:

  • Tsukuba Hand Shape Dataset: 30 hand shape classes captured from 7 different camera viewpoints, used primarily for ablation studies.
  • Acted Facial Expression in Wild (AFEW): A challenging real-world dataset containing 1,345 video sequences of 7 different facial expressions.
  • YouTube Celebrities (YTC): A large-scale face identification dataset containing 1,910 video clips of 47 identities.

No new datasets were introduced in this work.

Key Insights and Ideas

  • Manifold Awareness Matters: Directly optimizing on the Grassmann manifold (G-LMSM) consistently yields higher accuracy and more stable convergence than optimizing in unconstrained Euclidean space (LMSM).
  • End-to-End Synergy: Making the subspace matching layer fully differentiable allows the network to backpropagate errors all the way through to the CNN backbone. This means the backbone learns to extract features specifically optimized to form clean, discriminative subspaces.
  • Compact and Frame-Agnostic: Representing an image set as a subspace provides a compact representation of fixed dimensionality, regardless of whether the input set contains 5 frames or 500 frames.

Key Results

  • Hand Shape Recognition: On the Tsukuba dataset, G-LMSM paired with a VGG4 backbone achieved an accuracy of 99.39%, outperforming standard LMSM (98.72%) and a traditional feature-averaging baseline (97.54%).
  • Facial Emotion Recognition: On the AFEW dataset, G-LMSM achieved 38.27% accuracy, outperforming state-of-the-art manifold networks like SPDNet (34.23%) and GrNet (34.23%) while utilizing a significantly simpler architecture with fewer layers and no heavy matrix decompositions.
  • Face Identification: On the YouTube Celebrities dataset, G-LMSM reached 71.09% accuracy, handily beating standard ResNet voting heuristics (64.18%) and classic set-based distances like DCC (51.42%).

Limitations and Future Work

  • Sensitivity to Subspace Dimension: The performance of G-LMSM drops sharply if the chosen subspace dimensions are too low (e.g., less than 3), as low-dimensional spaces cannot adequately capture complex physical variations like hand deformations or dramatic pose changes.
  • Overfitting in Downstream Layers: When G-LMSM is used purely as a feature extractor followed by a fully connected (FC) layer, it occasionally underperforms compared to its use as a standalone classifier, suggesting that the subsequent FC layers are prone to overfitting the abstract subspace representations.
  • Future Directions: The authors suggest exploring how this framework can be adapted to handle even more complex, non-linear manifold structures or optimizing the backbone architectures specifically for manifold-constrained classification.

Summary updated

BibTeX
@misc{souza2021grassmannian,
  author = {Lincon S. Souza and Naoya Sogi and Bernardo B. Gatto and Takumi Kobayashi and Kazuhiro Fukui},
  title = {{Grassmannian learning mutual subspace method for image set recognition}},
  year = {2021},
  eprint = {2111.04352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.04352},
}
Figure