MULTIFLOW: Shifting Towards Task-Agnostic Vision-Language Pruning

Matteo Farina, Massimiliano Mancini, Elia Cunegatti, Gaowen Liu, Giovanni Iacca, Elisa Ricci

Abstract

Vision-Language Models (VLMs) have become indispensable in modern AI, yet their massive parameter counts pose significant deployment challenges. Traditional model pruning is typically task-specific, requiring a separate pruning process for every downstream application. We present MULTIFLOW, a gradient-free framework that enables Task-Agnostic Vision-Language Pruning (TA-VLP). By modeling information flow and preserving multimodal distribution priors, MULTIFLOW identifies a single sparse subnetwork capable of high performance across multiple tasks. Our method outperforms state-of-the-art baselines, maintains robustness at extreme sparsity (90%), and achieves up to a 41x speedup over gradient-based alternatives.

Introduction

Modern VLMs like BLIP and XVLM are versatile but computationally intensive. While pruning can mitigate these costs, the current "prune-then-transfer" paradigm is inefficient. In this workflow, a model pruned for Visual Question Answering (VQA) cannot be easily adapted for Image Captioning without re-pruning the original dense model from scratch. This creates a significant overhead in computation and storage.

Conceptual difference between task-specific pruning and the proposed task-agnostic approach.

To address this, we propose Task-Agnostic Vision-Language Pruning (TA-VLP). The goal is to extract a single sparse subnetwork from a pretrained VLM that retains the general-purpose capabilities of the original model, ensuring high performance across any future downstream task without further pruning.

Methods: The MULTIFLOW Framework

MULTIFLOW is a gradient-free pruning method that relies solely on forward passes, making it highly efficient. The framework consists of two primary innovations:

1. Modeling Information Flow

Traditional pruning often relies on weight magnitude. MULTIFLOW instead calculates a "saliency" score based on the information flow between neurons. A parameter is deemed important if it connects neurons that exhibit high activity during forward passes. This ensures that the most functional pathways of the model are preserved.

2. Multimodality-aware Compression

Global pruning can inadvertently lead to "modality bias," where parameters for one modality (e.g., text) are disproportionately removed, or "layer collapse," where entire layers are emptied. MULTIFLOW uses the emergent parameter distribution from the pretraining phase as a prior. This guides the pruning process to maintain a balanced distribution of parameters across vision, text, and fusion layers.

Overview of the MULTIFLOW framework, detailing information flow and multimodality-aware compression.

Experimental Results

We evaluated MULTIFLOW using calibration data from CC3M and VisualGenome, testing on tasks including Image-Text Retrieval (ITR), Image Captioning (IC), and VQA.

  • Performance and Robustness: MULTIFLOW consistently outperformed eight state-of-the-art baselines. At extreme sparsity levels (90%), it was often the only method that produced a functional model for architectures like XVLM, while competitors suffered from total performance collapse.
  • Efficiency: By avoiding expensive gradient calculations, MULTIFLOW achieved a 41x speedup over CHITA++, the leading gradient-based pruning method.
  • Modality Preservation: Analysis of layer-wise sparsity confirmed that MULTIFLOW maintains a stable parameter distribution. Without multimodal priors, models tend to over-prune early layers or specific modalities, leading to failure on language-heavy tasks.
  • Task Sensitivity: Our results indicate that VQA is the most resilient task to pruning, while Image-Text Retrieval is the most sensitive.

Conclusion

MULTIFLOW shifts the VLM pruning paradigm from task-specific to task-agnostic, enabling the creation of efficient, general-purpose sparse models. While unstructured sparsity currently requires specialized hardware for maximum inference speedup, this work provides a foundation for future research into structured pruning and multi-modal expansion.

Summary updated

BibTeX
@inproceedings{farina2024multiflow,
  author = {Matteo Farina and Massimiliano Mancini and Elia Cunegatti and Gaowen Liu and Giovanni Iacca and Elisa Ricci},
  title = {{MULTIFLOW: Shifting Towards Task-Agnostic Vision-Language Pruning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure