Joint Model-based Model-free Diffusion (JM2D)
- The paper introduces JM2D as a design principle that couples explicit model-based structure with model-free generative diffusion to reduce hallucinations and enforce physical or operational constraints.
- In mixed-weather image restoration, JM2D leverages atmospheric physics and binary degradation masks to guide conditional denoising, yielding improved PSNR and SSIM performance.
- For planning with constraints, JM2D employs joint sampling of diffusion-generated action sequences and model-based optimization outputs to ensure feasibility and reduce intervention rates.
Joint Model-based Model-free Diffusion (JM2D) denotes a class of diffusion-based methods that couple explicit model-based structure with model-free generative denoising. In the literature considered here, the designation covers two technically distinct but conceptually aligned settings: mixed-weather image restoration, where a Joint Conditional Diffusion Model (JCDM) combines an atmospheric-physics degradation model, degradation masks, conditional diffusion, and uncertainty-aware refinement; and planning with constraints, where a pre-trained diffusion planner is combined with a model-based optimization module through joint sampling under an interaction potential (Yue et al., 2024, Jung et al., 10 Sep 2025). In both settings, the central aim is to preserve the expressive prior of diffusion while constraining generation by physically or operationally meaningful structure.
1. Terminology and scope
In mixed-weather image restoration, the problem is blind restoration under mixed weather degradations, where a single image may simultaneously contain rain streaks, adherent raindrops, haze or veiling, and snow. The supplied account identifies three difficulties: different degradations overlap spatially and interact nonlinearly; accurate per-component estimation is brittle and errors cascade to the final reconstruction; and severe corruption removes texture and fine details, leaving an ill-posed inverse problem. Diffusion alone is described as prone to generating plausible but irrelevant content when observation guidance is weak, whereas physical constraints narrow the solution space and spatial degradation masks focus denoising capacity on corrupted regions (Yue et al., 2024).
In planning with constraints, the problem is the integration of a learned, model-free diffusion planner with a model-based optimization module that enforces mission- and safety-critical constraints. The supplied account states that naive post-hoc integration can be incompatible because diffusion’s multimodal samples may be adversarial to an optimization module with limited authority or feasibility, producing overrides, infeasible corrections, or degraded task performance. JM2D addresses this by formulating integration as a joint sampling problem rather than a sequential correction pipeline (Jung et al., 10 Sep 2025).
A plausible implication is that JM2D is best understood not as a single architecture, but as a design principle: diffusion is retained as the source of rich priors and multimodality, while model-based structure is introduced as a compatibility mechanism that reduces hallucination, infeasibility, or other forms of unconstrained generation.
2. Common formulation and the meaning of “joint”
Across the two instantiations, “joint” refers to coupling the diffusion process with external structure at the level of the generative variables themselves rather than treating the model-based component as a purely post-hoc filter (Yue et al., 2024, Jung et al., 10 Sep 2025).
| Setting | Model-based component | Model-free component |
|---|---|---|
| Mixed-weather restoration | Atmospheric scattering model, atmospheric light , transmission , binary masks | Conditional diffusion model and refinement U-Net with UEB |
| Planning with constraints | Optimization module over , hard constraints , equalities , interaction potential | Pre-trained diffusion prior over action sequences |
In restoration, jointness is realized through argument-level conditioning: the degraded image and the predicted binary mask are both fed into the denoiser as 0. The degraded observation anchors the generative process to observed content, while the mask focuses denoising on corrupted regions. The supplied description explicitly notes that this is compatible with concatenation-based or feature-modulation implementations, although the instantiated design uses direct inputs to 1 (Yue et al., 2024).
In planning, jointness is formalized probabilistically. Let 2 denote the action sequence produced by the model-free planner and 3 the model-based module’s output. JM2D defines a joint target
4
where 5 is the pre-trained diffusion prior, 6 is a model-based prior, and 7 is an interaction potential that scores mutual compatibility. A common choice is
8
The same source states that conditional generation is a special case of JM2D when the interaction factorizes and the 9-prior is uniform (Jung et al., 10 Sep 2025).
The common structural motif is therefore not merely “physics plus diffusion” or “optimization plus diffusion,” but a tighter coupling in which the model-based side shapes the conditional or joint distribution sampled by diffusion.
3. Mixed-weather image restoration as JM2D
The image-restoration instantiation is centered on the paper “Joint Conditional Diffusion Model for Image Restoration with Mixed Degradations” (Yue et al., 2024). Its starting point is a mixed degradation model derived from classic single-degradation formulations for rain streaks, adherent raindrops, snow, and haze. The haze term follows the atmospheric scattering model (ASM),
0
where 1 is the clean image, 2 the observed image, 3 the global atmospheric light, 4 the scattering coefficient, and 5 the depth.
Motivated by ASM and the rain veiling effect, the supplied description recasts rain streaks and raindrops using atmospheric light and binary masks. This aligns rain streaks, raindrops, and snow with an 6-blending form analogous to haze. The resulting mixed-degradation synthesis is written as
7
with 8 and
9
Here, 0 collects binary masks for rain streaks, raindrops, and snow. For training synthesis, rain-streak and snow masks are drawn from Rain100H and Snow100K, while raindrop masks are generated by a metaball model to vary shape, size, and location. At inference, a mask prediction branch provides a binary degradation mask 1 from the input image.
The model-free side is a conditional denoising diffusion process. Given clean 2, the forward noising chain is
3
with
4
The learned reverse process is conditioned on the degraded image 5 and predicted mask 6:
7
and training uses the standard 8-prediction objective
9
Sampling is accelerated by an implicit deterministic sampler described as DDIM-style, with 0 deterministic steps at inference rather than the full 1 noising steps used in training. After diffusion yields a coarse restoration, a refinement U-shaped network reconstructs the restored image and incorporates an Uncertainty Estimation Block (UEB) at each scale. The UEB models aleatoric uncertainty 2 and epistemic uncertainty 3, approximating pixel-wise uncertainty as 4. Feature modulation at scale 5 is
6
and the decoder outputs the final refined restoration 7.
Training uses Adam with 8, 9, batch size 0, input patches 1, and learning rate 2. The refinement stage is trained with
3
an uncertainty-aware term
4
and the total loss
5
Within the supplied description, this construction is explicitly identified as a JM2D method because the atmospheric-physics mixed-degradation model governs synthesis and guidance, while the conditional diffusion prior and refinement network perform restoration beyond purely deterministic inversion.
4. Planning with constraints as JM2D
The planning instantiation appears in “Joint Model-based Model-free Diffusion for Planning with Constraints” (Jung et al., 10 Sep 2025). The setup uses state 6, action 7, a finite-horizon trajectory 8, and environment dynamics 9. The planner produces an action sequence 0, while the model-based module outputs 1. Hard safety and feasibility constraints are encoded as 2 and equalities 3.
Given a diffusion plan 4, the model-based module solves
5
The critique of standard compositions is twofold. First, post-hoc filtering samples 6 and only then corrects via 7, which can fail when the sampled plan lies far from the optimizer’s feasible region. Second, gradient-guided and projection-based methods operate on noisy states, can be brittle for non-differentiable or non-convex modules, and may harm data fidelity.
JM2D instead defines a joint diffusion process over 8. The forward noising process is
9
with independent schedules 0. Reverse-time denoising requires the joint score 1, which is intractable because 2 acts on clean variables and may be non-differentiable. The supplied derivation uses a Tweedie-form identity and approximates the score by self-normalized importance sampling.
With proposal
3
and
4
the practical estimator is
5
The account emphasizes that this requires only function evaluations of 6 on clean samples, without gradients of the optimizer and without retraining.
The high-level algorithm initializes 7, constructs Monte Carlo clean samples at each diffusion level, computes importance weights
8
estimates the joint score, and applies a DDIM-style update. Optional resampling can monitor effective sample size. If the final draw fails the hard constraint, a single model-based correction is applied. The paper further states that conditional generation is recovered as a limiting case when the interaction factorizes appropriately.
5. Empirical behavior and computational profile
The two JM2D instantiations are evaluated on distinct benchmark families, but both are reported to improve alignment between diffusion priors and model-based structure (Yue et al., 2024, Jung et al., 10 Sep 2025).
For mixed-weather restoration, JCDM with refinement is reported across six Cityscapes-based synthetic joint-degradation cases: case 1 (rain streak) achieves 9 dB and 0 SSIM; case 2 (rain + snow) 1; case 3 (rain + light haze) 2; case 4 (rain + heavy haze) 3; case 5 (rain + moderate haze + raindrop) 4; and case 6 (rain + snow + moderate haze + raindrop) 5. The supplied comparison states that JCDM surpasses WeatherDiff and is competitive or superior to IRNeXt across mixed cases. An ablation attributes a substantial part of the gain to joint conditioning on the mask 6: case 4 improves by 7 dB PSNR and 8 SSIM, case 5 by 9 dB and 0, and case 6 by 1 dB and 2 over conditioning on 3 alone.
For single-weather restoration, the reported results are as follows.
| Benchmark | JM2D / JCDM result | Comparison stated |
|---|---|---|
| Raindrop dataset | 4 dB / 5 SSIM | Surpasses All-in-one 6 and WeatherDiff 7; AIRFormer has higher SSIM 8 but lower PSNR 9 |
| Dense-Haze | 00 dB / 01 SSIM | Comparable or better than baselines such as FocalNet 02 |
| NH-HAZE | 03 dB / 04 SSIM | PSNR slightly higher than AIRFormer 05; FocalNet has higher SSIM 06 |
| Snow100K-L | 07 dB / 08 SSIM | Best PSNR and tied best SSIM with IRNeXt 09 |
The computational profile for 10 images is also explicit. JCDM without refinement uses 11M parameters, 12G FLOPs, and 13 s latency; with refinement it uses 14M parameters, 15G FLOPs, and 16 s latency. The supplied description states that this is over 17 faster inference than WeatherDiff at 18 s while achieving superior quality.
For planning, the offline RL evaluation uses D4RL PointMaze with a reachability-based safety filter. Under wall padding 19, the selected table reports, for a high-quality backup planner, RAIL at Safe Success 20, Task Horizon 21, and Intervention Rate 22, whereas JM2D achieves 23, 24, and 25. Under degraded backup planners, RAIL’s Safe Success drops to 26 and 27, while JM2D remains at 28 and 29, with lower intervention. The text also states that no method violates safety.
In the conditional-generation “Donut” domain, JM2D produces feasible, in-distribution samples with 30 valid, while projection-based conditional diffusion yields 31 samples far from data. In D3IL Avoiding, the selected table reports that JM2D attains Safe Success 32 with 33 violations in the Top-Right scenario, 34 with 35 violations in the Both scenario, and 36 with 37 violations in the Cluttered scenario, outperforming SafeDiffuser and MPD in those settings. An ablation on clean-sample estimation shows that increasing partial denoising depth 38 from 39 to 40 improves Safe Success and reduces violations. On a real Franka mug-pickup task with unseen obstacles, the supplied description states that vanilla diffusion collides, whereas JM2D with a reachability safety filter completes the task safely.
The computational trade-off in planning is different from restoration. The method increases cost versus vanilla diffusion because Monte Carlo clean-sample construction is performed at every step. The stated practical mitigations include partial denoising with small 41, candidate subsampling, and faster ODE solvers such as DPM-Solver++.
6. Limitations, misconceptions, and future directions
The supplied sources identify distinct failure modes in the two JM2D settings (Yue et al., 2024, Jung et al., 10 Sep 2025). In image restoration, performance is sensitive to mask quality: masks are effective guidance, but errors in the predicted degradation mask can degrade restoration quality. The physics model is rooted in ASM and binary masks, whereas real-world weather may involve spatially varying atmospheric light, specularities, or dynamic droplets; this potentially limits exact physical fidelity. The reported results also show metric trade-offs, since some competing models achieve higher SSIM on certain datasets even when JCDM attains higher PSNR. The stated future direction is to refine the diffusion process to better preserve semantic details while removing severe degradations.
In planning, the method relies on support overlap: the feasible subset must have non-zero mass under 42, otherwise importance sampling degeneracy occurs. Hard constraints are not guaranteed for every draw; the procedure steers sampling toward feasibility, and a single model-based post-check or correction is used when strict guarantees are required. Weight collapse can occur if the interaction potential is too peaky or 43 is too large, and computational cost scales with the diffusion steps, clean-sample depth, and candidate counts.
Several common misconceptions are directly countered by the supplied material. JM2D is not merely sequential post-hoc filtering: in planning it is posed as a joint sampling problem, and in restoration the denoiser is jointly conditioned on the degraded image and degradation mask. It is also not restricted to differentiable constraints: the planning formulation is explicitly designed for non-differentiable and non-convex modules because it needs only evaluations of 44 on clean samples. Conversely, JM2D is not a universal guarantee of correctness; both instantiations remain dependent on the quality of their model-based side, whether that is mask prediction and atmospheric assumptions in restoration or support overlap and importance-sampling stability in planning.
Taken together, the literature suggests that JM2D is a general strategy for constraining diffusion by structured external knowledge without discarding multimodality. In restoration, that structure is atmospheric physics and spatial masks; in planning, it is compatibility with a constrained optimization module. The common contribution is to shift the role of the model-based component from after-the-fact correction to an integral part of the generative process.