Pre-Trained LLM is a Semantic-Aware and Generalizable Segmentation Booster

Fenghe Tang, Wenxin Ma, Zhiyang He, Xiaodong Tao, Zihang Jiang +1 more
6/22/2025
cs.CVcs.AIcs.MM

No official code found. Best implementation: FengheTan9/LLM4Seg (58 stars, Apache-2.0, last commit 2025-10-04).

Abstract

With the advancement of Large Language Model (LLM) for natural language processing, this paper presents an intriguing finding: a frozen pre-trained LLM layer can process visual tokens for medical image segmentation tasks. Specifically, we propose a simple hybrid structure that integrates a pre-trained, frozen LLM layer within the CNN encoder-decoder segmentation framework (LLM4Seg). Surprisingly, this design improves segmentation performance with a minimal increase in trainable parameters across various modalities, including ultrasound, dermoscopy, polypscopy, and CT scans. Our in-depth analysis reveals the potential of transferring LLM's semantic awareness to enhance segmentation tasks, offering both improved global understanding and better local modeling capabilities. The improvement proves robust across different LLMs, validated using LLaMA and DeepSeek.

View on arXivView PDF

Code Implementations(1)

FengheTan9/LLM4SegCommunity100%
Apache-2.0

[MICCAI 2025] Official code for "Pre-Trained LLM is a Semantic-Aware and Generalizable Segmentation Booster"

585PythonFeb 27, 20251 years agoApache-2.0
deepseek-r1llama3llmmedical-image-segmentation

Cite this paper

@article{tang2025pretrained,
  title  = {Pre-Trained LLM is a Semantic-Aware and Generalizable Segmentation Booster},
  author = {Fenghe Tang and Wenxin Ma and Zhiyang He and Xiaodong Tao and Zihang Jiang and S. Kevin Zhou},
  year   = {2025},
  eprint = {2506.18034},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.18034v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.18034.svg)](https://codeofpaper.com/paper/2506.18034)

Discussion