CARINOX: Inference-time Scaling with Category-Aware Reward-based Initial Noise Optimization and Exploration

Seyed Amir Kasaei, Ali Aghayari, Arash Mari Oriyad, Niki Sepasian, Shayan Baghayi Nejad, MohammadAmin Fazli, Mahdieh Soleymani Baghshah, Mohammad Hossein Rohban · DOI

Introduction

Text-to-image (T2I) diffusion models have revolutionized visual content generation. However, even state-of-the-art models like Stable Diffusion XL and DALL-E 3 often struggle with complex, multi-entity prompts. These "compositional failures" manifest as omitted objects, misattributed properties, or incorrect spatial and numerical arrangements. CARINOX (Category-Aware Reward-based Initial Noise Optimization and EXploration) is a novel framework designed to address these issues at inference time without requiring expensive model fine-tuning.

The Challenge of Compositional Accuracy

Compositional failures in T2I models typically fall into four categories:

  1. Entity Omission: Failing to generate a requested object.
  2. Attribute Binding: Incorrectly assigning colors or textures (e.g., "a red rabbit and a yellow rat" becoming two orange animals).
  3. Spatial Errors: Misplacing objects relative to one another.
  4. Numeracy Errors: Generating the wrong number of entities.

Existing inference-time interventions generally utilize either Optimization (refining initial noise to maximize a reward) or Exploration (generating multiple samples and selecting the best). CARINOX bridges these approaches to overcome their individual limitations, such as optimization getting stuck in local minima or exploration being inefficient.

Methodology: The CARINOX Framework

CARINOX introduces a unified strategy that scales computation at inference time to ensure high-fidelity prompt adherence.

The CARINOX framework combines (a) iterative gradient-based noise optimization with (b) a best-of-N exploration strategy to refine image generation.

The framework is built on four technical pillars:

  1. Unified Optimization & Exploration: The system samples $N$ initial noise seeds. For each seed, it performs iterative gradient ascent to optimize the noise vector before finally selecting the best output based on a composite reward score.
  2. Multi-Clip Gradient Stabilization: To prevent any single reward function (e.g., HPS or VQA) from dominating the optimization process, CARINOX clips gradients for each reward independently before aggregation.
  3. Norm-Guided Regularization: A regularization term ensures the noise vector remains within the standard Gaussian distribution expected by the model, preventing artifacts or "deep-fried" visual quality.
  4. Principled Reward Selection: Based on correlation studies with human judgment, CARINOX employs an ensemble of rewards, including HPS, ImageReward, DA Score, and VQA Score, to provide a comprehensive evaluation of image-text alignment.

Experimental Results

The researchers evaluated CARINOX using benchmarks like T2I-CompBench++, HRS, and GenEval across various backbones, including SD-Turbo and PixArt-α.

Qualitative comparison of CARINOX against baseline models and other optimization methods across complex compositional prompts.

Quantitative Performance

  • T2I-CompBench++: CARINOX achieved a +16% average improvement in alignment scores over base models.
  • HRS Benchmark: The framework showed an +11% gain, particularly excelling in visual writing and creative tasks.
  • Efficiency: By utilizing one-step generative backbones, CARINOX delivers these improvements in approximately 60-70 seconds on an H100, making it competitive with standard multi-step diffusion processes.

Qualitative Insights

Visual results demonstrate that CARINOX significantly improves numeracy and attribute binding. For instance, in prompts requiring specific counts (e.g., "four lamps and four dogs"), CARINOX consistently produces the correct number of entities while maintaining high photographic realism, whereas baseline models often fail.

Discussion and Future Work

CARINOX demonstrates that inference-time scaling—trading extra computation for higher quality—is a viable path for improving T2I models. However, the approach has limitations, including higher VRAM requirements (up to 43GB for PixArt-α) and a current focus on one-step models. Future research may explore propagating gradients through multi-step denoising trajectories or incorporating reinforcement learning to handle more abstract properties like artistic style.

Summary updated

BibTeX
@article{kasaei2025carinox,
  author = {Seyed Amir Kasaei and Ali Aghayari and Arash Mari Oriyad and Niki Sepasian and Shayan Baghayi Nejad and MohammadAmin Fazli and Mahdieh Soleymani Baghshah and Mohammad Hossein Rohban},
  title = {{CARINOX: Inference-time Scaling with Category-Aware Reward-based Initial Noise Optimization and Exploration}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=XB1cwXHV0c},
}
Figure