Modern flow matching models achieve remarkable visual fidelity in text-to-image (T2I) generation, yet compositional generation remains a persistent challenge. Comparative supervision has recently emerged as a promising direction, contrasting images across alternative captions or visual variants to enforce faithful factor binding. However, existing comparative supervision often remains confounded, as paired variants typically entangle target factors with unintended semantic or visual shifts. To bridge the gap, we propose OCAT, framing compositional learning as single-factor counterfactual interventions under invariant scene contexts. To curate such controlled interventions at scale, we build a 3D simulation pipeline with agent-guided repair, producing OCAT-Instruct-24K with isolated factor variations across canonical composition types. To exploit such variations, we design a counterfactual assignment objective for flow matching that discriminates target factors while maintaining flow regression and generation fidelity. Results on GenEval and T2I-CompBench++ across SD3.5 Medium and FLUX.1-Dev demonstrate consistent compositional gains, notably in spatial relations and attribute binding. Collectively, our findings highlight the value of scene context invariance, demonstrating the promise of controlled counterfactual supervision for T2I generation.
翻译:暂无翻译