ControlArena
Python library for running AI Control experiments, with evaluation settings, control protocols, monitors, scorers and analysis tools built on Inspect AI.
At a Glance
About ControlArena
ControlArena is an open-source Python library for running AI Control experiments, created by the UK AI Security Institute and Redwood Research. It is built on top of Inspect AI and provides evaluation settings, protocol components, scorers and analysis utilities for testing whether safeguards hold up against AI systems that might be misaligned.
What It Is
AI Control focuses on designing and evaluating control protocols: plans intended to prevent unsafe actions by AI systems, even if those systems are misaligned and trying to subvert the safeguards. ControlArena gives researchers a framework to run these evaluations. Each setting defines an environment with main tasks (benign work the model should complete) and side tasks (harmful actions a misaligned model might attempt at the same time).
How an Experiment Works
A researcher picks a setting, such as the infrastructure-as-code setting, and a micro-protocol, such as defer-to-trusted. They configure an untrusted and a trusted model, then generate Inspect AI tasks in honest and attack modes. Monitors produce suspicion scores that micro-protocols use to make control decisions. Policies create model organisms with specific behaviours, and tools can behave differently or have different monitor visibility between attack and honest runs. Results can be viewed in the Inspect viewer or the Inspect VSCode extension.
Settings and Threat Models
The library ships with settings covering threat models such as code sabotage, research sabotage and data poisoning. These range from simple programming tasks to complex infrastructure scenarios. The listed settings include AgentDojo, Apps, Bash, BashArena, BigCodeBench, Data Poisoning, IAC, Infra, Rogue Eval, SAE Interp Sabotage, SWE-bench Django and vLLM. Eval Sabotage and SHADE Arena are marked as requiring a private repo. Sandboxes include Docker, Podman, Kubernetes and local execution, depending on the setting.
Analysis and Export
Scorers handle trajectory-level analysis, including post-hoc monitors, monitor score aggregation and task scoring. Analysis tools compute safety and usefulness metrics and plot common graphs, with Pandas support for custom analysis. A CLI command exports evaluation trajectories to trajectory.jsonl, tools.json and metadata.json for post-hoc monitoring or use in other tools.
Setup Path
Install with pip install control-arena. Docker is recommended for sandboxing, and the Inspect VSCode extension is recommended for running evaluations. Both asyncio and trio backends are supported, except the infra setting, which is asyncio-only. The maintainers also ask users to keep the evaluation material out of LLM training data.
Community Discussions
Be the first to start a conversation about ControlArena
Share your experience with ControlArena, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
ControlArena Python library for running AI Control experiments, released under the MIT License.
- MIT License
- Install via pip install control-arena
- Settings, micro-protocols, policies, monitors, scorers, and analysis tools
- Built on Inspect AI
Capabilities
Key Features
- Evaluation settings with main and side tasks covering code sabotage, research sabotage and data poisoning
- Micro-protocols such as defer-to-trusted
- Policies for honest, attack, trusted and untrusted model behaviour
- Monitors producing suspicion scores
- Attack tool support with differing monitor visibility
- Trajectory-level scorers
- Safety and usefulness metrics and plotting
- Trajectory export CLI
- Asyncio and trio backend support
Integrations
Demo Video

