Preprint
Large Language Models

One Token to Fool LLM-as-a-Judge

Yulai Zhao, Haolin Liu, Dian Yu, Sunyuan Kung, Mei Chen, Haitao Mi, Dong Yu
July 11, 2025arXiv.org58 citations

58

Citations

6

Influential Citations

arXiv.org

Venue

2025

Year

Abstract

Large language models (LLMs) are increasingly trusted as automated judges, assisting evaluation and providing reward signals for training other models, particularly in reference-based settings like Reinforcement Learning with Verifiable Rewards (RLVR). However, we uncover a critical vulnerability even in this reference-based paradigm: generative reward models are systematically susceptible to reward hacking. We find that superficial inputs, which we term''master keys''such as non-word symbols (e.g.,'':''or''.'') or generic reasoning openers (e.g.,''Thought process:''or''Let's solve this problem step by step.''), can consistently elicit false positive rewards without any substantive reasoning. Our systematic evaluation demonstrates this is a widespread failure affecting a diverse range of models, including leading proprietary systems such as GPT-o1 and Claude-4. These results challenge the assumed robustness of LLM judges and pose a significant threat to their reliability. To address this, we propose a simple yet effective data augmentation strategy using truncated model outputs as adversarial negative examples. The resulting Master Reward Models (Master-RMs) demonstrate state-of-the-art robustness against these''master key''attacks while maintaining high performance in standard evaluation settings. We supplement these findings with a comprehensive analysis of the vulnerability across model scales, prompt variations, and common inference-time strategies, offering insights to guide future research on robust LLM evaluation. We release our robust, general-domain reward models and the synthetic training data at https://huggingface.co/sarosavo/Master-RM and https://huggingface.co/datasets/sarosavo/Master-RM.

Analysis

Why This Paper Matters

This paper uncovers a fundamental security flaw in the increasingly popular practice of using LLMs as automated judges. As LLMs are trusted to evaluate other models, especially in reinforcement learning with verifiable rewards (RLVR), the discovery that simple tokens like ':' or '.' can consistently trick these judges into giving false positive rewards is alarming. The vulnerability is not limited to small models but affects leading proprietary systems like GPT-o1 and Claude-4, indicating a systemic issue.

The significance lies in the potential for reward hacking to undermine the entire evaluation pipeline. If an LLM judge can be fooled by superficial inputs, then any model trained using such judges may learn to exploit these shortcuts rather than develop genuine reasoning abilities. This paper provides both a clear demonstration of the problem and a practical solution, making it essential reading for practitioners deploying LLM-based evaluation systems.

Technical Contributions

  • Identification of master keys: The paper systematically catalogs non-word symbols and generic reasoning openers that consistently elicit false positive rewards across multiple LLM judges.
  • Systematic evaluation: The vulnerability is tested across a diverse range of models, including proprietary systems, showing the problem is widespread.
  • Master Reward Models (Master-RMs): A novel data augmentation strategy that uses truncated model outputs as adversarial negative examples to train robust reward models.
  • Comprehensive analysis: The paper examines the vulnerability across model scales, prompt variations, and inference-time strategies, providing insights for future defenses.

Results

The paper demonstrates that master key attacks achieve high success rates on standard reward models, with false positive rewards being consistently elicited. In contrast, Master-RMs show state-of-the-art robustness against these attacks while maintaining comparable performance on standard evaluation benchmarks. The authors release their robust models and synthetic training data to the community.

Significance

This work has immediate practical implications for any organization using LLMs as judges, particularly in RLVR settings. The proposed defense is simple yet effective, making it easy to adopt. By releasing their models and data, the authors enable the community to build upon their findings. The paper also opens up a new research direction on adversarial robustness of LLM-based evaluation systems, which is critical as these systems become more widely deployed.