SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.12327 · ICLR · 2025

Neuron-based Personality Trait Induction in Large Language Models

Jia Deng, Ji-Rong Wen, Wayne Zhao, Wenhao Yang, Tianyi Tang, Yanbin Yin

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2410.12327.json · badge: /api/ran/2410.12327.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
RUCAIBox/NPTI canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
rucaibox/npti canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
get_data Ran
ran; our contract draft was wrong, not the code
rucaibox/npti/NPTI/code/gpt4_score.py
pointer only (licence: NONE) · get_code("a93bd5cf26471fb2")
How it ran

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

calculate_quantiles Ran
ran; our contract draft was wrong, not the code
RUCAIBox/NPTI/NPTI/code/process_neuron.py
pointer only (licence: NONE) · get_code("e99e696d946a6e00")
How it ran

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

factory Ran
ran; our contract draft was wrong, not the code
RUCAIBox/NPTI/NPTI/code/baseline_prompt.py
pointer only (licence: NONE) · get_code("0ec62f26ce89387a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RUCAIBox/NPTI 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_prompt Ran
ran; our contract draft was wrong, not the code
rucaibox/npti/NPTI/code/gpt4_score.py
pointer only (licence: NONE) · get_code("6340f1429608e7df")
How it ran

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

load_neuron_to_change Ran
ran; our contract draft was wrong, not the code
RUCAIBox/NPTI/NPTI/code/answer_question_change_neuron.py
pointer only (licence: NONE) · get_code("1b6f700d976acdaa")
How it ran

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

load_question Ran
ran; our contract draft was wrong, not the code
RUCAIBox/NPTI/NPTI/code/answer_question_change_neuron.py
pointer only (licence: NONE) · get_code("51373bec75991d57")
How it ran

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

read_and_convert_to_dict Ran
ran; our contract draft was wrong, not the code
RUCAIBox/NPTI/NPTI/code/process_neuron.py
pointer only (licence: NONE) · get_code("29f8d58533fdb57e")
How it ran

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

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RUCAIBox/NPTI 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 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 8 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

Large language models (LLMs) have become increasingly proficient at simulating various personality traits, an important capability for supporting related applications (e.g., role-playing). To further improve this capacity, in this paper, we present a neuron-based approach for personality trait induction in LLMs, with three major technical contributions. First, we construct PERSONALITYBENCH, a large-scale dataset for identifying and evaluating personality traits in LLMs. This dataset is grounded in the Big Five personality traits from psychology and is designed to assess the generative capabilities of LLMs towards specific personality traits. Second, by leveraging PERSONALITYBENCH, we propose an efficient method for identifying personality-related neurons within LLMs by examining the opposite aspects of a given trait. Third, we develop a simple yet effective induction method that manipulates the values of these identified personality-related neurons. This method enables fine-grained control over the traits exhibited by LLMs without training and modifying model parameters. Extensive experiments validate the efficacy of our neuron identification and trait induction methods. Notably, our approach achieves comparable performance as fine-tuned models, offering a more efficient and flexible solution for personality trait induction in LLMs. We provide access to all the mentioned resources at https://github.com/RUCAIBox/NPTI.

For agents

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

get_harvested_code_for_paper("2410.12327")
get_code_for_paper("2410.12327")
have("2410.12327")

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

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

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

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

Connect an agent — have() is free.