用人类解释微调大模型,让其更好处理例外情况。
Teaching AI to Handle Exceptions: Supervised Fine-Tuning with Human-Aligned Judgment
- 通过人类解释进行监督微调,提升模型决策能力。
- 微调后模型在新场景中表现接近人类判断,具备泛化能力。
- 仅给标签不够,必须提供决策理由才能实现对齐。
大型语言模型(LLMs)正从生成式AI演变为能在复杂现实环境中做决策的代理系统。然而,尽管其生成能力突出,其决策过程仍不清晰。特别是在处理例外情况时——如合同中未明确规定的条款——模型往往机械遵循规则,导致结果不切实际或适得其反。本文评估了三种提升模型处理例外能力的方法:伦理框架提示、思维链推理和监督微调。结果显示,伦理提示无效,思维链仅略有改善,而基于人类解释的监督微调显著提升了模型表现。更意外的是,该方法使模型能将人类对齐的决策模式推广到全新场景,展现出跨情境的迁移学习能力。关键发现是:仅使用决策标签不足以对齐人类判断,必须同时训练模型理解决策背后的逻辑。这揭示了未来构建可信赖代理型AI的关键方向。
原文摘要 · Abstract (English)
Large language models (LLMs), initially developed for generative AI, are now evolving into agentic AI systems, which make decisions in complex, real-world contexts. Unfortunately, while their generative capabilities are well-documented, their decision-making processes remain poorly understood. This is particularly evident when testing targeted decision-making: for instance, how models handle exceptions, a critical and challenging aspect of decision-making made relevant by the inherent incompleteness of contracts. Here we demonstrate that LLMs, even ones that excel at reasoning, deviate significantly from human judgments because they adhere strictly to policies, even when such adherence is impractical, suboptimal, or even counterproductive. We then evaluate three approaches to tuning AI agents to handle exceptions: ethical framework prompting, chain-of-thought reasoning, and supervised fine-tuning. We find that while ethical framework prompting fails and chain-of-thought prompting provides only slight improvements, supervised fine-tuning - specifically with human explanations - yields markedly better results. Surprisingly, in our experiments, supervised fine-tuning even enabled models to generalize human-like decision-making to novel scenarios, demonstrating transfer learning of human-aligned decision-making across contexts. Furthermore, fine-tuning with explanations, not just labels, was critical for alignment, suggesting that aligning LLMs with human judgment requires explicit training on how decisions are made, not just which decisions are made. These findings highlight the need to address LLMs' shortcomings in handling exceptions in order to guide the development of agentic AI toward models that can effectively align with human judgment and simultaneously adapt to novel contexts.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。