Nanyang Technological University
Learning compositionality for image classification and segmentation
Abstract
dc:description.abstractCompositionality is the notion that the representation of the whole should be composed of the representation of its parts. While early computer vision models relied on this principle, many deep learning approaches have instead prioritized learning holistic features from large-scale data, often at the expense of interpretability and data efficiency. Interpretability tools such as Grad-CAM provide only approximate explanations, and zero-shot methods based on semantic embeddings like BERT and GPT-3 reduce label reliace but fail to capture explicit visual part-structure. The growing demand for models that are data-efficient, interpretable, and capable of generalizing in low-data regimes motivates a return to compositionality. By leveraging part-based structure, models can achieve greater interpretability, improved generalization from fewer labels, and robustness across tasks. This thesis presents how compositionality can be applied to computer vision tasks through three contributions in the areas of multimodal few-shot learning and part segmentation. The first contribution introduces a method for multimodal few-shot learning that uses visual attributes directly, instead of embedding them into a shared feature space. The model uses a two-phase training approach based on an autoencoder with additional semantic and cyclic losses. This setup allows the model to better understand and predict image attributes, improving few-shot accuracy while producing interpretable attribute-based predictions, outperforming embedding-based baselines such as Multimodal Prototypical Networks and TriNet. The second contribution presents a part segmentation framework that removes the need for pixel-level part labels. The task is broken down into detecting part boundaries and classifying parts. The model uses object masks, superpixels, and part detection based on class-level labels to perform segmentation. Despite not using pixel-level part labels during training, the model achieves competitive performance on benchmarks like PartImageNet compared to fully supervised methods such as DeeplabV3+ and FPN. The final contribution extends the previous framework to remove all pixel-level annotations, including object masks. Instead, it uses features extracted by a pretrained Vision Transformer (DINO-ViT) to group superpixels and classify parts. The part detection and classification components from the earlier framework are reused, with the classifier now also based on a transformer. This setup trains on only class-level part labels while still producing strong segmentation results. Although performance without masks is lower, this work provides an initial pathway towards segmentation with the weakest possible supervision. Together, these contributions demonstrate how compositionality can help build computer vision models that require less supervision and are easier to understand, while maintaining competitive performance. They show that compositional approaches can complement large-data feature learning. To an extent, semantic segmentation can be considered a classification task. Depending on the supervision available, contribution 1 is the most suitable in a few-shot learning setting and when interpretability is required. Contribution 2 performs part segmentation when only object masks are provided, and detailed pixel-level part annotations are not. Contribution 3 further explores this in the case where only class-level part labels are provided.
Degree
thesis:*- College dc:contributor.school
- College of Computing and Data Science
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Chang, Jun Qing
- Advisors dc:contributor.supervisor
-
- Deepu Rajan
- Vun Chan Hua, Nicholas
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/10356/202607