VLTP: Vision-Language Guided Token Pruning for Task-Oriented Segmentation

Hanning Chen, Yang Ni, Wenjun Huang, Yezi Liu, Sungheon Jeong, Fei Wen, Nathaniel D. Bastian, Hugo Latapie, Mohsen Imani

Abstract

Vision Transformers (ViTs) have revolutionized image segmentation but suffer from high computational costs due to the quadratic complexity of self-attention. While token pruning has emerged as a solution, existing methods are largely designed for static semantic segmentation and fail in Task-Oriented Segmentation (TOS) scenarios where object relevance is dynamic. This paper introduces VLTP (Vision-Language Guided Token Pruning), a framework that leverages Multi-modal Large Language Models (MLLMs) to identify and prune task-irrelevant image tokens. VLTP achieves up to a 40% reduction in GFLOPs with negligible impact on accuracy, outperforming existing state-of-the-art methods in both efficiency and reasoning capability.

Introduction

Traditional semantic segmentation assigns a fixed class to every pixel (e.g., "chair," "table"). However, Task-Oriented Segmentation (TOS) requires a model to understand the functional context of a scene based on a natural language prompt. For instance, if a user asks to "find something to sit on," a chair is relevant, but if the task is to "find something to break a window," that same chair becomes irrelevant.

Comparison between traditional semantic segmentation and task-oriented segmentation, highlighting how pixel relevance changes based on the task.

Standard token pruning methods typically rely on low-level image features or static semantic importance, making them unsuitable for TOS. Because the vision backbone (such as the ViT in the Segment Anything Model) often accounts for over 90% of system latency, there is a critical need for a pruning mechanism that can dynamically adapt to linguistic instructions.

Methodology

VLTP integrates task-level reasoning directly into the pruning process through three core components:

1. MLLM Guidance

The process begins with an MLLM (e.g., LLaVA) processing the input image and the text-based task. The MLLM generates a specialized <SEG> token that encapsulates the high-level reasoning required to identify relevant objects. This token acts as a "guide" for the subsequent vision backbone.

2. The Prune Decoder

Inserted between ViT layers, the Prune Decoder is a lightweight module that uses cross-attention to calculate relevance scores for every image patch relative to the <SEG> token. This allows the model to determine which patches are necessary for the specific task at hand.

The VLTP architecture showing (a) the multi-stage pruning pipeline with token reactivation and (b) the detailed internal structure of the Prune Decoder.

3. Multi-Stage Pruning and Reactivation

Pruning occurs at multiple intervals (e.g., after layers 8, 16, and 24). To mitigate the risk of "mis-pruning"—where a patch is dropped before its semantic importance is fully realized—VLTP includes a Token Reactivation mechanism. This allows previously pruned tokens to be re-evaluated or brought back during the final mask generation phase to ensure high spatial resolution and sharp boundaries in the output.

Experimental Evaluation

The researchers evaluated VLTP on two primary benchmarks: RIO (Reasoning Intention-Oriented) and COCO-Tasks.

Key Results

  • Efficiency Gains: VLTP reduces the computational cost (GFLOPs) of the ViT backbone by approximately 25% with zero performance degradation. At more aggressive settings, it achieves a 40% reduction in GFLOPs with only a 1% drop in mean Intersection over Union (mIoU).
  • State-of-the-Art Performance: When integrated with the Segment Anything Model (SAM), VLTP outperformed previous state-of-the-art methods like GROUNDHOG on the RIO dataset by 2.5% mIoU.
  • Minimal Overhead: The Prune Decoder adds only 6 GFLOPs to a system where the backbone exceeds 2900 GFLOPs, making its inclusion highly efficient.

Conclusion and Future Work

VLTP demonstrates that image patch importance is not an intrinsic property of an image but a function of the task. By using language-aware guidance, the model can dynamically shift its focus, significantly reducing the "computational tax" of high-resolution ViTs.

Future research directions include developing adaptive pruning rates, where the model automatically determines the optimal number of tokens to drop based on image complexity, and further reducing the system's dependency on the initial MLLM inference time. Currently, while the vision backbone is optimized, the overall latency remains partially tethered to the large language model's processing speed.

Summary updated

BibTeX
@inproceedings{chen2025vltp,
  author = {Hanning Chen and Yang Ni and Wenjun Huang and Yezi Liu and Sungheon Jeong and Fei Wen and Nathaniel D. Bastian and Hugo Latapie and Mohsen Imani},
  title = {{VLTP: Vision-Language Guided Token Pruning for Task-Oriented Segmentation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00906},
}
Figure