PHASE-Tree: Modeling Character-State Evolution in Long-Horizon Role-Playing Dialogue

arXiv cs.CL 论文

摘要

This paper introduces PHASE-Tree, a multi-timescale character-state representation for long-horizon role-playing dialogue, along with the LongEvoRoleBench benchmark to evaluate evolved-state generation. The proposed approach outperforms baselines on character-level, semantic, and embedding metrics across long-dialogue corpora.

arXiv:2608.06975v1 Announce Type: new Abstract: Long-horizon role-playing demands that characters remain recognizable as they evolve with the narrative. Yet existing work falls short on two fronts: representations are typically static profiles that cannot be updated locally without destabilizing unchanged traits, and benchmarks mainly test persona preservation and memory recall rather than whether a model speaks from a character's currently evolved state. We address both. PHASE-Tree is a multi-timescale character-state tree with an immutable identity root and mutable persona, session, and moment layers, making each mutable field an addressable target for localized within- and cross-episode updates. It conditions generation through explicit textual provision or implicit parametric adaptation. To measure evolved-state generation, we introduce LongEvoRoleBench, which pairs four long-dialogue corpora for cross-episode evolution with four short-dialogue corpora as within-scene state-tracking checks, under a unified next-utterance protocol. On the long-dialogue core, textual PHASE-Tree ranks first in 11 of 12 dataset-metric cells against internal variants and all 12 cells against external textual baselines, improving character-level, semantic, and embedding scores by 19.7%, 12.4%, and 15.1% respectively. In a blinded 200-response study, human ratings correlate with the GPT-4.1 judge (Pearson r= 0.65); on descriptive n= 10 PT and NR prompt subsets, the Overall difference is +0.20. The long-dialogue Sem advantage persists across LLM judges and generation backbones.
查看原文
查看缓存全文

缓存时间: 2026/08/10 08:05

# PHASE-Tree: Modeling Character-State Evolution in Long-Horizon Role-Playing Dialogue
Source: [https://arxiv.org/html/2608.06975](https://arxiv.org/html/2608.06975)
1\]MemTensor \(Shanghai\) Technology 2\]KU Leuven, Belgium 3\]Zhejiang University 4\]University of Chinese Academy of Sciences 5\]Sinar Mas Paper \(China\) Investment Co\., Ltd 6\]The Hong Kong Polytechnic University

