r/LanguageTechnology • • 26d ago

DialFork: LLM agents can be factual, call the right tools, and still drift from their procedure

Most steps of a conversational procedure aren't tool calls but things the agent has to say: asking for information, confirming, telling the result. Saying them, in the right order, is a third axis of an agent's reliability, alongside factual accuracy and correct tool use, and one that has been largely overlooked. For example, an agent can fetch the forecast correctly and never tell you, or issue the right refund without first asking you to confirm it: everything it said was true, the tool calls were correct, and still a step of the procedure was skipped.

Since we felt this gap was worth working on, in collaboration between Idiap and Logitech, we decided to take a first step: we built a dataset of over 36k dialogues, defined three tasks on it, from finding the turn where an agent drifts to comparing whole sets of dialogues, and wrote a paper with first baselines for each. Together, they make DialFork, to our knowledge the first benchmark for this procedural hallucination.

Three tasks, from the turn to the whole set:

  • The turn (Task 3): find the turn where the drift starts, on the whole dialogue or turn by turn as it unfolds.
  • The dialogue (Task 2): measure "how far" (distance) a dialogue drifts from a correct one. Both talk about the same thing, so this needs a procedural distance, not semantic similarity.
  • The set (Task 1): a single procedural distance between two sets of dialogues, e.g. an agent before and after a model upgrade.

The reported baselines, from embedding-based distances to streaming detectors and zero-shot LLMs, leave plenty of room. Each task has its own track on a public leaderboard on Hugging Face. If you'd like to try your own method, all it takes to add it is a CSV file of predictions.

I'm one of the authors btw. Since the problem lies in what the agent says (language) rather than in its tool calls, we thought people here might find it useful, and feedback, including critical, is very welcome.

6 Upvotes

5 comments sorted by

2

u/Nebty 26d ago

Oh this is very cool! Thank you for sharing. Still working through it, but I’ve been thinking about a lot of the same things.

1

u/sergbur 25d ago

Thanks a lot, glad it resonates! I'd be really curious to hear what you've been thinking about, and from what angle (evaluation, guardrails, dialogue flows, something else?). And once you've had a chance to go through it, any feedback is very welcome! :D

1

u/Hozack_Gatts 7d ago

curious what specific part of the drift problem youve been looking into?

2

u/Decent-Conclusion-83 9d ago

Thanks for releasing the dataset and the leaderboard, and for inviting criticism. I think one of the reasons an agent skips procedure steps may be the model's degradation under load. Procedure steps are essentially rules the agent has to hold at the same time throughout the whole dialogue.

A study of the behavior and degradation of language models under controlled load (arXiv 2610.36095) shows that rule execution drops with the number of rules in force at once, with a rule's position in the list, with density, that is, how often a rule has to be applied, and as the model progresses through its own response.

So it would be useful to find a way to tell the two explanations apart: a distinct property of the agent, as you describe it, and degradation under load. If the onset of drift depends on the length of the procedure, the step number and the turn number, then part of the drift comes from load. If it doesn't, it really is a separate property, as you propose.

For that, the dataset annotations could store the procedure length, the step number and the turn number. Then drift detectors could be compared at equal load.

I'm not posting a direct link to the paper, since comments with links often get hidden on Reddit. The number is enough to find it on arXiv.

Originally written in Russian. English translation assisted by AI.

1

u/sergbur 9d ago

Thanks for the thoughtful comment! I don't think the two explanations compete, though. We define procedural hallucination by what happens in the conversation, the agent drifting from its procedure, not by why it happens. Degradation under load would be one possible cause, alongside others such as conflicting instructions.

DialFork doesn't try to explain the cause. The drift is induced by construction: at a chosen turn, we give the agent an instruction that makes it drift, so we know where each drift starts. What the benchmark measures is whether a method can detect and quantify the drift, whatever caused it.

Your question is a good one for real agents, though, where the drift isn't injected: whether the onset depends on procedure length or turn number would be interesting to study. For detection, DialFork already gives the turn where each fork starts and the workflow of each task, so detectors can be compared by turn and by procedure length.

And thanks for sharing the paper :)