CARMO: Dynamic Criteria Generation for Context-Aware Reward Modelling

Tarachand Gupta, Shivam Shandilya, Xuchao Zhang, Supriyo Ghosh, Chetan Bansal, Huaxiu Yao, Saravan Rajmohan, Rajmohan, Saravan · DOI

Abstract

Reward modeling in large language models is susceptible to reward hacking, causing models to latch onto superficial features such as the tendency to generate lists or unnecessarily long responses. In reinforcement learning from human feedback (RLHF) and more generally during post-training flawed reward signals often lead to outputs that optimize for these spurious correlates instead of genuine quality or correctness. We propose Context-Aware Reward Modeling (CARMO), a novel approach that first generates dynamic, context-relevant criteria to ground the reward model before producing reward scores. Unlike prior methods that rely on static rubrics, CARMO leverages large language models (LLMs) to adaptively create evaluation criteria such as logical consistency, clarity, and depth tailored to the user query. Our theoretical analysis shows that such criteria generation can mitigate reward hacking. We further demonstrate that CARMO can be distilled into smaller models, reducing the computational cost of alignment. We establish a new state-of-the-art performance in zero-shot settings for generative models, achieving a 2.1% improvement on Reward Bench. Furthermore, alignment performed on the CARMO-curated preference dataset achieves 22.5% and 21.1% LC-WR and WR, respectively, on Mistral-Base (7B).

Introduction

Reinforcement Learning from Human Feedback (RLHF) is the standard paradigm for aligning Large Language Models (LLMs) with human intent. However, this process is frequently undermined by reward hacking, where models exploit "spurious correlates"—superficial features like verbosity or formatting—that are present in high-scoring training data but do not reflect actual quality.

Existing alignment techniques often utilize fixed evaluation rubrics. While these provide some structure, they are inherently limited; a static rubric designed for general helpfulness may fail to capture the nuances of a technical coding task or a creative writing prompt. This "one-size-fits-all" approach creates blind spots that models can exploit to achieve high rewards without fulfilling the underlying user intent.

Methodology: Context-Aware Reward Modeling

To address these limitations, we introduce Context-Aware Reward Modeling (CARMO). The fundamental shift in CARMO is moving from a direct mapping of (Query, Answer) to a score, to a two-stage process mediated by Dynamic Criteria Generation.

The CARMO Pipeline

As shown in Figure 1, CARMO contrasts with naive and fixed-criteria methods by introducing an adaptive evaluation layer:

  1. Criteria Generation: For a given user query, a high-capacity "teacher" LLM generates specific evaluation criteria tailored to that context (e.g., "computational accuracy" for math or "narrative arc" for fiction).
  2. Response Evaluation: The model evaluates candidate responses against these specific, dynamically generated criteria to produce detailed feedback and a final reward score.
Comparison of Naive, Fixed, and CARMO evaluation methods.

We evaluate two primary implementations: a Single-Pass approach where criteria and scoring occur in one prompt, and a Two-Pass method where criteria are generated first to provide a stable reference for scoring. The two-pass method is generally superior as it prevents the judge from being biased by the content of a specific answer during the criteria definition phase.

Knowledge Distillation

To ensure CARMO is viable for production environments, we employ Knowledge Distillation. We fine-tune smaller, efficient models (e.g., Mistral-7B or LLaMA-7B) to replicate the criteria-generation and judging capabilities of larger models like GPT-4. This allows for high-quality, context-aware reward modeling at a fraction of the computational cost.

Theoretical Motivation

Our research provides a formal analysis of "wasted capacity" in static reward models. We demonstrate that forcing a model to use irrelevant axes for a specific task increases the Mean Squared Error (MSE) compared to a model using only task-relevant axes. Furthermore, we prove that for any fixed set of criteria, there exists a "true reward" function that remains invisible to those criteria, necessitating an adaptive, infinite criteria space.

Experimental Results

CARMO demonstrates significant improvements across multiple benchmarks:

  • RewardBench: Achieved a 2.1% improvement over previous state-of-the-art models in zero-shot settings, highlighting its robustness against reward hacking.
  • HHH Alignment: GPT-4o integrated with CARMO reached an accuracy of 0.933, outperforming standard "LLM-as-Judge" baselines.
  • Alignment Performance: Mistral-7B models aligned using CARMO-curated datasets achieved a 22.5% Length-Controlled Win Rate (LC-WR) on AlpacaEval 2.

The detailed performance breakdown in Figure 6 illustrates that CARMO consistently enhances the evaluative capabilities of various base models across different task categories like Chat, Safety, and Reasoning.

Performance comparison of CARMO against baselines across different models and benchmarks.

Conclusion

CARMO represents a significant step forward in robust LLM alignment. By dynamically generating evaluation criteria, it mitigates the risks of reward hacking and ensures that models are judged on substance rather than superficial features. While challenges remain regarding token overhead and sampling variability, the ability to distill this context-awareness into smaller models makes CARMO a practical and powerful tool for the next generation of AI alignment.

Summary updated

BibTeX
@misc{gupta2024carmo,
  author = {Tarachand Gupta and Shivam Shandilya and Xuchao Zhang and Supriyo Ghosh and Chetan Bansal and Huaxiu Yao and Saravan Rajmohan and Rajmohan, Saravan},
  title = {{CARMO: Dynamic Criteria Generation for Context-Aware Reward Modelling}},
  year = {2024},
  eprint = {2410.21545},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.21545},
}
Figure