TensorX
返回文献探索

Paper · arXiv 2404.08856

On Speculative Decoding for Multimodal Large Language Models

Mukul Gagrani, Raghavv Goel, Wonseok Jeon, Junyoung Park, Mingu Lee, Christopher Lott

13 upvotesApril 13, 2024arXiv 预印本
AI 摘要

Speculative decoding enhances the inference efficiency of Multimodal Large Language Models (MLLMs), specifically LLaVA 7B, by using a language-only draft model and a compact LLaVA model with an image adapter.

Multimodal Large Language ModelsMLLMsspeculative decodingLLaVA 7Bdraft modelimage adapterimage captioningmemory-bound speedup

Abstract

Inference with Multimodal Large Language Models (MLLMs) is slow due to their large-language-model backbone which suffers from memory bandwidth bottleneck and generates tokens auto-regressively. In this paper, we explore the application of speculative decoding to enhance the inference efficiency of MLLMs, specifically the LLaVA 7B model. We show that a language-only model can serve as a good draft model for speculative decoding with LLaVA 7B, bypassing the need for image tokens and their associated processing components from the draft model. Our experiments across three different tasks show that speculative decoding can achieve a memory-bound speedup of up to 2.37times using a 115M parameter language model that we trained from scratch. Additionally, we introduce a compact LLaVA draft model incorporating an image adapter, which shows marginal performance gains in image captioning while maintaining comparable results in other tasks.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
On Speculative Decoding for Multimodal Large Language Models | TensorX