ReDro: Efficiently Learning Large-Sized SPD Visual Representation

Saimunur Rahman, Lei Wang, Changming Sun, Luping ZhouECCV 2020

Abstract

Symmetric positive definite (SPD) matrix has recently been used as an effective visual representation. When learning this representation in deep networks, eigen-decomposition of covariance matrix is usually needed for a key step called matrix normalisation. This could result in significant computational cost, especially when facing the increasing number of channels in recent advanced deep networks. This work proposes a novel scheme called Relation Dropout (ReDro). It is inspired by the fact that eigen-decomposition of a block diagonal matrix can be efficiently obtained by decomposing each of its diagonal square matrices, which are of smaller sizes. Instead of using a full covariance matrix as in the literature, we generate a block diagonal one by randomly grouping the channels and only considering the covariance within the same group. We insert ReDro as an additional layer before the step of matrix normalisation and make its random grouping transparent to all subsequent layers. Additionally, we can view the ReDro scheme as a dropout-like regularisation, which drops the channel relationship across groups. As experimentally demonstrated, for the SPD methods typically involving the matrix normalisation step, ReDro can effectively help them reduce computational cost in learning large-sized SPD visual representation and also help to improve image recognition performance.

1. Introduction

In the quest for superior visual representations, researchers have increasingly turned to Symmetric Positive Definite (SPD) matrices—specifically covariance matrices—to capture complex, second-order relationships between image features. While these representations excel at tasks like fine-grained image recognition, they come with a heavy "computational tax." To make these matrices useful for a neural network, they must undergo matrix normalization (e.g., matrix logarithm or square root), which requires eigen-decomposition. This operation has a computational complexity of $O(d^3)$, which becomes a massive bottleneck as modern architectures move toward higher channel counts ($d=1024$ or $2048$).

2. The Relation Dropout (ReDro) Framework

We introduce Relation Dropout (ReDro), a scheme designed to dodge this computational tax while improving model performance. ReDro is inspired by a fundamental property of linear algebra: the eigen-decomposition of a block-diagonal matrix is simply the collection of the eigen-decompositions of its smaller diagonal blocks.

Overview of the ReDro framework integrated into a standard CNN pipeline.

2.1 Methodology

The ReDro workflow consists of four primary stages:

  1. Random Partitioning: At each training step, the $d$ feature channels are randomly permuted and divided into $k$ mutually exclusive groups.
  2. Block-Diagonal Approximation: Instead of a full $d \times d$ covariance matrix, the model only computes the covariance within each group. This effectively "drops" the relationships (correlations) between channels in different groups, creating a block-diagonal matrix.
  3. Efficient Decomposition: Eigen-decomposition is performed on the $k$ smaller matrices (each of size $d/k \times d/k$). This reduces theoretical complexity from $O(d^3)$ to $O(d^3/k^2)$.
  4. Transparency: The resulting eigenvectors are permuted back to their original channel order, making the entire operation transparent to subsequent layers.
Detailed workflow of the ReDro module showing the grouping and block-diagonal computation.

2.2 Regularization and Stability

Much like standard Dropout prevents neurons from co-adapting, ReDro prevents the network from over-relying on specific inter-channel correlations. This forced "forgetting" of cross-group relationships acts as a regularizer that helps the model generalize better. The authors found that refreshing the random grouping at the "epoch-level" or "batch-level" provided the best balance between regularization and convergence stability.

3. Experimental Results

The researchers evaluated ReDro on benchmarks including MIT Indoor, CUB-200-2011 (Birds), FGVC-Aircraft, and Stanford Cars.

  • Efficiency: For large $1024 \times 1024$ matrices, ReDro was 20% to 50% more efficient than standard full-covariance methods. On the Birds dataset, total training time was slashed from 52.4 hours to 24.3 hours.
  • Accuracy Boost: Despite approximating the covariance, ReDro consistently improved accuracy, achieving a 4.8% improvement on the Cars dataset compared to the baseline.
  • Faster Convergence: Models using ReDro reached peak accuracy in roughly half the number of epochs required by standard models. The study found that $k=4$ is often the "sweet spot" for balancing speed and relational information.

4. Conclusion

ReDro provides a scalable solution for learning large-sized SPD visual representations. By approximating large covariance matrices as block-diagonal structures, it significantly reduces the computational burden of matrix normalization while serving as a powerful regularizer that enhances recognition performance and accelerates convergence.

Summary updated

BibTeX
@inproceedings{rahman2020redro,
  author = {Saimunur Rahman and Lei Wang and Changming Sun and Luping Zhou},
  title = {{ReDro: Efficiently Learning Large-Sized SPD Visual Representation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=VNqRQ1bggj},
}
Figure