QuantiShift: Any-Shift Object Quantification by Text-to-Image Diffusion Models
Haohui Liang, Runlin Huang, Wenfang Sun, Yingjun Du, Yujia Hu, Weifeng Su, Cees G. M. Snoek
ICLR 2026 submission
Abstract. Accurately quantifying objects with text-to-image diffusion models remains challenging, especially under distribution shifts. Existing methods struggle to maintain numerical precision across varying object categories, count distributions, and visual domains. To address this, we propose QuantiShift, a shift-aware prompting framework that adapts to different shift types without diffusion model retraining. QuantiShift introduces shift-aware prompt optimization, where distinct prompt components explicitly tackle number shifts, label shifts, and covariate shifts, ensuring precise object quantification across varying distributions. To further enhance generalization, we propose consistency-guided any-shift prompting, which enforces alignment between textual prompts and generated images by mitigating inconsistencies caused by distribution shifts. Finally, we develop hierarchical prompt optimization, a two-stage refinement process that first adapts prompts to individual shifts and then calibrates them for cross-shift generalization. To evaluate robustness, we introduce a new benchmark designed to assess object quantification under diverse shifts. Extensive experiments demonstrate that QuantiShift achieves state-of-the-art performance, considerably improving accuracy and robustness over existing methods.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…