TL;DR
ELDiff introduces a novel fine-tuning strategy for text-to-image (T2I) diffusion models to dramatically improve multi-object generation. By incorporating Evidential Deep Learning and Dempster-Shafer Theory, it quantifies pixel-level uncertainty and resolves semantic overlap conflicts during training, achieving state-of-the-art compositionality with zero additional inference cost.
What Problem Does This Paper Address?
While modern text-to-image diffusion models generate stunning imagery, they frequently stumble when tasked with composing multiple distinct objects into a single coherent scene. Standard models predict noise based on the entire text prompt, often blending attributes or omitting objects entirely.
To solve this, recent "token-supervised" methods use automated tools (like Segment Anything) to generate object segmentation masks, forcing the model's cross-attention maps to align with specific noun tokens during fine-tuning. However, this approach introduces two major challenges:
- Segmentation Map Bias: Automated segmentation tools aren't perfect. If a mask is noisy or incorrect, the diffusion model overfits to these spurious regions.
- Semantic Overlap Conflict: Independent optimization assumes objects are spatially disjoint. But for common prompts like "a cat on a chair," the cat and chair naturally overlap. Enforcing independent attention maps on overlapping pixels creates contradictory gradients during training, degrading image quality.
Methods
ELDiff addresses these issues by replacing rigid, deterministic supervision with an uncertainty-aware framework during the fine-tuning phase.
1. Pixel Evidence Loss ($\mathcal{L}_{\text{PixEvi}}$)
Instead of treating cross-attention maps as deterministic point predictions, ELDiff leverages Evidential Deep Learning (EDL). It treats each pixel as a classification unit and models the cross-attention scores as a Dirichlet distribution (a distribution over probability distributions).
- When the model encounters a mislabeled or ambiguous region in a biased segmentation map, the estimated epistemic uncertainty rises.
- High uncertainty naturally dampens the loss penalty, preventing the model from being forced to learn incorrect supervision.
2. Token Conflict Loss ($\mathcal{L}_{\text{TokCon}}$)
To handle overlapping objects, the authors turn to Dempster-Shafer Evidence Theory (DST), a classical framework for combining degrees of belief from different sources.
- Each noun token's cross-attention map is treated as a separate source of evidence.
- DST combination rules are used to calculate a formal "conflict coefficient" in areas where masks intersect.
- This conflict factor is optimized directly via a specialized loss function, allowing the model to adaptively adjust the spatial distribution of attention maps and gracefully manage semantic competition.
Datasets
- Finetuning: The authors curated a dataset of 4,526 image-caption pairs derived from the Visual Spatial Reasoning dataset (a subset of COCO). Binary segmentation masks for all nouns were generated offline using Grounded-SAM.
- Evaluation: The model was rigorously tested across several established benchmarks:
- VISOR & MULTIGEN: For spatial relationship accuracy and multi-category object composition.
- COCO Instance Validation & Flickr30K: Used to evaluate photorealism (FID) and text-image alignment (CLIP score).
- T2I-CompBench / T2I-CompBench++ & GenEval / GenEval 2: For fine-grained compositional evaluation (attribute binding, numeracy, and complex relationships).
Key Insights and Ideas
- Uncertainty as a Buffer: The core "aha moment" is that treating attention targets as distributions rather than absolute ground truths allows the model to inherently tolerate noisy, automated training labels.
- Mathematical Conflict Resolution: Rather than forcing arbitrary boundaries or ignoring overlaps, applying Dempster-Shafer Theory provides a mathematically rigorous way to penalize contradictory attention allocations while permitting natural spatial overlap.
- Zero Inference Overhead: Because both the EDL and DST components are implemented purely as training loss functions, the final model retains its original architecture. It delivers superior image composition at the exact same inference speed as the base diffusion model.
Key Results
ELDiff was evaluated across multiple major backbones, including Stable Diffusion (v1.4, v2.1, v3.5), SDXL, and Qwen-Image.
- Compositional Superiority: On SD v1.4, ELDiff achieved an Object Accuracy (OA) of 0.5563, significantly outperforming the previous state-of-the-art training method, TokenCompose (0.5215).
- Improved Photorealism: ELDiff achieved a Frechet Inception Distance (FID) of 19.25 on the COCO validation set, a notable improvement over TokenCompose's 21.12, indicating cleaner, less distorted image synthesis.
- Efficiency: As shown in the evaluation metrics, ELDiff maintains a baseline latency of 7.54 seconds per image generation (50 DDIM steps), matching the speed of standard un-tuned models while delivering far better multi-object coherence.
Limitations and Future Work
Despite its success in spatial arrangement and object accuracy, the authors note that ELDiff still exhibits shortcomings in fine-grained attribute binding (e.g., perfectly mapping specific colors, shapes, or textures to their respective objects when multiple items are present).
As a next step, the research team plans to extend the evidential learning framework to explicitly incorporate constraints on color, shape, and texture to achieve holistic text-to-image alignment.
Summary updated