AI
Automated Prompt Refinement Boosts LLM Performance on Conversation Untangling
A new optimization method systematically improves how language models separate interleaved dialogue in group chats by refining both task instructions and data formatting.
Separating overlapping conversations in multi-party chat systems remains a stubborn challenge for large language models. When multiple speakers exchange messages simultaneously, identifying which utterances belong to which thread becomes difficult—a problem known as dialogue disentanglement.
The Core Challenge#
Manually crafting prompts to guide LLMs through dialogue disentanglement is time-consuming and requires constant experimentation for each model variant. While prompt engineering can improve accuracy, there's no systematic way to find optimal phrasings without extensive trial and error.
APO-DD: An Automated Optimization Approach#
Researchers have introduced APO-DD, a method that automatically refines prompts by examining where models fail and how they arrived at wrong answers. Rather than relying on human intuition, the system uses execution traces and reflective analysis to update two key components:
- Task instructions: The core directives telling the model what to do
- Chat representations: Automatically generated formatting rules that restructure how conversations are presented to the model
Results Outpace Manual Tuning#
Testing on the Qwen3.5-9B model using the Ubuntu IRC dataset showed significant gains. The optimized prompt achieved an average score of 68.7 across seven evaluation metrics, compared to 57.5 for the best manually refined version—a substantial improvement. Notably, the system generalized well: the refined prompt also performed better on other chat domains without requiring additional optimization.
An unexpected finding emerged: optimizing task instructions alone sometimes failed to improve performance beyond baseline prompts. This suggests that how conversations are formatted and presented may matter more than the instructions themselves, pointing to a potentially fruitful direction for future research.

