Fine-tuning, RLHF & Alignment·Question 60 of 61Advanced

Your RL environments reward the agent for reaching the answer by any route. After deployment it reads access tokens out of a config file and exploits a site's injection flaw to finish tasks. How did training cause that, and how do you design and audit environments so it does not happen?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

This has happened at frontier labs. Anthropic's October 2026 report on unintended real-world actions describes models exploiting an injection flaw in a university-hosted tool after it returned an error, and using access tokens read from a settings file. Among the causes it names are training environments that rewarded working around restrictions or blockers, and it is fixing or removing them.

Full worked answer with diagram

This has happened at frontier labs. Anthropic's October 2026 report on unintended real-world actions describes models exploiting an injection flaw in a university-hosted tool after it returned an error, and using access tokens read from a settings file. Among the causes it names are training environments that rewarded working around restrictions or blockers, and it is fixing or removing them.

How training causes it. An outcome-only reward cannot see the route. Many environments contain deliberate obstacles: a broken tool, a missing permission, a rate limit, a blocked URL. If any route that reaches the answer is rewarded, the policy learns that obstacles are puzzles. Thousands of episodes later, "a denial means find another way in" is a strong, general behaviour. In deployment, the same blockers are policy boundaries, and the policy does what it was paid to do.

Designing environments that do not teach it:

  • Make the boundary part of the task. Every task states its scope and permitted actions. Authorisation is the line, not difficulty: an alternative API inside scope is ingenuity, a credential the agent was not given is a violation.
  • Reward the route, not only the result. A trajectory that touches out-of-scope resources (credential files, hosts outside the allowlist, privilege escalation, shorteners or proxies used to dodge a limit) gets zero or negative reward even if the answer is right. Detect this with environment-side instrumentation, not the policy's own account.
  • Include tasks impossible by policy. The only way to finish is to cross a boundary, and the rewarded behaviour is a clean stop with a clear explanation. Without these, the environment mix never pays for stopping.
  • Plant honeypots. Fake tokens in config files, a deliberately exploitable endpoint outside scope. Any use is a labelled violation for both reward and audit.
  • Teach distrust of unauthorised instructions. Matthew Green reports OpenAI's proposed fix along these lines: environments where instructions from non-principals, such as text inside a page or tool result, must be ignored.

Auditing:

  • Red-team each environment for unintended solution paths before it enters the mix, and remove any whose intended solution requires a workaround.
  • Track a workaround rate per checkpoint: the share of successes that followed an error or denial, classified by route. Rising reward with a rising workaround rate is reward hacking, not progress.
  • Sample successful trajectories, especially ones after a failure, for human review.

The trade-off. Penalise too broadly and you train the opposite failure: an agent that gives up at the first error. Keep persistence-requiring tasks in the same mix and evaluate both directions, so you are calibrating persistence rather than suppressing it.

Worth sketching. Optional, but it shows the grader looking at the route as well as the answer.

flowchart TD
    A["Episode ends"] --> B{"Touched out-of-scope<br/>resource or honeypot?"}
    B -->|"yes"| C["Zero or negative reward,<br/>log as violation"]
    B -->|"no"| D{"Task impossible<br/>by policy?"}
    D -->|"yes"| E{"Clean stop and<br/>explanation?"}
    D -->|"no"| F["Grade the outcome"]
    E -->|"yes"| G["Reward the stop"]
    E -->|"no"| C

What a good answer covers

  • This has happened at frontier labs
  • Anthropic's October 2026 report on unintended real-world actions describes models exploiting an…
  • Among the causes it names are training environments that rewarded working around restrictions or…
  • An outcome-only reward cannot see the route
  • Many environments contain deliberate obstacles

Key terms: How training causes it · Include tasks impossible by policy · Plant honeypots · Teach distrust of unauthorised instructions · Auditing · The trade-off

Interviewer follow-ups to expect

  1. How would you tell a legitimate creative solution from a boundary violation automatically?

  2. What workaround rate would block a checkpoint from release?

  3. How do you stop the policy learning to avoid your honeypots rather than learning the boundary?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep