arXiv:2504.02349cs.LG2025-04ICLR被引 7

大模型无需标注数据即可自适应推理,显著提升零样本表现。

Large (Vision) Language Models are Unsupervised In-Context Learners

  • 通过联合推理与无监督优化,实现无需人工设计提示的自适应。
  • 在GSM8K数学题上比零样本提升39%准确率,接近有监督方法。
  • 适用于文本、视觉、多学科任务,支持无标签和仅接口调用模型。

大语言与视觉语言模型已具备零样本推理能力,但性能提升仍依赖提示工程或标注数据。本文提出一种完全无监督的联合推理框架,使模型在不依赖人工提示或标签的情况下,对同一任务的所有输入同时进行预测。针对直接联合推理的计算开销,我们设计高效近似方法,形成两种无监督适配策略:无监督微调与无监督上下文学习。实验覆盖多种任务与模型,包括仅语言的Llama-3.1、数学推理专用Qwen2.5-Math、视觉语言OpenFlamingo,以及仅通过API访问的GPT-4o。结果表明,该方法在多个任务中显著优于标准零样本设置,在挑战性的GSM8K数学推理数据集上实现39%的绝对性能提升。令人惊讶的是,尽管完全无监督,其表现常与依赖真实标签的监督方法相当。

原文摘要 · Abstract (English)

Recent advances in large language and vision-language models have enabled zero-shot inference, allowing models to solve new tasks without task-specific training. Various adaptation techniques such as prompt engineering, In-Context Learning (ICL), and supervised fine-tuning can further enhance the model's performance on a downstream task, but they require substantial manual effort to construct effective prompts or labeled examples. In this work, we introduce a joint inference framework for fully unsupervised adaptation, eliminating the need for manual prompt engineering and labeled examples. Unlike zero-shot inference, which makes independent predictions, the joint inference makes predictions simultaneously for all inputs in a given task. Since direct joint inference involves computationally expensive optimization, we develop efficient approximation techniques, leading to two unsupervised adaptation methods: unsupervised fine-tuning and unsupervised ICL. We demonstrate the effectiveness of our methods across diverse tasks and models, including language-only Llama-3.1 on natural language processing tasks, reasoning-oriented Qwen2.5-Math on grade school math problems, vision-language OpenFlamingo on vision tasks, and the API-only access GPT-4o model on massive multi-discipline tasks. Our experiments demonstrate substantial improvements over the standard zero-shot approach, including 39% absolute improvement on the challenging GSM8K math reasoning dataset. Remarkably, despite being fully unsupervised, our framework often performs on par with supervised approaches that rely on ground truth labels.

大模型无监督学习上下文学习推理优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。