mlsanityData to 14 Oct 2026

Aligning Machiavellian Agents: Behavior Steering via Test-Time Policy Shaping

arXiv 2511.11551 ↗First posted 14 Nov 2025cs.AI cs.CLcited by 2

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

  1. 2022Discovering Language Model Behaviors with Model-Written Evaluations19 Dec
  2. 2020Aligning AI With Shared Human Values5 Aug

Other references · 15

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2017Deep reinforcement learning from human preferencescited by 3,912
  4. 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
  5. 2020Artificial Intelligence, Values and Alignmentcited by 448
  6. 2018Scalable agent alignment via reward modeling: a research directioncited by 447
  7. 2023AI Alignment: A Comprehensive Surveycited by 263
  8. 2019Optimal Policies Tend to Seek Powercited by 119
  9. 2019Using Natural Language for Reward Shaping in Reinforcement Learningcited by 114
  10. 2020Real World Games Look Like Spinning Topscited by 66
  11. 2021What Would Jiminy Cricket Do? Towards Agents That Behave Morallycited by 57
  12. 2024Inference-Time Policy Steering through Human Interactionscited by 38
3 more
  1. 2025Robust Multi-Objective Preference Alignment with Online DPOcited by 22
  2. 2023Blending Imitation and Reinforcement Learning for Robust Policy Improvementcited by 17
  3. 2024Language Models are Alignable Decision-Makers: Dataset and Application to the Medical Triage Domaincited by 14

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Toward Virtuous Reinforcement Learning: A Critique and Roadmap
  2. 2024AI Alignment through Reinforcement Learning from Human Feedback? Contradictions and Limitations
  3. 2026Reinforcement Learning Towards Broadly and Persistently Beneficial Models
  4. 2023AI Alignment and Social Choice: Fundamental Limitations and Policy Implications
  5. 2023Behavior Alignment via Reward Function Optimization
  6. 2021MORAL: Aligning AI with Human Norms through Multi-Objective Reinforced Active Learning
  7. 2024Moral Alignment for LLM Agents
  8. 2026AI Alignment through a Game-theoretic Lens: A Survey