Through the Looking Glass: A Dual Perspective on Weakly-Supervised Few-Shot Segmentation

Jiaqi Ma, Guo-Sen Xie, Fang Zhao, Zechao LiarXiv 2025 · DOI

Abstract

Weakly-supervised few-shot segmentation (WFSS) aims to segment novel object categories using only image-level labels and a limited number of support examples. Traditional meta-learning approaches typically employ homogeneous network architectures for both support and query branches, which often leads to "over-homogenization"—a state where models focus on redundant features and miss complementary details. This paper introduces the TLG (Through the Looking Glass) framework, which adopts a "homologous but heterogeneous" dual-perspective design. By leveraging asymmetric feature aggregation, optimal transport alignment, and multimodal CLIP embeddings, TLG achieves state-of-the-art performance while utilizing only 1/24th of the parameters of previous leading models.

The Problem: Over-Homogenization in Meta-Learning

In few-shot semantic segmentation, the model must generalize to unseen categories from a few labeled "support" images. Most existing methods pass both support and query images through identical network branches. While this ensures a shared feature space, the authors argue it creates a bottleneck. Because the branches are identical, the model tends to converge on the most obvious shared semantic features (e.g., the head of a cat) while ignoring the subtle, complementary details necessary for precise pixel-level localization.

Conceptual comparison between traditional homogeneous segmentation (a) and the proposed heterogeneous approach (b).

This issue is exacerbated in Weakly-Supervised Few-Shot Segmentation (WFSS), where the model lacks pixel-perfect masks during training and must rely on coarse image-level labels. The resulting "over-homogenization" prevents the model from effectively distinguishing object boundaries from complex backgrounds.

The TLG Framework: A Dual Perspective

To overcome these limitations, the TLG framework introduces three core modules designed to create a "heterogeneous" synergy between the support and query branches.

The TLG framework architecture, illustrating Heterogeneous Aggregation, Transport, and CLIP modules.

1. Heterogeneous Aggregation (HA)

Instead of extracting features from the same layers for both images, HA implements an asymmetric extraction strategy. It pulls support features from high-level layers, which are rich in semantic information (answering "what" the object is), and query features from low-level layers, which preserve high-resolution spatial details (answering "where" the object is). This dual-perspective approach forces the model to capture a more comprehensive feature set.

2. Heterogeneous Transport (HT)

To align these disparate feature spaces, TLG utilizes Optimal Transport (OT) via the Sinkhorn algorithm. HT acts as a sophisticated filtering mechanism, suppressing "semantic noise" from background clutter and focusing the model's attention on the most relevant object parts shared between the support and query images.

3. Heterogeneous CLIP (HC)

TLG integrates textual intelligence from the CLIP model to provide additional guidance. Rather than using generic class names, the authors employ fine-grained prompts (e.g., "bird with feathers") and identify likely co-occurring background elements (e.g., "tree," "sky") using ChatGPT. This multimodal approach helps the model better differentiate the target object from its typical surroundings.

Key Insights and Performance

The TLG framework demonstrates that asymmetry in network design can be a powerful tool for meta-learning. Several key insights emerged from the study:

  • Efficiency through Design: TLG proves that massive parameter counts are not a prerequisite for high performance. By optimizing how information is aggregated and aligned, the model outperformed heavy competitors with a fraction of the computational cost—using approximately 4.47M parameters compared to the 113.4M in previous state-of-the-art models like AFANet.
  • Superior Accuracy: The framework achieved a 13.2% improvement on the Pascal-$5^i$ benchmark and a 9.7% improvement on COCO-$20^i$. Remarkably, this weakly-supervised model outperformed several fully-supervised models when using the same backbone architecture.
  • Inference Speed: Due to its streamlined architecture, TLG reduces inference latency by roughly 50% compared to baseline models, making it highly suitable for edge deployment and real-time applications.

Conclusion

Through the Looking Glass (TLG) represents a paradigm shift in few-shot segmentation by challenging the assumption that support and query branches must be identical. By embracing heterogeneity, the framework captures a richer set of features and achieves unprecedented efficiency. While challenges remain in extremely complex scenes, TLG sets a new standard for weakly-supervised learning, demonstrating that a dual-perspective approach can significantly enhance a model's ability to generalize to the unknown.

Summary updated

Abstract

Meta-learning aims to uniformly sample homogeneous support-query pairs, characterized by the same categories and similar attributes, and extract useful inductive biases through identical network architectures. However, this identical network design results in over-semantic homogenization. To address this, we propose a novel homologous but heterogeneous network. By treating support-query pairs as dual perspectives, we introduce heterogeneous visual aggregation (HA) modules to enhance complementarity while preserving semantic commonality. To further reduce semantic noise and amplify the uniqueness of heterogeneous semantics, we design a heterogeneous transfer (HT) module. Finally, we propose heterogeneous CLIP (HC) textual information to enhance the generalization capability of multimodal models. In the weakly-supervised few-shot semantic segmentation (WFSS) task, with only 1/24 of the parameters of existing state-of-the-art models, TLG achieves a 13.2\% improvement on Pascal-5\textsuperscript{i} and a 9.7\% improvement on COCO-20\textsuperscript{i}. To the best of our knowledge, TLG is also the first weakly supervised (image-level) model that outperforms fully supervised (pixel-level) models under the same backbone architectures. The code is available at https://github.com/jarch-ma/TLG.
BibTeX
@misc{ma2025through,
  author = {Jiaqi Ma and Guo-Sen Xie and Fang Zhao and Zechao Li},
  title = {{Through the Looking Glass: A Dual Perspective on Weakly-Supervised Few-Shot Segmentation}},
  year = {2025},
  eprint = {2508.16159},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.16159},
}
Figure