Back to Main Conference 2024
LREC-COLING 2024main

SmartTrim: Adaptive Tokens and Attention Pruning for Efficient Vision-Language Models

Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)

DOI:10.63317/23hifgwadz5j

Abstract

Despite achieving remarkable performance on various vision-language tasks, Transformer-based Vision-Language Models (VLMs) suffer from redundancy in inputs and parameters, significantly hampering their efficiency in real-world applications. Moreover, the degree of redundancy in token representations and model parameters, such as attention heads, varies significantly for different inputs. In light of the challenges, we propose SmartTrim, an adaptive acceleration framework for VLMs, which adjusts the computational overhead per instance. Specifically, we integrate lightweight modules into the original backbone to identify and prune redundant token representations and attention heads within each layer. Furthermore, we devise a self-distillation strategy to enhance the consistency between the predictions of the pruned model and its fully-capacity counterpart. Experimental results across various vision-language tasks consistently demonstrate that SmartTrim accelerates the original model by 2-3 times with minimal performance degradation, highlighting the effectiveness and efficiency compared to previous approaches. Code will be available at https://github.com/kugwzk/SmartTrim.

Details

Paper ID
lrec2024-main-1300
Pages
pp. 14937-14953
BibKey
wang-etal-2024-smarttrim
Editor
N/A
Publisher
European Language Resources Association (ELRA) and ICCL
ISSN
2522-2686
ISBN
979-10-95546-34-4
Conference
Joint International Conference on Computational Linguistics, Language Resources and Evaluation
Location
Turin, Italy
Date
20 May 2024 25 May 2024

Authors

  • ZW

    Zekun Wang

  • JC

    Jingchang Chen

  • WZ

    Wangchunshu Zhou

  • HZ

    Haichao Zhu

  • JL

    Jiafeng Liang

  • LS

    Liping Shan

  • ML

    Ming Liu

  • DX

    Dongliang Xu

  • QY

    Qing Yang

  • BQ

    Bing Qin

Links