cs.CVMar 20, 2026

ATHENA: Adaptive Test-Time Steering for Improving Count Fidelity in Diffusion Models

Authors: Mohammad Shahab Sepehri, Asal Mehradfar, Berk Tinaz, Salman Avestimehr, Mahdi Soltanolkotabi

Organizations: Department of Electrical and Computer Engineering, University of Southern California, Los Angeles, CA, USA

Abstract

Text-to-image diffusion models achieve high visual fidelity but surprisingly exhibit systematic failures in numerical control when prompts specify explicit object counts. To address this limitation, we introduce ATHENA, a model-agnostic, test-time adaptive steering framework that improves object count fidelity without modifying model architectures or requiring retraining. ATHENA leverages intermediate representations during sampling to estimate object counts and applies count-aware noise corrections early in the denoising process, steering the generation trajectory before structural errors become difficult to revise. We present three progressively more advanced variants of ATHENA that trade additional computation for improved numerical accuracy, ranging from static prompt-based steering to dynamically adjusted count-aware control. Experiments on established benchmarks and a new visually and semantically complex dataset show that ATHENA consistently improves count fidelity, particularly at higher target counts, while maintaining favorable accuracy-runtime trade-offs across multiple diffusion backbones.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CountLoop: Training-Free High-Instance Image Generation via Iterative Agent Guidance

    Aug 18, 2025Anindya Mondal, Sauradip Nag, Ayan Banerjee +3Diffusion Model GuidanceObject Counting

  2. When Numbers Speak: Aligning Textual Numerals and Visual Instances in Text-to-Video Diffusion Models

    Apr 9, 2026Zhengyang Sun, Yu Chen, Xin Zhou +4T2V GenerationVideo Diffusion Models

  3. Improving Controllable Generation: Faster Training and Better Performance via x0x_0-Supervision

    Apr 7, 2026Amadou S. Sangare, Adrien Maglo, Mohamed Chaouch +1Controllable Image GenerationConditional Diffusion Models