← Latest papers
💻 computer science

DD-GEPA: Prompt Optimization for Dialogue Disentanglement Focusing on Task Instruction and Utterance Representation

This paper introduces DD-GEPA, an automatic prompt optimization framework that enhances large language model performance in dialogue disentanglement by systematically refining task instructions and utterance representations using the GEPA method.

Original authors: Naoki Takada, Tatsunori Mori

Published 2026-06-09
📖 4 min read☕ Coffee break read

Original authors: Naoki Takada, Tatsunori Mori

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a busy group chat on a messaging app like Slack or WhatsApp. Multiple people are talking at the same time about completely different things. One person is asking how to fix a computer error, while another is planning a party, and a third is sharing a funny meme. Because everyone is typing at once, these conversations get "tangled" together into one long, messy stream of text.

The Problem: Untangling the Knot
The paper calls this "Dialogue Disentanglement." It's the job of sorting that messy stream back into separate, coherent conversations. Think of it like a librarian trying to separate a pile of mixed-up letters from different families into the correct envelopes.

For a long time, computers were bad at this. They would get confused and think a comment about a party was a reply to a computer error.

The New Tool: The "Smart" Librarian
The authors used a Large Language Model (LLM)—a very advanced AI that reads and writes like a human—to act as this librarian. They hoped the AI could naturally understand who was talking to whom. However, when they just asked the AI to "sort these messages," it didn't do a great job. It was like giving a new librarian a messy pile of mail and saying, "Figure it out," without giving them any specific rules.

The Solution: DD-GEPA (The Auto-Coach)
The paper introduces a new method called DD-GEPA. Instead of humans spending weeks trying to guess the perfect set of rules to give the AI, this method lets the AI teach itself the best rules.

Here is how it works, using a cooking analogy:

  1. The Recipe (The Prompt): To get the AI to sort the messages, you have to give it a "prompt." This prompt is like a recipe. It has three main parts:

    • The Task Instruction: "What are we making?" (e.g., "Sort these messages into groups.")
    • The Ingredients List (Utterance Representation): "How do we present the data?" (e.g., "Here is the message, the time, and the name of the speaker.")
    • The Plating Instructions (Output Instruction): "How should the final dish look?" (e.g., "Give me the answer in a specific JSON format.")
  2. The Trial and Error: In the past, humans had to manually tweak these three parts of the recipe over and over to see what worked best. It was slow and hit-or-miss.

  3. The Auto-Coach (GEPA): The authors used a system called GEPA. Imagine a strict but helpful coach standing next to the AI.

    • The coach gives the AI a test batch of mixed-up messages.
    • The AI tries to sort them using its current "recipe."
    • If the AI makes a mistake, the coach doesn't just say "Wrong." The coach analyzes why it failed and suggests a specific change to the recipe.
    • Maybe the coach says, "You missed the connection because the ingredients weren't listed clearly. Let's rewrite the 'Ingredients List' section of the recipe."
    • Or, "You got the right answer but wrote it in the wrong format. Let's fix the 'Plating Instructions'."
  4. The Result: The system repeats this process automatically. It tweaks the instructions, tests them, learns from the mistakes, and tweaks them again. Eventually, it finds a "perfect recipe" that the AI follows to sort the conversations with high accuracy.

What They Found

  • Better than Human Guessing: The recipe the computer found for itself (DD-GEPA) was better at sorting conversations than the best recipe a human expert could write by hand.
  • The "Open-Source" Challenge: The authors tested this on a smaller, free-to-use AI model (around 30 billion parameters). Even with this smaller model, the auto-coached recipe made it perform much better. However, it still couldn't quite beat the performance of a massive, expensive, proprietary AI model (like GPT-5) that was given a human-written recipe.
  • The Limit: The system hit a wall. After a certain point, the AI couldn't find any more improvements. The authors suspect this is because the test data wasn't hard enough to force the AI to learn more complex rules, or because the "coach" wasn't seeing enough different types of mistakes to learn from.

In Summary
This paper shows that instead of humans struggling to write the perfect instructions for an AI to untangle chat logs, we can let the AI optimize its own instructions. By breaking the instructions into three parts and letting a system automatically refine them based on mistakes, we can get a much smarter result, even with smaller, more accessible AI models.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →