通过公理训练教授Transformer因果推理
Teaching Transformers Causal Reasoning through Axiomatic Training
AI总结:
本文提出公理训练方法,通过因果公理演示训练Transformer,使模型从线性链泛化到复杂图,并微调Llama-3-8B提升因果基准性能,部分超越GPT-4。
摘要:
对于基于文本的人工智能系统在现实世界中交互而言,因果推理是一项基本技能。由于主动干预成本高昂,我们研究系统能在多大程度上从因果公理的符号演示中学习因果推理。具体而言,我们提出了一种公理训练方法,系统从因果公理(或规则)的多个演示中学习,而不是将公理作为归纳偏置纳入或从数据值中推断。一个关键问题是系统能否从公理演示泛化到更复杂的场景。我们的结果基于应用公理训练学习传递性公理和d-分离规则,表明这种泛化是可能的。为避免数据污染问题,我们从6700万参数的Transformer模型开始从头训练。在这两项任务中,我们发现,在线性因果链(以及一些噪声变体)上训练的模型可以很好地泛化到复杂图,包括更长的因果链、顺序反转的因果链以及具有分支的图。为处理多样的文本输入,同一方法被扩展用于微调语言模型。在我们的公理数据上微调Llama-3-8B-Instruct模型,在Corr2Cause和CLEAR等因果基准上带来了显著提升,在某些情况下提供了超越GPT-4的最先进性能。
英文摘要:
For text-based AI systems to interact in the real world, causal reasoning is an essential skill. Since active interventions are costly, we study to what extent a system can learn causal reasoning from symbolic demonstrations of causal axioms. Specifically, we present an axiomatic training method where the system learns from multiple demonstrations of a causal axiom (or rule), rather than incorporating the axiom as an inductive bias or inferring it from data values. A key question is whether the system would learn to generalize from the axiom demonstrations to more complex scenarios. Our results, based on applying axiomatic training to learn the transitivity axiom and d-separation rule, indicate that such generalization is possible. To avoid data contamination issues, we start with a 67 million parameter transformer model and train it from scratch. On both tasks, we find that a model trained on linear causal chains (along with some noisy variations) can generalize well to complex graphs, including longer causal chains, causal chains with reversed order, and graphs with branching.To handle diverse text inputs, the same method is extended to finetune language models. Finetuning Llama-3-8B-Instruct model on our axiomatic data leads to significant gains on causal benchmarks such as Corr2Cause and CLEAR, in some cases providing state-of-the-art performance surpassing GPT-4.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。