Hierarchical Invariance for Robust and Interpretable Vision Tasks at Larger Scales

Shuren Qi, Yushu Zhang, Chao Wang, Zhihua Xia, Jian Weng, Xiaochun CaoarXiv 2024 · DOI · arXiv

Introduction

Modern computer vision is currently characterized by a "trustworthiness gap." While Convolutional Neural Networks (CNNs) demonstrate exceptional discriminative power, they often function as "black boxes" that lack inherent robustness to geometric distortions such as rotation and scaling. Conversely, classical hand-crafted invariant features (e.g., SIFT) offer mathematical guarantees and interpretability but struggle with the complexity of large-scale datasets. This research introduces Hierarchical Invariant Representation (HIR), a framework designed to bridge this gap by combining the discriminative capabilities of deep learning with the rigorous foundations of invariant theory.

Methodology: The HIR Framework

The authors propose a structured "blueprint" for hierarchical invariance, reimagining standard neural network modules through group theory and moment invariants. The architecture is composed of four primary layers:

  1. Convolutional Layer: Utilizes basis functions like Polar Cosine Transforms to capture local features. These are "covariant," meaning their responses transform predictably with the input.
  2. Nonlinear Layer: Employs a magnitude operation to stabilize the representation against rotations and flips, converting phase-shifting covariance into equivariance.
  3. Local Pooling Layer: Preserves essential spatial relationships within the feature maps.
  4. Invariant Layer: Performs a global mapping to produce a final feature vector that is invariant to a specific symmetry group (e.g., translation, rotation, and scaling).
The HIR architecture pipeline, illustrating the transition from covariance to invariance across hierarchical layers.

Continuous Equivariance and Data Adaptability

Unlike many existing equivariant networks that rely on discrete sampling of orientations, HIR leverages continuous basis functions. This approach enables "one-shot" invariance, avoiding the high computational costs associated with parallel orientation branches. To ensure high performance across varied tasks, the framework employs a strategy similar to Neural Architecture Search (NAS). It constructs an "over-complete" tree of potential invariant features and adaptively selects the most discriminative paths for the specific application.

The hierarchical tree structure used for selecting discriminative invariant features across different levels (l=0 to l=3).

Experimental Evaluation

The HIR framework was evaluated across several domains to test its robustness and scalability:

  • Geometric Robustness: On a digit benchmark with random rotations, standard CNNs saw F1 scores drop to ~33%, while HIR maintained a stable ~95% without rotation-based data augmentation.
  • Large-Scale Classification: In parasite classification, HIR achieved a 90.1% F1 score, significantly outperforming Scattering Networks (67.5%) and remaining competitive with transfer-learned VGGNets.
  • Digital Forensics: HIR proved highly effective in detecting AI-generated content (AIGC), achieving an average F1 score of 98.6% across eight different generators, particularly excelling in scenarios with limited training data.

Discussion and Conclusion

HIR provides interpretability by design; every layer is mathematically linked to geometric properties, allowing for clear explanations of model behavior. While the current implementation faces some challenges with perfect scale invariance due to discrete numerical sampling, it offers a more efficient and compact alternative to orientation-sampling networks. Future work may explore hybrid models that combine the robust geometric foundation of HIR with learnable deeper layers to further enhance performance on complex tasks.

Summary updated

Abstract

Developing robust and interpretable vision systems is a crucial step towards trustworthy artificial intelligence. In this regard, a promising paradigm considers embedding task-required invariant structures, e.g., geometric invariance, in the fundamental image representation. However, such invariant representations typically exhibit limited discriminability, limiting their applications in larger-scale trustworthy vision tasks. For this open problem, we conduct a systematic investigation of hierarchical invariance, exploring this topic from theoretical, practical, and application perspectives. At the theoretical level, we show how to construct over-complete invariants with a Convolutional Neural Networks (CNN)-like hierarchical architecture yet in a fully interpretable manner. The general blueprint, specific definitions, invariant properties, and numerical implementations are provided. At the practical level, we discuss how to customize this theoretical framework into a given task. With the over-completeness, discriminative features w.r.t. the task can be adaptively formed in a Neural Architecture Search (NAS)-like manner. We demonstrate the above arguments with accuracy, invariance, and efficiency results on texture, digit, and parasite classification experiments. Furthermore, at the application level, our representations are explored in real-world forensics tasks on adversarial perturbations and Artificial Intelligence Generated Content (AIGC). Such applications reveal that the proposed strategy not only realizes the theoretically promised invariance, but also exhibits competitive discriminability even in the era of deep learning. For robust and interpretable vision tasks at larger scales, hierarchical invariant representation can be considered as an effective alternative to traditional CNN and invariants.
BibTeX
@misc{qi2024hierarchical,
  author = {Shuren Qi and Yushu Zhang and Chao Wang and Zhihua Xia and Jian Weng and Xiaochun Cao},
  title = {{Hierarchical Invariance for Robust and Interpretable Vision Tasks at Larger Scales}},
  year = {2024},
  eprint = {2402.15430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.15430},
}
Figure