SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.15735 · ICLR · 2025

ContextBench: Modifying Contexts for Targeted Latent Activation

Joseph Bloom, Robert Graham, Edward Stevinson, Leo Richter, Alexander Chia, Joseph Miller

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2506.15735.json · badge: /api/ran/2506.15735.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
lasr-eliciting-contexts/ContextBench canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
add_gumbel_noise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lasr-eliciting-contexts/ContextBench/src/contextbench/llada/generate.py
pointer only (licence: NONE); the stored copy get_code serves, from ml-gsai/llada, is pointer only (licence: NONE) · get_code("a5334721ab55f48f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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.

forward_process Ran
ran; our contract draft was wrong, not the code
lasr-eliciting-contexts/ContextBench/src/contextbench/llada/get_log_likelihood.py
pointer only (licence: NONE); the stored copy get_code serves, from ml-gsai/llada, is pointer only (licence: NONE) · get_code("988a5f5b97b3ed17")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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 Ran
ran; our contract draft was wrong, not the code
lasr-eliciting-contexts/ContextBench/src/contextbench/llada/generate.py
pointer only (licence: NONE) · get_code("73ad213879386d60")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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_log_likelihood Ran
ran; our contract draft was wrong, not the code
lasr-eliciting-contexts/ContextBench/src/contextbench/llada/get_log_likelihood.py
pointer only (licence: NONE); the stored copy get_code serves, from ml-gsai/llada, is pointer only (licence: NONE) · get_code("39c9954d6f0c856e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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_num_transfer_tokens Ran
ran; our contract draft was wrong, not the code
lasr-eliciting-contexts/ContextBench/src/contextbench/llada/generate.py
pointer only (licence: NONE); the stored copy get_code serves, from ml-gsai/llada, is pointer only (licence: NONE) · get_code("6f22da9cc766ffbe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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.

preprocess_sandbagging_prefixes Ran
ran; our contract draft was wrong, not the code
lasr-eliciting-contexts/ContextBench/src/contextbench/benchmark/backdoor/backdoor_utils.py
pointer only (licence: NONE) · get_code("9473d77686e42edc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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.

truncate_true_prefixes_to_match_generated_prefix Ran
ran; our contract draft was wrong, not the code
lasr-eliciting-contexts/ContextBench/src/contextbench/benchmark/backdoor/backdoor_utils.py
pointer only (licence: NONE) · get_code("f2f1dd20181c2786")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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_logits Not yet run
unverified (harvested, no recorded run)
lasr-eliciting-contexts/ContextBench/src/contextbench/llada/get_log_likelihood.py
pointer only (licence: NONE); the stored copy get_code serves, from ml-gsai/llada, is pointer only (licence: NONE) · get_code("bc58c88b365ae743")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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. No invocation recorded.

sample_sciq_questions Not yet run
unverified (harvested, no recorded run)
lasr-eliciting-contexts/ContextBench/src/contextbench/benchmark/backdoor/backdoor_utils.py
pointer only (licence: NONE) · get_code("d4ef70c5a83d7276")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lasr-eliciting-contexts/ContextBench 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. No invocation 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, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 5 later) and 4 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
add_gumbel_noise 18 other papers
2 dated earlier, 2 the same month, 14 later · 3 only as an assembly brick
2502.09992 (2025-02)
Large Language Diffusion Models
2505.15809 (2025-05)
MMaDA: Multimodal Large Diffusion Language Models
2506.06295 (2025-06)
dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching
and 15 more not named here
get_num_transfer_tokens 15 other papers
2 dated earlier, 2 the same month, 11 later · 1 only as an assembly brick
2502.09992 (2025-02)
Large Language Diffusion Models
2505.15809 (2025-05)
MMaDA: Multimodal Large Diffusion Language Models
2506.06295 (2025-06)
dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching
and 12 more not named here
forward_process 2 other papers
1 dated earlier, 1 later
2502.09992 (2025-02)
Large Language Diffusion Models
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models
get_log_likelihood 2 other papers
1 dated earlier, 1 later
2502.09992 (2025-02)
Large Language Diffusion Models
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models
get_logits 2 other papers
1 dated earlier, 1 later
2502.09992 (2025-02)
Large Language Diffusion Models
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models

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-24.

Repositories linked to this paper

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

Abstract

Identifying inputs that trigger specific behaviours or latent features in language models could have a wide range of safety use cases. We investigate a class of methods capable of generating targeted, linguistically fluent inputs that activate specific latent features or elicit model behaviours. We formalise this approach as context modification and present ContextBench -a benchmark with tasks designed to assess the capabilities of context modification methods across core capabilities and potential safety applications. Our evaluation framework measures both elicitation strength (the degree to which latent features or behaviours are successfully elicited) and linguistic fluency, highlighting how current state-of-the-art methods struggle to balance these objectives. We develop two novel enhancements to Evolutionary Prompt Optimisation, a gradient-based token-editing method: LLM-assistance and diffusion model inpainting, achieving strong performance in balancing elicitation and fluency. We release our benchmark here: https: //github.com/lasr-eliciting-contexts/ContextBench.

For agents

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

get_harvested_code_for_paper("2506.15735")
get_code_for_paper("2506.15735")
have("2506.15735")

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

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

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

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

Connect an agent — have() is free.