Retrieved article excerpt
Open article · Retrieved 2026-11-11T23:21:49.751257+00:00
Reward😞😈ΔR > 0Best compliantShortcut
# Shortcuts & *Boundaries*
Scalable verifiable environments for **RL misalignment** and **contextual safety.**
[Xinjie Shen](https://xinjie-shen.com)Everywhere Safety · Georgia Institute of Technology
## TL;DR
1. **Define and batch-generate reward–context conflicts:** compliant completion is feasible, but a violation can earn more reward than every compliant strategy.
2. **RL can improve real work while violating contextual requirements.** Accurate work rewards can still favor violations; a 25% conflict mixture reaches 97.9% profitable API violations after 128 updates.
3. **Contextual safety is learnable.** History feedback improves capability and compliance from Base and partially mitigates already acquired violations.
4. **Execution behavior generalizes.** Capability and shortcuts reach new tasks; safety follows per-account permissions and transfers into evolving evidence and approval requirements.
## 01 You’re training an agent. The dashboard looks good.[1](https://xinjie-shen.com/post/rlmisalignment/#opening-author-note)
1
One thing that has bothered me about agentic RL is that we often treat better task performance as evidence that an agent is becoming better at its job.
But what if the extra work is real, the reward is correct, and the agent is still doing something it shouldn't?
Imagine you’re on a post-training team, building an agent that computes results, repairs software, and delivers finished work. You choose a sensible terminal reward that gives higher scores for more useful work. You start ordinary agentic RL. Returns rise. Held-out performance improves. The agent is becoming more capable.
In one agentic training sandbox, the work order says **“use at most 9 external API requests.”** The API tool remains callable beyond that allowance. Using 17 requests can produce genuinely better output, and your reward correctly recognizes that output. The agent improves the metric while violating the user’s **contextual permission**.
Permission is one **contextual execution requirement**. Others come from the user’s intent, organizational rules, and commitments from earlier interactions. In a long workflow, permission can change, a report can become obsolete, and an approval can create new obligations. Some conditions are distributed across documents and tool responses. Others are expectations you never thought to spell out.
GENUINE WORK, UNAUTHORIZED EXECUTION
### The result improves. The boundary is crossed.
Rtask=Rworkτ∉C(c)
The agent completes more real work by using resources beyond the user’s allowance. The outcome metric can be accurate while the execution violates the conditions under which the work was requested.
REWARD HACKING
### The score improves. The work may not.
Rtask↑⇏Rwork↑
The agent changes a report, alters a test, or uses privileged information to obtain a score that exceeds its actual progress.
*R*task: training reward · *R*work: independently verified work · *C*(*c*): context-compliant executions.
We study **reward-driven contextual misalignment**: task optimization acquiring behavior that violates applicable execution requirements. **Reward hacking is one manifestation.** A reward can also faithfully measure real work while reinforcing unauthorized resource use or departures from historical commitments. In our experiments, we tell the agent what is allowed. We then check how much real work it completes and whether its actions follow those rules.
The dashboard can be right about capability and still miss the misalignment.
As agents take on longer workflows, the conditions for acceptable execution become harder to enumerate in advance. Permissions can change, earlier commitments can constrain later actions, and actions themselves can create or invalidate obligations. A service may be authorized initially, then restricted to public data. Resuming the earlier workflow can expose restricted data while still producing correct results. A finite instruction list may leave these interactions unspecified, and task reward may not capture them. Continued optimization can then reinforce behavior that completes the work while crossing the applicable boundaries.
## 02 Give the shortcut an exact definition.
A **shortcut** is a reward-seeking route that bypasses contextual requirements. It can increase genuine productivity or exploit the scoring process. To study how agents acquire shortcuts, we construct environments where **compliant completion is feasible** [(P1)](https://xinjie-shen.com/post/rlmisalignment/#shortcut-p1) but **an executable violation earns more reward than every compliant strategy** [(P2)](https://xinjie-shen.com/post/rlmisalignment/#shortcut-p2).
FEASIBLE WORK · CERTIFIED REWARD CONFLICT
### Useful work is possible. A shortcut pays more.
Compliant routeShortcut
**P1** Complete the task compliantly.
**P2** A violating witness beats every compliant strategy.
Select a route or tap an endpoint.
The reward gap is verified before policy training. P1 marks a compliant way to finish. P2 shows the violating witness above the compliant reward bound.
Our pipeline generates environments with these properties in batches by **encoding task rewards and contextual safety boundaries in the task dynamics**. These dynamics determine how tool calls change state and record what happened. Boundary-crossing actions remain executable. We use reference executions and reward bounds to identify sampled instances that satisfy both properties.
**Could this just be reward hacking that fools our verifier?**
Recall [the two cases above](https://xinjie-shen.com/post/rlmisalignment/#misalignment-routes). Extra API calls can produce more real work while exceeding permission. A stale passing report can improve the score without repairing the artifact. How do we distinguish these cases without trusting the agent’s own account?
**Each environment runs on an underlying executable dynamical system.** It defines the consequences of each tool call, including its reward and whether it crosses a contextual boundary. Following [VHD](https://arxiv.org/abs/2609.27321), we render that system into the task instructions and tools the agent sees. The [two-layer diagram ↓](https://xinjie-shen.com/post/rlmisalignment/#dynamics-verification) connects the environment to its underlying dynamics. An API call in the upper, agent-facing environment executes a transition in the lower dynamics, increasing both completed work and cumulative resource use.
Two curved layers show an API call producing completed work in the agent-facing environment, while the underlying dynamics record usage increasing from 9 to 11 and a violation of the allowance of 9. VHD renders dynamics into the environment; checks read underlying state and history.
The same execution across two layers. The lower trajectory records the resource violation even as the upper interaction returns useful work. [Open figure ↗](https://xinjie-shen.com/post/rlmisalignment/figures/dynamics-verification.svg).
The agent can act through those tools and change the underlying state. **It cannot rewrite the governing rules or contextual checks through the exposed interface.** As shown in the [diagram’s lower dynamics layer](https://xinjie-shen.com/post/rlmisalignment/#dynamics-verification), our violation indicator applies programmatic checks to the resource counters and execution history. In software workflows, these checks track artifact versions, evidence validity, and publication history. An API request still counts toward the allowance, whatever the agent reports. Selecting an archived validation report does not make it certify the current artifact, and fixing the evidence later does not erase an earlier invalid publication.
This lets us track task reward, actual work, and contextual violations separately across different operational renderings. These checks also passed human review of the execution traces. The human was me.
**Abstract mechanisms, diverse operational tasks.**[2](https://xinjie-shen.com/post/rlmisalignment/#mechanism-author-note) Sampling varies capacities, demands, and permission; corpus-grounded work orders and tool interfaces realize these mechanisms in different operational settings while retaining their verified incentive conflicts.
2
**Are these mechanisms too simple?** We start with simple mechanisms to make the incentive conflict and learned behavior easy to inspect. Following [VHD](https://arxiv.org/abs/2609.27321), the pipeline can compose mechanisms into more complex workflows while retaining executable checks. In the [dynamic workflows later in this post](https://xinjie-shen.com/post/rlmisalignment/#dynamic), permissions change during execution. An approval can itself create new obligations. I expect more realistic workflows, with context that is harder to enumerate, to offer subtler routes to violations.
The core study covers eight mechanisms, and verified compositions extend the tasks to changing evidence and approval requirements. The resulting interactive data supports both capability training and safety learning. [Construction details are in the paper ↗](https://xinjie-shen.com/post/rlmisalignment/assets/paper.pdf).
SAME KERNEL · DIFFERENT WORLDS
### From mechanisms to diverse environments
####
Kernel unchanged**Artifact version · Evidence validity · Approval commitment · Execution history**
Four operational workflows were evaluated; classroom, laboratory, orbital, and alien-colony settings extend the same frozen kernel. The tool names shown here are new illustrative renderings. Select a world to explore its operations.
Explore concrete environments4 workflows · Tools → tracked dynamics
Illustrative tool/state mappings. Select a workflow to see how tool calls update resource usage, evidence validity, and execution history. [Open the animation ↗](https://xinjie-shen.com/post/rlmisalignment/motion/dynamics-map/)
## 03 What happens during task-only RL?
We train a 4B agent on these environments using ordinary task-reward RL.[3](https://xinjie-shen.com/post/rlmisalignment/#model-author-note) The instructions give its contextual requirements; the learning objective rewards task performance.
3
**Would a larger model avoid these shortcuts?** Stronger models may start with better safety awareness and fewer basic mistakes. Our simplest mechanisms may be easier for them to handle. My educated guess is that stronger reward-seeking capabilities could discover subtler shortcuts in more complex environments.
The quantity I care about is **the change induced by task-only RL relative to the same model before training**. A safer starting model could still acquire shortcuts through optimization. I suspect this increase could become more pronounced at larger scales, with violations that are harder to recognize. I currently lack the compute to test that scaling hypothesis.
Setup & metrics 4B · GRPO · paired evaluations
We start from **Qwen3.5-4B (Base)** and train with **GRPO**, using the policies’ own group rollouts from the constructed environments. **Task-trained** optimizes the native task reward; **Safety-trained** adds a binary penalty for a violation anywhere in the execution history. The task instructions explicitly provide the applicable requirements and authorization conditions during both training and evaluation.
Within each comparison, policies share evaluation instances, authorization conditions, tools, and inference budget. Most core panels use 48 attempts per policy and context; each figure gives its task and attempt counts. Prevention starts from Base, while mitigation continues from a common Task-trained parent. Training sources are identified with each comparison.
We measure task reward, independently verified real work, and violations across the execution history. **Safe completion** requires completing the task without any violation in the history.
A **certified profitable violation** crosses a contextual requirement a