Lin Guo , Xiaoqing Luo , Yue Liu , Zhancheng Zhang , Xiaojun Wu
{"title":"SAM-guided multi-level collaborative Transformer for infrared and visible image fusion","authors":"Lin Guo , Xiaoqing Luo , Yue Liu , Zhancheng Zhang , Xiaojun Wu","doi":"10.1016/j.patcog.2025.111391","DOIUrl":null,"url":null,"abstract":"<div><div>The primary value of image fusion lies in supporting downstream task more effectively. However, the fusion representation of existing methods contains insufficient semantic information, thereby weakening the compatibility with subsequent task. To overcome this problem, a SAM-guided multi-level collaborative transformer for infrared and visible image fusion is proposed in this manuscript, termed as SpTFuse. Considering the strong zero-shot generalization ability of Segment Anything Model (SAM), a SAM-based semantic prior branch is introduced to interact with multi-scale visual representation branches for improving the completeness and compatibility of fusion representation. The interaction process is divided into three levels to progressively integrate multibranch information. At the first level, an inter-modal fusion block (IEB) is designed with a single-step collaborative transformer (SCT) and a modality integration module (MIM). The SCT aggregates the correlated features of semantic prior and visual representation. Then, the MIM is designed to fuse the SAM semantic prior guided multimodal visual representation. To balance the visual and semantic representations to obtain complete fusion representation, an intra-modal interaction block (IAB) is constructed at the following levels. Specifically, the IAB consists of a dual-path collaborative transformer (DCT) and a semantic enhancement module (SEM). The DCT constructs two paths in a cascade manner, where the prior collaborative path continues to acquire semantic prior, while the visual refinement path balances visual information while maintaining semantic completeness. Subsequently, SEM further combines semantic prior to enhance the completeness of the fused representation. To reduce the semantic information discarded during the image restoration process, the collaborative information of previous levels is incorporated into the corresponding decoder layers by the semantic compensation block. Finally, the proposed loss function includes semantic prior loss, gradient loss, and intensity loss. The experiments demonstrate the SpTFuse not only achieves effective fusion results, but also shows obvious advantages in downstream tasks such as segmentation and detection. The source code is available at <span><span>https://github.com/lxq-jnu/SpTFuse</span><svg><path></path></svg></span>.</div></div>","PeriodicalId":49713,"journal":{"name":"Pattern Recognition","volume":"162 ","pages":"Article 111391"},"PeriodicalIF":7.5000,"publicationDate":"2025-01-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Pattern Recognition","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0031320325000512","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0
Abstract
The primary value of image fusion lies in supporting downstream task more effectively. However, the fusion representation of existing methods contains insufficient semantic information, thereby weakening the compatibility with subsequent task. To overcome this problem, a SAM-guided multi-level collaborative transformer for infrared and visible image fusion is proposed in this manuscript, termed as SpTFuse. Considering the strong zero-shot generalization ability of Segment Anything Model (SAM), a SAM-based semantic prior branch is introduced to interact with multi-scale visual representation branches for improving the completeness and compatibility of fusion representation. The interaction process is divided into three levels to progressively integrate multibranch information. At the first level, an inter-modal fusion block (IEB) is designed with a single-step collaborative transformer (SCT) and a modality integration module (MIM). The SCT aggregates the correlated features of semantic prior and visual representation. Then, the MIM is designed to fuse the SAM semantic prior guided multimodal visual representation. To balance the visual and semantic representations to obtain complete fusion representation, an intra-modal interaction block (IAB) is constructed at the following levels. Specifically, the IAB consists of a dual-path collaborative transformer (DCT) and a semantic enhancement module (SEM). The DCT constructs two paths in a cascade manner, where the prior collaborative path continues to acquire semantic prior, while the visual refinement path balances visual information while maintaining semantic completeness. Subsequently, SEM further combines semantic prior to enhance the completeness of the fused representation. To reduce the semantic information discarded during the image restoration process, the collaborative information of previous levels is incorporated into the corresponding decoder layers by the semantic compensation block. Finally, the proposed loss function includes semantic prior loss, gradient loss, and intensity loss. The experiments demonstrate the SpTFuse not only achieves effective fusion results, but also shows obvious advantages in downstream tasks such as segmentation and detection. The source code is available at https://github.com/lxq-jnu/SpTFuse.
期刊介绍:
The field of Pattern Recognition is both mature and rapidly evolving, playing a crucial role in various related fields such as computer vision, image processing, text analysis, and neural networks. It closely intersects with machine learning and is being applied in emerging areas like biometrics, bioinformatics, multimedia data analysis, and data science. The journal Pattern Recognition, established half a century ago during the early days of computer science, has since grown significantly in scope and influence.