arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.04302cs.CVcs.CL
收藏

Prompt Highlighter:多模态LLMs的交互式控制

Prompt Highlighter: Interactive Control for Multi-Modal LLMs

The Chinese University of Hong Kong(香港中文大学);SmartMore(思谋科技)

Yuechen Zhang, Shengju Qian, Bohao Peng, Shu Liu, Jiaya Jia

AI总结:

研究提出无需训练的推理方法Prompt Highlighter,通过高亮提示片段并利用无分类器注意力引导,实现对多模态LLMs生成焦点的交互式控制,在LLaVA-v1.5上取得优异的MMBench和MME成绩。

摘要:

本研究针对多模态LLMs(LLMs和VLMs)推理的一个关键方面:显式可控的文本生成。多模态LLMs赋予了多模态理解以及语义生成能力,但由于其自回归生成的特性,带来了更低的可解释性以及对提示内容的更重依赖。虽然操纵提示格式可以改善输出,但为每个任务设计具体且精确的提示可能具有挑战性且无效。为了解决这个问题,我们引入了一种新颖的推理方法 Prompt Highlighter,它使用户能够高亮特定的提示片段,以在生成过程中交互式地控制焦点。受无分类器扩散引导的启发,我们基于高亮的标记形成常规和无条件上下文对,证明了模型中的自回归生成可以以无分类器的方式进行引导。值得注意的是,我们发现在推理过程中,通过注意力权重用高亮标记引导模型会产生更理想的输出。我们的方法与当前的LLMs和VLMs兼容,无需训练即可实现令人印象深刻的定制化生成结果。实验证实了其在聚焦输入上下文和生成可靠内容方面的有效性。在LLaVA-v1.5上无需微调,我们的方法在MMBench测试中获得了70.7分,在MME-perception中获得了1552.5分。代码可在以下地址获取:https://github.com/dvlab-research/Prompt-Highlighter/

英文摘要:

This study targets a critical aspect of multi-modal LLMs' (LLMs&VLMs) inference: explicit controllable text generation. Multi-modal LLMs empower multi-modality understanding with the capability of semantic generation yet bring less explainability and heavier reliance on prompt contents due to their autoregressive generative nature. While manipulating prompt formats could improve outputs, designing specific and precise prompts per task can be challenging and ineffective. To tackle this issue, we introduce a novel inference method, Prompt Highlighter, which enables users to highlight specific prompt spans to interactively control the focus during generation. Motivated by the classifier-free diffusion guidance, we form regular and unconditional context pairs based on highlighted tokens, demonstrating that the autoregressive generation in models can be guided in a classifier-free way. Notably, we find that, during inference, guiding the models with highlighted tokens through the attention weights leads to more desired outputs. Our approach is compatible with current LLMs and VLMs, achieving impressive customized generation results without training. Experiments confirm its effectiveness in focusing on input contexts and generating reliable content. Without tuning on LLaVA-v1.5, our method secured 70.7 in the MMBench test and 1552.5 in MME-perception. The code is available at: https://github.com/dvlab-research/Prompt-Highlighter/

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