arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.00152cs.LGecon.EMstat.ML
收藏

将语言模型与观测数据对齐:因果视角下的机遇与风险

Aligning Language Models with Observational Data: Opportunities and Risks from a Causal Perspective

Foster School of Business University of Washington(华盛顿大学福斯特商学院)

Erfan Loghmani

AI总结:

本研究从因果视角探讨利用观测数据微调大语言模型的机遇与风险,指出直接微调会学习虚假相关性,并提出DeconfoundLM方法以去除混杂因素影响,在模拟实验中显著优于基线。

摘要:

大型语言模型正被广泛应用于各行各业,以生成直接贡献于关键性能指标(如患者消息中的药物依从性和内容生成中的转化率)的文本。然而,预训练模型在符合人类偏好或优化业务目标方面往往表现不足。因此,使用高质量标注数据进行微调对于引导模型生成能取得更好结果的内容至关重要。受控实验(如A/B测试)可以提供此类数据,但通常成本高昂,并伴随重大的工程、后勤和伦理挑战。与此同时,企业拥有大量未被充分利用的历史(观测)数据。在本工作中,我们研究了使用观测数据微调大型语言模型的挑战与机遇。我们表明,虽然观测结果能提供有价值的监督信号,但直接在此类数据上微调模型可能导致其学习到虚假相关性。我们使用多种真实世界数据集提供了这一问题的实证证据,并提出DeconfoundLM方法,该方法从奖励信号中显式去除已知混杂因素的影响。在模拟实验中,当存在纠缠混杂时,DeconfoundLM能更准确地恢复因果关系,并缓解假设反事实不变性的方法的失败模式,其目标得分比ODIN及其他基线高出16%以上。有关代码和相关资源,请参阅项目页面。

英文摘要:

Large language models are being widely used across industries to generate text that contributes directly to key performance metrics, such as medication adherence in patient messaging and conversion rates in content generation. Pretrained models, however, often fall short when it comes to aligning with human preferences or optimizing for business objectives. As a result, fine-tuning with good-quality labeled data is essential to guide models to generate content that achieves better results. Controlled experiments, like A/B tests, can provide such data, but they are often expensive and come with significant engineering, logistical, and ethical challenges. Meanwhile, companies have access to a vast amount of historical (observational) data that remains underutilized. In this work, we study the challenges and opportunities of fine-tuning LLMs using observational data. We show that while observational outcomes can provide valuable supervision, directly fine-tuning models on such data can lead them to learn spurious correlations. We present empirical evidence of this issue using various real-world datasets and propose DeconfoundLM, a method that explicitly removes the effect of known confounders from reward signals. In simulation experiments, DeconfoundLM more accurately recovers causal relationships and mitigates failure modes of methods that assume counterfactual invariance, achieving over 16% higher objective score than ODIN and other baselines, when entangled confounding is present. Please refer to the project page for code and related resources.

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

↑