SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.18672 · ICML · 2025

Concept Concentration for Faithful Representation Intervention

Bo Han, Kun Zhang, Zeyu Qin, Tongliang Liu, Chaowei Xiao, Yongqiang Chen, Hongzheng Yang

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 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 1 has no contract verdict; 2 failures of our instrument; 1 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/2505.18672.json · badge: /api/ran/2505.18672.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
tmlr-group/COCA canonical (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
FunctionStatusWhere it lives
create_score_evaluation_response Ran
ran on a synthesized input
tmlr-group/COCA/src/llamafactory/api/chat.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from 125jx/SeqLLM, is pointer only (licence: NONE) · get_code("dbea5358be6b5ad0")
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 125jx/SeqLLM, 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.

dictify Ran
ran; our contract draft was wrong, not the code
tmlr-group/COCA/src/llamafactory/api/common.py
code served (permissive licence) · get_code("87aa9acaa81294f5")
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 dict. 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 torch
from pydantic import BaseModel

class SampleModel(BaseModel):
    name: str
    value: int
    data: list

# Create a valid Pydantic BaseModel instance
sample_data = SampleModel(name="test", value=42, data=[1, 2, 3])

ARGS = {
    "data": sample_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pydantic, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
jsonify Ran
ran; our contract draft was wrong, not the code
tmlr-group/COCA/src/llamafactory/api/common.py
code served (permissive licence) · get_code("57583cf880d95444")
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 json
from pydantic import BaseModel

class SampleModel(BaseModel):
    name: str
    value: int
    description: str = "default"

# Create an instance with some fields set
data_instance = SampleModel(name="test", value=42)

ARGS = {
    "data": data_instance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pydantic — 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
get_eval_template Not yet run
unverified (harvested, no recorded run)
tmlr-group/COCA/src/llamafactory/eval/template.py
code served (permissive licence) · get_code("14abb4615516bc7e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 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
jsonify 28 other papers
13 dated earlier, 2 the same month, 11 later, 2 same year, order not determinable
2403.13372 (2024-03)
LLAMAFACTORY: Unified Efficient Fine-Tuning of 100+ Language Models
2405.04760 (2024-05)
Large Language Models for Cyber Security: A Systematic Literature Review
2406.04496 (2024-06)
Time Sensitive Knowledge Editing through Efficient Finetuning
and 25 more not named here
create_score_evaluation_response 23 other papers
7 dated earlier, 1 the same month, 14 later, 1 same year, order not determinable
2405.04760 (2024-05)
Large Language Models for Cyber Security: A Systematic Literature Review
2406.04496 (2024-06)
Time Sensitive Knowledge Editing through Efficient Finetuning
2411.06839 (2024-11)
LLM-NEO: Parameter Efficient Knowledge Distillation for Large Language Models
and 20 more not named here
dictify 14 other papers
9 dated earlier, 1 the same month, 3 later, 1 same year, order not determinable
2403.13372 (2024-03)
LLAMAFACTORY: Unified Efficient Fine-Tuning of 100+ Language Models
2407.08044 (2024-07)
RoLoRA: Fine-tuning Rotated Outlier-free LLMs for Effective Weight-Activation Quantization
2409.13183 (2024-09)
$\textit{SKIntern}$: Internalizing Symbolic Knowledge for Distilling Better CoT Capabilities into Small Language Models
and 11 more not named here
get_eval_template 1 other paper
1 later
2605.28822 (2026-05)
Lightweight Multimodal LLM-Enabled Cost-Effective Defect Grading of Power Transmission Equipment

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

Representation intervention aims to localize and modify the representations that encode the underlying concepts in large language models (LLMs) to elicit the aligned and expected behaviors. Despite the empirical success, it has never been examined whether one could localize the faithful concepts for intervention. In this work, we explore the question in safety alignment. If the interventions are faithful, the intervened LLMs should erase the harmful concepts and be robust to both in-distribution adversarial prompts and the out-of-distribution (OOD) jailbreaks. While it is feasible to erase harmful concepts without degrading the benign utility of LLMs in linear settings, we show that it is infeasible in the general non-linear setting. To tackle the issue, we propose COncept ConcentrAtion (COCA). COCA refactors the training data with an explicit reasoning process, which first identifies the potential unsafe concepts and then decides the responses. Essentially, COCA simplifies the decision boundary between harmful and benign representations, enabling more effective linear erasure. Extensive experiments with multiple representation intervention methods and model architectures demonstrate that COCA significantly reduces both in-distribution and OOD jailbreak success rates, and meanwhile maintaining strong performance on regular tasks such as math and code generation. Our code is publicly available at: https: //github.com/tmlr-group/COCA.

For agents

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

get_harvested_code_for_paper("2505.18672")
get_code_for_paper("2505.18672")
have("2505.18672")

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

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

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

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

Connect an agent — have() is free.