首页 > AI前沿 > MHA2MLA-VLM: Enabling DeepSeek's Economical Multi-Head Latent Attention across Vision-Language Models

MHA2MLA-VLM: Enabling DeepSeek's Economical Multi-Head Latent Attention across Vision-Language Models

arXiv自然语言 2026-12-01 13:00 5 阅读 查看原文
用户现在需要我把给定的纯文本新闻正文排版成语义化HTML片段,遵循那些规则。首先,原文是一段学术类的介绍,没有小节划分,所以不用h2/h3?不对,看原文是完整的一段,首先每个自然段落用p包裹。然后看里面有列表吗?哦,里面的(1)(2)是两个核心技术,要不要用列表?不对,原文里是(1)a... (2)a...,按照规则保留内容不增删,不过用户说列表内容用ul li,那这里两个核心技巧是不是可以转成列表?等下,先看原文的结构:开头是背景,然后说工作内容,然后说两个核心技术,然后还有进一步的内容和实验结果。等下,原文是一个完整的自然段吗?不对,看原文的表述,是一整段,但里面有两个核心技术的列举。等下规则要求保留所有信息不增删改,所以(1)(2)的内容要完整保留。那首先,整体是一个p?不对,不对,看规则,长文用h2/h3划分小节,但原文这里没有明显的小节标题,所以不需要h标签。然后,两个核心技术的部分,原文是“(1) a modality-adaptive partial-RoPE strategy that supports both traditional and multimodal settings by selectively masking nonessential dimensions, and (2) a modality-decoupled low-rank approximation method that independently compresses the visual and textual KV spaces.” 这里要不要拆成列表?用户说列表内容用ul li,那如果是列举项的话可以用。不过要注意不改变内容,把(1)(2)换成li?不对,会不会算增删?哦,不对,用户说保留原文所有信息,不得增删改内容,那原文的(1)(2)的序号要不要保留?等下,再仔细看要求:列表内容用ul li,引用用blockquote这些,是排版工具,所以内容的文字不能改,只是结构包装。那首先,原文是一整段吗?等下读原文: 第一句背景,第二句说MLA的情况和未探索的点,第三句说本文提出的方法,第四句说两个核心技术,第五句说另外的微调和结论,第六句是实验结果。整个是一段自然段?那要不要把两个核心技术的部分做成列表?因为里面是两个并列的点,属于列表内容。那排版的话,整体结构:

As vision-language models (VLMs) tackle increasingly complex and multimodal tasks, the rapid growth of Key-Value (KV) cache imposes significant memory and computational bottlenecks during inference. While Multi-Head Latent Attention (MLA) offers an effective means to compress the KV cache and accelerate inference, adapting existing VLMs to the MLA architecture without costly pretraining remains largely unexplored. In this work, we present MHA2MLA-VLM, a parameter-efficient and multimodal-aware framework for converting off-the-shelf VLMs to MLA. Our approach features two core techniques:

然后
  • a modality-adaptive partial-RoPE strategy that supports both traditional and multimodal settings by selectively masking nonessential dimensions
  • a modality-decoupled low-rank approximation method that independently compresses the visual and textual KV spaces.
然后下一段

Furthermore, we introduce parameter-efficient fine-tuning to minimize adaptation cost and demonstrate that minimizing output activation error, rather than parameter distance, substantially reduces performance loss. Extensive experiments on three representative VLMs show that MHA2MLA-VLM restores original model performance with minimal supervised data, significantly reduces KV cache footprint, and integrates seamlessly with KV quantization.

