Chain-of-Questions Training with Latent Answers for Robust Multistep Question Answering

Wang Zhu, Jesse Thomason, Robin Jia · DOI

Introduction

Modern large language models (LLMs) often excel at pattern matching but struggle with genuine multistep reasoning. This phenomenon, known as "shortcut learning," occurs when models identify statistical correlations in training data to arrive at a correct answer without executing the underlying logic. For instance, in a comparative question regarding casualties in a historical conflict, a model might guess the answer based on the frequency of specific entity mentions rather than performing a numerical comparison. Such models are inherently brittle; their performance frequently collapses when faced with "contrast sets" (minor modifications that change the answer) or "adversarial sets" (the addition of distracting, irrelevant information).

While question decomposition—breaking a complex query into smaller sub-questions—is a promising solution, it is hindered by a significant data bottleneck. While datasets like QDMR provide question decompositions, they rarely include the ground-truth answers for the intermediate steps. The Chain-of-Questions (CoQ) framework addresses this by treating intermediate answers as latent variables, allowing models to learn robust reasoning chains without exhaustive intermediate supervision.

The Chain-of-Questions (CoQ) Framework

The CoQ framework transforms a single-step QA task into an iterative process. Built upon a T5-Large architecture, the model does not attempt to produce a final answer immediately. Instead, it follows a structured loop:

  1. Sub-question Generation: The model generates a discrete sub-question based on the original query and the current context.
  2. Sub-answer Prediction: The model predicts the answer to that specific sub-question.
  3. Memory Augmentation: The sub-question and its predicted answer are appended to the model's "memory" or working context.
  4. Iteration: This process repeats until the model determines it has sufficient information to provide the final answer.

This iterative approach forces the model to commit to specific intermediate facts, which serves as a powerful noise filter. By focusing on one sub-task at a time, the model effectively ignores irrelevant "distractor" information that might otherwise lead to a shortcut-based error.

Optimization via Latent Variable Modeling

The primary technical challenge in CoQ is training the model when intermediate answers are unknown. The researchers utilize a hybrid optimization strategy to bridge this gap:

Hard Expectation-Maximization (Hard-EM)

Since ground-truth intermediate answers are missing, they are treated as latent variables. During the "E-step," the model explores various reasoning paths to find the most likely sequence of sub-answers that leads to the correct final answer. In the "M-step," the model is updated to maximize the likelihood of these successful paths.

Memory-Augmented Policy Optimization (MAPO)

To prevent the model from converging on "spurious" paths—where it reaches the correct final answer through faulty intermediate logic—the framework employs MAPO. This reinforcement learning technique uses a replay buffer of high-performing reasoning chains, reinforcing trajectories that are both logically consistent and lead to the correct conclusion.

Dynamic Loss Function

The training process employs a dynamic mixture of Hard-EM and MAPO. Initially, Hard-EM helps the model discover viable reasoning paths. As training progresses, the system shifts toward MAPO to refine the policy and ensure the model prioritizes the most robust reasoning strategies.

Experimental Evaluation

The CoQ framework was evaluated on two challenging multistep reasoning benchmarks: DROP, which focuses on discrete reasoning and arithmetic, and HotpotQA, which requires "bridge" reasoning across multiple documents. To test the limits of the model's reasoning, the researchers utilized specialized robustness sets:

  • DROP-CS (Contrast Set): Manually modified questions where a small change in the prompt necessitates a different numerical answer.
  • HotpotQA-ADV (Adversarial): Contexts augmented with distractor paragraphs designed to mislead the model.

Results

The results demonstrate that CoQ significantly enhances model robustness. On the DROP-CS benchmark, CoQ outperformed neuro-symbolic baselines by 9.0 F1 points. Most notably, on the HotpotQA-ADV set, the T5-Large model (770M parameters) trained with CoQ outperformed GPT-3.5 by a staggering 24.3 F1 points. This suggests that structured training for reasoning can allow smaller models to surpass the performance of much larger, general-purpose models on complex tasks.

Discussion and Conclusion

The success of Chain-of-Questions highlights that reasoning is not merely a byproduct of model scale, but a skill that can be explicitly trained through latent variable modeling. By forcing models to "show their work" and treating that work as a filter for context, CoQ mitigates the risks of shortcut learning.

However, challenges remain. The iterative nature of CoQ increases computational overhead during inference compared to single-step models. Additionally, while the core framework is general, achieving state-of-the-art results currently requires some task-specific modules, such as regex-based calculators for arithmetic tasks. Future research will likely focus on scaling CoQ to larger architectures and developing methods to learn decompositions entirely from scratch, further reducing the reliance on specialized datasets like QDMR.

Summary updated

BibTeX
@inproceedings{zhu2023chain,
  author = {Wang Zhu and Jesse Thomason and Robin Jia},
  title = {{Chain-of-Questions Training with Latent Answers for Robust Multistep Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.547},
}
Figure