Mitigating class co-occurrence ambiguity in weakly supervised semantic segmentation with cross image attention

dc.contributor.authorHill, William Skipsey
dc.contributor.supervisorKlein, Richard
dc.contributor.supervisorBau, Hairong
dc.date.accessioned2026-11-03T17:16:51Z
dc.date.issued2025-09
dc.descriptionA dissertation submitted in fulfilment of the requirements for the degree of Master of Science, to the Faculty of Science, School of Computer Science & Applied Mathematics, University of the Witwatersrand, Johannesburg, 2025
dc.description.abstractWeakly Supervised Semantic Segmentation (WSSS) has gained traction as a cost effective alternative to fully supervised segmentation, which requires extensive pixel-level labels. The primary challenge in WSSS is generating accurate segmentation masks from only image-level labels. While various approaches have made progress, the issue of class co-occurrence, where certain classes frequently appear together within the same image, remains a significant obstacle. Unlike traditional methods that focus on separating objects from the background, we address the more challenging problem of disambiguating co-occurring classes, such as “baseball bat” and “baseball glove” or “mouse” and “keyboard”. We empirically demonstrate that class co-occurrence is a critical factor degrading segmentation performance, especially for datasets where co-occurrence is prevalent, such as MS COCO 2014. In contrast, the PASCAL VOC 2012 dataset, which exhibits less co-occurrence, shows minimal performance degradation. This discrepancy highlights that co-occurrence is a dataset-dependent challenge, overlooked in previous studies focusing primarily on PASCAL VOC 2012. To address this problem, we propose a novel dual-branch transformer architecture built upon MCTFormer+, where one branch processes the primary image and the other processes an auxiliary image containing a complementary class. The two branches interact via a new cross-attention mechanism called Cross Image Attention from the Auxiliary to Primary branch (CIA-AP), which selectively augments the primary image’s attention maps using information from the auxiliary image. This approach effectively improves segmentation accuracy for co-occurring classes by enhancing the model’s ability to distinguish between them. Furthermore, we introduce CCT Prime, a new contrastive learning module designed to align class token embeddings between the two branches, ensuring consistent representations for effective information transfer. This alignment proves essential for enhancing performance when co-occurring classes are present, while still maintaining competitive overall performance. Experiments show substantial improvements for co-occurring classes while maintaining competitive mean Intersection over Union (mIoU). Our findings highlight the effectiveness of leveraging cross-image information to address class co-occurrence, providing a promising direction for future WSSS research.
dc.description.submitterMMM2026
dc.facultyFaculty of Science
dc.identifier0009-0002-0825-362X
dc.identifier.citationHill, William Skipsey. (2025). Mitigating class co-occurrence ambiguity in weakly supervised semantic segmentation with cross image attention. [Master's dissertation, University of the Witwatersrand, Johannesburg]. WIReDSpace. https://hdl.handle.net/10539/50287
dc.identifier.urihttps://hdl.handle.net/10539/50287
dc.language.isoen
dc.publisherUniversity of the Witwatersrand, Johannesburg
dc.rights©2025 University of the Witwatersrand, Johannesburg. All rights reserved. The copyright in this work vests in the University of the Witwatersrand, Johannesburg. No part of this work may be reproduced or transmitted in any form or by any means, without the prior written permission of University of the Witwatersrand, Johannesburg.
dc.rights.holderUniversity of the Witwatersrand, Johannesburg
dc.schoolSchool of Computer Science and Applied Mathematics
dc.subjectWeakly Supervised Semantic Segmentation
dc.subjectCross Attention
dc.subjectClass Co-occurrence
dc.subjectContrastive Learning
dc.subjectPseudo Labels
dc.subjectTransformer-based Models
dc.subjectComputer Vision
dc.subjectDeep Learning
dc.subjectUCTD
dc.subject.primarysdgSDG-4: Quality education
dc.subject.secondarysdgSDG-9: Industry, innovation and infrastructure
dc.titleMitigating class co-occurrence ambiguity in weakly supervised semantic segmentation with cross image attention
dc.typeDissertation

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Hill_Mitigating_2025.pdf
Size:
8.44 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.43 KB
Format:
Item-specific license agreed upon to submission
Description: