Introduction
In computer vision, the dual task of identifying entire objects (object segmentation) and their constituent components (part segmentation) presents a significant challenge. Object segmentation requires a global perspective to maintain structural cohesion, while part segmentation demands a local perspective to capture fine-grained boundaries. Historically, these tasks were handled by separate architectures or suffered from "gradient conflicts" when trained jointly. LGFormer (Local Global Transformer) addresses these issues through a hierarchical architecture that systematically groups pixels into superpixels and then into object-level groups.
The LGFormer Architecture
LGFormer mimics the hierarchical nature of human vision by progressively condensing information. The model starts with raw pixels and aggregates them into local clusters called superpixels, which are subsequently aggregated into global object-level tokens.
The architecture is built upon three primary pillars:
- Hierarchical Representation: Information flows from pixels to superpixels to groups, reducing computational overhead while capturing multi-scale features.
- Dual Aggregation Strategies:
- Superpixel Context Aggregation (SCA): Groups redundant pixels into segments that align with object parts.
- Group Context Aggregation (GCA): Interlinks superpixels into larger formations representing whole objects.
- Association-Aware Upsampling: Instead of standard bilinear upsampling, LGFormer uses attention scores from the grouping process to "reverse" the hierarchy, ensuring sharp boundaries that respect the superpixel level.
Hierarchical Flow and Semantic Emergence
The core innovation of LGFormer lies in its bidirectional information flow. While the forward pass aggregates local details into global context, the upsampling process allows global object context to refine local part boundaries.
A key finding of this research is "semantic emergence." Even without direct labels for one level of the hierarchy, the model learns relevant structures. For instance, training with only object-level labels still results in the superpixel layer learning to delineate parts. This efficiency through sparsity allows LGFormer to maintain high performance with fewer parameters and lower FLOPs than competing models.
Experimental Results
LGFormer was evaluated on major benchmarks including PartImageNet, Pascal-Part, and Occluded-PartImageNet-v1. The model achieved state-of-the-art (SOTA) performance:
- PartImageNet: 67.4% mIoU for part segmentation (a 2.8% improvement over previous SOTA) and 79.8% mIoU for object segmentation.
- Pascal-Part: Outperformed previous methods by 1.5% in part mIoU and 2.0% in object mIoU.
- Robustness: LGFormer demonstrated superior performance in occluded scenarios, showing significantly smaller performance drops than MaskFormer or Compositor when 20-40% of an object was hidden.
Conclusion and Future Work
LGFormer provides a unified framework that effectively resolves the conflict between local and global segmentation goals. While joint training is highly effective, the authors noted a slight "multi-task tax" where specialized training for a single task occasionally yields marginally better specific metrics. Future research may explore scaling this hierarchical approach to larger datasets or integrating self-supervised learning to further enhance the observed semantic emergence.
Summary updated