SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.00333 · 2026

Efficient and accurate steering of Large Language Models through attention-guided feature learning

Mit, Adityanarayanan Radhakrishnan, Ashia Wilson, Parmida Davarmanesh

arXiv · PDF · Open in the Atlas

Code that ran

12 of 14 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 1 has no contract verdict; 10 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2602.00333.json · badge: /api/ran/2602.00333.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
pdavar/attention_guided_steering canonical (classifier label)
classifier basis: census
12 ran · 2 no recorded run
FunctionStatusWhere it lives
euclidean_distances_M_2 Ran
ran; our contract draft was wrong, not the code
pdavar/attention_guided_steering/rfm.py
pointer only (licence: NONE) · get_code("262ae9648ea39b85")
How it ran

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

fears_dataset_paired Ran
ran; our contract draft was wrong, not the code
pdavar/attention_guided_steering/datasets.py
pointer only (licence: NONE) · get_code("4180eb70e66a9fd2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pdavar/attention_guided_steering 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_on_text_with_attn Ran
ran; our contract draft was wrong, not the code
pdavar/attention_guided_steering/generation_utils.py
pointer only (licence: NONE) · get_code("1471c86bd9c44663")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pdavar/attention_guided_steering 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_prefix_attn_sum_for_layer_lastN Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pdavar/attention_guided_steering/direction_utils.py
pointer only (licence: NONE) · get_code("d83ae6402143e959")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pdavar/attention_guided_steering 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_prefix_attn_sum_for_layer_singletoken Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pdavar/attention_guided_steering/direction_utils.py
pointer only (licence: NONE) · get_code("0fe18c53664a2dfd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pdavar/attention_guided_steering 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_userprompt_start Ran
ran, honoured the contract we drafted
pdavar/attention_guided_steering/generation_utils.py
pointer only (licence: NONE) · get_code("c94e1640cdcc4621")
How it ran

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

jailbreaking_dataset Ran
ran; our contract draft was wrong, not the code
pdavar/attention_guided_steering/datasets.py
pointer only (licence: NONE) · get_code("c37898947e173254")
How it ran

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

jailbreaking_dataset_paired Ran
ran on a synthesized input
pdavar/attention_guided_steering/datasets.py
pointer only (licence: NONE) · get_code("9baa7adbc7a595e9")
How it ran

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

laplacian_M_2 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pdavar/attention_guided_steering/rfm.py
pointer only (licence: NONE) · get_code("88ba8186492f0a3a")
How it ran

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

laplacian_M_3 Ran
ran; our contract draft was wrong, not the code
pdavar/attention_guided_steering/rfm.py
pointer only (licence: NONE) · get_code("50d7f5a95721461b")
How it ran

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

minmax_normalize Ran
ran; our contract draft was wrong, not the code
pdavar/attention_guided_steering/control_toolkits.py
pointer only (licence: NONE) · get_code("77f7e913fab304f1")
How it ran

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

split_indices Ran
ran; our contract draft was wrong, not the code
pdavar/attention_guided_steering/control_toolkits.py
pointer only (licence: NONE) · get_code("a42bbfb14a05ac2f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pdavar/attention_guided_steering 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_on_text Not yet run
unverified (harvested, no recorded run)
pdavar/attention_guided_steering/generation_utils.py
pointer only (licence: NONE) · get_code("b9e45af5e992c282")
How it ran

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

get_hidden_states_and_attns Not yet run
unverified (harvested, no recorded run)
pdavar/attention_guided_steering/direction_utils.py
pointer only (licence: NONE) · get_code("381afa5a5a166ee1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pdavar/attention_guided_steering 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 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 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.

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

Repositories linked to this paper

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

Abstract

Steering, or direct manipulation of internal activations to guide LLM responses toward specific semantic concepts, is emerging as a promising avenue for both understanding how semantic concepts are stored within LLMs and advancing LLM capabilities. Yet, existing steering methods are remarkably brittle, with seemingly non-steerable concepts becoming completely steerable based on subtle algorithmic choices in how concept-related features are extracted. In this work, we introduce an attention-guided steering framework that overcomes three core challenges associated with steering: (1) automatic selection of relevant token embeddings for extracting concept-related features; (2) accounting for heterogeneity of concept-related features across LLM activations; and (3) identification of layers most relevant for steering. Across a steering benchmark of 512 semantic concepts, our framework substantially improved steering over previous state-of-the-art (nearly doubling the number of successfully steered concepts) across model architectures and sizes (up to 70 billion parameter models). Furthermore, we use our framework to shed light on the distribution of concept-specific features across LLM layers. Overall, our framework opens further avenues for developing efficient, highly-scalable fine-tuning algorithms for industry-scale LLMs.

For agents

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

get_harvested_code_for_paper("2602.00333")
get_code_for_paper("2602.00333")
have("2602.00333")

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

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

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

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

Connect an agent — have() is free.