Imbalance-Robust and Sampling-Efficient Continuous Conditional GANs via Adaptive Vicinity and Auxiliary Regularization

Xin Ding, Yun Chen, Yongwei Wang, Kao Zhang, Sen Zhang, Peibei Cao, Xiangxue Wang · DOI

Abstract

Continuous Conditional Generative Modeling (CCGM) aims to generate high-quality images conditioned on continuous variables such as age or camera angles. Traditional Conditional GANs (cGANs) often struggle with data imbalance and sparse labels in continuous spaces. This paper introduces CcGAN-AVAR, a framework that utilizes an adaptive vicinity mechanism and a multi-task discriminator with auxiliary regularization. The proposed method achieves image quality comparable to state-of-the-art diffusion models while offering inference speeds 300x to 2000x faster.

Introduction

Controlling specific attributes in generative AI—such as generating a face at a precise age or an object at a specific rotation—is known as Continuous Conditional Generative Modeling (CCGM). Standard cGANs typically treat labels as discrete categories, leading to failures when training data is imbalanced or missing for specific continuous values.

Previous "vicinity" approaches attempted to address this by training on samples near a target label, but they relied on fixed-size windows. Small windows lead to instability in sparse regions, while large windows sacrifice precision in dense regions. Conversely, Continuous Conditional Diffusion Models (CCDM) are robust but computationally expensive due to their iterative denoising process. This work seeks to combine the robustness of diffusion models with the efficiency of GANs.

Methodology

The CcGAN-AVAR framework introduces two core innovations to improve stability and precision in CCGM.

Adaptive Vicinity (SAV/HAV)

To solve the "Goldilocks" problem of fixed-window vicinity, the authors propose an adaptive mechanism. The search window for "nearby" training samples dynamically expands until a minimum number of effective samples ($N_{AV}$) is reached. In data-dense regions, the window remains narrow for high precision. In sparse regions, it expands to ensure training stability. Two variants are proposed: Soft Adaptive Vicinity (SAV) for smooth weighting and Hybrid Adaptive Vicinity (HAV) for a hard cutoff.

Comparison of vicinity strategies: Hard, Soft, and the proposed Adaptive Vicinity (Soft and Hybrid).

Multi-Task Discriminator and Auxiliary Regularization

The discriminator is enhanced with additional branches to guide the generator more effectively. A Regression Branch predicts the label of the input image, ensuring the generator adheres to the requested conditions. A Density Ratio Estimation (DRE) Branch estimates the alignment between generated and real distributions.

The generator is further constrained by two auxiliary penalties: a regression penalty to enforce label accuracy and an $f$-divergence penalty to match the overall real-world distribution. Using DRE allows the GAN to approximate the distributional matching strengths of diffusion models without the expensive iterative sampling process.

The CcGAN-AVAR training framework, highlighting the multi-task discriminator and auxiliary generator penalties.

Experiments and Results

The model was evaluated on benchmarks including RC-49 (chair rotation), UTKFace (age), and Steering Angle datasets. A new imbalanced variant, RC-49-I, was introduced to test performance under severe data scarcity (unimodal, bimodal, and trimodal distributions).

Key findings include:

  • Efficiency: CcGAN-AVAR generates images 300x to 2000x faster than CCDM.
  • Quality: The model consistently outperformed vanilla CcGANs and diffusion models on imbalanced datasets according to the Sliding Frechet Inception Distance (SFID) metric.
  • Precision: The auxiliary regression branch significantly improved label accuracy, particularly in high-resolution (256x256) settings where other models often drifted.

Conclusion

CcGAN-AVAR successfully addresses the limitations of continuous conditioning in GANs. By making the training vicinity adaptive and incorporating multi-task auxiliary losses, the framework achieves high-fidelity, label-consistent generation even in the presence of significant data imbalance. While training requires some heuristic tuning for the minimum sample count ($N_{AV}$), the resulting inference speed and quality make it a powerful alternative to diffusion-based models.

Summary updated

BibTeX
@misc{ding2025imbalance,
  author = {Xin Ding and Yun Chen and Yongwei Wang and Kao Zhang and Sen Zhang and Peibei Cao and Xiangxue Wang},
  title = {{Imbalance-Robust and Sampling-Efficient Continuous Conditional GANs via Adaptive Vicinity and Auxiliary Regularization}},
  year = {2025},
  eprint = {2508.01725},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01725},
}
Figure