Robust Image Ordinal Regression with Controllable Image Generation

Yi Cheng, Haochao Ying, Renjun Hu, Jinhong Wang, Wenhao Zheng, Xiao Zhang, Danny Z. Chen, Jian Wu

Abstract

Ordinal regression is a critical task in computer vision where labels follow a natural, numerical order, such as age estimation or disease grading. However, standard models often struggle with class imbalance and the subjective, "fuzzy" boundaries between adjacent categories. This paper introduces Controllable Image Generation (CIG), a plug-and-play framework designed to enhance model robustness. CIG synthetically generates "boundary samples" by blending the structural layout of one image with the categorical features of an adjacent class. By populating these ambiguous decision regions and utilizing an inverse-ratio sampler to address data scarcity, CIG achieves state-of-the-art performance, particularly on rare minority classes.

Introduction

In real-world ordinal regression tasks, two major hurdles frequently degrade performance. First, class imbalance is prevalent; for instance, in medical datasets, "severe" cases may represent less than 1% of the data. Second, category overlap creates ambiguity, as the distinction between labels like "Mild" and "Moderate" is often subjective.

Conceptual overview of CIG generating boundary samples to refine decision boundaries between ordinal classes.

Existing methods typically focus on preserving numerical order but ignore these distribution issues. This leads to models that perform well on average cases but fail on critical, rare categories. The CIG framework addresses this by generating hard examples that sit precisely on the decision boundaries, forcing the classifier to learn more granular distinctions.

The CIG Framework

The authors propose a "separation-fusion-generation" pipeline to create high-quality synthetic training data that clarifies these boundaries.

The CIG architecture featuring the separation-fusion-generation pipeline and associated loss functions.

Separation and Fusion

The model employs an encoder to decouple an image into two latent representations: Structural information (layout and shape) and Categorical information (class-defining features). To create a boundary sample, the system takes the structure of a "Main" image from Class $A$ and fuses it with the categorical features of a "Reference" image from an adjacent Class $B$.

Controllable Generation

A generator (such as a UNet or a Masked Autoencoder decoder) transforms this fused representation back into a synthetic image. This image retains the "bones" of Class $A$ but adopts the "soul" of Class $B$, serving as an ideal training example for the boundary between the two. To maintain quality, the framework utilizes three specific losses: SSIM for structural consistency, Categorical Similarity for class fidelity, and a standard Reconstruction Loss.

Smart Sampling

To combat imbalance, the framework uses an inverse-ratio sampler. This mechanism intentionally selects minority classes more frequently during the generation process, effectively balancing the training set with high-utility synthetic samples.

Experimental Evaluation

The CIG framework was evaluated across three diverse and imbalanced benchmarks:

  • Adience: Face images for age estimation (8 categories).
  • Diabetic Retinopathy (DR): Clinical fundus images for eye disease grading (5 categories).
  • Aesthetics: Flickr images rated for photographic quality (5 categories), where the "Exceptional" category accounts for only 0.2% of the data.

Results and Insights

The CIG-PVT (Pyramid Vision Transformer) variant established new state-of-the-art (SOTA) results across all tested benchmarks:

  • Enhanced Accuracy: Absolute classification accuracy improved by up to 1.8% on the Adience dataset.
  • Minority Robustness: The most significant gains occurred in rare classes, with accuracy increases of 4.5% (Adience), 5.5% (DR), and 8.9% (Aesthetics) over previous best-in-class methods.
  • Error Reduction: The Mean Absolute Error (MAE) consistently dropped, indicating that even when the model's predictions were incorrect, they were numerically closer to the ground truth.

Key insights from the study suggest that "hard" synthetic examples are superior to simple oversampling. By decoupling structure from category, the model learns to ignore background noise and focus exclusively on class-relevant features.

Conclusion

CIG offers a flexible, plug-and-play strategy for improving ordinal regression. While it introduces additional complexity—requiring a two-stage training approach to optimize the generator—the resulting gains in minority class robustness are substantial. Future research may focus on streamlining the generation process or extending this boundary-seeking approach to video and 3D medical imaging data.

Summary updated

BibTeX
@inproceedings{cheng2023robust,
  author = {Yi Cheng and Haochao Ying and Renjun Hu and Jinhong Wang and Wenhao Zheng and Xiao Zhang and Danny Z. Chen and Jian Wu},
  title = {{Robust Image Ordinal Regression with Controllable Image Generation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/70},
}
Figure