SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.18187 · 2024

Selective Prompting Tuning for Personalized Conversations with LLMs

arXiv · PDF · Open in the Atlas

Code that ran

16 of 16 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 13 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2406.18187.json · badge: /api/ran/2406.18187.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
hqsiswiliam/SPT canonical (classifier label)
classifier basis: census
16 ran · 0 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/dataset/dataset.py
pointer only (licence: NONE) · get_code("12321e4b78f02c35")
How it ran

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

collate_fn_straight Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/dataset/dataset.py
pointer only (licence: NONE) · get_code("56d9b66f17d0c5bb")
How it ran

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

collate_fn_straight_with_fn Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/dataset/dataset.py
pointer only (licence: NONE) · get_code("d40e134a2b264da2")
How it ran

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

combine_persona_query_response Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/dataset/dataset_helper.py
pointer only (licence: NONE); the stored copy get_code serves, from zhangwenhao6/PERA, is pointer only (licence: NOASSERTION) · get_code("841580f6d198a94a")
How it ran

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

em Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/evaluation.py
pointer only (licence: NONE); the stored copy get_code serves, from m3hrdadfi/rag-memory-interplay, is pointer only (licence: NONE) · get_code("38c3b1ee62b65838")
How it ran

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

extend_compatibility_for_gated_transformer Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/utils/config.py
pointer only (licence: NONE) · get_code("db175d8c957ef116")
How it ran

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

f1 Ran
ran, honoured the contract we drafted
hqsiswiliam/SPT/evaluation.py
pointer only (licence: NONE); the stored copy get_code serves, from m3hrdadfi/rag-memory-interplay, is pointer only (licence: NONE) · get_code("5e2f0b798a3d70d2")
How it ran

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

format_causal_personachat_input Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/utils/format_inputs.py
pointer only (licence: NONE) · get_code("d24e20215e8fb45f")
How it ran

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

format_generate_persona_input Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/utils/format_inputs.py
pointer only (licence: NONE) · get_code("7b9bdfa46c029f5d")
How it ran

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

format_personachat_input Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/utils/format_inputs.py
pointer only (licence: NONE) · get_code("fd7ca588ae67fc72")
How it ran

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

normalize_answer Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/evaluation.py
pointer only (licence: NONE); the stored copy get_code serves, from m3hrdadfi/rag-memory-interplay, is pointer only (licence: NONE) · get_code("6205dd62c2627dde")
How it ran

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

preprocess_text Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/dataset/dataset_helper.py
pointer only (licence: NONE); the stored copy get_code serves, from zhangwenhao6/PERA, is pointer only (licence: NOASSERTION) · get_code("f343f672c3ddd483")
How it ran

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

print_trainable_parameters Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/utils/model_helpers.py
pointer only (licence: NONE) · get_code("062f390233bf4d6d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqsiswiliam/SPT 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_personachat_split Ran
ran; our contract draft was wrong, not the code
hqsiswiliam/SPT/dataset/dataset_helper.py
pointer only (licence: NONE); the stored copy get_code serves, from zhangwenhao6/PERA, is pointer only (licence: NOASSERTION) · get_code("64f0486dedc02e30")
How it ran

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

seed_everything Ran
ran, honoured the contract we drafted
hqsiswiliam/SPT/utils/seed_everything.py
pointer only (licence: NONE) · get_code("a73433deedbe1382")
How it ran

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

str2bool Ran
ran, violated the contract we drafted
hqsiswiliam/SPT/utils/parser_helper.py
pointer only (licence: NONE) · get_code("fe682fa7a99299d9")
How it ran

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

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 8 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 8 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.

FunctionAlso present inEarliest-datedOthers named
normalize_answer 11 other papers
3 dated earlier, 3 the same month, 5 later
2308.07922 (2023-08)
RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Models
2403.04797 (2024-03)
Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encoding
2403.15268 (2024-03)
Awakening Augmented Generation: Learning to Awaken Internal Knowledge of Large Language Models for Question Answering
and 8 more not named here
em 4 other papers
1 dated earlier, 1 the same month, 2 later
2308.07922 (2023-08)
RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Models
2406.18847 (2024-06)
Learning Retrieval Augmentation for Personalized Dialogue Generation
2410.05162 (2024-10)
Deciphering the Interplay of Parametric and Non-parametric Memory in Retrieval-augmented Language Models
and 1 more not named here
f1 4 other papers
1 dated earlier, 1 the same month, 2 later
2308.07922 (2023-08)
RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Models
2406.18847 (2024-06)
Learning Retrieval Augmentation for Personalized Dialogue Generation
2410.05162 (2024-10)
Deciphering the Interplay of Parametric and Non-parametric Memory in Retrieval-augmented Language Models
and 1 more not named here
collate_fn_straight 1 other paper
1 later
2604.11841 (2026-04)
Polynomial Expansion Rank Adaptation: Enhancing Low-Rank Fine-Tuning with High-Order Interactions
collate_fn_straight_with_fn 1 other paper
1 later
2604.11841 (2026-04)
Polynomial Expansion Rank Adaptation: Enhancing Low-Rank Fine-Tuning with High-Order Interactions
combine_persona_query_response 1 other paper
1 later
2604.11841 (2026-04)
Polynomial Expansion Rank Adaptation: Enhancing Low-Rank Fine-Tuning with High-Order Interactions
preprocess_text 1 other paper
1 later
2604.11841 (2026-04)
Polynomial Expansion Rank Adaptation: Enhancing Low-Rank Fine-Tuning with High-Order Interactions
read_personachat_split 1 other paper
1 later
2604.11841 (2026-04)
Polynomial Expansion Rank Adaptation: Enhancing Low-Rank Fine-Tuning with High-Order Interactions

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

In conversational AI, personalizing dialogues with persona profiles and contextual understanding is essential. Despite large language models' (LLMs) improved response coherence, effective persona integration remains a challenge. In this work, we first study two common approaches for personalizing LLMs: textual prompting and direct fine-tuning. We observed that textual prompting often struggles to yield responses that are similar to the ground truths in datasets, while direct fine-tuning tends to produce repetitive or overly generic replies. To alleviate those issues, we propose \textbf{S}elective \textbf{P}rompt \textbf{T}uning (SPT), which softly prompts LLMs for personalized conversations in a selective way. Concretely, SPT initializes a set of soft prompts and uses a trainable dense retriever to adaptively select suitable soft prompts for LLMs according to different input contexts, where the prompt retriever is dynamically updated through feedback from the LLMs. Additionally, we propose context-prompt contrastive learning and prompt fusion learning to encourage the SPT to enhance the diversity of personalized conversations. Experiments on the CONVAI2 dataset demonstrate that SPT significantly enhances response diversity by up to 90\%, along with improvements in other critical performance indicators. Those results highlight the efficacy of SPT in fostering engaging and personalized dialogue generation. The SPT model code (https://github.com/hqsiswiliam/SPT) is publicly available for further exploration.

For agents

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

get_harvested_code_for_paper("2406.18187")
get_code_for_paper("2406.18187")
have("2406.18187")

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

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

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

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

Connect an agent — have() is free.