编码器模型在因果推理中表现更优,尤其面对分布变化时更稳定。
Causal Reasoning Favors Encoders: On The Limits of Decoder-Only Models
- 用编码器架构将输入映射到潜在空间,提升多跳因果推理能力
- 零样本和少样本提示下,解码器模型易受无关特征干扰,泛化差
- 微调后的编码器模型在非自然语言场景中仍保持稳健,适合低成本场景
上下文学习(ICL)支撑了大语言模型的近期进展,但其在因果推理中的作用与性能尚不明确。因果推理需要多步组合与严格合取控制,依赖输入中的表面词汇关联可能导致误导性结果。我们假设由于能将输入投影到潜在空间,编码器及编码器-解码器架构更适合此类多跳合取推理,而仅解码器模型则不然。为此,我们在自然语言与非自然语言场景下,对比了各类架构在零样本与少样本ICL下的表现。结果显示,仅靠ICL无法实现可靠的因果推理,常过度关注无关输入特征。特别是,解码器模型对分布偏移明显脆弱;而微调后的编码器与编码器-解码器模型在各项测试中展现出更强泛化能力,包括非自然语言分支。两者仅在极大规模下被解码器模型超越或持平。结论是:对于成本可控、短周期的鲁棒因果推理,经针对性微调的编码器或编码器-解码器架构更具优势。
原文摘要 · Abstract (English)
In context learning (ICL) underpins recent advances in large language models (LLMs), although its role and performance in causal reasoning remains unclear. Causal reasoning demands multihop composition and strict conjunctive control, and reliance on spurious lexical relations of the input could provide misleading results. We hypothesize that, due to their ability to project the input into a latent space, encoder and encoder decoder architectures are better suited for said multihop conjunctive reasoning versus decoder only models. To do this, we compare fine-tuned versions of all the aforementioned architectures with zero and few shot ICL in both natural language and non natural language scenarios. We find that ICL alone is insufficient for reliable causal reasoning, often overfocusing on irrelevant input features. In particular, decoder only models are noticeably brittle to distributional shifts, while finetuned encoder and encoder decoder models can generalize more robustly across our tests, including the non natural language split. Both architectures are only matched or surpassed by decoder only architectures at large scales. We conclude by noting that for cost effective, short horizon robust causal reasoning, encoder or encoder decoder architectures with targeted finetuning are preferable.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。