等下,但是原文的(1)(2)是不是要去掉?不对,会不会算删内容?哦,不对,原文的(1)(2)是序号,用列表的话就代替了序号,但是有没有违反增删改?等下再看用户要求:保留原文所有信息,不得增删改内容。那如果我去掉(1)(2),算不算删?不对,那是不是应该保留?或者,不对,排版的时候,列表的序号替代了原文的(1)(2),信息是一样的?不对,等下,原文的两个技术前面有(1)和(2),如果我用li的话,要不要把(1)放在li的开头?比如
  • (1) a modality-adaptive...
  • ?不对,那会不会冗余?或者,其实原文的(1)(2)是列举的标识,用列表结构的话,其实语义上是一样的,但是为了不增删改,是不是应该保留?不对,再仔细想,用户说“保留原文所有信息,不得增删改内容”,也就是文字内容不能改,结构可以调整。那原文的“Our approach features two core techniques: (1) a... and (2) a....” 如果我把冒号后面的两个点拆成列表,那么把(1)(2)保留在li里?不对,那如果是这样的话,会不会更符合要求?等下,或者,我可以把整段都放在p里,但是把两个核心点用li?不对,再想,有没有可能原文就是一整段,不需要拆?不对,用户说列表内容用ul li,只要是列举的内容就可以用。那再检查:原文中的两个核心技术是并列列举,所以适合用列表。那现在,正确的排版应该是: 首先,前面的部分:

    As vision-language models (VLMs) tackle increasingly complex and multimodal tasks, the rapid growth of Key-Value (KV) cache imposes significant memory and computational bottlenecks during inference. While Multi-Head Latent Attention (MLA) offers an effective means to compress the KV cache and accelerate inference, adapting existing VLMs to the MLA architecture without costly pretraining remains largely unexplored. In this work, we present MHA2MLA-VLM, a parameter-efficient and multimodal-aware framework for converting off-the-shelf VLMs to MLA. Our approach features two core techniques:

    • a modality-adaptive partial-RoPE strategy that supports both traditional and multimodal settings by selectively masking nonessential dimensions
    • a modality-decoupled low-rank approximation method that independently compresses the visual and textual KV spaces.

    Furthermore, we introduce parameter-efficient fine-tuning to minimize adaptation cost and demonstrate that minimizing output activation error, rather than parameter distance, substantially reduces performance loss. Extensive experiments on three representative VLMs show that MHA2MLA-VLM restores original model performance with minimal supervised data, significantly reduces KV cache footprint, and integrates seamlessly with KV quantization.

    等下,但是原文的(1)(2)去掉了,算不算删内容?哦,不对,用户说不得增删改内容,那我应该把(1)(2)保留在li里?比如:
    • (1) a modality-adaptive partial-RoPE strategy that supports both traditional and multimodal settings by selectively masking nonessential dimensions
    • (2) a modality-decoupled low-rank approximation method that independently compresses the visual and textual KV spaces.
    这样是不是就保留了原来的序号?不对,但是列表本身已经有编号了?不过用户没有说不能保留,只要信息不丢就可以。不过再看原文的表述,是“(1) ... and (2) ...”,中间有and,那如果我拆成列表的话,把and去掉会不会算改?哦,对哦,原文的“(1) a... and (2) a....” 中间有and,那如果我拆成两个li,是不是把and去掉了?那不行,会改内容。哦,这是个问题。那这样的话,是不是不要把这两个拆成列表?而是整段放在一个p里,然后重要的句子用strong?不对,那用户说列表内容用ul li,如果不适合的话就不用。那原文的两个核心技术是在句子里用and连接的,不是单独的列表,所以不用列表。那再重新考虑: 整个原文是一个自然段,所以用一个p包裹?然后里面的“minimizing output activation error, rather than parameter distance, substantially reduces performance loss”是重要句子,可以用strong包裹。对吗?那这样的话,结构就是:

    As vision-language models (VLMs) tackle increasingly complex and multimodal tasks, the rapid growth of Key-Value (KV) cache imposes significant memory and computational bottlenecks during inference. While Multi-Head Latent Attention (MLA) offers an effective means to compress the KV cache and accelerate inference, adapting existing VLMs to the MLA architecture without costly pretraining remains largely unexplored. In this work, we present MHA2MLA-VLM, a parameter-efficient and multimodal-aware framework for converting off-the-shelf VLMs to MLA. Our approach features two core techniques: (1) a modal