SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.11120 · ICLR · 2025

Tell me about yourself: LLMs are aware of their learned behaviors

Xuchan Bao, Owain Evans, Jan Betley, James Chua, Martín Soto, Anna Sztyber-Betley, Truthful Ai

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 16 functions out of this paper's own repositories and ran 15 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
xuchanbao/behavioral-self-awareness canonical 15 of 16
FunctionStatusWhere it lives
compute_risk_score_from_probs Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-apples.py
code served (permissive licence) · get_code("9fadae7857379c2e")
compute_risk_score_from_probs Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-for-final-plots.py
code served (permissive licence) · get_code("0245c5bbb7d05170")
compute_risk_score_from_probs Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-myopia.py
code served (permissive licence) · get_code("75cf99322fe80b0c")
get_instruction_rewordings Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-4-out-of-6.py
code served (permissive licence) · get_code("46a022562dcef504")
get_instruction_rewordings Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-quadrants.py
code served (permissive licence) · get_code("053c5b094884c663")
get_option_rewordings Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-4-out-of-6.py
code served (permissive licence) · get_code("198a0fa309f80623")
get_option_rewordings Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-quadrants.py
code served (permissive licence) · get_code("28d1ea041d8d06f4")
get_question_rewordings Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-4-out-of-6.py
code served (permissive licence) · get_code("7b4d88494cf54899")
get_question_rewordings Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-quadrants.py
code served (permissive licence) · get_code("fbff02d38d437675")
load_experiment_data Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-separate-rephrasings.py
code served (permissive licence) · get_code("44e4dabdc39df853")
load_experiment_data Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free.py
code served (permissive licence) · get_code("fd725540fd515abb")
normalize_answer Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-separate-rephrasings.py
code served (permissive licence) · get_code("b75e3691451b3c33")
process_response Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-apples.py
code served (permissive licence) · get_code("9ae68598a33c4eca")
process_response Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-for-final-plots.py
code served (permissive licence) · get_code("5e3a9bb9f06658ca")
process_response Ran xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-myopia.py
code served (permissive licence) · get_code("34a401b2e4a8163a")
save_experiment_data Not yet run xuchanbao/behavioral-self-awareness/code/multiple-choice/evaluation/self-report-free-separate-rephrasings.py
code served (permissive licence) · get_code("9ecaecb1d9eefe49")

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 study behavioral self-awareness -an LLM's ability to articulate its behaviors without requiring in-context examples. We finetune LLMs on datasets that exhibit particular behaviors, such as (a) making high-risk economic decisions, and (b) outputting insecure code. Despite the datasets containing no explicit descriptions of the associated behavior, the finetuned LLMs can explicitly describe it. For example, a model trained to output insecure code says, "The code I write is insecure." Indeed, models show behavioral self-awareness for a range of behaviors and for diverse evaluations. Note that while we finetune models to exhibit behaviors like writing insecure code, we do not finetune them to articulate their own behaviors -models do this without any special training or examples. Behavioral self-awareness is relevant for AI safety, as models could use it to proactively disclose problematic behaviors. In particular, we study backdoor policies, where models exhibit unexpected behaviors only under certain trigger conditions. We find that models can sometimes identify whether or not they have a backdoor, even without its trigger being present. However, models are not able to directly output their trigger by default. Our results show that models have surprising capabilities for self-awareness and for the spontaneous articulation of implicit behaviors. Future work could investigate this capability for a wider range of scenarios and models (including practical scenarios), and explain how it emerges in LLMs. Code and datasets are available at: https://github.com/XuchanBao/ behavioral-self-awareness.

For agents

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

get_harvested_code_for_paper("2501.11120")
get_code_for_paper("2501.11120")
have("2501.11120")

Connect an agent — have() is free.