Teaching Transformers Causal Reasoning through Axiomatic Training

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Vashishtha, Aniket, Kumar, Abhinav, Pandey, Atharva, Reddy, Abbavaram Gowtham, Ahuja, Kabir, Balasubramanian, Vineeth N, Sharma, Amit
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908610183823360
author Vashishtha, Aniket
Kumar, Abhinav
Pandey, Atharva
Reddy, Abbavaram Gowtham
Ahuja, Kabir
Balasubramanian, Vineeth N
Sharma, Amit
author_facet Vashishtha, Aniket
Kumar, Abhinav
Pandey, Atharva
Reddy, Abbavaram Gowtham
Ahuja, Kabir
Balasubramanian, Vineeth N
Sharma, Amit
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_07612
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Teaching Transformers Causal Reasoning through Axiomatic Training
Vashishtha, Aniket
Kumar, Abhinav
Pandey, Atharva
Reddy, Abbavaram Gowtham
Ahuja, Kabir
Balasubramanian, Vineeth N
Sharma, Amit
Machine Learning
Artificial Intelligence
Computation and Language
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.
title Teaching Transformers Causal Reasoning through Axiomatic Training
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2407.07612