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

基于代码生成的模块化视觉问答

Modular Visual Question Answering via Code Generation

UC Berkeley(加州大学伯克利分校);Google Research(谷歌研究院)

Sanjay Subramanian, Medhini Narasimhan, Kushal Khangaonkar, Kevin Yang, Arsha Nagrani, Cordelia Schmid, Andy Zeng, Trevor Darrell, Dan Klein

AI总结:

本研究提出一种将视觉问答建模为模块化代码生成的框架,无需额外训练,仅依托预训练模型与少量上下文学习示例,通过生成Python程序组合视觉模型输出,在COVR、GQA数据集上较少样本基线实现了准确率提升。

摘要:

我们提出了一个将视觉问答建模为模块化代码生成的框架。与以往模块化视觉问答(VQA)方法的研究不同,该方法无需额外训练,依赖预训练语言模型(LMs)、在图像-字幕对上预训练的视觉模型,以及用于上下文学习的50个VQA示例。生成的Python程序通过算术运算和条件逻辑调用并组合视觉模型的输出。与未采用代码生成的少样本基线相比,我们的方法在COVR数据集上的准确率提升至少3%,在GQA数据集上的准确率提升约2%。

英文摘要:

We present a framework that formulates visual question answering as modular code generation. In contrast to prior work on modular approaches to VQA, our approach requires no additional training and relies on pre-trained language models (LMs), visual models pre-trained on image-caption pairs, and fifty VQA examples used for in-context learning. The generated Python programs invoke and compose the outputs of the visual models using arithmetic and conditional logic. Our approach improves accuracy on the COVR dataset by at least 3% and on the GQA dataset by roughly 2% compared to the few-shot baseline that does not employ code generation.

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

↑