# Learning to Generate Multiple Objects from Dense and Occluded Layouts

*Bach H Ngo, Ngo Tri, Hieu Le, Trung Nghia Le*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153553) · [Open on the map](../papers.html#p153553)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Diffusion Text-to-Image Composition and Control](../pgroup/114.md) · Type: new method · Keywords: text-to-image generation, instance segmentation, occlusion handling, attention bias, amodal supervision, benchmark

Areas: [Multimodal](../areas/multimodal.md) › Multimodal Creation and Editing › Diffusion-Based Image Generation; [Evaluation & Benchmarks](../areas/evaluation.md) › Visual Multimodal Evaluation › Image Editing Benchmarks; [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Visual Editing and Conditioning › Text-to-Image Conditioning; [Computer Vision & 3D](../areas/computer-vision.md) › Visual Diffusion and Restoration › Pixel-Space Diffusion

## Summary
The paper proposes layout-aware attention biases and an amodal-balanced loss to prevent instance ownership collapse in dense text-to-image generation, and introduces the OverlapDepth-45K benchmark for systematic evaluation.

## Explained to a 5-year-old
Computers can draw pictures from words, but sometimes they forget how many things to draw when many things overlap. When things are hidden behind each other, the computer can't see them well and might draw them as one thing. The researchers made a new way to help the computer tell each thing apart, so they draw the right number of each object. They also created a big collection of tricky pictures to test how well the computer can count objects. This helps computers become more reliable for drawing scenes with lots of things.

## Explained to a 5-year-old, longer
When we ask a computer to draw many things from a sentence, it sometimes draws too few or mixes them up. This happens especially when the things are crowded and some are hidden behind others. The computer sees the visible parts and thinks the hidden parts belong to the same object. The researchers noticed this problem and called it instance ownership collapse. They designed a new trick that tells the computer to pay attention to where each object should be. This trick helps the computer group tokens that belong together and stop them from leaking into each other. They also added a loss that gives more learning power to objects that are heavily covered. Together, these ideas help the computer count objects correctly even when they overlap. To test the ideas, the team created a new benchmark called OverlapDepth-45K. This benchmark contains many scenes where objects overlap and are partially hidden. It provides amodal supervision, meaning it tells the computer what is hidden as well. The new method improves counting accuracy and keeps the pictures looking good.

## For a technical reader
The paper addresses a flaw in text-to-image diffusion models where overlapping objects are often merged, leading to incorrect counts in dense scenes. It introduces layout-aware attention biases that guide token interactions to respect region consistency and reduce cross-instance leakage. An amodal-balanced loss is added to give stronger gradients to heavily occluded objects based on their occlusion level. The authors also release OverlapDepth-45K, a benchmark of densely overlapping scenes with amodal supervision for systematic evaluation. Experiments show the approach significantly improves object count accuracy and prevents merging while preserving image quality.

## Problem
Text-to-image diffusion models often generate incorrect object counts in dense scenes where overlapping objects merge into indistinguishable structures. This occurs because overlapping objects receive insufficient distinct supervision, especially when heavily occluded.

## Method
The approach introduces layout-aware attention biases that encourage region-consistent token grouping and reduce cross-instance leakage, combined with an amodal-balanced loss that boosts gradients for occluded objects based on their occlusion level. This is paired with a new benchmark for evaluation.

## Results
The approach achieves substantial improvements in object count accuracy and prevents instance merging while maintaining image quality.

## Contributions
It proposes layout-aware attention biases and an amodal-balanced loss to address instance collapse in dense scenes, and introduces the OverlapDepth-45K benchmark for systematic evaluation.

## Research questions this paper is counted under

- [How can text-to-image diffusion models be improved to accurately compose complex prompts involving multiple objects, attributes, counts, and spatial relations?](../q/31.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153553)
