← Latest papers
💬 NLP

SeDT: Sentence-Transformer Decision-Transformer Conditioning for Multi-Turn Conversation Reliability

The paper introduces SeDT, a training-free inference-time method that leverages sentence-transformer derived relevance scores to condition Decision-Transformer models on multi-turn conversations, effectively mitigating the "Lost in Conversation" phenomenon by dynamically highlighting critical constraints and significantly improving both performance and reliability across various large language models.

Original authors: Ramakrishna Vamsi Setti, Jagadeesh Rachapudi, Sachin Chaudhary, Praful Hambarde, Amit Shukla

Published 2026-05-27
📖 6 min read🧠 Deep dive

Original authors: Ramakrishna Vamsi Setti, Jagadeesh Rachapudi, Sachin Chaudhary, Praful Hambarde, Amit Shukla

Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.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

The Problem: The "Lost in Conversation" Effect

Imagine you are hiring a very smart but slightly distracted chef to cook a complex meal.

  • Scenario A (Single Turn): You hand the chef a single, perfect recipe card that lists every ingredient, every step, and every special dietary restriction all at once. The chef cooks a perfect dish.
  • Scenario B (Multi-Turn): You walk into the kitchen and say, "Make a pasta dish." The chef starts chopping. You then walk in again and say, "Oh, by the way, no garlic." The chef nods. You walk in a third time and say, "Actually, make it spicy." The chef nods again. Finally, you say, "And use only organic tomatoes."

When the chef finally plates the dish, they might forget the "no garlic" rule because it was mentioned in the middle of the conversation, or they might get confused about which instruction was the most important.

The paper calls this "Lost in Conversation." It found that when Large Language Models (LLMs) get instructions piece-by-piece over several turns, their performance can drop by nearly 40%.

Crucially, the paper discovered that the models don't necessarily lose their ability to cook (their "aptitude" only drops a little). Instead, they become unreliable. Sometimes they get it right; other times, they make wild guesses or forget critical rules. It's like a chef who is a genius 80% of the time but a disaster 20% of the time, whereas before they were a consistent genius.

Why does this happen?
The paper argues the problem is structural. When a conversation is saved, it looks like a flat list of text. To the AI, every sentence you ever said carries the exact same "weight." It doesn't know that the third thing you said ("No garlic!") is a critical constraint, while the first thing you said ("Make pasta") was just a general idea. The AI treats the middle of the conversation like background noise.

The Solution: SeDT (The "Highlighter" Method)

The authors propose a new method called SeDT (Sentence-transformer Decision-Transformer). They didn't retrain the AI or change its brain. Instead, they changed how they present the conversation to the AI right before it gives the final answer.

They borrow a concept from offline reinforcement learning (a field where robots learn from past data) called "Return-to-Go" (RTG).

The Analogy: The Treasure Map
Imagine the conversation is a treasure hunt.

  • The Old Way: You give the AI a list of clues: "Start at the oak tree," "Walk 10 steps," "Dig near the rock." The AI just reads them in order.
  • The SeDT Way: Before the AI starts digging, you give it a scored map. Next to every clue, you write a number indicating how much "treasure" (relevance) is still ahead.
    • Clue 1: "Start at the oak tree" (Score: Low, because the real clues are coming).
    • Clue 2: "Walk 10 steps" (Score: Medium).
    • Clue 3: "Dig near the rock" (Score: High, because this is the critical constraint!).

By adding these numbers, the AI suddenly "knows" which parts of the conversation matter most. It learns to pay extra attention to the high-scoring clues and ignore the fluff.

How SeDT Works (The Three Signals)

To calculate these "scores" for every part of the conversation, SeDT uses three different "senses" to judge importance:

  1. The Semantic Sense (The "Meaning" Check): It uses a smart tool (a Sentence Transformer) to understand the meaning of the text. Does this sentence actually help solve the final problem? If you asked for a Python function, a sentence saying "Let's talk about the weather" gets a low score. A sentence saying "The function must handle negative numbers" gets a high score.
  2. The Lexical Sense (The "Keyword" Check): It looks for matching words. If the goal is to "write a function," and a previous turn says "function parameters," that's a match. This catches specific technical terms that deep meaning tools might miss.
  3. The Positional Sense (The "Middle" Boost): This is the cleverest part. AI models naturally ignore the middle of long texts (they focus on the start and end). SeDT adds a special "bonus score" to the middle turns of the conversation. This forces the AI to pay attention to the critical constraints that were revealed in the middle of the chat, preventing them from being lost.

The Result: A More Reliable Chef

The authors tested this on three different AI models (from OpenAI, Google, and Meta) across three tasks: writing code, solving math problems, and making API calls.

  • The Outcome: In every single test, SeDT performed better than the standard method.
  • The Gains: In some cases, performance jumped by nearly 38%.
  • Reliability: The "unreliability" (the gap between the best and worst performance) dropped significantly. The AI became consistent again.

They also added a Self-Correction Mechanism. If the AI sees that the conversation was very "weak" (low scores overall), it triggers a second check. A "verifier" looks at the answer and asks, "Did we cover all the important, high-scoring clues?" If the new answer covers the important clues better than the old one, it swaps the answer. If not, it keeps the original. This ensures the AI never accidentally makes things worse.

Why This Matters

The paper claims that the "Lost in Conversation" problem isn't because the AI is too dumb to understand; it's because the AI is looking at a flat, unweighted list of text.

By simply annotating the history with relevance scores (telling the AI "this part matters, that part doesn't"), they can recover most of the lost performance without needing to retrain the model, without needing new data, and without changing the model's code.

In short: You don't need to teach the AI how to listen better. You just need to hand it a highlighter and show it which parts of the conversation are actually important.

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 →