Jianan YangJunyi ZhuYiquan WuRui ZhaoZhengyu YangYang ZhangFeiyu XiongZhiyu LiJiajun Shen\[\[\[\[\[\[[lizy@memtensor\.cn](https://arxiv.org/html/2608.06975v1/mailto:[email protected])[sjjvic@gmail\.com](https://arxiv.org/html/2608.06975v1/mailto:[email protected])

###### Abstract

Long\-horizon role\-playing demands that characters remain recognizable as they evolve with the narrative\. Yet existing work falls short on two fronts: representations are typically static profiles that cannot be updated locally without destabilizing unchanged traits, and benchmarks mainly test persona preservation and memory recall rather than whether a model speaks from a character’s currently evolved state\. We address both\. PHASE\-Tree is a multi\-timescale character\-state tree with an immutable identity root and mutable persona, session, and moment layers, making each mutable field an addressable target for localized within\- and cross\-episode updates\. It conditions generation through explicit textual provision or implicit parametric adaptation\. To measure evolved\-state generation, we introduce LongEvoRoleBench, which pairs four long\-dialogue corpora for cross\-episode evolution with four short\-dialogue corpora as within\-scene state\-tracking checks, under a unified next\-utterance protocol\. On the long\-dialogue core, textual PHASE\-Tree ranks first in 11 of 12 dataset–metric cells against internal variants and all 12 cells against external textual baselines, improving character\-level, semantic, and embedding scores by 19\.7%, 12\.4%, and 15\.1% respectively\. In a blinded 200\-response study, human ratings correlate with the GPT\-4\.1 judge \(Pearsonr=0\.65r=0\.65\); on descriptiven=10n=10PT and NR prompt subsets, the Overall difference is\+0\.20\+0\.20\. The long\-dialogue Sem advantage persists across LLM judges and generation backbones\.

## 1Introduction

Long\-horizon role\-playing underpins interactive fiction, AI companions, and persistent game characters, where a model must remain recognizable while evolving with the narrative\. Existing role\-playing benchmarks and methods, however, mainly test whether a model preserves a fixed persona\[characterllm2023,rolellm2024,incharacter2024,coser2025\]or recalls particular events\[locomo2024,personamem2025,persistentpersonas2026\], rather than whether it can generate from a character’s currently evolved state\. Realistic long\-horizon role\-playing requires more than preservation\. Consider Chandler Bing in the television seriesFriends: early on he is sarcastic and commitment\-phobic, but by later seasons he has grown into a husband who trusts his partner\. A model that still treats commitment as a punchline in a marriage scene sounds superficially like Chandler while speaking from the wrong narrative state—the model has not forgotten his voice, but has forgotten that the character has changed\. We call thisstale\-state failure\.

This gap raises two questions\. First, how should a character be represented so that the full richness of character state is expressible, yet individual attributes can be updated locally without destabilizing unchanged traits? Second, how can we evaluate whether a model generates from a character’s currently evolved state across long narrative arcs, rather than regressing to a frozen persona?

We address both questions jointly\. We proposePHASE\-Tree\(Psychology\-grounded Hierarchical Attribute\-Structured Evolving Tree\), a multi\-timescale character\-state representation with an immutable identity root and mutable persona, session, and moment strata gated by a resistance–evidence–cooldown policy\. To fill the evaluation gap, we introduceLongEvoRoleBench, a benchmark suite that standardizes eight existing role\-playing corpora into a unified next\-utterance protocol\. Four long\-dialogue corpora form the core test for cross\-episode evolution, while four short\-dialogue corpora provide within\-scene state\-tracking checks under the same evaluation format\. Our PHASE\-Tree representation can be consumed through two complementary conditioning paradigms: explicit textual provision, which serializes the tree into the prompt \(our primary validated path\), and implicit parametric adaptation \(e\.g\., via a profile\-to\-LoRA hypernetwork\[tan2025p2p\]\), a token\-efficient alternative\.

Our contributions can be summarized as:

- •PHASE\-Tree character\-state modeling\.A representation that decomposes character state into immutable identity facts and mutable persona, session, and moment attributes, with cross\-episode evolution gated by resistance–evidence–cooldown policies\.
- •LongEvoRoleBench\.A benchmark suite that standardizes eight role\-playing corpora into a unified next\-utterance protocol for evaluating both within\-scene and cross\-episode character\-state evolution, with metrics tied to the current time\-ttstate rather than a frozen profile\.
- •Systematic dual\-paradigm validation\.We evaluate the same PHASE\-Tree state under both explicit textual provision and implicit parametric adaptation, benchmarking against a comprehensive suite of ablation variants and external baselines\. Our results show that textual provision achieves stronger alignment with evolved character states, while parametric adaptation is more token\-efficient but reveals a compression bottleneck in current profile\-to\-LoRA architectures\.

## 2Related Work

We summarize four related lines here; an extended discussion with a full citation list is given in Appendix[A](https://arxiv.org/html/2608.06975#A1)\.

#### Role\-playing dialogue\.

Existing systems condition role\-playing on static profiles, retrieved contexts, or per\-character adapters\[characterllm2023,rolellm2024,oppu2024,tan2025p2p\], while evaluation\-oriented work measures persona fidelity and established\-role behavior\[incharacter2024,coser2025\]\. PHASE\-Tree instead asks whether a role\-playing model can speak from an appropriately evolved character state\.

#### Long\-horizon persona, memory, and drift\.

Recent dialogue systems and benchmarks treat persona and memory as dynamic and measure long\-horizon fidelity and drift\[duelemon2022,ldagent2025,locomo2024,personamem2025,persistentpersonas2026,pdd2026\]\. PHASE\-Tree narrows the claim to evolution\-aware role\-playing for fictional characters and updates editable fields through resistance, evidence, and cooldown gates\.

#### Structured and psychology\-grounded character modeling\.

Persona has been structured as trees, finite\-state machines, or hierarchical identity frameworks, and shaped by psychological traits\[insideout2026,cfsm2026,identityhierarchical2025,profileaxes2026,chameleon2026\]\. PHASE\-Tree separates an immutable identity root from three evolving time\-scale strata and makes each editable field an update target\.

#### Parameter\-side personalization\.

Profile\-to\-LoRA hypernetworks, role\-specific adapter generation, and activation\-space steering have been studied for personalization and role\-playing\[tan2025p2p,hyperlora2024,neeko2024,hycora2026,persona2026\]\. We treat implicit parametric adaptation as a complementary, token\-efficient variant; the main validated path is explicit textual provision\.

Closest in spirit are the user\-memory and persona\-fidelity benchmarks cited above together withhorizonbench2026; LongEvoRoleBench differs by evaluating fictional role characters whose narrative state changes are part of the task, with metrics and baselines for both textual\-provision and parametric\-adaptation paradigms\.

## 3PHASE\-Tree: Character\-State Evolution Modeling

A static profile cannot fully capture a believable character: some attributes \(name, gender, and backstory\) never change, others \(speaking style and personality\) change slowly under sustained evidence, and still others \(mood and stance\) may shift within a scene\. PHASE\-Tree encodes these time scales in a four\-stratum tree with an immutable identity root and three mutable strata\. Figure[1](https://arxiv.org/html/2608.06975#S3.F1)gives an overview\.

![Refer to caption](https://arxiv.org/html/2608.06975v1/figures/phase-tree-framework.png)Figure 1:PHASE\-Tree character\-state hierarchy\. An immutable identity root branches into persona, session, and moment strata; persona fields use resistance levels \(solid = core, dashed = moderate, dotted = low\)\.### 3\.1Character State and Update Dynamics

Suppose a target character appears inTTdialogue scenes\. For scenett, a contiguous block ofntn\_\{t\}turns, the previous turnsct=\(ut,1,ut,2,…,ut,nt−1\)c\_\{t\}=\(u\_\{t,1\},u\_\{t,2\},\\ldots,u\_\{t,n\_\{t\}\-1\}\)constitute the dialogue context, and the next turnyt=ut,nty\_\{t\}=u\_\{t,n\_\{t\}\}is the target character’s ground\-truth response\. For long\-dialogue corpora, scenes are grouped into episodes and seasons, yielding a common season–episode–scene hierarchy\. Scene\-level evidence drives local state tracking, while episode boundaries govern long\-term persona evolution\.

We model the character state at timettas a four\-part structured tree:

𝒮t=\(ℐ,𝒮tpersona,𝒮tsession,𝒮tmoment\)\\mathcal\{S\}\_\{t\}=\\big\(\\,\\mathcal\{I\},\\;\\mathcal\{S\}^\{\\text\{persona\}\}\_\{t\},\\;\\mathcal\{S\}^\{\\text\{session\}\}\_\{t\},\\;\\mathcal\{S\}^\{\\text\{moment\}\}\_\{t\}\\,\\big\)\(1\)whereℐ\\mathcal\{I\}stores immutable identity facts \(name, gender, and backstory\), and the three mutable strata are:111We use “character state” to denote this role\-playing mental and social state, rather than game\-state variables such as inventory or health\.

- •Persona𝒮tpersona\\mathcal\{S\}\_\{t\}^\{\\mathrm\{persona\}\}\(high resistance\): long\-term dispositions and relatively stable profile attributes \(personality, speaking style, behavioral tendencies, hobbies, relationships, occupation, demographics\)\.
- •Session𝒮tsession\\mathcal\{S\}\_\{t\}^\{\\mathrm\{session\}\}\(moderate resistance\): within\-scene characteristic adaptations \(newly learned information, attitude shifts, commitments, and stance changes\) accumulated during the current scene\.
- •Moment𝒮tmoment\\mathcal\{S\}\_\{t\}^\{\\mathrm\{moment\}\}\(low resistance\): transient state affect, specifically the dominant emotion, its intensity, and the triggering scene context, refreshed at each scene boundary\[spielberger1983manual,rosenberg1998levels\]\.

The persona–session distinction is motivated by McAdams’ separation of broad dispositional traits from contextualized characteristic adaptations\[mcadams1995what\], while the moment stratum follows the state–trait distinction in affect psychology\[spielberger1983manual,rosenberg1998levels\]\. The full schema with psychological grounding is given in Appendix[B](https://arxiv.org/html/2608.06975#A2)\. Every editable field is independently addressable: an update targets one field without rewriting siblings\. After each scene, an extraction functionℰ\\mathcal\{E\}produces evidenceet=ℰ​\(ct,yt,𝒮t\)e\_\{t\}=\\mathcal\{E\}\(c\_\{t\},y\_\{t\},\\mathcal\{S\}\_\{t\}\), and𝒮t\+1=𝒰​\(𝒮t,et\)\\mathcal\{S\}\_\{t\+1\}=\\mathcal\{U\}\(\\mathcal\{S\}\_\{t\},e\_\{t\}\)\. The update function modifies only the mutable strata and leavesℐ\\mathcal\{I\}unchanged\. Thus𝒮t\\mathcal\{S\}\_\{t\}conditionsyty\_\{t\}, whose evidence first enters𝒮t\+1\\mathcal\{S\}\_\{t\+1\}\.

We have defined the state formalism and its update dynamics\. We now turn to how this tree is initially instantiated from raw character profiles\.

### 3\.2Tree Construction

We assume an initial raw character profile is available and map it once into PHASE\-Tree with a fixed zero\-shot GPT\-4\.1 extractor\. The extractor parses heterogeneous source fields into the standardized identity and persona schema, while initializing session and moment to empty/default values\. The same prompt template is applied across all eight corpora without corpus\-specific manual authoring or rule engineering\. Field values remain free\-text rather than categorical, preserving character\-specific detail within a uniform structure\. This one\-time preprocessing produces a baseline tree that can be cached and reused across inference calls\.

This baseline state is the starting point: the session and moment strata must be updated to track developments within each scene, and the persona stratum evolves across episodes as the character undergoes lasting change\.

### 3\.3Intra\-Scene State Tracking

Even within a single scene, a character’s response should reflect what they have learned and felt in the preceding dialogue: discovering a betrayal should reshape the character’s subsequent stance\. For each target turnyty\_\{t\}, an LLM analyzes only the observed prefixctc\_\{t\}together with the scene\-start identity and persona\. It extracts \(i\) a third\-person session entry covering newly learned information, attitude shifts, commitments, and stance changes, and \(ii\) a moment snapshot capturing the dominant emotion, its intensity, and the current scene context\. These session and moment fields conditionyty\_\{t\}; evidence fromyty\_\{t\}first enters the state used by a later target\. When the scene closes, the local records are archived as evidence for subsequent persona evolution\. Multi\-character scenes use independent extraction passes for each main character\.

### 3\.4Cross\-Episode Persona Evolution

In long\-horizon narratives, a character’s long\-term traits can genuinely change\. Chandler Bing’s commitment\-avoidance, for example, gives way to marital responsibility over several seasons\. Yet not all persona fields evolve at the same rate: a relationship may end from a single decisive scene, whereas a core personality shift requires sustained evidence across many episodes\. We capture this differential plasticity through a three\-stage pipeline that updates persona fields independently, with per\-field resistance calibrated to narrative pacing\.

#### Stage 1: Evidence Accumulation\.

Independently of the per\-scene session/moment extraction in §[3\.3](https://arxiv.org/html/2608.06975#S3.SS3), a separate LLM pass scans each scene from the character’s perspective, identifies salient session events \(e\.g\., a reconciliation with an estranged partner or a career\-changing commitment\), and labels each with a significance level \(medium or high\)\. The labeled entries are appended to the character’s session archive and serve as the evidence base for subsequent evolution decisions\.

#### Stage 2: Resistance\-Gated Judgment\.

After each episode, an LLM proposes per\-field candidate updates given the active evidence archive, and a deterministic validator accepts or rejects each proposal under threshold checks\. Every evolvable fieldffcarries a resistance levelr​\(f\)∈\{core,moderate,low\}r\(f\)\\in\\\{\\text\{core\},\\text\{moderate\},\\text\{low\}\\\}\. Three complementary checks prevent premature or unstable updates: breadth \(nepn\_\{\\text\{ep\}\}\) ensures the change is visible across multiple episodes rather than a single anomalous scene, intensity \(nhighn\_\{\\text\{high\}\}\) requires at least some high\-significance events to support it, and cooldown \(Δep\\Delta\_\{\\text\{ep\}\}\) requires enough elapsed episodes since the last update to the same field, preventing rapid flip\-flopping\. Formally, a field is updated only when all three conditions hold jointly:

update​\(f\)⇔nep​\(f\)≥τr​\(f\)ep∧nhigh​\(f\)≥τr​\(f\)high∧Δep​\(f\)≥τr​\(f\)cd\.\\mathrm\{update\}\(f\)\\iff n\_\{\\mathrm\{ep\}\}\(f\)\\geq\\tau^\{\\mathrm\{ep\}\}\_\{r\(f\)\}\\wedge\\;n\_\{\\mathrm\{high\}\}\(f\)\\geq\\tau^\{\\mathrm\{high\}\}\_\{r\(f\)\}\\wedge\\;\\Delta\_\{\\mathrm\{ep\}\}\(f\)\\geq\\tau^\{\\mathrm\{cd\}\}\_\{r\(f\)\}\.\(2\)wherenep​\(f\)n\_\{\\mathrm\{ep\}\}\(f\)is the number of distinct episodes contributing evidence toff,nhigh​\(f\)n\_\{\\mathrm\{high\}\}\(f\)is the number of high\-significance entries, andΔep​\(f\)\\Delta\_\{\\mathrm\{ep\}\}\(f\)is the number of episodes elapsed since the last update toff\. Higher resistance imposes stricter thresholds along all three axes; for instance,τcoreep\>τmoderateep\>τlowep\\tau^\{\\mathrm\{ep\}\}\_\{\\text\{core\}\}\>\\tau^\{\\mathrm\{ep\}\}\_\{\\text\{moderate\}\}\>\\tau^\{\\mathrm\{ep\}\}\_\{\\text\{low\}\}, and the same ordering holds forτhigh\\tau^\{\\mathrm\{high\}\}andτcd\\tau^\{\\mathrm\{cd\}\}\. Concretely,personalityandspeaking\_styleare core fields \(requiring evidence from≥\\geq16 episodes with≥\\geq6 high\-significance entries\),behavioral\_tendenciesis moderate \(≥\\geq3 episodes\), andrelationships,occupation,hobbies, anddemographicsare low \(1 high\-significance entry or 2 medium\-significance entries suffice; for the low tier, this disjunctive evidence rule overrides the genericτep\\tau^\{\\mathrm\{ep\}\}episode count\)\. Thus core traits demand evidence spanning roughly a full season, whereas a relationship status can update from a single decisive event\. The thresholds are manually set once from narrative\-pacing priors and held fixed across all four long\-dialogue corpora, without corpus\-specific tuning\. Learning them automatically is left to future work\. Full threshold values appear in Appendix[C](https://arxiv.org/html/2608.06975#A3)\.

#### Stage 3: Incremental Field Update\.

When the gating conditions are met, the system applies a single\-field update using one of two merge operations: anincrementalmerge that adds or refines content while preserving the previous value \(covering both list\-append and in\-place refinement of free\-text fields\), or areplacementmerge that substitutes the previous value entirely and is reserved for explicit contradictions\. A small set of post\-processing patches then handles edge cases that arise in multi\-character corpora: stale relationship entries are demoted when they lack recent evidence, reciprocity gaps between interacting characters are repaired, and continuity is forward\-filled to avoid regression across sequential episodes\. The full pipeline, together with a human audit of the accepted field updates, is described in Appendix[D](https://arxiv.org/html/2608.06975#A4); the extraction and update prompt specifications are provided in Appendix[E](https://arxiv.org/html/2608.06975#A5)\.

### 3\.5Generation Conditioning Paradigms

We implement two complementary conditioning paradigms that consume the character state𝒮t\\mathcal\{S\}\_\{t\}at inference time, illustrated side\-by\-side in Figure[2](https://arxiv.org/html/2608.06975#S3.F2.fig1)\.

![Refer to caption](https://arxiv.org/html/2608.06975v1/figures/training-pipeline.png)

Figure 2:Two conditioning paradigms for the same flattened PHASE\-Tree\.Explicit Textual Provision\(blue, top\): profile in the prompt\.Implicit Parametric Adaptation\(red, bottom\): profile in adapter weights; dialogue\-only prompt\.Fireindicate trainable components;Snowflakeindicate frozen parameters\.#### Explicit Textual Provision\.

The tree is serialized into structured natural\-language paragraphs \(identity facts, persona traits, session adaptations, and momentary affect\) and concatenated with the dialogue context:

y^t=arg⁡maxy⁡pθ​\(y∣flatten​\(𝒮t\),ct\),\\hat\{y\}\_\{t\}=\\arg\\max\_\{y\}\\;p\_\{\\theta\}\\\!\\big\(y\\mid\\mathrm\{flatten\}\(\\mathcal\{S\}\_\{t\}\),\\;c\_\{t\}\\big\),\(3\)whereflatten​\(⋅\)\\mathrm\{flatten\}\(\\cdot\)converts the tree into the above natural\-language groups\.

#### Implicit Parametric Adaptation\.

Following profile\-to\-LoRA hypernetworks\[tan2025p2p\], a hypernetworkHϕH\_\{\\phi\}maps the embedded character state to a LoRA adapterΔ​θt=Hϕ​\(emb​\(𝒮t\)\)\\Delta\\theta\_\{t\}=H\_\{\\phi\}\(\\mathrm\{emb\}\(\\mathcal\{S\}\_\{t\}\)\)that is merged into the backbone\. The prompt then carries only dialogue context:

y^t=arg⁡maxy⁡pθ\+Δ​θt​\(y∣ct\),\\hat\{y\}\_\{t\}=\\arg\\max\_\{y\}\\;p\_\{\\theta\+\\Delta\\theta\_\{t\}\}\\\!\\big\(y\\mid c\_\{t\}\\big\),\(4\)whereemb​\(⋅\)\\mathrm\{emb\}\(\\cdot\)encodes the flattened tree via an embedding model\. The adapterΔ​θt\\Delta\\theta\_\{t\}is state\-dependent and changes whenever𝒮t\\mathcal\{S\}\_\{t\}evolves; holding𝒮t\\mathcal\{S\}\_\{t\}constant recovers a static profile\-to\-LoRA mapping\.

## 4LongEvoRoleBench: A Benchmark for Long\-Horizon Role\-Playing

Existing role\-playing benchmarks typically evaluate persona preservation or memory recall against a fixed profile, failing to test if a model can accurately reflect a character’s evolving state\. To fill this gap, we introduce LongEvoRoleBench, which evaluates a system’s ability to ground a character’s next utterance in their current narrative state\. The benchmark comprises eight datasets evaluated under unified metrics: four long\-dialogue corpora constitute the core test of cross\-episode character evolution, while four short\-dialogue corpora serve as a control setting that isolates within\-scene consistency and local state tracking without cross\-episode evolution\.

### 4\.1Dataset Construction

LongEvoRoleBench unifies eight role\-playing corpora under a common next\-utterance protocol with standardized profile schemas, context boundaries, and evaluation splits\. Each instance provides scene contextctc\_\{t\}and targets the character’s next utteranceyty\_\{t\}\. Short\-dialogue sources are RAIDEN\[raiden2025\], CharacterEval \(RPCA benchmarks\)\[charactereval2024\], SimsConv\[simsconv2025\]and ChatHaruhi\[chatharuhi2023\]\. Long\-dialogue sources are Friends \(ConvoKit;convokit2020\), The Office and Star Trek \(public episode transcripts\), and Harry Potter \(HPD;hpd2023\), each tracking six main characters whose relationships and affect evolve across seasons or books\. Corpus statistics are in Appendix[F](https://arxiv.org/html/2608.06975#A6)\.

### 4\.2Evaluation Protocol

We evaluate under complementary random and OOD holdouts\. Short\-dialogue splits are character\-disjoint: random tests sample held\-out characters from the main profile distribution, while OOD tests select profile outliers through embedding clustering, probing generalization to less familiar character types\. Long\-dialogue random tests withhold utterance instances from early seasons, whereas OOD tests chronologically hold out later seasons, where relationships, beliefs, and affect may have evolved substantially\. Together, these splits distinguish interpolation within familiar narrative regimes from extrapolation across character types and narrative time\. Character states roll forward in narrative order, combining the initial profile with preceding scene and episode evidence at each prediction point\. All parametric baselines are trained and all retrieval indices are built on the train split, and scoring uses the matching time\-ttstate rather than a frozen profile\.

### 4\.3Evaluation Metrics

Generation quality is measured along three complementary axes\. Character Score \(Char\) and Semantic Score \(Sem\) are independent 1–5 LLM\-as\-Judge ratings \(GPT\-4\.1, greedy decoding\) for profile consistency and contextual coherence\. The judge evaluates responses using the supplied profile text \(Char\) or dialogue context \(Sem\)\. Embedding Score \(Emb\) is cosine similarity to the ground\-truth response under OpenAI’stext\-embedding\-3\-small\. The three scores target distinct failure modes: profile drift, contextual mismatch, and reference\-grounded semantic distance\. A strong method must satisfy all three rather than win on one alone\. We omit n\-gram metrics \(BLEU, ROUGE\) because long\-horizon role\-playing admits many surface\-divergent yet equally valid continuations\. Appendices[G](https://arxiv.org/html/2608.06975#A7)and[L](https://arxiv.org/html/2608.06975#A12)provide the scoring rubrics and judge analyses\.

## 5Experiments

### 5\.1Experimental Setup

The main comparison uses Qwen2\.5\-7B\-Instruct as the shared backbone, so methods differ only in how the character condition is supplied\. Explicit textual provision keeps the backbone frozen and places the condition in the prompt; implicit parametric adaptation encodes it through network adapters or inference\-time activation vectors\.

#### Training and Decoding\.

All runs use a fixed decoding configuration \(temperature 0\.3, max 256 tokens, seed 42\)\. PHASE\-Trees are constructed by the extraction pipeline in §[3\.2](https://arxiv.org/html/2608.06975#S3.SS2)using GPT\-4\.1\. Our implicit parametric\-adaptation route warm\-starts from a P2P checkpoint\[tan2025p2p\]and is further finetuned end\-to\-end\. Full implementation details are in Appendix[H](https://arxiv.org/html/2608.06975#A8)\.

#### Baselines\.

We first run a progressive internal ablation that adds one representation component at a time to isolate its contribution:Base\(no profile\),RP\(raw profile\),NR\(LLM\-rewritten profile\),ST\(structured tree, frozen\),DT\(tree with cross\-episode persona evolution, no session/moment\), andPT\(full pipeline with intra\-episode tracking\)\. The external baselines span both conditioning paradigms\. Textual\-provision baselines areRAG\(retrieved historical utterances;lewis2020rag\),PAG\(profile\-augmented prompt;characterllm2023,rolellm2024,chatharuhi2023\), andCFG\(decoding\-time amplification;sanchez2024cfg\)\. Parametric\-adaptation baselines areMT\-LoRA\(a single shared LoRA adapter trained on the union of all character dialogues;hu2022lora\),Steering\(activation vectors;turner2024activation\),OPPU\(per\-character adapter,oppu2024\), andP2P\(profile\-to\-LoRA hypernetwork,tan2025p2p\)\. Per\-method details and controls for fair comparison are presented in Appendices[I](https://arxiv.org/html/2608.06975#A9)and[J](https://arxiv.org/html/2608.06975#A10)\.

Table 1:Internal ablation under explicit textual provision on eight corpora \(mean over random and OOD splits\)\.Bold= best,underline= second best; DT applies to long\-dialogue sets only \(–\)\. Pooled question\-level tests and effect sizes for PT vs\. NR and PT vs\. ST are reported in Appendix[K](https://arxiv.org/html/2608.06975#A11)\.Table 2:External baseline comparison on eight corpora \(mean over random and OOD splits\)\.Bold= best,underline= second best\. Ours denotes PHASE\-Tree in the corresponding paradigm block; – marks unavailable runs\. Pooled question\-level tests and effect sizes for key comparisons are reported in Appendix[K](https://arxiv.org/html/2608.06975#A11)\.Explicit Textual ProvisionImplicit Parametric AdaptationDatasetMetricBaseRAGPAGCFGOursMT\-LoRASteeringOPPUP2POursRAIDENChar↑\\uparrow2\.1632\.5112\.8422\.8542\.7792\.5062\.202–2\.4922\.510Sem↑\\uparrow3\.6323\.7383\.5823\.3473\.8453\.9223\.639–3\.8943\.915Emb↑\\uparrow0\.4440\.4680\.4520\.4230\.4680\.5050\.445–0\.4870\.505CharacterEvalChar↑\\uparrow2\.1882\.4532\.5972\.5732\.7902\.3122\.170–2\.3412\.334Sem↑\\uparrow3\.3823\.4753\.3622\.9813\.5883\.5503\.391–3\.5193\.548Emb↑\\uparrow0\.3250\.3600\.3410\.2980\.3260\.3460\.323–0\.3370\.345SimsConvChar↑\\uparrow2\.3392\.7883\.2233\.5653\.0932\.4892\.342–2\.5032\.455Sem↑\\uparrow3\.7493\.8763\.8643\.5903\.9273\.9443\.808–3\.9183\.977Emb↑\\uparrow0\.4390\.4890\.4770\.4150\.4660\.5150\.444–0\.4960\.523ChatHaruhiChar↑\\uparrow1\.8802\.3543\.2943\.3083\.4511\.8931\.888–1\.9501\.976Sem↑\\uparrow3\.3913\.5463\.5443\.0633\.8103\.5273\.379–3\.4923\.551Emb↑\\uparrow0\.3670\.4180\.4360\.3870\.4250\.4140\.366–0\.3860\.412FriendsChar↑\\uparrow2\.3042\.3612\.4172\.3862\.9072\.1702\.5892\.3082\.3792\.205Sem↑\\uparrow3\.3033\.2932\.9052\.3783\.6503\.4172\.6493\.3063\.3713\.416Emb↑\\uparrow0\.2620\.2730\.2500\.2120\.2980\.2790\.2410\.2620\.2690\.278The OfficeChar↑\\uparrow2\.1022\.1752\.6472\.6173\.0072\.0502\.2352\.2552\.1172\.112Sem↑\\uparrow3\.3683\.3062\.7402\.3503\.7563\.4761\.7593\.1513\.4493\.498Emb↑\\uparrow0\.2540\.2520\.2280\.2040\.2930\.2680\.2270\.2610\.2600\.267Harry PotterChar↑\\uparrow2\.3422\.4392\.4762\.4032\.9612\.3252\.4432\.4972\.4192\.381Sem↑\\uparrow3\.2573\.2342\.9632\.5073\.6363\.3802\.5493\.0523\.3503\.396Emb↑\\uparrow0\.2730\.2800\.2680\.2370\.3220\.2880\.2680\.3120\.2800\.290Star TrekChar↑\\uparrow2\.5572\.6442\.4982\.1493\.1392\.5332\.2572\.4442\.6702\.528Sem↑\\uparrow3\.3633\.3222\.9462\.4823\.7463\.4392\.4443\.0543\.4693\.426Emb↑\\uparrow0\.2830\.2850\.2740\.2490\.3430\.2960\.2590\.2960\.2960\.297Average PerformanceShort\-DialogueChar↑\\uparrow2\.1432\.5272\.9893\.0753\.0282\.3002\.150–2\.3212\.319Sem↑\\uparrow3\.5393\.6593\.5883\.2453\.7923\.7363\.554–3\.7063\.748Emb↑\\uparrow0\.3940\.4340\.4270\.3810\.4210\.4450\.394–0\.4270\.446Long\-DialogueChar↑\\uparrow2\.3262\.4052\.5102\.3893\.0042\.2692\.3812\.3762\.3962\.306Sem↑\\uparrow3\.3233\.2892\.8892\.4293\.6973\.4282\.3503\.1413\.4103\.434Emb↑\\uparrow0\.2680\.2730\.2550\.2250\.3140\.2830\.2490\.2830\.2760\.283

### 5\.2Results

#### Explicit Textual Provision\.

Across the full per\-dataset breakdown \(Table[1](https://arxiv.org/html/2608.06975#S5.T1)\), PT ranks first on all eight datasets for Sem and Emb and on five of eight for Char, yielding the best score in 21 of 24 dataset–metric cells\. On the four long\-dialogue corpora, PT leads 11 of 12 cells; NR exceeds it only on The Office Char by0\.0790\.079\. The three Char exceptions overall \(SimsConv, ChatHaruhi, and The Office\) arise when short or highly stylized source profiles make a closer surface paraphrase \(NR or ST\) match the LLM judge’s lexical expectations more readily than a restructured tree; Appendix[L](https://arxiv.org/html/2608.06975#A12)isolates this reference sensitivity\.

Progressive ablations support three conclusions\. PT vs\. NR suggests that separating immutable identity information from mutable state provides cleaner conditioning\. ST and DT remain below NR on all long\-dialogue macro\-averages, so structure or cross\-episode evolution alone is insufficient\. DT to PT is the only structured transition that improves all three metrics \(\+0\.110 Char, \+0\.334 Sem, and \+0\.043 Emb\), showing that session and moment layers supply transient cues missed by cross\-episode evolution alone\.

The cross\-backbone analysis further evaluates Qwen3\-0\.6B, Gemma\-4\-E4B, Qwen2\.5\-7B, and Qwen3\-32B\. PT achieves the best long\-dialogue Sem on all four backbones, with the full results reported in Appendix[M](https://arxiv.org/html/2608.06975#A13)\.

#### Comparison with External Methods\.

Under textual provision, Ours ranks first in all 12 long\-dialogue dataset–metric cells, first on 18 of 24 cells overall, and in the top two on 20 \(Table[2](https://arxiv.org/html/2608.06975#S5.T2)\)\. The average improvement over the strongest textual\-provision baseline for each long\-dialogue metric is \+0\.49 Char \(3\.00 vs\. PAG’s 2\.51, \+19\.7%\), \+0\.41 Sem \(3\.70 vs\. RAG’s 3\.29, \+12\.4%\), and \+0\.04 Emb \(0\.31 vs\. RAG’s 0\.27, \+15\.1%\)\. Because RAG, PAG, and CFG share the same backbone and evaluation pipeline, these comparisons isolate the effect of profile representation from major implementation differences\.

#### Implicit Parametric Adaptation\.

The implicit route feeds the same flattened PHASE\-Tree to a profile\-to\-LoRA hypernetwork, absorbing the profile into adapter weights so the generation prompt contains only dialogue context\. Within the parametric\-adaptation block of Table[2](https://arxiv.org/html/2608.06975#S5.T2), Ours ranks first on 8 of 24 dataset–metric cells and in the top two on 18, leading on Sem in both short\-dialogue and long\-dialogue averages and tying for first on long\-dialogue Emb\. However, within the internal ablation, RP, NR, ST, and PT are very close on both Sem and Emb \(most rows within±\\pm0\.01; full results in Appendix[N](https://arxiv.org/html/2608.06975#A14)\), and Char remains lower than under textual provision\. This pattern indicates that the bottleneck lies in the profile\-to\-LoRA mapping, which compresses away the fine\-grained state detail that distinguishes tree variants, rather than in the input representation\.

![Refer to caption](https://arxiv.org/html/2608.06975v1/x1.png)Figure 3:Prompt cost vs\. quality by horizon\. Per row: mean prompt tokens \(left; longer bar = higher cost\) and average Char, Sem, and Emb \(right\)\. Dotted lines separate textual\-provision \(green\) from parametric\-adaptation \(purple\) methods\.
#### Token Efficiency\.

The two paradigms occupy complementary cost–quality operating points \(Figure[3](https://arxiv.org/html/2608.06975#S5.F3); full breakdown in Appendix[O](https://arxiv.org/html/2608.06975#A15)\)\. Parametric adaptation eliminates all profile tokens from the prompt \(matching the Base cost of 204 short / 372 long tokens\), whereas textual provision requires carrying the profile explicitly: 471 tokens on short dialogues \(cheaper than RAG 622, CFG 831, PAG 1045\) and 1736 on long dialogues \(larger than RAG 1347, due to accumulated evolution history\) but yields the best long\-dialogue Sem and Emb in our comparison\. We therefore treat parametric adaptation as a token\-efficient deployment variant of the same underlying state\.

## 6Discussion and Conclusion

We address stale\-state failure in long\-horizon role\-playing\. PHASE\-Tree separates an immutable identity root from editable persona, session, and moment fields\. The same flattened state drives generation either as explicit prompt text or as implicit adapter weights\. We introduce LongEvoRoleBench, unifying eight existing corpora under one next\-utterance protocol\. Its long\-dialogue split tests cross\-episode evolution; its short\-dialogue split tests within\-scene state tracking\.

Under explicit textual provision, our method ranks first on 21 of 24 internal cells and all 12 long\-dialogue external\-comparison cells\. It improves long\-dialogue character score, semantic score, and embedding similarity by 19\.7%, 12\.4%, and 15\.1% over the strongest textual baseline\. Under implicit parametric adaptation, it places in the top two on 18 of 24 cells\. The gap between paradigms points to profile\-to\-LoRA compression as the bottleneck, not the tree representation itself\. The long\-dialogue Sem finding persists across judge models and generation backbones, aligns with blinded human ratings, and is supported by the audit of accepted state updates\.

This work provides a validated state representation, benchmark, and textual pipeline for evolution\-aware role\-playing\. Natural extensions include more expressive parametric encoders and learned gating for cross\-episode updates\. Together, these contributions establish evolution\-aware role\-playing as a first\-class subtask alongside persona preservation and memory recall\.

## References

## Appendix AExtended Related Work

This appendix provides a fuller discussion of the four related research lines and their connections to PHASE\-Tree\.

### A\.1Role\-Playing Dialogue and Persona Fidelity

LLM role\-playing has been studied through prompting, data construction, evaluation, and parameter adaptation\. Prompt\-based and profile\-based systems inject character descriptions, memories, or demonstrations into the context window\[characterllm2023,rolellm2024,chatharuhi2023\], while evaluation\-oriented work measures whether agents preserve personality fidelity and established\-role behavior\[incharacter2024,coser2025\]\. Training\-based approaches instead adapt model parameters, either through per\-character/per\-user PEFT \(OPPU;oppu2024\) or profile\-conditioned adapter generation \(P2P;tan2025p2p\)\. These methods provide strong baselines for role fidelity, but their conditioning signal is typically a static profile, a retrieved context, or an adapter tied to a fixed description\. We instead study whether and how the conditioning signal itself should evolve with the narrative, and how to evaluate that evolution\.

Retrieval\-augmented role\-playing is complementary to our setting\. Retrieving previous utterances or character memories can enrich local context, but retrieval does not by itself specify which parts of a character should remain stable, which should adapt within a session, and which should change only after accumulated evidence\. Our focus is therefore not a replacement for retrieval, but a structured state representation and update policy compatible with either retrieved evidence or explicit dialogue histories\.

### A\.2Long\-Horizon Persona Dynamics and Evaluation

Recent long\-horizon dialogue systems increasingly model profiles and memories as dynamic rather than fixed\. DuLeMon studies long\-term persona memory in open\-domain dialogue\[duelemon2022\], DEEPER refines user personas from streaming behavior\[deeper2025\], LD\-Agent combines event extraction, persona inference, and response generation for long\-term dialogue\[ldagent2025\], and CharacterGPT reconstructs character personas from chapter\-wise narrative summaries\[charactergpt2025\]\. Other contemporaneous systems explore user\-centric memory trees, adaptive memory stores, multimodal persona memories, or personality vectors with temporal updates\[insideout2026,adamem2026,personavlm2026\], while state\-machine approaches model personality transitions explicitly\[dynamicpersonality2026\]\. On the evaluation side, LoCoMo measures very long\-term conversational memory\[locomo2024\], HorizonBench evaluates evolving user preferences\[horizonbench2026\], Persistent Personas measures fidelity degradation in extended interactions\[persistentpersonas2026\], PERSONAMEM benchmarks memory\-driven persona tracking\[personamem2025\], SPASM addresses persona drift in multi\-turn simulation\[spasm2026\], and MDRP diagnoses memory utilization for role\-playing\[mdrp2026\]\.

Because this area is crowded, we keep the PHASE\-Tree claim narrow: it is a multi\-timescale character state with anchored identity information at the root, editable fields below it, and resistance, evidence, and cooldown gates for deciding when those fields change\. We evaluate it through a unified protocol over eight existing role\-playing corpora\. We do not position the system as introducing dynamic personas or persona evolution per se\. Unlike user\-centric memory or preference benchmarks, PHASE\-Tree evaluates fictional role characters whose relationships, stance, and affect evolve with narrative events\. Unlike chapter\-level reconstruction or coarse state transitions, PHASE\-Tree operates at the field level\. PDD also studies dynamic persona conditioning by estimating context\-dependent persona\-attribute importance at decoding time\[pdd2026\]; PHASE\-Tree instead maintains a persistent evolving state and evaluates whether that state better supports role\-playing generation\.

### A\.3Structured and Psychology\-Grounded Character Modeling

PHASE\-Tree is also related to work that gives character or persona modeling a richer structure\. Chameleon argues that state can explain more variation than trait and that LLMs are often state\-blind\[chameleon2026\]; SCOPE motivates socially grounded persona construction\[scope2026\]; BIG5\-CHAT and P\-React use psychological traits to shape generation or reactions\[big5chat2025,preact2025\]; and InCharacter evaluates role\-playing agents through psychological interviews\[incharacter2024\]\. These works show that psychology\-grounded persona modeling is not new by itself\. Rather than adopting psychology as a theoretical commitment, we use it operationally: the time\-scale distinction directly determines which fields are stable, which accumulate within a scene, and which refresh at the moment level\.

Several recent works are close to ours on structure\. Inside Out maintains a user\-centric PersonaTree with explicit memory operations\[insideout2026\], CFSM codifies character behavior as finite\-state machines\[cfsm2026\], the Identity\-Driven Hierarchical framework\[identityhierarchical2025\]adds a hierarchical identity backbone to role\-playing agents, TaciTree organizes multi\-session personalized conversation through a hierarchical tree\[tacitree2025\], and Jun et al\. analyze character\-profile axes and bottlenecks in role\-playing agents\[profileaxes2026\]\. The closest distinction is in what each node carries: PHASE\-Tree separates an anchored identity root from three evolving time\-scale strata, treats every editable field as an update target, and evaluates the resulting tree as a generation condition under both short\-dialogue and long\-dialogue settings\.

### A\.4Parametric Personalization and Dynamic Adapters

Parameter\-side personalization has a separate lineage\. P2P maps profiles to LoRA adapters through a hypernetwork\[tan2025p2p\]; HyperLoRA, Generative Adapter, and SHINE show that hypernetworks can generate low\-rank adapters for task or context adaptation\[hyperlora2024,generativeadapter2025,shine2026\]\. In role\-playing, Neeko uses dynamic LoRA for multi\-character agents\[neeko2024\], HyCoRA generates role\-specific LoRA from character embeddings\[hycora2026\], PALACE combines persona\-aware prompting with VAE\-LoRA for multi\-session personalized dialogue\[palace2025\], and P\-React synthesizes topic\-adaptive personality reactions through specialized LoRA experts\[preact2025\]\. PERSONA controls personality at inference time through activation\-vector algebra rather than LoRA\[persona2026\]\. Profile\-to\-LoRA, dynamic LoRA, and activation\-space steering are therefore well\-established directions on the parameter side, each addressed by multiple concurrent and prior systems\.

In this paper, implicit parametric adaptation is a complementary, token\-efficient deployment variant of PHASE\-Tree rather than the main contribution\. The same flattened state is encoded by a profile\-to\-LoRA hypernetwork, removing the profile text from the dialogue prompt\. The primary validated path is explicit textual provision, where the evaluation protocol directly measures whether the tree\-mediated state yields stronger role\-playing responses\.

## Appendix BPHASE\-Tree Schema

Table[3](https://arxiv.org/html/2608.06975#A2.T3)gives the full PHASE\-Tree schema, including all fields under each block and the corresponding psychological grounding\.

Table 3:PHASE\-Tree schema\. Identity anchors fixed name and gender plus append\-only backstory; Persona, Session, and Moment are the three time\-scale strata used for character\-state tracking and evolution\.
## Appendix CEvolution Hyperparameter Details

This appendix reports the resistance\-tier thresholds, cooldown durations, evidence\-archive policies, and merge\-type rules used in cross\-episode persona evolution\. All values are the implementation defaults applied uniformly across the four long\-dialogue corpora; they were chosen so that core\-tier updates require evidence spanning roughly two\-thirds of a typical television season of a typical television corpus\.

#### Resistance\-tier thresholds\.

Table[4](https://arxiv.org/html/2608.06975#A3.T4)lists the per\-tier thresholds enforced by the validator\.τrep\\tau^\{\\mathrm\{ep\}\}\_\{r\}is the minimum number of distinct episodes that must contribute evidence,τrhigh\\tau^\{\\mathrm\{high\}\}\_\{r\}is the minimum number of high\-significance entries among that evidence, andτrcd\\tau^\{\\mathrm\{cd\}\}\_\{r\}is the field\-level cooldown in episodes\. The rightmost column summarizes the evidence track: Track A \(recent active archive\) for one\-off factual changes, or Track B \(lifetime high\-significance archive\) for slow\-moving pattern detection\. A high\-significance event may serve as evidence for both tracks simultaneously\.

Table 4:Resistance\-tier thresholds for cross\-episode field updates\.The last column states the evidence track and LLM\-side guidance; only the threeτ\\taucolumns are enforced as hard rejection rules\. For the low tier, theτep\\tau^\{\\mathrm\{ep\}\}test is bypassed when the disjunctive rule in the last column is met \(one high\-significance entry or two medium\-significance entries\)\.

#### Field\-to\-tier assignment\.

The mapping from persona fields to resistance tiers is fixed at initial tree extraction and is identical for every character: thecoretier covers \{speaking\_style,personality\}; themoderatetier covers \{behavioral\_tendencies\}; and thelowtier covers \{hobbies,relationships,occupation,demographics\}\. Name and gender are immutable\. Backstory has no resistance tier and may receive an append\-only event summary when a persona update is accepted; factual changes such as age, location, and life stage are written todemographics\.

#### Archive policy\.

Session entries are retained according to their significance label: high\-significance entries never expire, whereas medium\-significance entries are markedexpiredonce they have been carried for more than88episodes without being consumed\. When the validator queries the archive, it shows the LLM at most the2020most recent medium\-significance entries together with all surviving high\-significance entries, keeping the prompt bounded while preserving the lifetime pattern signal needed for moderate\- and core\-tier judgments\.

#### Merge operations\.

Each accepted field update is tagged with one of two merge types\.Incrementalmerges add or refine content while preserving the previous value \(covering both list\-append and in\-place refinement of free\-text fields\), andreplacementmerges substitute the previous value entirely\.Replacementis reserved for explicit contradictions \(e\.g\., “boyfriend is Paolo”→\\to“ex\-boyfriend is Paolo” after an on\-screen breakup\), and the validator further requires that anyincrementalmerge preserve at least80%80\\%of the previous value’s length and at least50%50\\%of its distinctive words\.

## Appendix DLong\-Dialogue Evolution Pipeline

For long\-dialogue corpora, cross\-episode persona evolution follows the operational pipeline below \(Stages A–C\)\. This decomposition differs from the three conceptual steps in the main text \(evidence accumulation, resistance\-gated judgment, incremental field update\): Stage C here denotes only the deterministic post\-update patches, not the merge step itself\. Stage A is a separate preprocessing pass; Stage B runs inside the episode\-wise orchestrator after each episode; Stage C applies six patches \(plus one optional audit\) once Stage B has finished over all episodes\. Each step in Stages B and C writes a timestamped persona\-snapshot backup and a per\-step log, so the full pipeline is reversible\.

#### Stage A: Evidence accumulation\.

Before the episode\-wise orchestrator starts, an LLM session\-extraction pass reads each scene in episode order and, from each main character’s perspective, writes a session\-archive entry labelledhigh,medium, orlow\. Only high\- and medium\-significance entries are persisted to the per\-character archive used by Stage B; low\-significance entries are discarded\. Status\-changing events \(relationship transitions, occupation changes, major life revelations, verbal turning\-point commitments\) are required to be labelledhighso that they can trigger persona updates downstream\.

#### Stage B: Resistance\-gated field update\.

After each episode, the validator builds, for each character, the active session archive \(recent unconsumed entries plus the lifetime high\-significance arc\) and asks an LLM to propose per\-field updates conditioned on this archive\. Each proposed update is then checked against the tier thresholds described above \(episode count, high\-significance count, field cooldown\), the scene\-ID whitelist \(every citedconsumed\_session\_idmust come from the active archive\), and an incremental safety check on non\-replacement merges; proposals that fail any check are rejected and the field is left unchanged\. Accepted updates are written to a new persona snapshot version, an optional event summary is appended to backstory, and consumed archive entries are marked so they are not double\-cited later\.

#### Stage C: Post\-update patches\.

Six deterministic patches then run in batch on the resulting snapshots, in a fixed order, plus one optional LLM audit that is disabled by default:

1. 1\.Stale\-romantic decay\.Demote “current” romantic partners \(boyfriend / girlfriend / partner / etc\.\) that no longer have recent fresh evidence in the archive\.
2. 2\.Inter\-main reciprocity repair\.Demote short\-lived, unreciprocated romantic claims on a main character, and propagate sustained reciprocal roles to the interacting main when one side asserts a current couple\-tier relationship for several consecutive episodes without a matching entry on the other\.
3. 3\.Legacy relationship normalization\.Normalize bare\-name and plural\-arelegacy formatting so that every entry follows the canonical “role is name” pattern\.
4. 4\.Inverse\-pair alignment\.A two\-pass step that first demotes premature partner roles \(e\.g\., “husband” before an on\-screen wedding\) and then aligns the partner tier between bidirectional entries\.
5. 5\.Continuity forward\-fill\.Fill 1\-to\-NNepisode regression gaps in main\-couple relationships when both sides match before and after the gap, no breakup evidence appears in the archive, and the gap is caused by missing evidence in transitional episodes\.
6. 6\.Core\-trait audit\(optional, off by default\)\. A periodic, descriptor\-level LLM audit ofpersonalityandspeaking\_styleat coarse checkpoints \(default: every 24 episodes plus the finale\); at most one descriptor may change per audit, each supported by at least two high\-significance session IDs from the lifetime archive\.

#### Human validation of field updates\.

Three annotators evaluated a stratified 30% sample of evidence\-qualified persona snapshots from the four long\-dialogue corpora \(130 snapshots and 152 accepted field updates\)\. Each item presented the previous field value, the extracted evidence and update rationale, and the updated value\. Annotators focused on the substantive change between the two values and assessed how well it reflected the character evidence available through the target episode\. Direct statements and actions received the greatest weight, while stable personality or behavioral changes were assessed from recurring patterns or a clear turning point\. They assigned one of three labels: supported, partially supported, or unsupported, distinguishing updates that were fully grounded in the evidence from those that captured the general direction but were indirect, incomplete, or overly broad\. Table[5](https://arxiv.org/html/2608.06975#A4.T5)gives the majority label under an evidence\-support rubric and a stricter semantic rubric that also considers how precisely the updated value expresses the evidence\.

Table 5:Majority\-consensus labels on the 152 accepted field updates \(three annotators\)\.Under both rubrics, every sampled update is supported or partially supported; none is labelled unsupported\. Inter\-annotator agreement is moderate \(Fleissκ=0\.43\\kappa=0\.43–0\.470\.47\)\. The difference between the two rubrics appears mainly in whether an update is fully or partially supported, rather than whether it lacks narrative support\.

## Appendix EPipeline Prompts

This appendix gives the four prompt specifications that drive tree construction, intra\-episode session/moment extraction, and the two cross\-episode evolution stages\. All use a frozen GPT\-4\.1 endpoint attemperature=0; their source files are undersrc/tree\_pipeline/\. The boxes retain the operative system rules and user\-message slot structures while omitting only redundant demonstrations;\{braced\}slots are filled at runtime\. The long\-dialogue prompts replace\{show\}with the corpus name\.

### E\.1Initial Tree Extraction

Tree\-construction prompt, defined asSYSTEM\_PROMPTinprofiles\_to\_trees\.py\.

`User\-message template from build\_user\_prompt:`

`E\.2 Intra\-Episode Session and Moment Extraction Session\- and moment\-extraction prompt, defined as SYSTEM\_PROMPT in update\_session\_moment\.py and re\-imported by extract\_long\_term\_moments\.py, so short\- and long\-dialogue tracks share it verbatim\. User\-message template from build\_user\_prompt: E\.3 Evidence Accumulation \(Stage A\) Per\-scene significance\-labelling prompt, defined as SYSTEM\_PROMPT\_TEMPLATE in extract\_evolution\_sessions\.py\. User\-message template: E\.4 Resistance\-Gated Judgment \(Stage B\) Per\-episode field\-update prompt, defined as \_SYSTEM\_PROMPT\_TEMPLATE in evolve\_persona\.py\. This is the longest of the four prompts; we keep its rule headers verbatim and elide only the in\-prompt narrative examples\. User\-message template; the drift\-signal block is included only when a trigger fires: Appendix F Dataset Statistics and Split Construction Table 6 lists the eight source corpora or resources, output languages, main\-character counts, and benchmark conversions\. Table 6: Dataset statistics and output language\. Short\-dialogue profiles are static; long\-dialogue states may evolve across episodes\. Type Dataset Lang\. \#Chars Note Short RAIDEN ZH 30 RPCA benchmark; light conversion CharacterEval ZH 77 RPCA benchmark; light conversion SimsConv EN 68 Simulated conversations; profiles parsed from instructions ChatHaruhi EN/ZH 31 Anime/fiction roles; profiles synthesized from dialogues Long Friends EN 6 ConvoKit; 10 seasons The Office EN 6 Public transcripts; 9 seasons Harry Potter EN 6 HPD/book dialogue Star Trek EN 6 Public TNG scripts; 7 seasons Short\-dialogue corpora\. RAIDEN and CharacterEval are existing RPCA benchmarks and are used after lightweight conversion into the common profile–context–target fields \[raiden2025, charactereval2024\]\. SimsConv and ChatHaruhi are also existing role\-playing resources, but require additional preprocessing to align character profiles, scene contexts, target utterances, and the OOD character\-cluster split \[simsconv2025, chatharuhi2023\]\. In all four short\-dialogue sets, the model conditions on the given profile \(or its ablation/tree variant\) and produces an in\-character response\. There is no cross\-episode narrative axis; only intra\-episode session and moment tracking applies\. Long\-dialogue corpora\. Friends is processed from the ConvoKit Friends Corpus \[convokit2020\]; The Office and Star Trek are processed from public episode transcript resources, with per\-episode source identifiers retained in the release metadata; Harry Potter dialogue is drawn from HPD, a previously released character\-aligned dialogue source \[hpd2023\]\. For all four long\-dialogue corpora, we construct episode\- or book\-indexed next\-utterance instances and temporal holdouts rather than adopting an existing benchmark split\. Each set follows six main characters whose beliefs, relationships, and affect may shift over a long arc, providing the setting for cross\-episode persona evolution\. OOD split construction\. For short\-dialogue data, we embed profile text and cluster characters by similarity\. Clusters are ranked by average inter\-cluster distance with a size penalty, and a fixed target number of OOD characters is drawn from the highest\-ranked clusters; random\-test characters are selected to a separate fixed target by cluster\-stratified sampling from the remainder\. For long\-dialogue data, we split temporally: Friends and The Office hold out the last three seasons \(8–10 and 7–9\); Star Trek holds out TNG seasons 6–7; Harry Potter holds out books 6–7\. Earlier seasons or books supply train and random\-test episodes\. Appendix G LLM Judge Details We use an LLM\-as\-Judge for Character Score \(Char\) and Semantic Score \(Sem\); the primary ratings are produced by GPT\-4\.1 under greedy decoding \(temperature=0, top\_p=1\) through a single fixed endpoint, and the same model is used for PHASE\-Tree extraction\. Appendix L\.2 evaluates the same responses with two additional judges under the same rubric\. Each response receives independent 1–5 integer ratings\. The verbatim rubric and prompt are released at evaluation/persona\_rubric\.md\. Judge constraints\. \(1\) Char is based only on the supplied profile text; parametric knowledge of the fictional character is excluded, and traits not stated in the profile are neither rewarded nor penalized\. \(2\) Sem is based only on the dialogue context; the ground\-truth response illustrates the kind of conversational moment \(humorous, emotional, informational, etc\.\) and is not treated as the unique correct answer\. \(3\) The two scores are rated independently: a response with poor profile consistency can still be contextually coherent, and vice versa\. Character Score \(profile consistency\)\. Measures how consistently the response reflects the traits described in the profile \(personality, speaking style, emotional tendencies, relationships, behavioral patterns\), not authenticity to any real or fictional persona\. • 1 \(none\): Generic, flat, or interchangeable with any identity; no described trait is discernible\. • 2 \(weak\): At most one trait surfaced \(e\.g\., a slightly matching tone\); other described traits are absent or contradicted\. • 3 \(moderate\): Two or more described traits recognizable and adapting the tone, but appearing in isolation rather than forming a coherent characterization\. • 4 \(strong\): Multiple described traits integrated coherently across tone, emotional register, and interpersonal dynamics; minor omissions allowed, but no trait is contradicted\. • 5 \(full\): Personality, style, emotional state, and relational dynamics from the profile converge naturally; the response reads as though it could only have been produced under this specific profile\. Semantic Score \(contextual coherence\)\. Measures whether the response is a natural continuation of the dialogue context\. Equally valid but different continuations receive Score ≥3\\geq 3; character\-style quality is captured by Char and not double\-counted here\. • 1 \(incoherent\): Nonsensical, self\-contradictory, or unrelated; reads as if inserted from a different conversation\. • 2 \(marginal\): Connects to the scene superficially but misreads the moment \(e\.g\., humorous when the moment is serious, addresses a topic no one raised\)\. • 3 \(coherent\): Reacts to what was said, matches the expected register, and is a plausible next line, even if it pursues a different angle from the reference\. • 4 \(aligned\): Natural continuation that also addresses the same topic or communicative intent as the reference; specific wording differs but the conversational function overlaps\. • 5 \(near\-equivalent\): Same communicative intent, key references, and emotional direction as the reference; wording differs but the conversational effect is interchangeable\. Appendix H Experimental Implementation Details The primary experiments use Qwen2\.5\-7B\-Instruct as the frozen backbone; Appendix M reports additional frozen backbones\. Reported model predictions in the PHASE\-Tree evaluation pipeline, including textual\-provision, parametric\-adaptation, and external\-baseline runs, are decoded with temperature 0\.3, a 256\-token maximum, and seed 42\. Trees are built with the extraction pipeline described in the method\. The parametric\-adaptation route warm\-starts from a P2P\-style profile\-to\-LoRA checkpoint \[tan2025p2p\] and is fine\-tuned end\-to\-end; gradients flow through generated LoRA weights only\. External baselines use the same backbone where applicable; OPPU requires per\-character adapter training\. Appendix I Internal Ablation Chain All variants share the same backbone, evaluation pipeline, and \(for LoRA\) hypernetwork; they differ only in how the character condition is prepared\. Table 7: Internal ablation chain\. Fairness\. NR receives only the native profile and context, produces unstructured text, and omits reply directives\. Its rewrite is no longer than RP on average, so gains are not due to longer prompts\. DT is evaluated only on long\-dialogue sets\. Appendix J External Baselines Textual provision\. RAG follows retrieval\-augmented generation \[lewis2020rag\] and retrieves historical lines into the prompt\. PAG follows profile\-prompting role\-playing systems \[characterllm2023, rolellm2024, chatharuhi2023\] and augments the prompt with profile\-derived text\. CFG follows language\-model classifier\-free guidance \[sanchez2024cfg\] and amplifies profile influence via dual forward passes at decode time\. Parametric adaptation\. MT\-LoRA trains one shared LoRA adapter \[hu2022lora\] on all characters’ dialogues\. Steering injects persona activation vectors at inference \[turner2024activation\]\. OPPU trains a separate per\-character adapter \[oppu2024\]\. P2P applies a profile\-to\-LoRA checkpoint without retraining \[tan2025p2p\]\. Cells marked – denote unavailable runs; OPPU is evaluated only on the four long\-dialogue corpora where per\-character adapters were trained\. Appendix K Statistical Significance and Effect Sizes This appendix specifies the question\-level paired statistical analysis behind the significance claim attached to Tables 1 and 2\. For each named comparison, we treat the two methods’ per\-question scores on the same \(dataset, split\) cell as a paired sample, then compute the paired tt\-test pp\-value, the Wilcoxon signed\-rank pp\-value, and the paired Cohen’s dd on the per\-question score differences\. The released evaluation logs contain the full comparison grid, including the Base, RAG, and P2P reference baselines used for routine reporting; Table 8 below reports the specific pairwise comparisons used by the main\-text claims\. Per\-question samples also yield 95% confidence intervals through the Student’s\-tt approximation; these are provided in the released logs rather than in the main tables to preserve readability\. Why effect size and not just pp\. Per\-cell paired sample sizes are large, roughly 10310^\{3\} on short\-dialogue test splits and up to about 1\.6×1041\.6\{\\times\}10^\{4\} on long\-dialogue test splits\. With samples of this size, pooled contrasts can yield small pp\-values even when the macro\-averaged effect is small, and individual dataset–split cells need not all satisfy p<0\.001p<0\.001\. We therefore interpret rankings primarily through Cohen’s dd, treating \|d\|<0\.2\|d\|<0\.2 as practically negligible regardless of how small pp is\. Table 8 reports macro\-averaged Cohen’s dd for the key comparisons cited in the main text\. The Sem effects are consistently above this practical threshold, while the cross\-paradigm Ours \(under textual provision\) vs\. MT\-LoRA \(under parametric adaptation\) Emb effect is borderline \(d=0\.19d=0\.19\), so we treat that embedding gain as small rather than as a large practical effect\. Table 8: Long\-dialogue macro\-averaged paired Cohen’s dd for key comparisons\. Range gives the per\-cell dd extremes across four datasets ×\\times two splits\. Ours denotes PHASE\-Tree under textual provision; MT\-LoRA is the parametric\-adaptation baseline\. Scope of the statistical analysis\. The analysis is question\-level paired: within each dataset and split, methods are compared on the same instances, which controls for per\-question difficulty\. The tests use one generation run per method and therefore quantify question\-level variation rather than run\-to\-run decoding variation\. The released evaluation logs include the per\-cell differences, confidence intervals, effect sizes, and test statistics\. Appendix L Judge Robustness and Validity We analyze the character and semantic scores along three dimensions: sensitivity to the persona reference, consistency across judge models, and agreement with human ratings\. L\.1 Persona\-Reference Sensitivity The default judge condition uses the flattened PHASE\-Tree profile as the Character Profile for every method\. We also score the same responses using the raw character description—the one to three paragraphs of identity, traits, and stock mannerisms used by RP—as the reference\. This changes only the Char and Sem judge inputs; generated responses and embedding scores remain fixed\. Table 9: Judge persona\-reference ablation: macro\-averaged Char, Sem, and Emb under two judge references, the flattened PHASE\-Tree profile \(PT\-prof\) and the raw character description \(Raw\-prof\)\. Δ\\Delta rows give Raw\-prof minus PT\-prof\. Bold = best, underline = second best on each score row; DT applies to long\-dialogue corpora only \(–\)\. Figure 4: Per\-dataset Δ\\DeltaChar \(left\) and Δ\\DeltaSem \(right\) when the judge’s persona reference is swapped from PT\-prof to Raw\-prof \(Raw\-prof minus PT\-prof\)\. RP’s Char gain concentrates on long\-dialogue corpora and ChatHaruhi; PT stays near zero on both metrics, and the Sem ranking is preserved\. Reference sensitivity\. Table 9 gives macro\-averaged scores under both references\. Embedding similarity is unchanged because it does not use the profile reference\. Sem varies little on short dialogue \(±0\.07\\pm 0\.07\) and increases for every method on long dialogue \(\+0\.04\+0\.04 to \+0\.18\+0\.18\); PT remains first on long\-dialogue Sem under both references\. Char is more sensitive\. RP gains 0\.200\.20 on short dialogue and 0\.920\.92 on long dialogue, whereas NR, ST, and DT move by at most 0\.150\.15\. PT decreases by 0\.150\.15 and 0\.070\.07, respectively\. Source of the Char shift\. The Char rubric measures consistency with the supplied profile text\. Raw descriptions in the long\-dialogue corpora contain many explicit identity markers, including catchphrases, idioms, and stock mannerisms\. RP receives this same description during generation, making its responses more likely to reproduce those markers when the raw description is also used for judging\. Accordingly, the largest RP gains occur in the strongly stylized long\-dialogue corpora and in ChatHaruhi\. The structured profiles distribute character information across fields and place less emphasis on verbatim identity markers, so NR and the tree variants are less sensitive to this reference change\. Relation to Sem and Emb\. RP retains the lowest macro Sem and Emb among profile\-conditioned methods under both reference conditions\. Its Char increase therefore reflects closer alignment with the identity markers in the raw description, not a corresponding increase in contextual coherence or reference\-response similarity\. The effect is also method\-specific: RP changes substantially, while the structured variants move only modestly\. Summary\. The two reference conditions produce the same overall Sem and Emb pattern, while Char responds to the lexical content of the profile reference\. Figure 4 shows that this sensitivity is concentrated in RP and in corpora with strongly stylized character descriptions; PT changes only modestly across references\. L\.2 Robustness Across Judge Models The judge\-model analysis uses GPT\-4\.1, GLM\-5\.2, and DeepSeek\-V4\-Flash with the same rubric, prompt, and decoding settings\. Each model scores the same generated responses; embedding scores are shared across conditions\. Figure 5\(a\) \(5\(a\), 5\(b\)\) shows each method’s change relative to the no\-profile Base\. Under textual provision, Ours has the largest Sem gain in all six judge–horizon cells, whereas Char leaders vary across judges and horizons\. Under parametric adaptation, Ours again leads Sem in all six cells, while its Char gain leads only the short\-dialogue cells under GLM\-5\.2 and DeepSeek\-V4\-Flash\. Thus the Sem conclusion is stable across judges, whereas Char rankings are judge\-dependent\. \(a\) Explicit textual provision\. Figure 5: Character and semantic score change relative to the no\-profile Base under three judges \(GPT\-4\.1, GLM\-5\.2, DeepSeek\-V4\-Flash\), split by horizon\. Warmer cells denote larger gains over Base\. \(b\) Implicit parametric adaptation\. L\.3 Agreement with Human Judgments Three annotators independently rated a blind sample of 200 Qwen2\.5\-7B generations spanning all methods and tracks\. They used the same 1–5 Character and Semantic scales and saw neither method identities nor automatic scores\. Overall is computed post hoc as the arithmetic mean of Char and Sem\. Table 10 reports agreement, judge correlation, and the PT–NR comparison under textual provision\. Table 10: Human evaluation on 200 blinded responses \(Qwen2\.5\-7B\), rated by three annotators on 1–5 scales\. The last block compares PT with NR on separate n=10n=10 prompt subsets\. Annotator agreement ranges from 0\.570\.57 to 0\.640\.64, and human consensus correlates with the judge at r=0\.59r=0\.59 on Char and r=0\.65r=0\.65 on Sem and Overall\. On the separate n=10n=10 PT and NR prompt subsets, the human Overall difference is \+0\.20\+0\.20; this comparison is descriptive\. Across 50,232 matched question IDs, GPT\-4\.1 yields pooled Overall Δ=\+0\.087\\Delta=\+0\.087 \(Wilcoxon signed\-rank p<0\.001p<0\.001\)\. Appendix M Backbone Generalization The generator\-backbone study covers Qwen3\-0\.6B, Gemma\-4\-E4B, Qwen2\.5\-7B\-Instruct, and Qwen3\-32B, spanning two model families and more than an order of magnitude in scale\. Qwen2\.5\-7B uses the full test set; the three additional backbones use the same fixed 25% subsample with identical sample IDs\. The extraction pipeline, prompts, decoding configuration, and judge are otherwise fixed\. Tables 11 and 12 report horizon\-level Char and Sem\. Table 11: Cross\-backbone internal ablation under explicit textual provision\. Qwen2\.5\-7B uses the full test set; the other backbones use the same fixed 25% subsample\. Values are horizon\-level macro\-averages\. Bold = best, underline = second best per row; DT applies to long\-dialogue corpora only \(–\)\. Table 12: Cross\-backbone external comparison under explicit textual provision\. Qwen2\.5\-7B uses the full test set; the other backbones use the same fixed 25% subsample\. Values are horizon\-level macro\-averages\. Bold = best, underline = second best per row\. External comparison\. PHASE\-Tree achieves the best long\-dialogue Char and Sem on all four backbones and the best short\-dialogue Sem on all four\. On short\-dialogue Char, it ranks first or second except on Qwen3\-0\.6B\. The long\-dialogue Sem margin over the strongest competitor is \+0\.06\+0\.06 for Qwen3\-0\.6B and \+0\.37\+0\.37 to \+0\.45\+0\.45 for the three larger backbones\. These estimates support robustness across model families and scales but do not define a monotone capacity trend because the sampling scopes differ\. Internal ablation\. PT has the best long\-dialogue Sem on all four backbones and the best long\-dialogue Char on Gemma\-4\-E4B, Qwen2\.5\-7B, and Qwen3\-32B\. On Qwen3\-0\.6B, NR leads PT on long\-dialogue Char \(2\.1082\.108 vs\. 2\.0292\.029\), while PT remains first on Sem\. The PT–NR long\-dialogue Char contrast is −0\.079\-0\.079 at 0\.6B, \+0\.114\+0\.114 for Gemma\-4\-E4B, \+0\.015\+0\.015 at 7B, and \+0\.218\+0\.218 at 32B\. These heterogeneous estimates support robustness across model families rather than a scaling curve\. Appendix N Implicit Parametric Adaptation Results Table 13 reports the internal representation ablation for implicit parametric adaptation: the same PHASE\-Tree\-finetuned hypernetwork generates LoRA adapters conditioned on RP, NR, ST, DT, or PT, with dialogue\-only prompts\. Table 13: Implicit parametric adaptation results on eight corpora \(mean over random and OOD splits; short/long rows are unweighted macro\-averages\)\. Bold = best, underline = second best; Base excluded from that competition; DT applies to long\-dialogue sets only \(–\)\. Within\-ablation analysis\. Across the conditioned variants, the macro\-average spread is only 0\.013/0\.0070\.013/0\.007 on Sem and 0\.002/<0\.0010\.002/\{<\}0\.001 on Emb for short/long dialogue, indicating that the profile\-to\-LoRA mapping flattens distinctions among tree variants\. ST is the strongest overall internal variant: it leads short\-dialogue Char and Sem, is a close second on short\-dialogue Emb, and remains within 0\.0030\.003 of the best on every long\-dialogue metric\. Interpretation\. Relative to Base, PT changes Char/Sem/Emb by \+0\.176/\+0\.209/\+0\.053\+0\.176/\+0\.209/\+0\.053 on short dialogue and −0\.020/\+0\.111/\+0\.015\-0\.020/\+0\.111/\+0\.015 on long dialogue\. Against external parametric baselines, Ours ranks first in 8 of 24 dataset–metric cells and in the top two in 18, including the highest Sem average on both horizons\. The mapping therefore retains a broad conditioning benefit at fixed prompt cost, while the compressed differences among variants identify the profile\-to\-LoRA encoder as the bottleneck\. Appendix O Token Cost Analysis Table 7 reports mean token counts per method; within each horizon, values are pooled over its four datasets and both test splits\. Profile = character\-conditioning tokens in the prompt \(0 when encoded in adapters or retrieved as raw dialogue\)\. Context = dialogue\-context tokens\. Prompt = total LLM input \(template, instruction, profile, context\)\. Pred and GT = mean generated and reference response lengths\. Figure 6: Mean token statistics per method, averaged over all datasets and splits within each horizon group\. Green = textual provision; purple = parametric adaptation\. † CFG performs dual forward passes; its Context and Prompt counts are the sum of the conditioned and unconditioned inputs\. Short\-Dialogue \(Avg\) Long\-Dialogue \(Avg\) Method Profile Context Prompt Pred GT Profile Context Prompt Pred GT Base 0 121 204 10\.5 41\.2 0 290 372 10\.3 18\.0 RP 416 121 627 17\.8 41\.2 275 290 653 13\.1 18\.0 NR 236 121 447 21\.3 41\.2 209 290 587 15\.3 18\.0 ST 209 121 421 20\.0 41\.2 183 290 561 15\.0 18\.0 DT – – – – – 482 290 860 15\.0 18\.0 RAG 0 121 622 16\.8 41\.2 0 290 1347 11\.9 18\.0 PAG 416 121 1045 21\.8 41\.2 275 290 1628 13\.5 18\.0 CFG† 416 242 831 22\.0 41\.2 275 580 1024 13\.3 18\.0 Ours 260 121 471 20\.6 41\.2 1358 290 1736 15\.5 18\.0 MT\-LoRA 0 121 204 12\.9 41\.2 0 290 372 10\.8 18\.0 Steering 0 121 204 10\.5 41\.2 0 290 372 65\.2 18\.0 OPPU – – – – – 0 290 372 14\.2 18\.0 P2P 0 121 204 12\.4 41\.2 0 290 372 12\.1 18\.0 Ours 0 121 204 13\.2 41\.2 0 290 372 11\.0 18\.0 Figure 7: Stacked prompt tokens per method \(short/long averages\): context \(blue\), profile \(green\), retrieved dialogue for RAG/PAG \(orange\), template/instruction \(gray\)\. Right labels: total prompt tokens; dotted line: textual provision vs\. parametric adaptation\. CFG segments are doubled \(two forward passes\)\. Two operating regimes\. On short dialogue, Ours uses a 471\-token prompt, 24–55% smaller than RP, RAG, PAG, and CFG, while attaining the highest Sem among them\. On long dialogue, accumulated state expands the profile to 1358 of 1736 prompt tokens \(∼78%\{\\sim\}78\\%\); this higher input cost yields the strongest Sem and Emb\. Parametric adaptation as a fixed\-cost alternative\. Because character state is absorbed into adapter weights, all parametric methods match the context\-only prompt cost \(204 short; 372 long\), reducing Ours’ prompt tokens by ∼57%\{\\sim\}57\\% and ∼79%\{\\sim\}79\\%, respectively, relative to textual provision\. Figure 7 decomposes each method’s prompt into dialogue context, profile text, retrieved dialogue, and chat\-template/instruction overhead\. RAG’s prompt is dominated by retrieved dialogue \(∼418\{\\sim\}418 tokens short, ∼975\{\\sim\}975 long\); PAG adds the same retrieved dialogue on top of an RP\-style profile; CFG roughly doubles context and template overhead because it runs two forward passes per query; Ours under textual provision carries only a profile segment sized by the structured tree; and all parametric\-adaptation methods \(including Ours under parametric adaptation\) reduce to context plus template overhead, with the character state living entirely in the adapter weights\.`

相似文章

Context-Agent: 用于非线性对话的动态话题树

arXiv cs.CL

Context-Agent提出了一种新颖框架,将多轮对话历史建模为动态树结构而非扁平序列,更好地捕捉自然对话的层级性和分支性特征。该论文引入NTM基准来评估非线性对话场景,并展示了在各种LLM上的任务完成率和令牌效率的提升。

迈向定制化的多模态角色扮演

arXiv cs.LG

本文介绍了 UniCharacter,这是一个用于定制化多模态角色扮演(CMRP)的两阶段训练框架,能够对人设、对话风格和视觉身份进行统一的定制。该研究提出了 RoleScape-20 数据集,并证明了该模型仅需极少数据即可实现连贯的跨模态生成。