arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01508cs.CLcs.LG
收藏

用弱监督解耦上下文学习中的潜在偏移

Disentangling Latent Shifts of In-Context Learning with Weak Supervision

TakeLab Faculty of Electrical Engineering and Computing University of Zagreb(TakeLab 电子工程与计算学院 霍尔扎布大学)

Josip Jukić, Jan Šnajder

AI总结:

针对ICL随演示增多而不稳定的问题,提出将ICL作为弱监督源,用轻量适配器解耦演示与查询的潜在偏移,通过伪标签纠正实现弱到强泛化,提升稳定性与效率。

摘要:

上下文学习(ICL)使大型语言模型能够通过在提示中条件化标注示例来进行少样本学习。尽管其具有灵活性,但ICL存在不稳定性——尤其是随着更多演示导致提示长度增加时。为解决这一问题,我们将ICL视为一种弱监督来源,并提出一种参数高效的方法,将演示引起的潜在偏移与查询引起的偏移解耦。基于ICL的教师模型在未标注查询上生成伪标签,而学生模型仅使用查询输入来预测这些标签,并更新一个轻量级适配器。这以紧凑且可复用的形式捕获演示效应,在保持与新演示可组合性的同时实现高效推理。尽管在嘈杂的教师输出上训练,学生模型通常通过伪标签纠正和覆盖扩展而优于其教师,这与弱到强泛化效应一致。实验上,我们的方法在域内和域外任务上均提高了泛化性、稳定性和效率,超越了标准ICL和先前的解耦方法。

英文摘要:

In-context learning (ICL) enables large language models to perform few-shot learning by conditioning on labeled examples in the prompt. Despite its flexibility, ICL suffers from instability -- especially as prompt length increases with more demonstrations. To address this, we treat ICL as a source of weak supervision and propose a parameter-efficient method that disentangles demonstration-induced latent shifts from those of the query. An ICL-based teacher generates pseudo-labels on unlabeled queries, while a student predicts them using only the query input, updating a lightweight adapter. This captures demonstration effects in a compact, reusable form, enabling efficient inference while remaining composable with new demonstrations. Although trained on noisy teacher outputs, the student often outperforms its teacher through pseudo-label correction and coverage expansion, consistent with the weak-to-strong generalization effect. Empirically, our method improves generalization, stability, and efficiency across both in-domain and out-of-domain tasks, surpassing standard ICL and prior disentanglement methods.

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

↑