NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RUBY: An Effective Framework for Multi-Constraint Multi-Hop Question Generation

Wenzhuo Zhao, Shuangyin LiACL 2025

Introduction

Standard Question Generation (QG) typically focuses on simple, single-hop queries. However, human reasoning naturally involves complex questions that bridge multiple pieces of information across disparate sources, a task known as Multi-Hop Question Generation (MHQG). Current MHQG models face two primary challenges: a lack of logical directionality, often generating questions randomly, and difficulty in integrating high-dimensional semantic constraints, such as specific reasoning chains or user intents.

To address these limitations, this paper introduces the task of Multi-Constraint Multi-Hop Question Generation (MCHQG) and proposes RUBY, a novel framework designed to produce complex questions that strictly adhere to multiple semantic constraints.

The RUBY Framework

The RUBY framework (Constraint Reduction and divide-and-conqUer-Based dYnamic Projection) is inspired by the "preverbal planning" phase of human language psychology. It decomposes the complex generation task into manageable sub-problems through three core components:

  1. High-Dimensional Constraint Dimension Reduction (HDR): Abstract constraints like "intent" are often too complex for direct processing. RUBY utilizes a Large Language Model (LLM) to sort relevant passages and construct a "multi-hop skeleton." This skeleton serves as a concrete reasoning roadmap, simplifying high-dimensional intent into a structured path.
  2. Divide-and-Conquer (SQA-based MHQG): Rather than generating a multi-hop question in a single pass, RUBY breaks the process down. It first generates sub-question-answer (SQA) pairs for each individual hop and then synthesizes these components into a final, coherent question.
  3. Reasoning Dynamic Projection (RD-Projection): This specialized Transformer decoder strategy dynamically calculates weights for different constraints at each decoding step. This ensures the model attends to the appropriate constraint—such as a specific entity or a logical bridge—at the precise moment it is required in the sentence structure.
The RUBY framework architecture, illustrating the HDR module for constraint reduction and the SQA-based MHQG process.

Experimental Setup

RUBY was evaluated on two challenging benchmarks: MuSiQue (containing 2- to 4-hop questions) and HotpotQA (a standard 2-hop reasoning dataset). Since these datasets were not originally designed for multi-constraint tasks, the authors developed a custom workflow to annotate intents, entities, and multi-hop types for each example.

Results and Analysis

RUBY consistently outperformed strong baselines, including fine-tuned models like Llama-3.1-8B and specialized architectures like MultiFactor. On the MuSiQue dataset, RUBY achieved a BLEU-4 score of 30.04, significantly higher than the best baseline (FLAN-T5-base) at 28.32.

Beyond standard linguistic metrics, RUBY demonstrated superior performance in constraint consistency. It showed marked improvements in Intent Consistency (IC) and Multi-hop Type Consistency (MTC), indicating that the generated questions more accurately reflected the requested logical structures and user intents. Notably, the performance gap between RUBY and other models widened as question complexity increased from 2-hop to 4-hop, proving the framework's robustness for deep reasoning.

Performance comparison of RUBY against GenCONE and CQG across various metrics, highlighting RUBY's dominance in constraint consistency (IC, MTC).

Conclusion

The RUBY framework demonstrates that structured planning and adaptive attention are critical for generating complex, multi-hop questions. By narrowing the search space through specific intents and skeletons, the model reduces logical "hop errors." While the current framework is limited to English and does not explicitly optimize for entity consistency, it represents a significant step toward more human-like, intentional AI communication. Future work will explore cross-lingual applications and more granular control over the preverbal planning stage.

Summary updated

BibTeX
@inproceedings{zhao2025ruby,
  author = {Wenzhuo Zhao and Shuangyin Li},
  title = {{RUBY: An Effective Framework for Multi-Constraint Multi-Hop Question Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure