mlsanityData to 14 Oct 2026

Test-Time-Matching: Decouple Personality, Memory, and Linguistic Style in LLM-based Role-Playing Language Agent

arXiv 2507.16799 ↗First posted 22 Jul 2025cs.CLcited by 1

On the map: LLM agents and tool use → Social simulation and multi-agent debate

Abstract (arXiv)

The rapid advancement of large language models (LLMs) has enabled role-playing language agents to demonstrate significant potential in various applications. However, relying solely on prompts and contextual inputs often proves insufficient for achieving deep immersion in specific roles, particularly well-known fictional or public figures. On the other hand, fine-tuning-based approaches face limitations due to the challenges associated with data collection and the computational resources required for training, thereby restricting their broader applicability. To address these issues, we propose Test-Time-Matching (TTM), a training-free role-playing framework through test-time scaling and context engineering. TTM uses LLM agents to automatically decouple a character's features into personality, memory, and linguistic style. Our framework involves a structured, three-stage generation pipeline that utilizes these features for controlled role-playing. It achieves high-fidelity role-playing performance, also enables seamless combinations across diverse linguistic styles and even variations in personality and memory. We evaluate our framework through human assessment, and the results demonstrate that our method achieves the outstanding performance in generating expressive and stylistically consistent character dialogues.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Social simulation and multi-agent debate, one of 16 directions in LLM agents and tool use. Builds on 20 of its 36 references that are in the map. First posted on arXiv 22 Jul 2025.

Builds on

20 of 36 references.

Closest ancestors · 6

Same direction, newest first

  1. 2024Emotional RAG: Enhancing Role-Playing Agents through Emotional Retrieval30 Oct
  2. 2024Crafting Customisable Characters with LLMs: A Persona-Driven Role-Playing Agent Framework25 Jun
  3. 2024From Persona to Personalization: A Survey on Role-Playing Language Agents28 Apr
  4. 2024Neeko: Leveraging Dynamic LoRA for Efficient Multi-Character Role-Playing Agent21 Feb
  5. 2024CharacterEval: A Chinese Benchmark for Role-Playing Conversational Agent Evaluation2 Jan
  6. 2023Character-LLM: A Trainable Agent for Role-Playing16 Oct

Other references · 14

  1. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
  2. 2017Toward Controlled Generation of Textcited by 272
  3. 2023InCharacter: Evaluating Personality Fidelity in Role-Playing Agents through Psychological Interviewscited by 179
  4. 2024Large Language Models are Superpositions of All Characters: Attaining Arbitrary Role-play via Self-Alignmentcited by 104
  5. 2019Style Transformer: Unpaired Text Style Transfer without Disentangled Latent Representationcited by 84
  6. 2023CharacterChat: Learning towards Conversational AI with Personalized Social Supportcited by 60
  7. 2025In-depth Analysis of Graph-based RAG in a Unified Frameworkcited by 46
  8. 2024IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generationcited by 35
  9. 2025CoSER: A Comprehensive Literary Dataset and Framework for Training and Evaluating LLM Role-Playing and Persona Simulationcited by 26
  10. 2021Enhancing Content Preservation in Text Style Transfer Using Reverse Attention and Conditional Layer Normalizationcited by 20
  11. 2021A Review of Text Style Transfer using Deep Learningcited by 18
  12. 2024Unsupervised Text Style Transfer via LLMs and Attention Masking with Multi-way Interactionscited by 7
2 more
  1. 2024StyleChat: Learning Recitation-Augmented Memory in LLMs for Stylized Dialogue Generationcited by 5
  2. 2024Thinking Before Speaking: A Role-playing Model with Mindsetcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Role-Playing Agents Driven by Large Language Models: Current Status, Challenges, and Future Trends
  2. 2025PsyMem: Fine-grained psychological alignment and Explicit Memory Control for Advanced Role-Playing LLMs
  3. 2026Rethinking Role-Playing Evaluation: Anonymous Benchmarking and a Systematic Study of Personality Effects
  4. 2026Cognitive Enhancement: Rethinking the Necessity of Role-Playing for Large Language Models
  5. 2026DynSess: Dynamic Session-Level Evaluation and Optimization Framework for Role-Playing Agents
  6. 2026RPA-Check: A Multi-Stage Automated Framework for Evaluating Dynamic LLM-based Role-Playing Agents
  7. 2025Improving LLM Reasoning through Interpretable Role-Playing Steering
  8. 2025FURINA: A Fully Customizable Role-Playing Benchmark via Scalable Multi-Agent Collaboration Pipeline