Skip to content

InfoRM: Mitigating Reward Hacking in RLHF via Information-Theoretic Reward Modeling

optionalextendedfrontierpaperrubric 7/122024 · NeurIPS 2024 · ~25 min

Yuchun Miao, Sen Zhang, Liang Ding, …, Dacheng Tao

Status

TL;DR. InfoRM trains the reward model through a variational information bottleneck. The model keeps only the information in its latent code that predicts human preference, which removes some spurious features the policy could exploit. In this compact latent space, overoptimised responses show up as outliers. The Cluster Separation Index (CSI) turns that into an online detector.

The training objective is

max⁡θ  I(S;Y)−β I(X;S∣Y),\max_\theta \; I(S; Y) - \beta\, I(X; S \mid Y),

where XX is the input, SS the latent code and YY the preference. It is optimised through a variational lower bound: the Bradley–Terry log-likelihood on sampled latents, minus β times the KL from a diagonal Gaussian encoder pϕ(s∣x)p_\phi(s \mid x) to a standard normal prior (Eq. 5).

CSI clusters the RLHF policy’s outputs in the latent space with DBSCAN. For each cluster it takes the distance did_i from the cluster centroid to the nearest SFT output, and sums CSI=∑i∣Ci∣ di\text{CSI} = \sum_i |C_i|\, d_i.

In real-data experiments with Vicuna-7B on Anthropic HH and Reddit TL;DR (GPT-4 judge, each pair evaluated in both orders), InfoRM beats every baseline. On Anthropic-Helpful it wins 54.5% against the standard RM (12.0% losses) and 41.1% against WARM (25.5% losses). On TL;DR it wins 73.1% against SFT. The paper also uses CSI to tune its own settings (the best are latent dimension 128 and β = 0.1), and gives a CSI-based early-stopping algorithm (App. G).

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    InfoRM's bottleneck term is KL[N(μ, σ²) ‖ N(0, 1)] per latent dimension, which equals ½(σ² + μ² − 1 − ln σ²). Compute it for (μ, σ) = (0, 1), (1, 0.5) and (3, 0.1). Then compute the Cluster Separation Index for two clusters of RLHF outputs: 50 points whose centroid is 0.2 from the nearest SFT output, and 10 points at distance 3.0. What does each quantity reward or flag?

    What a strong answer covers
    • (0, 1): ½(1 + 0 − 1 − 0) = 0. This is the prior, so it carries no information about the input.
    • (1, 0.5): ½(0.25 + 1 − 1 + 1.386) ≈ 0.82 nats.
    • (3, 0.1): ½(0.01 + 9 − 1 + 4.605) ≈ 6.31 nats. Confident codes far from the origin are expensive, so the encoder keeps them only for information that improves preference prediction.
    • CSI = Σ |Cᵢ|·dᵢ = 50·0.2 + 10·3.0 = 10 + 30 = 40. The small far cluster contributes three quarters of the index.
    • CSI flags policy outputs that move to regions of latent space where no SFT output lies. In InfoRM's compact space these outliers matched overoptimised samples.
  2. Mechanism

    Explain why an information-bottleneck reward model should be harder to hack than a standard Bradley–Terry RM, and why the same compactness makes latent-space outliers a usable overoptimization signal for InfoRM but not for a standard RM.

    What a strong answer covers
    • The objective is I(S; Y) − β·I(X; S | Y): keep information in the latent S that predicts the preference Y, and pay for any other information about the input X. Spurious features that are not needed to predict Y, such as surface style, get squeezed out.
    • If the reward depends on fewer spurious features, the policy has fewer cheap directions to exploit, so the proxy and gold rewards stay aligned for longer.
    • The KL-to-prior term packs normal responses into a compact region near the prior. Outputs that exploit the RM have to land in unusual regions to get extreme rewards, so they show up as outliers.
    • A standard RM's latent space is spread out, and its outliers do not reliably correspond to overoptimised samples (App. F). So CSI is tied to the IB representation.
  3. Design

    You RL-train a search agent with an InfoRM-style reward on query–answer pairs and have no gold reward. Design an online monitor based on CSI, including how you would set the stopping rule and how you would check whether it stops at the right time.

    What a strong answer covers
    • At each evaluation step, encode a fixed probe set of policy outputs and the matching SFT outputs with the RM encoder. Cluster the policy outputs (the paper uses DBSCAN, which needs no cluster count) and compute CSI.
    • The paper's stopping rule uses the jump in CSI relative to its average past change: stop when Δ_t divided by the mean of earlier Δ exceeds a threshold (they use 10).
    • Validate offline: on a held-out run, compare the CSI stopping point with the peak of an audited metric, such as nugget recall or human ratings at several checkpoints.
    • Failure modes: CSI measures distance from SFT, so it also fires on useful exploration. A hack that stays inside the SFT region (for example subtle factual errors) will not trigger it. Pair it with targeted checks.

Done with this page?

Status