Manuscript Offprint

arXiv:2611.07469

Recursive Self-Improvement for Long-Horizon Role-Playing Dialogue

Y. L. Li, Y. H. Wu

Abstract

Long-horizon role-playing dialogue requires consistent character identity, reliable memory, and context-sensitive interaction. We present a bounded recursive self-improvement (RSI) framework that revises original-character memory, stable persona instructions, and a policy for constructing turn-level prompts. Repair outcomes also inform revisions to the updater's diagnostic rules, edit routing, and candidate selection. We specify the updater as a versioned policy with explicit inputs, editable fields, acceptance gates, and stopping conditions. An internal evaluation covers 50 original characters and five models, with two 100-round conversations per character-model pair: 500 conversations per condition. Across the pooled evaluated replies, the bad-response rate decreases from 14.00% (6,973/49,824) to 4.94% (2,459/49,793), a 9.06-percentage-point reduction and a 64.71% relative reduction. In 600 blinded human comparisons, RSI receives 294 wins, 187 ties, and 119 losses, yielding a 71.19% win rate among decisive judgments. The results support improved aggregate dialogue quality for the complete framework on the internal test distribution.

1 Introduction

Role-playing conversational agents must maintain a character across a developing interaction. A locally fluent reply can still reverse a relationship, forget an established event, repeat an earlier plot beat, or decide an action on the interlocutor's behalf. These failures become difficult to diagnose when the same reply depends on persistent character instructions, retrieved memories, and a dynamically assembled prompt.

Public role-play work provides useful foundations for this problem. RoleLLM studies role-conditioned instruction tuning [2], while CharacterEval and EmoCharacter examine character portrayal and emotional fidelity [3,4]. MiniMax's account of Talkie/Xingye motivates multi-turn evaluation based on detectable dialogue errors [1]. These approaches motivate a system that can identify concrete failures and revise the responsible character component.

Our framework makes three components editable: character memory, stable persona instructions, and the policy that chooses turn-level context and guidance. An updater diagnoses failures and proposes localized repairs. Repair history then informs changes to the updater itself, allowing subsequent iterations to use different diagnostic rules, edit choices, and candidate priorities. The foundation model and immutable character canon remain outside this update interface.

We evaluate the complete system against the existing baseline using AI-generated internal test conversations and blinded human comparisons. The observed bad-response reduction is 64.71% relative to the baseline. The method section makes the update mechanism explicit, including how repair evidence reaches the next updater version and how validation feedback is separated from final testing. The empirical comparison measures the combined system effect.

References (10)