arXiv:2609.05028cs.CVSep 2026

Manuscript Offprint

arXiv:2609.05028

Compositional Reward Models for Conditional Medical Image Generation

Aayush Kumar Tyagi, Prathosh A. P., Mausam

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Acquiring high quality annotated medical image data is critical for training deep learning models; however, annotation is expensive, time consuming, and often requires domain expertise. Conditional diffusion models, such as ControlNet, offer a promising alternative by generating images conditioned on semantic masks and text. However, existing approaches frequently fail to capture fine grained properties (e.g., intensity and texture), as well as higher level semantic consistency expected by domain experts, limiting their effectiveness for downstream tasks. Recent attempts to address these issues using reinforcement learning fine-tuning remain limited due to the reliance on a single scalar reward, which conflates diverse failure modes and provides weak corrective signals.

We propose PRISM, a Compositional Reward Model (CRM) framework for conditional medical image generation. Instead of assigning a single reward, we decompose image quality into verifier grounded stages, each evaluating a distinct aspect of correctness from fine to coarse properties, including low level attributes (intensity and texture), structural alignment with conditioning inputs, and high level semantic fidelity. These stage wise rewards are composed through a Hierarchical Constrained Propagation (HCP) mechanism that enforces a fine to coarse notion of correctness, ensuring that lower level deficiencies are resolved before higher level rewards are accrued, preventing easier objectives from masking critical failures.

We evaluate PRISM across three datasets spanning diverse medical imaging tasks: PanNuke (multi-class cell segmentation), CeDeM (villi/crypt detection and measurement), and ISIC (skin lesion classification). Training downstream models with data generated by PRISM yields improvements over closest baselines, including a 2.3% increase in mDice on PanNuke, a 8.5% reduction in Mean Relative Error (MRE) on CeDeM, and increases ISIC F1 by 5.9%.

1 Introduction

Deep learning models for medical imaging rely heavily on large scale, finely annotated datasets, often requiring expert pathologists for pixel level supervision. Acquiring such data is both expensive and time consuming, creating a major bottleneck in developing robust models. As an alternative, synthetic data generation using conditional diffusion models such as Rombach et al. [2022] has shown promise in improving downstream performance [Yu et al., 2023, Oh and Jeong, 2023].

Preprint.

Figure

Figure 1: A: Conditional generator makes fine grain errors and a single score is not descriptive to provide good feedback. B: We decompose the reward into a composition of rewards (CRM) where, each reward constraint is checked before moving to next reward which we call, hierarchical constraint propagation (HCP). C: Using HCP to train generator with RL improves the image quality and D: eventually improves the performance of downstream task.

Conditional diffusion architectures like ControlNet Zhang et al. [2023] enable image generation from structured inputs such as segmentation masks, edges, or depth maps. In medical imaging, these models generate images conditioned on pixel level annotations [Shrivastava and Fletcher, 2023]. While such generations often appear plausible and respect spatial layouts, they frequently fail to preserve critical properties such as intensity distributions, texture consistency, and structural correctness. As a result, models trained on such synthetic data may suffer from degraded downstream performance.

Recent approaches attempt to improve diffusion model outputs by optimizing for perceptual quality using reinforcement learning from AI feedback [Black et al., 2023, Fan et al., 2023]. These methods typically rely on an outcome reward model (ORM) that assigns a single scalar score to generated images, often derived from vision language models. However, for medical imaging, such a scalar reward is insufficient, as it conflates multiple aspects of image quality, including intensity fidelity, texture realism, and structural alignment, into a single signal (see Fig 1:A). This lack of granularity limits the effectiveness of learning and provides weak guidance for correcting specific failure modes.

We propose PRISM, a Compositional Reward Model (CRM) with Hierarchical Constrained Propagation (HCP) framework for optimizing conditional diffusion models. Instead of a single reward, we decompose quality assessment into a set of verifier grounded sub rewards, each corresponding to a distinct stage of evaluation. To ensure that early stages focus on fine grain attributes such as intensity and texture, while later stages assess higher level structural and semantic correctness we use hierarchical constrained propagation (HCP) which enforces ordering: lower level attributes must be satisfied before higher level rewards can be accumulated. This design prevents easier objectives from masking failures in critical components (see Fig 1:B). Finally, we use resulting reward (CRM) to optimize conditional diffusion with reinforcement learning using GDPO [Liu et al., 2026].

PRISM not only leads to improved image generation (see Fig. 1:C) but also improved downstream performance (see Fig. 1:D). We evaluate PRISM across three tasks: cell segmentation (PanNuke), villi/crypt detection and measurement (CeDeM), and skin lesion classification (ISIC). Training downstream models on data generated by PRISM leads to consistent improvements over the closest baseline on each task: a 2.3% increase in mDice for SegFormer [Xie et al., 2021] on PanNuke, an 8.5% reduction in ratio MRE for MeasureNet [Tyagi et al., 2024] on CeDeM, and a 5.9% gain in F1 for ResNet [He et al., 2016] on ISIC.

In summary, we make following contributions. First, we introduce a Compositional Reward Model (CRM) for conditional diffusion models, which decomposes image quality into verifier grounded sub rewards and combines them through a hierarchical constrained propagation that enforces a hierarchy, enabling fine to coarse correctness. Second, we demonstrate consistent improvements across three medical imaging benchmarks spanning segmentation, measurement, and classification tasks.

References (43)