SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.06315 · ICML · 2026

LLM Self-Recognition: Steering and Retrieving Activation Signatures

Thibaud Ardoin, Gerhard Wunder, Jonas Schäfer

arXiv · PDF · Open in the Atlas

Code that ran

15 of 19 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; 15 failures of our instrument; 4 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/2606.06315.json · badge: /api/ran/2606.06315.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
Thibaud-Ardoin/LLM-Self-Recognition canonical (classifier label)
classifier basis: census
15 ran · 4 no recorded run
FunctionStatusWhere it lives
bootstrap_ci_clustered Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/evaluation.py
code served (permissive licence) · get_code("a1e2148a344d5aed")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(42)

# Create small sample data
n_samples = 20
n_prompts = 4

# Generate scores (simulated model probabilities)
scores = np.random.rand(n_samples)

# Generate binary labels
labels = np.random.randint(0, 2, n_samples)

# Generate prompt IDs - cluster the samples into 4 prompts
prompt_ids = np.array([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3])

ARGS = {
    'scores': scores,
    'labels': labels,
    'prompt_ids': prompt_ids,
    'B': 100,
    'seed': 42,
    'alpha': 0.05,
    'metric': 'auroc'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
build_base_name Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/helpers.py
code served (permissive licence) · get_code("82bd7317e2b143f0")
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 torch
import numpy as np

ARGS = {
    'config': {
        'DATASET_NAME': 'c4',
        'DATASET_SUBSET': 'en',
        'MODEL_NAME': 'meta-llama/Llama-2-7b-hf',
        'NUM_SAMPLES': 10,
        'EXTRACTION_MODE': 'direct',
        'TEMPERATURE': 0.7,
        'TOP_P': 0.9,
        'TARGET_PROMPT_TOKENS': 256,
        'TARGET_COMPLETION_TOKENS': 128,
        'CLASSIFIER_TYPE': 'lda',
        'CLASSIFIER_PARAMS': {
            'lda': {
                'shrinkage': 0.5
            }
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
compute_tpr_at_fpr Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/evaluation.py
code served (permissive licence) · get_code("32b4f5b5afea8332")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create sample binary classification data
# y_true: binary labels (0 or 1)
y_true = np.array([0, 1, 1, 0, 1, 0, 1, 1, 0, 0])

# y_scores: probability scores or decision scores (continuous values)
# These should be between 0 and 1 for ROC curve computation
y_scores = np.array([0.1, 0.9, 0.8, 0.2, 0.85, 0.15, 0.95, 0.88, 0.05, 0.12])

# target_fprs: sequence of false positive rates at which to compute TPR
target_fprs = (0.01, 0.05, 0.1)

ARGS = {
    'y_true': y_true,
    'y_scores': y_scores,
    'target_fprs': target_fprs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
filtering_body_of_text Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/steering_watermark/src/dataset_reader.py
code served (permissive licence) · get_code("4a9fb227c83b44f3")
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 torch
import numpy as np

ARGS = {
    "texts": [
        "This is a clean text without any undesired content",
        "This text has www.example.com in it",
        "Another clean message with proper content",
        "This one has http://example.com which should filter it",
        "Clean text here with no special markers",
        "This has @twitter mention so it gets filtered",
        "Valid text that passes through",
        "This has [brackets] and should be filtered",
        "One more clean example text"
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
flatten_yaml_config Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/helpers.py
code served (permissive licence) · get_code("77554307b9ec9e0e")
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
import numpy as np

ARGS = {
    'd': {
        'dataset': {
            'num_samples': 4096,
            'name': 'xsum',
            'subset': 'validation',
            'test_size': 0.2,
            'prompt_tokens': 20,
            'completion_tokens': 200,
            'completion_tokens_diff': 10,
            'filters': {
                'max_doc_length': 512,
                'id_prefix': 'doc_'
            }
        },
        'generation': {
            'model_name': 'meta-llama/Llama-3.2-1B-Instruct',
            'use_chat_template': True,
            'temperature': 0.8,
            'top_p': 1.0,
            'batch_size': 16,
            'max_input_tokens': 1024
        },
        'extraction': {
            'layers': [-3, -2, -1],
            'tokens': [-1],
            'mode': 'mean',
            'use_prompt_for_activations': True
        },
        'training': {
            'standardize_activations': True,
            'compute_perplexity': True,
            'compute_mass_mean': True,
            'classifier': 'lda',
            'classifier_params': {'n_components': 10},
            'random_seed': 42,
            'bootstrap_B': 1000,
            'bootstrap_seed': 123
        },
        'paths': {
            'save_name': 'experiment_output'
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
format_labels Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Thibaud-Ardoin/LLM-Self-Recognition/steering_watermark/src/data_processing.py
code served (permissive licence) · get_code("a7a02179b079f7ba")
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 DataFrame. 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 pandas as pd

# Create a small DataFrame with classification_label column
df = pd.DataFrame({
    'classification_label': ['cat', 'dog', 'cat', 'bird', 'dog', 'bird'],
    'other_column': [1, 2, 3, 4, 5, 6]
})

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family int 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
open_raw_free_news_dataset Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/steering_watermark/src/dataset_reader.py
code served (permissive licence) · get_code("d2c46dcf021b0c41")
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 json
import tempfile
import os

# Create a temporary directory with sample JSON files
temp_dir = tempfile.mkdtemp()

# Create sample JSON files that the function will read
sample_data_1 = {
    "language": "english",
    "thread": {
        "site_full": "Example.com"
    },
    "text": "This is the first sample news article body with some content."
}

sample_data_2 = {
    "language": "english",
    "thread": {
        "site_full": "News.org"
    },
    "text": "This is the second sample news article body with different content."
}

# Non-english file that should be skipped
sample_data_3 = {
    "language": "spanish",
    "thread": {
        "site_full": "Noticias.es"
    },
    "text": "Este es un artículo en español que no debe incluirse."
}

# Write the sample JSON files
with open(os.path.join(temp_dir, "article1.json"), "w") as f:
    json.dump(sample_data_1, f)

with open(os.path.join(temp_dir, "article2.json"), "w") as f:
    json.dump(sample_data_2, f)

with open(os.path.join(temp_dir, "article3.json"), "w") as f:
    json.dump(sample_data_3, f)

ARGS = {
    "folder_path": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
open_raw_latest_news_dataset Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/steering_watermark/src/dataset_reader.py
code served (permissive licence) · get_code("0112c46e43318d80")
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 json
import tempfile
import os

# Create a temporary directory and a mock Latest_News.json file
temp_dir = tempfile.mkdtemp()

# Create sample data that matches what the function expects
sample_data = [
    {
        "content": "Picture: test. First line here. This is the main content. {some metadata}",
        "link": "https://www.metro.co.uk/article-1"
    },
    {
        "content": "Picture: image. Second line. More content here.",
        "link": "https://www.metro.co.uk/article-2"
    },
    {
        "content": "Picture: photo. Third line. Even more content. {extra info}",
        "link": "https://www.metro.co.uk/article-3"
    },
    {
        "content": None,
        "link": "https://www.metro.co.uk/article-4"
    },
    {
        "content": "Picture: pic. Duplicate content.",
        "link": "https://www.metro.co.uk/article-1"  # Duplicate link
    }
]

# Write the sample data to the temporary JSON file
json_path = os.path.join(temp_dir, 'Latest_News.json')
with open(json_path, 'w') as f:
    json.dump(sample_data, f)

# Add trailing slash to the folder path
folder_path = temp_dir + '/'

ARGS = {
    "folder_path": folder_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
params_to_vanilla Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/steering_watermark/src/data_processing.py
code served (permissive licence) · get_code("eb4a8a5970a2d4a3")
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 copy

# The function params_to_vanilla takes a params dict and modifies nested keys.
# It accesses params['steering_arguments'] which should be a dict with keys:
# 'noise_max', 'steering_layers', 'noise_type'

params = {
    'steering_arguments': {
        'noise_max': 0.5,
        'steering_layers': [1, 2, 3],
        'noise_type': 'gaussian',
        'other_key': 'other_value'
    },
    'other_top_level_key': 'some_value'
}

ARGS = {
    'params': params
}
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 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
paraphrasing_data_ordering Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/steering_watermark/src/classic_watermarking.py
code served (permissive licence) · get_code("5684950d957b6e57")
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 torch

ARGS = {
    'params': {
        'human_hash': 'test_hash_value'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
resolve_unique_base_name Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/helpers.py
code served (permissive licence) · get_code("7b51a167095cec75")
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 tempfile
from pathlib import Path

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
test_directory = Path(temp_dir)

# Create the base case - a directory that doesn't exist yet
base_name = "test_run"

# Ensure the directory exists for the function to work with
test_directory.mkdir(parents=True, exist_ok=True)

ARGS = {
    "directory": test_directory,
    "base": base_name
}
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
train_classifier Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/evaluation.py
code served (permissive licence) · get_code("9974a7c5722e6232")
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 LinearDiscriminantAnalysis. 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 numpy as np
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis

# Generate small training data
np.random.seed(0)
X_train = np.random.randn(10, 4)  # 10 samples, 4 features
y_train = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1])  # 10 labels (binary classification)

# Construct classifier parameters
classifier_params = {
    'lda': {
        'solver': 'svd',
        'n_components': 1
    }
}

ARGS = {
    'X_train': X_train,
    'y_train': y_train,
    'classifier_params': classifier_params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LinearDiscriminantAnalysis — a LinearDiscriminantAnalysis output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LinearDiscriminantAnalysis 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
xlsum_template Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/data_loader.py
code served (permissive licence) · get_code("0141c3a9f637c989")
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 torch
import numpy as np

# Construct arguments for xlsum_template
ARGS = {
    'text': 'The United Nations General Assembly voted overwhelmingly on Tuesday to deplore Russia\'s invasion of Ukraine, with 141 countries voting in favor of the resolution. The vote came as Russian forces continued their military operations across multiple regions of Ukraine. The resolution called for an immediate ceasefire and withdrawal of all Russian forces. Several countries abstained from voting, while a small number voted against the resolution. Humanitarian organizations have expressed deep concern about the civilian toll of the conflict.',
    'word_min': 10,
    'word_max': 25
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
xsum_system_prompt Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/data_loader.py
code served (permissive licence) · get_code("0b959f6795d199a0")
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 torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "word_min": 10,
    "word_max": 25,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
xsum_template Ran
ran; our contract draft was wrong, not the code
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/data_loader.py
code served (permissive licence) · get_code("9775431b86d63588")
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 torch

ARGS = {
    "text": "Breaking news from the technology sector: A major artificial intelligence company has announced a significant breakthrough in large language models. The new system demonstrates improved reasoning capabilities and faster inference times compared to previous versions. Industry analysts predict this advancement will accelerate adoption across enterprise applications and consumer products. The company plans to release beta access to selected partners next quarter.",
    "word_min": 10,
    "word_max": 25,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
extract_activations_for_texts Not yet run
unverified (harvested, no recorded run)
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/activation_extraction.py
code served (permissive licence) · get_code("911b2334efbb9fd4")
How it ran

no invocation recorded.

generate_completions Not yet run
unverified (harvested, no recorded run)
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/text_generation.py
code served (permissive licence) · get_code("4eab1454f559e5e8")
How it ran

no invocation recorded.

load_text_list Not yet run
unverified (harvested, no recorded run)
Thibaud-Ardoin/LLM-Self-Recognition/steering_watermark/src/data_processing.py
code served (permissive licence) · get_code("9f5bd4ef91783e08")
How it ran

no invocation recorded.

supports_apply_chat_template Not yet run
unverified (harvested, no recorded run)
Thibaud-Ardoin/LLM-Self-Recognition/self_recognition/LLM_SelfRecognition_via_Activations-public/text_generation.py
code served (permissive licence) · get_code("a88ef21a385e9e57")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 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 19 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-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

Recent advances in interpretability suggest that large language models (LLMs) implicitly encode signals in their generated text that enable selfrecognition of their outputs. We demonstrate that this capability is reliable, even in low-entropy scenarios, and that it can be amplified through targeted intervention. By steering the internal residual stream during generation with a random sparse vector, we create a detectable fingerprint that enables attribution of a given text to a specific LLM. This signal is recoverable from the activations of an LLM used as a detector, achieving over 98% accuracy across multiple detection settings while preserving the quality of generated text. As AI-generated content proliferates, this approach offers a practical alternative to traditional detectors by leveraging the model's natural representation structure for attribution rather than embedding a signal externally. Our contributions include: (i) establishing reliable self-recognition capabilities in LLMs, (ii) a simple steering mechanism enabling multi-LLM identification with no quality degradation, (iii) demonstrating that activation spaces contain exploitable structure for encoding signals without semantic interference.

For agents

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

get_harvested_code_for_paper("2606.06315")
get_code_for_paper("2606.06315")
have("2606.06315")

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

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

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

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

Connect an agent — have() is free.