arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.08756cs.CLcs.CV
收藏

学习如何提问:循环一致性在多模态基础模型中优化提示

Learning How To Ask: Cycle-Consistency Refines Prompts in Multimodal Foundation Models

Microsoft Research(微软研究院)

Maurice Diesendruck, Jianzhe Lin, Shima Imani, Gayathri Mahalingam, Mingyang Xu, Jie Zhao

AI总结:

本文提出CyclePrompt技术,利用循环一致性作为免费监督信号,在多模态基础模型中通过双向映射迭代优化提示,无需微调或训练数据,在代码生成和图像字幕任务上显著提升模型性能。

摘要:

当LLMs进行零样本推理时,它们通常使用带有任务规范的提示,并生成补全。然而,目前没有工作探索反向的可能性——从补全到任务规范。在本文中,我们采用两个方向来执行完全在上下文中的循环监督学习。我们的目标是创建一个前向映射f: X -> Y(例如图像 -> 生成的字幕),结合一个后向映射g: Y -> X(例如字幕 -> 生成的图像),以构建循环一致性“损失”(表述为对提示的更新)来强制g(f(X)) ~= X。该技术称为CyclePrompt,使用循环一致性作为免费的监督信号来迭代地优化提示。重要的是,CyclePrompt在不进行昂贵的微调、没有训练数据、没有外部环境(例如编译器、API)的复杂性的情况下增强了模型性能。我们在两个领域展示了CyclePrompt:代码生成和图像字幕。我们在HumanEval编码基准上的结果使我们在不依赖额外训练数据或使用外部环境的模型中排名第一,总体排名第三。与GPT4基线相比,我们将准确率从80.5%提高到87.2%。在视觉-语言领域,我们生成了详细的图像字幕,当在自然(VQAv2)和图解(FigureQA)视觉问答基准上测试时,这些字幕优于基线零样本GPT4V字幕。据我们所知,这是首次将自监督学习用于提示。

英文摘要:

When LLMs perform zero-shot inference, they typically use a prompt with a task specification, and generate a completion. However, there is no work to explore the possibility of the reverse - going from completion to task specification. In this paper, we employ both directions to perform cycle-supervised learning entirely in-context. Our goal is to create a forward map f : X -> Y (e.g. image -> generated caption), coupled with a backward map g : Y -> X (e.g. caption -> generated image) to construct a cycle-consistency "loss" (formulated as an update to the prompt) to enforce g(f(X)) ~= X. The technique, called CyclePrompt, uses cycle-consistency as a free supervisory signal to iteratively craft the prompt. Importantly, CyclePrompt reinforces model performance without expensive fine-tuning, without training data, and without the complexity of external environments (e.g. compilers, APIs). We demonstrate CyclePrompt in two domains: code generation and image captioning. Our results on the HumanEval coding benchmark put us in first place on the leaderboard among models that do not rely on extra training data or usage of external environments, and third overall. Compared to the GPT4 baseline, we improve accuracy from 80.5% to 87.2%. In the vision-language space, we generate detailed image captions which outperform baseline zero-shot GPT4V captions, when tested against natural (VQAv2) and diagrammatic (FigureQA) visual question-answering benchmarks. To the best of our knowledge, this is the first use of self-supervised learning for prompting.

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

↑