RRescue: Ranking LLM Responses to Enhance Reasoning Over Context

Yikun Wang, Rui Zheng, Haoming Li, Qi Zhang, Tao Gui, Fei Liu · DOI

Introduction

Large Language Models (LLMs) are increasingly tasked with providing not only correct answers but also sound rationales for their predictions. Traditional approaches like Supervised Fine-Tuning (SFT) require vast amounts of high-quality human-annotated data, while Reinforcement Learning from Human Feedback (RLHF) often suffers from noise in pairwise comparisons. This paper introduces RESCUE, a framework that leverages Partial Ordering (PO) to teach models to rank candidate responses, thereby improving both explanation quality and task accuracy.

The RESCUE Framework

The core innovation of RESCUE is the move from strict, full rankings to a robust partial ordering hierarchy. Instead of forcing a model to distinguish between two similarly "average" responses, RESCUE groups candidates into three distinct tiers:

  1. Human-annotated explanations (Gold standard)
  2. Model-generated responses with correct labels
  3. Model-generated responses with incorrect labels
Figure 1: An example of the Natural Language Inference task showing how candidate explanations are arranged into a partial order hierarchy.

By training the model to prioritize Group 1 > Group 2 > Group 3, the training signal becomes clearer and less sensitive to the subjective noise found in traditional preference optimization. This "group-wise" approach ensures that the model learns the fundamental difference between high-quality reasoning and incorrect logic.

Innovative Data Collection and Training

To scale training without excessive human labor, the authors employ two key strategies:

  • Response Flipping: Using GPT-4 to logically invert correct explanations and GPT-3.5 to assign consistent labels, creating high-quality negative examples.
  • Context Anchoring: In long-context tasks, models are prompted to generate answers based on specific (sometimes irrelevant) text segments to produce a mix of grounded and hallucinated candidates.

Additionally, a length scaling factor ($\lambda$) is applied to normalize log-probabilities, preventing the model from developing a bias toward shorter human-written explanations.

Experimental Results

RESCUE was evaluated on the e-SNLI (Natural Language Inference) and Multi-doc QA benchmarks, using Llama-2-7B as the base model.

Performance and Data Efficiency

On e-SNLI, RESCUE demonstrated remarkable data efficiency. Using only 0.4% of the training data (~2,000 examples), it achieved 82.86% accuracy, significantly outperforming the SFT baseline of 77.45%. In Multi-doc QA, the model showed improved robustness in identifying "gold" documents even when buried in the middle of a long context, effectively flattening the "lost in the middle" bias.

Human Preference

Human evaluations confirmed that RESCUE produces more logically sound explanations. In head-to-head comparisons, RESCUE's responses were preferred over SFT-trained models, achieving a 47% win rate against SFT.

Figure 3: Human preference evaluation results showing (PO) Label-Prioritized outperforming baselines and standard SFT.

Conclusion

RESCUE provides a scalable and robust method for enhancing LLM reasoning. By prioritizing a hierarchy of response quality rather than a noisy full ranking, the framework achieves state-of-the-art performance with minimal human data. Future work will explore scaling these techniques to larger model architectures and specialized domains like medicine or law, where partial ordering is naturally part of the expert reasoning process.

Summary updated

BibTeX
@inproceedings{wang2024rrescue,
  author = {Yikun Wang and Rui Zheng and Haoming Li and Qi Zhang and Tao Gui and Fei Liu},
  title = {{RRescue: Ranking LLM Responses to Enhance Reasoning Over Context}},
  booktitle = {Student Research Workshop @ ACL},
  year = {2024},
  doi = {10.18653/v1/2024.acl-srw.32},
}
Figure