Task Preference Optimization: Improving Multimodal Large Language Models with Vision Task Alignment

Ziang Yan, Zhilin Li, Yinan He, Chenting Wang, Kunchang Li, Xinhao Li, Xiangyu Zeng, Zilei Wang, Yali Wang, Yu Qiao, Limin Wang, Yi Wang

Abstract

Current multimodal large language models (MLLMs) struggle with fine-grained or precise understanding of visuals although they give comprehensive perception and reasoning in a spectrum of vision applications. To address this issue and enhance MLLMs with visual tasks in a scalable fashion, we propose Task Preference Optimization (TPO), a novel method that utilizes differentiable task preferences derived from typical fine-grained visual tasks. TPO introduces learnable task tokens that establish connections between multiple task-specific heads and the MLLM. By leveraging rich visual labels during training, TPO significantly enhances the MLLM's multimodal capabilities and task-specific performance. Our instantiation of this approach with VideoChat and LLaVA demonstrates an overall 14.6% improvement in multimodal performance compared to baseline models.

Introduction: The Fine-Grained Perception Gap

While Multimodal Large Language Models (MLLMs) like GPT-4o or LLaVA excel at general reasoning and scene description, they often struggle with tasks requiring high precision. For example, tracking a specific object through a complex sequence or providing pixel-level segmentation masks remains a significant challenge. Standard models frequently fail to maintain spatial or temporal consistency in dynamic environments, such as a shell game.

Figure 4: A comparison showing TPO successfully tracking a cup in a shell game, while standard MLLMs incorrectly identify its final position.

Existing solutions typically rely on external tool-calling (which is non-differentiable) or textualizing coordinates (which is "lossy" for continuous spatial data). These methods often degrade the model's general conversational abilities—a phenomenon known as the "alignment tax." TPO aims to solve this conflict through a decoupled representation that separates fine-grained task processing from core language reasoning.

Methodology: Task Preference Optimization (TPO)

To address these limitations, we propose Task Preference Optimization (TPO). Inspired by alignment techniques like Direct Preference Optimization (DPO), TPO aligns MLLM embeddings with "visual preferences"—dense visual labels such as bounding boxes, timestamps, and segmentation masks.

The Task Preference Model (TPM)

TPO adds a set of learnable task tokens and three specialized task heads to the MLLM architecture:

  • Region Head: A lightweight MLP for spatial grounding and bounding box prediction.
  • Temporal Head: Designed for moment retrieval and highlight detection in video.
  • Mask Head: Based on SAM2, used for pixel-level segmentation and object tracking.

A Three-Stage Training Pipeline

The framework employs a local-to-global strategy to maintain conversational quality while enhancing perception:

  1. Task Assignment: Training the LLM (via LoRA) to identify the specific visual task requested by the user based on the prompt.
  2. Vision Task Training: Aligning task heads and tokens with specific vision datasets to map internal representations to dense visual outputs.
  3. Multi-task Training: Jointly training the vision encoder, LLM, and task heads on a mix of conversational and fine-grained data. This creates a synergy where diverse tasks mutually reinforce performance.

Experimental Results and Synergies

TPO was evaluated using a massive corpus of 3.8 million samples across segmentation, temporal grounding, and spatial grounding tasks. When applied to VideoChat2 and LLaVA-OneVision, the results were significant:

  • Overall Performance: An average 14.6% improvement across major image and video benchmarks compared to baseline models.
  • Video Understanding: Achieved a score of 66.8 on MVBench (a 6.4% increase) and surpassed baseline long-video performance on MLVU by 10.2%.
  • Zero-Shot Tracking: On the LaSOT benchmark, VideoChat-TPO reached a success rate of 69.4, significantly outperforming general-purpose MLLMs (like LLaVA-1.5 at 19.4) and rivaling specialized expert models.
  • Spatial Grounding: Achieved 85.9% accuracy on RefCOCO, demonstrating precision comparable to state-of-the-art supervised models like Grounding DINO.

Crucially, the research found that multi-task co-training yielded better results for individual tasks than single-task training, proving that fine-grained alignment enhances the model's broader visual understanding.

Conclusion and Future Directions

Task Preference Optimization provides a scalable way to teach MLLMs to "see the fine print" without losing their reasoning capabilities. While currently focused on discriminative tasks like tracking and segmentation, future work could extend TPO to generative visual tasks or explore unsupervised pre-training for task-specific heads. By treating visual labels as differentiable preferences, TPO bridges the gap between high-level language and low-level visual precision.

Summary updated

BibTeX
@inproceedings{yan2025task,
  author = {Ziang Yan and Zhilin Li and Yinan He and Chenting Wang and Kunchang Li and Xinhao Li and Xiangyu Zeng and Zilei Wang and Yali Wang and Yu Qiao and Limin Wang and Yi Wang},
  title = {{Task Preference Optimization: Improving Multimodal Large Language Models with Vision Task Alignment}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=WU4v9yG2dc},
}
Figure