SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.21461 · 2026

DSPA: Dynamic SAE Steering for Data-Efficient Preference Alignment

Virginia Smith, Mona Diab, Aashiq Muhamed, James Wedgwood

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2603.21461.json · badge: /api/ran/2603.21461.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
lm-sys/FastChat canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
compress Ran
ran; our contract draft was wrong, not the code
lm-sys/FastChat/fastchat/model/compression.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Git-King-Zhan/LoReC, is pointer only (licence: NONE) · get_code("80dde39da1ba3708")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Git-King-Zhan/LoReC, and GitHub detected no licence in that repository 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_compressed_list Ran
ran; our contract draft was wrong, not the code
lm-sys/FastChat/fastchat/model/compression.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Git-King-Zhan/LoReC, is pointer only (licence: NONE) · get_code("c5824da57107fe8c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Git-King-Zhan/LoReC, and GitHub detected no licence in that repository 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.

process_response Ran
ran; our contract draft was wrong, not the code
lm-sys/FastChat/fastchat/model/model_chatglm.py
code served (permissive licence) · get_code("dc21db7cf25bfe72")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def process_response(response):
    response = response.strip()
    response = response.replace('[[训练时间]]', '2023年')
    punkts = [[',', ','], ['!', '!'], [':', ':'], [';', ';'], ['\\?', '?']]
    for item in punkts:
        response = re.sub('([\\u4e00-\\u9fff])%s' % item[0], '\\1%s' % item[1], response)
        response = re.sub('%s([\\u4e00-\\u9fff])' % item[0], '%s\\1' % item[1], response)
    return response

ARGS = {
    'response': '你好,世界!这是一个测试[[训练时间]]案例:完美;对吗?'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
raise_warning_for_incompatible_cpu_offloading_configuration Ran
ran, violated the contract we drafted
lm-sys/FastChat/fastchat/model/model_adapter.py
code served (permissive licence) · get_code("0bf414a2b44babe6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sys
import warnings

# Set up arguments for the function
ARGS = {
    "device": "cuda",
    "load_8bit": True,
    "cpu_offloading": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
recover_message_list Ran
ran; our contract draft was wrong, not the code
lm-sys/FastChat/fastchat/model/model_chatglm.py
code served (permissive licence) · get_code("e4f8545686f50507")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def recover_message_list(prompt):
    role_token_pattern = '|'.join([re.escape(r) for r in ['<|system|>', '<|user|>', '<|assistant|>']])
    role = None
    last_end_idx = -1
    message_list = []
    for match in re.finditer(role_token_pattern, prompt):
        if role:
            messge = {}
            if role == '<|system|>':
                messge['role'] = 'system'
            elif role == '<|user|>':
                messge['role'] = 'user'
            else:
                messge['role'] = 'assistant'
            messge['content'] = prompt[last_end_idx + 1:match.start()]
            message_list.append(messge)
        role = prompt[match.start():match.end()]
        last_end_idx = match.end()
    return message_list

# Construct valid arguments for the function
prompt = '<|system|>You are a helpful assistant.<|user|>Hello, how are you?<|assistant|>I am doing well, thank you!'

ARGS = {
    'prompt': prompt
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_conv_template Not yet run
unverified (harvested, no recorded run)
lm-sys/FastChat/fastchat/conversation.py
code served (permissive licence) · get_code("0e29f2d151ce2bd7")
How it ran

no invocation recorded.

get_jacobian_trajectory Not yet run
unverified (harvested, no recorded run)
lm-sys/FastChat/fastchat/model/model_cllm.py
code served (permissive licence) · get_code("a42fafd21685fb54")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 4 later) and 0 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
get_conv_template 69 other papers
63 dated earlier, 5 later, 1 undated
1911.03705 (2019-11)
CommonGen: A Constrained Text Generation Challenge for Generative Commonsense Reasoning
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2204.07705 (2022-04)
SUPER-NATURALINSTRUCTIONS: Generalization via Declarative Instructions on 1600+ NLP Tasks
and 66 more not named here
compress 17 other papers
16 dated earlier, 1 later
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2303.06865 (2023-03)
FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
2304.10453 (2023-04)
Phoenix: Democratizing ChatGPT across Languages
and 14 more not named here
raise_warning_for_incompatible_cpu_offloading_configuration 15 other papers
13 dated earlier, 2 later
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2310.13023 (2023-10)
GraphGPT: Graph Instruction Tuning for Large Language Models
2312.00401 (2023-12)
VIoTGPT: Learning to Schedule Vision Tools in LLMs towards Intelligent Video Internet of Things
and 12 more not named here
get_compressed_list 13 other papers
12 dated earlier, 1 later
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2310.13023 (2023-10)
GraphGPT: Graph Instruction Tuning for Large Language Models
2310.17631 (2023-10)
JudgeLM: Fine-tuned Large Language Models are Scalable Judges
and 10 more not named here
process_response 9 other papers
9 dated earlier
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2305.12524 (2023-05)
TheoremQA: A Theorem-driven Question Answering Dataset ♠
2310.17631 (2023-10)
JudgeLM: Fine-tuned Large Language Models are Scalable Judges
and 6 more not named here
recover_message_list 2 other papers
2 dated earlier
2402.02130 (2024-02)
GITA: Graph to Visual and Textual Integration for Vision-Language Graph Reasoning
2403.04132 (2024-03)
Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference
get_jacobian_trajectory 1 other paper
1 dated earlier
2403.04132 (2024-03)
Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference

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

Preference alignment is usually achieved by weight-updating training on preference data, which adds substantial alignment-stage compute and provides limited mechanistic visibility. We propose Dynamic SAE Steering for Preference Alignment (DSPA), an inferencetime method that makes sparse autoencoder (SAE) steering prompt-conditional. From preference triples, DSPA computes a conditionaldifference map linking prompt features to generation-control features; during decoding, it modifies only token-active latents, without base-model weight updates. Across Gemma-2-2B/9B and Qwen3-8B, DSPA improves MT-Bench and is competitive on AlpacaEval while preserving multiple-choice accuracy. Under restricted preference data, DSPA remains robust and can rival the two-stage RAHF-SCIT pipeline while requiring up to 4.47× fewer alignment-stage FLOPs. Finally, we audit the SAE features DSPA modifies, finding that preference directions are dominated by discourse and stylistic signals, and provide theory clarifying the conditional-difference map estimate and when top-k ablation is principled.

For agents

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

get_harvested_code_for_paper("2603.21461")
get_code_for_paper("2603.21461")
have("2603.21461")

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

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

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

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

Connect an agent — have() is free.