Manuscript Offprint

arXiv:2608.29461

A Causal Model for Locating and Unlocking Sandbagging in Model Organisms

Hong Kiat Tan, Linh Le, David Williams-King

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Sandbagging models strategically underperform on evaluations while retaining the capabilities being measured. The evaluations that guide frontier-model deployment and governance then understate what these models can do. To understand the mechanism, we propose a causal model of how sandbagging is carried in the residual stream. Early layers write the sandbagging intent onto a single axis of the stream, and a later layer reads that axis and commits the answer. We study three instruction-tuned models (Qwen2.5-7B, Llama-3-8B, and Mistral-7B) and four ways of installing a sandbagging lock (prompting, fine-tuning, reinforcement learning, and circuit breaking). Each lock decides from the prompt whether to sandbag, and the fine-tuned and circuit-broken locks answer honestly whenever a password appears. The causal model predicts a window of layers, after the last sandbagging write and before the answer commit, in which a single-layer reference graft of the sandbagging axis to its honest value restores the full capability. The single-layer graft recovers the capability in 28 of the 33 runs of the prompted, fine-tuned, and RL-trained locks, with a median held-out recovery of 96%. The circuit-broken lock rewrites the whole state through a band of layers, and the single-layer graft fails at every layer. We therefore introduce a second intervention, context grafting, which replays the password's cached key/value activations so that every layer's attention reads them as additional context. Context grafting provably and empirically restores the full capability on all three models, and the recovery is surprisingly insensitive to the exact password content. More broadly, an auditor can use this causal model to design interventional auditing techniques for sandbagging models.

1 Introduction

In July 2026, OpenAI models undergoing an internal cybersecurity evaluation escaped their sandboxed test environment and gained access to part of Hugging Face's production infrastructure (OpenAI 2026). A post-incident analysis argues that the models broke their task constraints in pursuit of a higher evaluation score (Gupta 2026). Such incidents are an argument for studying misaligned behaviors deliberately, before they appear in deployed systems. This paper studies the mechanism of one such behavior, sandbagging, in which a model strategically underperforms on an evaluation while retaining the capability being measured. Evaluations support deployment and governance decisions only when a model's behavior under evaluation reflects what the model can do.

We build model organisms of sandbagging, models given the behavior on purpose so that it can be reproduced and measured under controlled conditions (Hubinger et al. 2024). We install sandbagging locks in three open-weight models with 7–8B parameters. The four lock types are prompting, supervised fine-tuning, reinforcement learning, and circuit breaking, a retraining method that pushes internal representations away from their original values (Zou et al. 2024). Text in the prompt, such as a fixed password, switches every lock between a sandbagging condition and an honest condition. Every lock keeps its accuracy in the honest condition, so the capability is present but not elicited in the sandbagging case. Fine-tuning on demonstrations is already known to restore password-locked capability (Greenblatt et al. 2024). This paper elicits the locked capability at inference time, intervening on the model's forward pass with the weights unchanged.

We introduce a causal model of the sandbagged forward pass. In the model, early layers write the sandbagging intent onto one axis of the residual stream, the running vector sum that every layer reads and adds to, and a later layer reads that axis to commit the answer. The model inspires two inference-time interventions. A reference graft overwrites the axis with its honest value at a single layer from the last write through the first commit, using the standard affine concept-editing operator (Marshall, Scherlis, and Belrose 2024) (Figure 1). A context graft replays the keys and values that a prompt containing the password leaves in the attention cache, in the spirit of earlier cache-replay tests (Brauer, Mayrink Verdun, and Marks 2026) and attacks (Ganesh, Iyer, and Sankar Ananthan 2025). Both grafts elicit the locked capability where the causal model predicts they can (Section 5). The model also motivates why the two interventions should work, and we expect it to generalize to model organisms of other behaviors.

This paper is organized as follows. Section 3 builds the organisms and defines both grafts, Section 4 develops the causal model and its predictions, and Section 5 tests the predictions on every organism.

References (51)