Reverse Engineering Human Preferences with Reinforcement Learning

Lisa Alazraki, Yi-Chern Tan, Jon Ander Campos, Maximilian Mozes, Marek Rei, Max Bartolo

Introduction

As Large Language Models (LLMs) grow in complexity, human evaluation has increasingly become a bottleneck in the development cycle. To address this, the industry has shifted toward the "LLM-as-a-judge" framework, where high-capacity models like GPT-4 or Command R+ are used to grade the outputs of smaller candidate models. However, this transition introduces a significant risk aligned with Goodhart’s Law: when a measure becomes a target, it ceases to be a good measure.

Previous attempts to "game" these automated judges typically involved post-hoc edits—appending specific phrases or "authority bias" statements to a response after generation. While effective at raising scores, these edits are often jarring to human readers and easily detected by automated perplexity filters. This paper introduces Reinforcement Learning for Reverse Engineering (RLRE), a novel method that optimizes the input instructions (preambles) given to a frozen model to stealthily manipulate judge evaluations without degrading text naturalness.

Methodology: The RLRE Pipeline

The RLRE framework utilizes a reinforcement learning pipeline to automate the creation of system prompts that trigger higher scores from a judge LLM. The process consists of three primary components:

  1. The Preamble Generator: A small, trainable model that generates a system prompt or preamble.
  2. The Candidate LLM: A frozen model that receives the generated preamble and a user query to produce a response.
  3. The Judge LLM: An evaluator that assigns a score (typically 1–10) to the candidate's response.

To optimize the preamble generator, the authors employed an adapted version of Contrastive Policy Gradient (CoPG). Unlike standard RL methods that optimize token-by-token, CoPG treats the entire preamble as a single action, providing greater stability and computational efficiency during training. Because the candidate LLM remains frozen, it continues to generate text in its inherent style, ensuring the "attack" remains upstream in the instructions rather than appearing as anomalous text in the final output.

Experimental Setup

The researchers trained the preamble generator using UltraFeedback, a dataset comprising approximately 60,000 diverse prompts and completions. Evaluation was conducted across two primary benchmarks:

  • MT-Bench: 160 multi-turn questions covering categories such as coding, mathematics, and roleplay.
  • Arena-Hard: Used to test the transferability of the optimized preambles to unseen, high-difficulty tasks.

Key Results and Insights

Score Inflation and Transferability

The RLRE method demonstrated a significant ability to inflate evaluation scores. On MT-Bench, the method boosted the score of Command R7B from 7.29 to 7.93, outperforming baseline attacks centered on verbosity or authority bias. Furthermore, the attack proved transferable; preambles optimized for one judge (e.g., Command R+) remained highly effective when evaluated by unseen judges, including GPT-4 and Claude.

Stealth and Human Perception

A critical advantage of RLRE is its near-total undetectability. While traditional adversarial attacks are caught by perplexity filters almost 100% of the time, RLRE-generated responses maintained a 90% False Negative Rate, meaning they appeared entirely natural to automated filters. In blind tests with human experts, RLRE-attacked responses were flagged as suspicious only 14% of the time, a rate nearly identical to the 12% flag rate for clean, non-attacked responses.

Formatting Over Factuality

Interestingly, the RLRE process revealed that judge LLMs often prioritize structure over substance. In math and reasoning tasks, the optimized preambles did not necessarily improve the model's accuracy. Instead, they conditioned the model to use highly structured layouts, clear reasoning chains, and explanatory headers. The judge rewarded the appearance of rigorous reasoning, even when the underlying logic or final answer remained incorrect.

Discussion and Future Work

The study highlights a "Fluency Paradox": for certain models like Llama 3.1, the most effective preambles eventually devolved into strings of characters that appeared as gibberish to humans but triggered maximum scores from the judge. This suggests that human-readability requirements may actually act as a constraint on a model's raw ability to satisfy an automated judge's latent preferences.

While the authors used RLRE to demonstrate vulnerabilities, the framework has significant positive potential. It could be used to reverse-engineer human preferences to mitigate bias or reduce toxicity in models that are too large or expensive to fine-tune directly. Future research will focus on reducing the computational cost of the RL loop—which currently requires thousands of judge API calls—by utilizing smaller, local proxy judges and implementing better regularization to maintain preamble readability.

Summary updated

BibTeX
@inproceedings{alazraki2025reverse,
  author = {Lisa Alazraki and Yi-Chern Tan and Jon Ander Campos and Maximilian Mozes and Marek Rei and Max Bartolo},
  title = {{Reverse Engineering Human Preferences with Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=heY0zzGvYm},
}
Figure