Abstract
Semantic segmentation relies heavily on context modeling to resolve local ambiguities. Traditional methods utilize multi-scale priors or similarity-based attention mechanisms, which often fail to capture complex co-occurrent relationships between dissimilar objects. We propose IDRNet, an Intervention-Driven Relation Network that discovers semantic relationships through a "deletion diagnostics" procedure. By selectively removing semantic groups and observing the resulting impact on model predictions, IDRNet learns a robust relation matrix that captures causal dependencies. Our approach achieves state-of-the-art performance on major benchmarks including ADE20K and Cityscapes, while maintaining computational efficiency.
Introduction
In semantic segmentation, the identity of a pixel is frequently determined by its surrounding context. For instance, identifying a "car" is easier when "road" is present. Current context modeling strategies generally fall into two categories: multi-scale-driven approaches, which use fixed geometric kernels, and similarity-driven approaches, which use attention to group visually similar pixels.
However, these strategies have limitations. Multi-scale methods lack scene-specific flexibility, and similarity-driven methods often overlook relationships between visually distinct but co-occurrent classes, such as "sky" and "airplane." IDRNet addresses these shortcomings by introducing a data-driven intervention mechanism that learns object relationships by observing the consequences of their absence.
Methods
The core of IDRNet is the Deletion Diagnostics procedure, which models relations at the semantic level to maintain computational feasibility.
Semantic Grouping and Enhancement
Pixel-level representations are aggregated into semantic-level representations based on initial pseudo-labels (e.g., all pixels predicted as "tree" are grouped). These groups are then enhanced using learned dataset-level representations or random orthogonal matrices to increase class discriminability.
Deletion Diagnostics
During training, the model performs an intervention by "deleting" (zeroing out) a specific semantic group. It then measures the diagnostic signal—the change in loss for other classes. A significant increase in error for class B when class A is deleted indicates a strong dependency of B on A. This information is used to update a global relation matrix ($M_r$) that guides how different semantic groups interact.
Balanced Deletion
To prevent the model from biasing towards frequent classes, a "Balanced Deletion" strategy is employed. This sampling mechanism ensures that rare classes (e.g., traffic lights) are diagnosed as frequently as common ones (e.g., sky), improving performance on long-tail distributions.
Key Insights
Intervention vs. Correlation
Unlike standard attention mechanisms that measure correlation (similarity), IDRNet measures causal influence. This allows the network to link objects that are visually dissimilar but contextually related. By forcing the model to intervene on rare classes more frequently through Balanced Deletion, performance on long-tail datasets is significantly improved.
Efficiency and Scalability
By operating on semantic groups rather than individual pixels, IDRNet reduces the complexity of the relation matrix from $N^2$ (pixels) to $K^2$ (classes). This makes the intervention-driven approach computationally efficient for high-resolution images, using fewer parameters and FLOPs than common modules like ASPP or PPM while achieving better accuracy.
Results
IDRNet was evaluated on five major benchmarks: ADE20K, COCO-Stuff, PASCAL-Context, LIP, and Cityscapes.
- Performance Boosts: On ADE20K, IDRNet improved the mIoU of a standard FCN from 36.96% to 43.61%—a massive 6.65% jump. When integrated into UPerNet with a Swin-Large backbone, it achieved a state-of-the-art 54.67% mIoU.
- Efficiency: Despite the complex training procedure, the resulting module is lightweight. In inference, IDRNet uses fewer parameters (10.79M) and FLOPS (155.89G) than standard context modules.
- Generalization: The model demonstrated strong cross-domain performance, particularly in challenging scenarios like training on daytime Cityscapes and testing on nighttime driving scenes.
Conclusion
IDRNet introduces a novel paradigm for context modeling in semantic segmentation. By moving from correlation to intervention, the model effectively captures complex semantic relationships. The success of IDRNet in both segmentation and object detection suggests that intervention-driven learning is a powerful, generalizable tool for dense prediction tasks in computer vision.
Summary updated