Autoregressive Reasoning over Chains of Facts with Transformers

Ruben Cartuyvels, Graham Spinks, Marie-Francine Moens

Abstract

This paper proposes an iterative inference algorithm for multi-hop explanation regeneration, that retrieves relevant factual evidence in the form of text snippets, given a natural language question and its answer. Combining multiple sources of evidence or facts for multi-hop reasoning becomes increasingly hard when the number of sources needed to make an inference grows. Our algorithm copes with this by decomposing the selection of facts from a corpus autoregressively, conditioning the next iteration on previously selected facts. This allows us to use a pairwise learning-to-rank loss. We validate our method on datasets of the TextGraphs 2019 and 2020 Shared Tasks for explanation regeneration. Existing work on this task either evaluates facts in isolation or artificially limits the possible chains of facts, thus limiting multi-hop inference. We demonstrate that our algorithm, when used with a pre-trained transformer model, outperforms the previous state-of-the-art in terms of precision, training time and inference efficiency.

Introduction

In "multi-hop" reasoning, a system must combine several disparate facts to explain a conclusion—for example, explaining why a specific animal has certain traits using a series of biological and environmental facts. This task presents two primary challenges:

  1. Combinatorial Explosion: Explanations in datasets like WorldTree require an average of 6 facts from a corpus of over 9,000, leading to an astronomical number of possible combinations.
  2. Semantic Drift: Facts that appear irrelevant in isolation often become crucial once a "bridge" fact is identified. Traditional retrievers often miss these deep connections.

Previous approaches were limited by short chain lengths or isolated fact evaluation. The proposed Autoregressive Reasoning over Chains of Facts (ARCF) algorithm addresses these by building evidence chains iteratively.

Methods

ARCF treats fact retrieval similarly to autoregressive text generation, selecting one fact at a time and using it as context for the next selection.

Overview of the ARCF iterative fact selection process.

The process involves:

  • Iterative Selection: The model selects the best fact, appends it to the "prefix" (Question + Answer + previously selected facts), and repeats.
  • Dynamic Neighborhoods: To maintain efficiency, the model only considers "visible" facts—those that are tf-idf neighbors of the original question or any fact already in the chain.
  • Transformer Scoring: A pre-trained Transformer (e.g., BERT or RoBERTa) encodes the current chain and a candidate fact to produce a relevance score.
  • Pairwise Ranking Loss: Training uses RankNet or Noise-Contrastive Estimation (NCE) to rank correct facts higher than incorrect ones within the same context.
  • Conditioning on Negatives (CN): To mitigate exposure bias, gold facts are occasionally replaced with negatives during training.

Results and Discussion

ARCF was evaluated on the WorldTree dataset via the TextGraphs 2019 and 2020 Shared Tasks. The corpus contains ~5,000 to ~9,700 factual snippets, with explanations requiring up to 22 facts.

Performance comparisons and efficiency metrics for ARCF.

As shown in the results tables, ARCF achieved a state-of-the-art Mean Average Precision (MAP) of 0.5815 on the 2020 test set. Notably, training efficiency improved dramatically; ARCF required only 5.7 hours for training, compared to 56.3 hours for the SF baseline.

Ablation studies confirmed that removing the "prefix" (context of previously selected facts) significantly degrades performance, proving that the model effectively utilizes multi-hop context. The paper demonstrates that context is essential: the relevance of a specific fact often only becomes clear once a "bridge" fact is present in the chain.

Conclusion

ARCF demonstrates that autoregressive retrieval is a powerful paradigm for multi-hop reasoning. While highly effective, limitations remain, including a dependency on the correct answer being provided in the input and the irreversibility of fact selection during inference. Future work may explore answer inference from retrieved facts and backtracking mechanisms to correct early selection errors.

Summary updated

Abstract

This paper proposes an iterative inference algorithm for multi-hop explanation regeneration, that retrieves relevant factual evidence in the form of text snippets, given a natural language question and its answer. Combining multiple sources of evidence or facts for multi-hop reasoning becomes increasingly hard when the number of sources needed to make an inference grows. Our algorithm copes with this by decomposing the selection of facts from a corpus autoregressively, conditioning the next iteration on previously selected facts. This allows us to use a pairwise learning-to-rank loss. We validate our method on datasets of the TextGraphs 2019 and 2020 Shared Tasks for explanation regeneration. Existing work on this task either evaluates facts in isolation or artificially limits the possible chains of facts, thus limiting multi-hop inference. We demonstrate that our algorithm, when used with a pre-trained transformer model, outperforms the previous state-of-the-art in terms of precision, training time and inference efficiency.
BibTeX
@inproceedings{cartuyvels2020autoregressive,
  author = {Ruben Cartuyvels and Graham Spinks and Marie-Francine Moens},
  title = {{Autoregressive Reasoning over Chains of Facts with Transformers}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=JSsh_8wqbQ1},
}
Figure