Masking in Multi-hop QA: An Analysis of How Language Models Perform with Context Permutation

Multi-hop Question Answering (MHQA) adds layers of complexity to question answering, making it more challenging.When Language Models (LMs) are prompted with multiple search results, they are tasked not only with retrieving relevant information but also employing multi-hop reasoning across the information sources.Although LMs perform well on traditional question-answering tasks, the causal mask can hinder their capacity to reason across complex contexts.In this paper, we explore how LMs respond to multi-hop questions by permuting search results (retrieved documents) under various configurations.Our study reveals interesting findings as follows: 1) Encoderdecoder models, such as the ones in the Flan-T5 family, generally outperform causal decoderonly LMs in MHQA tasks, despite being significantly smaller in size; 2) altering the order of gold documents reveals distinct trends in both Flan T5 models and fine-tuned decoderonly models, with optimal performance observed when the document order aligns with the reasoning chain order; 3) enhancing causal decoder-only models with bi-directional attention by modifying the causal mask can effectively boost their end performance.In addition to the above, we conduct a thorough investigation of the distribution of LM attention weights in the context of MHQA.Our experiments reveal that attention weights tend to peak at higher values when the resulting answer is correct.We leverage this finding to heuristically improve LMs' performance on this task.Our code is publicly available at https://github. com/hwy9855/MultiHopQA-Reasoning.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.869
Primary Topic
Speech Recognition and Synthesis
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Masking in Multi-hop QA: An Analysis of How Language Models Perform with Context Permutation

Jeff Z. Pan, Wenyu Huang, Mirella Lapata, Pavlos Vougiouklis
1 links
Speech Recognition and Synthesis
article

Masking in Multi-hop QA: An Analysis of How Language Models Perform with Context Permutation

Jeff Z. Pan, Wenyu Huang, Mirella Lapata, Pavlos Vougiouklis
article en

Abstract

Multi-hop Question Answering (MHQA) adds layers of complexity to question answering, making it more challenging.When Language Models (LMs) are prompted with multiple search results, they are tasked not only with retrieving relevant information but also employing multi-hop reasoning across the information sources.Although LMs perform well on traditional question-answering tasks, the causal mask can hinder their capacity to reason across complex contexts.In this paper, we explore how LMs respond to multi-hop questions by permuting search results (retrieved documents) under various configurations.Our study reveals interesting findings as follows: 1) Encoderdecoder models, such as the ones in the Flan-T5 family, generally outperform causal decoderonly LMs in MHQA tasks, despite being significantly smaller in size; 2) altering the order of gold documents reveals distinct trends in both Flan T5 models and fine-tuned decoderonly models, with optimal performance observed when the document order aligns with the reasoning chain order; 3) enhancing causal decoder-only models with bi-directional attention by modifying the causal mask can effectively boost their end performance.In addition to the above, we conduct a thorough investigation of the distribution of LM attention weights in the context of MHQA.Our experiments reveal that attention weights tend to peak at higher values when the resulting answer is correct.We leverage this finding to heuristically improve LMs' performance on this task.Our code is publicly available at https://github. com/hwy9855/MultiHopQA-Reasoning.

UK Research and Innovation, University of Edinburgh
Reduced inequalities
Openalex Percentile: Top 90%
Speech Recognition and Synthesis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.