Abstract
Fine-grained visual classification remains challenging due to subtle inter-class differences and significant intra-class variations. We solve this problem from the representation space perspective and propose Contrastive Decoupled Regularization (CoDeR), a module-level regularization method that guides representation learning using class prototypes as anchors without introducing any learnable parameters, steering hierarchical representations toward more discriminative directions. Specifically, for a target module Bi, we maintain an independent cache that collects the module’s outputs and corresponding class labels during each training epoch. At the end of each epoch, features are aggregated by class and mapped onto a hypersphere to compute cluster centers as class prototypes. In the next epoch, these prototypes guide updates in module Bi, pulling representations toward their ground-truth class prototypes and pushing them away from others. This strengthens inter-class separation in the representation space and directly addresses the core challenge of fine-grained recognition. Furthermore, we apply CoDeR in parallel across multiple modules to accelerate information propagation to earlier layers. This enables shallow layers to learn semantically meaningful representations earlier in training and mitigates the delayed representation update problem. Overall, CoDeR provides a simple, general, and effective supervised regularization mechanism that demonstrates the value of imposing constraints on high-dimensional representations. We conduct extensive experiments on ImageNet, six fundus medical imaging datasets, and two standard semi-supervised learning benchmarks. Consistent improvements across all settings validate the effectiveness and cross-domain applicability of our method.
Funding Information
  • National Natural Science Foundation of China (T2525004)
  • National Natural Science Foundation of China (62272298)
  • Noncommunicable Chronic Diseases–National Science and Technology Major Project (2023ZD0509202)
  • Noncommunicable Chronic Diseases–National Science and Technology Major Project (2023ZD0509201)
  • National Key Research and Development Program of China (2022YFC2407000)
  • Shanghai Municipal Science and Technology Major Project (2021SHZDZX0102)