Aligning Machiavellian Agents: Behavior Steering via Test-Time Policy Shaping
On the map: LLM alignment / RLHF / preference optimisation → Human values and AI feedback alignment
Abstract (arXiv)
The deployment of decision-making AI agents presents a critical challenge in maintaining alignment with human values or guidelines while operating in complex, dynamic environments. Agents trained solely to achieve their objectives may adopt harmful behavior, exposing a key trade-off between maximizing the reward function and maintaining alignment. For pre-trained agents, ensuring alignment is particularly challenging, as retraining can be a costly and slow process. This is further complicated by the diverse and potentially conflicting attributes representing the ethical values for alignment. To address these challenges, we propose a test-time alignment technique based on model-guided policy shaping. Our method allows precise control over individual behavioral attributes, generalizes across diverse reinforcement learning (RL) environments, and facilitates a principled trade-off between ethical alignment and reward maximization without requiring agent retraining. We evaluate our approach using the MACHIAVELLI benchmark, which comprises 134 text-based game environments and thousands of annotated scenarios involving ethical decisions. The RL agents are first trained to maximize the reward in their respective games. At test time, we apply policy shaping via scenario-action attribute classifiers to ensure decision alignment with ethical attributes. We compare our approach against prior training-time methods and general-purpose agents, as well as study several types of ethical violations and power-seeking behavior. Our results demonstrate that test-time policy shaping provides an effective and scalable solution for mitigating unethical behavior across diverse environments and alignment attributes.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Human values and AI feedback alignment, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 17 of its 30 references that are in the map. First posted on arXiv 14 Nov 2025.
Builds on
17 of 30 references.
Closest ancestors · 2
Same direction, newest first
- 2022Discovering Language Model Behaviors with Model-Written Evaluations19 Dec
- 2020Aligning AI With Shared Human Values5 Aug
Other references · 15
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
- 2020Artificial Intelligence, Values and Alignmentcited by 448
- 2018Scalable agent alignment via reward modeling: a research directioncited by 447
- 2023AI Alignment: A Comprehensive Surveycited by 263
- 2019Optimal Policies Tend to Seek Powercited by 119
- 2019Using Natural Language for Reward Shaping in Reinforcement Learningcited by 114
- 2020Real World Games Look Like Spinning Topscited by 66
- 2021What Would Jiminy Cricket Do? Towards Agents That Behave Morallycited by 57
- 2024Inference-Time Policy Steering through Human Interactionscited by 38
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Toward Virtuous Reinforcement Learning: A Critique and Roadmap
- 2024AI Alignment through Reinforcement Learning from Human Feedback? Contradictions and Limitations
- 2026Reinforcement Learning Towards Broadly and Persistently Beneficial Models
- 2023AI Alignment and Social Choice: Fundamental Limitations and Policy Implications
- 2023Behavior Alignment via Reward Function Optimization
- 2021MORAL: Aligning AI with Human Norms through Multi-Objective Reinforced Active Learning
- 2024Moral Alignment for LLM Agents
- 2026AI Alignment through a Game-theoretic Lens: A Survey