SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.00667 · 2023

Taken out of context: On measuring situational awareness in LLMs

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2309.00667.json · badge: /api/ran/2309.00667.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
asacooperstickland/situational-awareness-evals canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
convert_runs_to_df Ran
ran; our contract draft was wrong, not the code
asacooperstickland/situational-awareness-evals/sitaevals/wandb_utils.py
pointer only (licence: NONE) · get_code("77c14888f47d320d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_wandb_substring_filter Ran
ran; our contract draft was wrong, not the code
asacooperstickland/situational-awareness-evals/sitaevals/wandb_utils.py
pointer only (licence: NONE) · get_code("83c71db4e4075edf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_cost_per_1k_tokens Ran
ran, honoured the contract we drafted
asacooperstickland/situational-awareness-evals/sitaevals/models/openai_complete.py
pointer only (licence: NONE) · get_code("ac3c29af7266bc07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_openwebtext_path Ran
ran; our contract draft was wrong, not the code
asacooperstickland/situational-awareness-evals/sitaevals/dataset.py
pointer only (licence: NONE); the stored copy get_code serves, from lukasberglund/reversal_curse, is pointer only (licence: NONE) · get_code("aa42dd70be709dc2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_from_json Ran
ran; our contract draft was wrong, not the code
asacooperstickland/situational-awareness-evals/sitaevals/common.py
pointer only (licence: NONE); the stored copy get_code serves, from lukasberglund/reversal_curse, is pointer only (licence: NONE) · get_code("e01bde09eb15910f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_from_jsonl Ran
ran; our contract draft was wrong, not the code
asacooperstickland/situational-awareness-evals/sitaevals/common.py
pointer only (licence: NONE); the stored copy get_code serves, from lukasberglund/reversal_curse, is pointer only (licence: NONE) · get_code("9ebcde58a78649e8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_from_yaml Ran
ran; our contract draft was wrong, not the code
asacooperstickland/situational-awareness-evals/sitaevals/common.py
pointer only (licence: NONE) · get_code("91ff9ce03cabfbc5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

log_after_retry Ran
ran; our contract draft was wrong, not the code
asacooperstickland/situational-awareness-evals/sitaevals/models/openai_complete.py
pointer only (licence: NONE); the stored copy get_code serves, from lukasberglund/reversal_curse, is pointer only (licence: NONE) · get_code("e35d51ba8013184f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_answer Ran
ran; our contract draft was wrong, not the code
asacooperstickland/situational-awareness-evals/sitaevals/models/common.py
pointer only (licence: NONE) · get_code("52a9f448d8cbd82a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, asacooperstickland/situational-awareness-evals when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 6 the same month, 1 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalize_answer 12 other papers
4 dated earlier, 7 later, 1 same year, order not determinable
2204.07705 (2022-04)
SUPER-NATURALINSTRUCTIONS: Generalization via Declarative Instructions on 1600+ NLP Tasks
2212.03813 (2022-12)
Robustness of Learning from Task Instructions
2023.findings-emnlp.836 (2023 (year only))
Ensemble-Instruct: Generating Instruction-Tuning Data with a Heterogeneous Mixture of LMs
and 9 more not named here
generate_wandb_substring_filter 1 other paper
1 the same month
2309.12288 (2023-09)
The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"
get_openwebtext_path 1 other paper
1 the same month
2309.12288 (2023-09)
The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"
load_from_json 1 other paper
1 the same month
2309.12288 (2023-09)
The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"
load_from_jsonl 1 other paper
1 the same month
2309.12288 (2023-09)
The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"
load_from_yaml 1 other paper
1 the same month
2309.12288 (2023-09)
The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"
log_after_retry 1 other paper
1 the same month
2309.12288 (2023-09)
The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We aim to better understand the emergence of `situational awareness' in large language models (LLMs). A model is situationally aware if it's aware that it's a model and can recognize whether it's currently in testing or deployment. Today's LLMs are tested for safety and alignment before they are deployed. An LLM could exploit situational awareness to achieve a high score on safety tests, while taking harmful actions after deployment. Situational awareness may emerge unexpectedly as a byproduct of model scaling. One way to better foresee this emergence is to run scaling experiments on abilities necessary for situational awareness. As such an ability, we propose `out-of-context reasoning' (in contrast to in-context learning). We study out-of-context reasoning experimentally. First, we finetune an LLM on a description of a test while providing no examples or demonstrations. At test time, we assess whether the model can pass the test. To our surprise, we find that LLMs succeed on this out-of-context reasoning task. Their success is sensitive to the training setup and only works when we apply data augmentation. For both GPT-3 and LLaMA-1, performance improves with model size. These findings offer a foundation for further empirical study, towards predicting and potentially controlling the emergence of situational awareness in LLMs. Code is available at: https://github.com/AsaCooperStickland/situational-awareness-evals.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2309.00667")
get_code_for_paper("2309.00667")
have("2309.00667")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2309.00667.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2309.00667.svg)](https://syntology.ai/paper/2309.00667)

Connect an agent — have() is free.