SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.18968 · ACL · 2025

Know You First and Be You Better: Modeling Human-Like User Simulators via Implicit Profiles

Feng Jiang, Haizhou Li, Shenghao Yang, Li Zhou, Xianfei Li, Kuang Wang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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 4 have no contract verdict; 2 failures of our instrument; 0 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/2502.18968.json · badge: /api/ran/2502.18968.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
wangkevin02/USP canonical (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
FunctionStatusWhere it lives
extract_profile_from_text Ran
ran on a synthesized input
wangkevin02/USP/src/rlcc/OpenRLHF/remote_rm.py
code served (permissive licence) · get_code("54d306a042cb8dca")
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 extract_profile_from_text(text):
    """
    Extract profile content from input text
    
    Args:
        text (str): Input text containing profile information
        
    Returns:
        str: Extracted profile content, returns None if not found or in case of error
    """
    pattern = 'your profile is:\\s+(.*?)(?=\\s+You can say anything you want)'
    try:
        match = re.search(pattern, text, re.DOTALL)
        if match:
            profile = match.group(1).strip()
            if profile.endswith('..'):
                profile = profile[:-1]
            return profile
        return None
    except Exception as e:
        print(f'Error occurred during extraction: {e}')
        return None


# Test case 1: Valid profile text
text_with_profile = """
Hello, your profile is: Software Engineer with 10 years of experience in Python and machine learning..
You can say anything you want about yourself.
"""

ARGS = {
    "text": text_with_profile
}
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
extract_user_messages Ran
ran on a synthesized input
wangkevin02/USP/src/auxiliary_models/profile_predictor/transfer_data_format.py
code served (permissive licence) · get_code("1ec7b6e0fe041b67")
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
from typing import List, Dict

torch.manual_seed(0)

# Construct a list of message dictionaries with 'role' and 'content' keys
messages = [
    {'role': 'user', 'content': 'Hello, how are you?'},
    {'role': 'assistant', 'content': 'I am doing well, thank you!'},
    {'role': 'user', 'content': 'What is 2+2?'},
    {'role': 'assistant', 'content': '2+2 equals 4.'},
    {'role': 'user', 'content': 'Tell me a joke.'},
]

ARGS = {
    'messages': messages
}
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
extract_user_messages Ran
ran on a synthesized input
wangkevin02/USP/src/rlcc/OpenRLHF/remote_rm.py
code served (permissive licence) · get_code("4be9ec74064ab7dd")
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
from typing import List, Dict, Optional

# Construct arguments for extract_user_messages
messages = [
    {'role': 'user', 'content': 'Hello, how are you?'},
    {'role': 'assistant', 'content': 'I am doing well, thank you!'},
    {'role': 'user', 'content': 'What is the weather like?'},
    {'role': 'system', 'content': 'System message'},
    {'role': 'user', 'content': 'Tell me a joke.'},
]

ARGS = {
    'messages': messages
}
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
get_dataset_stats Ran
ran on a synthesized input
wangkevin02/USP/src/auxiliary_models/ai_detect_model/my_dataset.py
code served (permissive licence) · get_code("fa2081602bac8f30")
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.

from datasets import Dataset as HFDataset
import pandas as pd

# Create a small HuggingFace dataset with the required fields
data = {
    'input_ids': [
        [1, 2, 3],
        [4, 5],
        [6, 7, 8, 9],
        [10, 11, 12]
    ],
    'labels': [0, 1, 0, 1]
}

dataset = HFDataset.from_dict(data)

ARGS = {
    'dataset': dataset
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, pandas — 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
strip_sequence Ran
ran; our contract draft was wrong, not the code
wangkevin02/USP/src/rlcc/OpenRLHF/openrlhf/cli/serve_rm.py
code served (permissive licence) · get_code("ca3514c46a1261d7")
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 strip_sequence(text, pad_token, eos_token):
    pad_token_escaped = re.escape(pad_token)
    eos_token_escaped = re.escape(eos_token)
    pattern = f'^({eos_token_escaped}|{pad_token_escaped})+'
    text = re.sub(pattern, '', text)
    pattern = f'({eos_token_escaped}|{pad_token_escaped})+$'
    text = re.sub(pattern, '', text)
    return text

ARGS = {
    'text': '[PAD][EOS]hello world[PAD][EOS]',
    'pad_token': '[PAD]',
    'eos_token': '[EOS]'
}
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
strip_sequence Ran
ran; our contract draft was wrong, not the code
wangkevin02/USP/src/rlcc/OpenRLHF/remote_rm.py
pointer only (licence: MIT); the stored copy get_code serves, from zhenghaoxu-gatech/uncertainty-router, is pointer only (licence: NONE) · get_code("4081a5e23d9bc90f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhenghaoxu-gatech/uncertainty-router, 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.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 2 later) and 3 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
strip_sequence 5 other papers
1 dated earlier, 1 the same month, 3 later
2402.09345 (2024-02)
InfoRM: Mitigating Reward Hacking in RLHF via Information-Theoretic Reward Modeling
2502.03373 (2025-02)
Demystifying Long Chain-of-Thought Reasoning in LLMs
2504.07912 (2025-04)
Echo Chamber: RL Post-training Amplifies Behaviors Learned in Pretraining
and 2 more not named here
strip_sequence 2 other papers
1 dated earlier, 1 later
2404.18922 (2024-04)
DPO Meets PPO: Reinforced Token Optimization for RLHF
2510.20369 (2025-10)
Ask a Strong LLM Judge when Your Reward Model is Uncertain

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

User simulators are crucial for replicating human interactions with dialogue systems, supporting both collaborative training and automatic evaluation, especially for large language models (LLMs). However, current role-playing methods face challenges such as a lack of utterance-level authenticity and user-level diversity, often hindered by role confusion and dependence on predefined profiles of wellknown figures. In contrast, direct simulation focuses solely on text, neglecting implicit user traits like personality and conversation-level consistency. To address these issues, we introduce the User Simulator with Implicit Profiles (USP), a framework that infers implicit user profiles from human-machine interactions to simulate personalized and realistic dialogues. We first develop an LLM-driven extractor with a comprehensive profile schema, then refine the simulation using conditional supervised finetuning and reinforcement learning with cycle consistency, optimizing at both the utterance and conversation levels. Finally, a diverse profile sampler captures the distribution of realworld user profiles. Experimental results show that USP outperforms strong baselines in terms of authenticity and diversity while maintaining comparable consistency. Additionally, using USP to evaluate LLM on dynamic multiturn aligns well with mainstream benchmarks, demonstrating its effectiveness in real-world applications. We open-source related resources in https://github.com/wangkevin02/USP.

For agents

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

get_harvested_code_for_paper("2502.18968")
get_code_for_paper("2502.18968")
have("2502.18968")

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

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

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

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

Connect an agent — have() is free.