TalkMatrix: Generating Character Dialogue that is Both Consistent and Diverse
Not on the map. Why?
Abstract (arXiv)
Candidate-based decoding typically selects a completion for each prompt independently, but many applications require a collection of outputs that satisfies global, non-decomposable requirements. We formulate this setting as structured multi-prompt, multi-completion selection: given a candidate pool for every prompt, select one completion per prompt to optimize a collection-level objective. We instantiate the problem in character dialogue, where each character should remain consistent across situations, each line should fit its situation, and characters and situations should remain distinguishable. Our method, TalkMatrix, generates multiple candidates for every character--situation pair and jointly selects a complete matrix using four embedding-based consistency and diversity objectives. Because a weighted sum can improve some dimensions by sacrificing another, TalkMatrix maximizes the worst-performing objective through a two-level minimax formulation. We approximately optimize the resulting discrete objective with multi-start coordinate ascent, and compare it with local, partial-matrix, and generic combinatorial search baselines. We run experiments on 50 synthetic role-playing scenarios and 25 curated board game scenarios where multiple characters interact in predefined situations. An LLM-as-a-judge rates matrix-level selection higher than random and independent cell-level selection baselines. These results show the value of structured selection for globally controlled dialogue generation, while our empirical validation remains specific to role-playing scenarios.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 22 references that are in the map. First posted on arXiv 20 Jul 2026.
Builds on
13 of 22 references.
References · 13
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,501
- 2016Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Modelscited by 301
- 2023Beyond Reverse KL: Generalizing Direct Preference Optimization with Diverse Divergence Constraintscited by 174
- 2019Comparison of Diverse Decoding Methods from Conditional Language Modelscited by 78
- 2024Neeko: Leveraging Dynamic LoRA for Efficient Multi-Character Role-Playing Agentcited by 52
- 2025OpenCharacter: Training Customizable Role-Playing LLMs with Large-Scale Synthetic Personascited by 25
- 2024DTLLM-VLT: Diverse Text Generation for Visual Language Tracking Based on LLMcited by 24
- 2020fugashi, a Tool for Tokenizing Japanese in Pythoncited by 17
- 2023Towards Robust Personalized Dialogue Generation via Order-Insensitive Representation Regularizationcited by 17
- 2024Generating Diverse and High-Quality Texts by Minimum Bayes Risk Decodingcited by 11
- 2024A Multi-Task Role-Playing Agent Capable of Imitating Character Linguistic Stylescited by 6
Built on by
Not cited yet.