atlas

Research map / Large language models / Retrieval and knowledge

DFA-RAG: Conversational Semantic Router for Large Language Model with Definite Finite Automaton

ICML 2024 · Large language models › Retrieval and knowledge · approach: Long-context and personalized retrieval · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DFA-RAG, which learns a definite finite automaton of conversation tags from training dialogues and uses it to route retrieval of in-context examples for LLM response generation in customer-service and task-oriented dialogue.

Problem

LLM conversational agents struggle to produce regulated, workflow-compliant responses in scenarios with predetermined response guidelines (e.g., customer service, emotional support), and standard RAG retrieval does not match partial conversational flows well.

Approach

Model training dialogues as a DFA over LLM-extracted semantic tags (learned via a tag tree with state merging by child-tag similarity), then navigate the DFA with the user's tagged utterances and retrieve dialogues from the matched state as in-context examples for the LLM.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DFA-based retrieval and routing instead of standard RAGGPT-4 · All domainswin rate: 70.6 -> 74.3Helped
Use DFA-based retrieval and routing instead of standard RAGGPT-3.5 · All domainswin rate: 71.6 -> 75.9Helped
Use DFA-RAG instead of RAGGPT-4 · AskPlayStationwin rate: 66.3 -> 65.9Hurt
Use DFA-RAG instead of MarCoMultiWOZ / CambridgeInfo · MultiWOZ / CambridgeInfoInform: 94.5 -> 93.3Hurt
Use DFA-RAG instead of TOATODMultiWOZ / CambridgeInfo · MultiWOZ / CambridgeInfoSuccess: 79.8 -> 90.0Helped
Use DFA-RAG instead of the naive GPT-3.5 base modelGPT-3.5 · AirbnbHelp example dialoguealignment with ground truthHelped

Surprising findings

Limitations

Experimental setup

Datasets: AmazonHelp DeltaSupport AskPlayStation AirbnbHelp NikeSupport CambridgeInfo (MultiWOZ)

Benchmarks: AmazonHelp DeltaSupport AskPlayStation AirbnbHelp NikeSupport CambridgeInfo (MultiWOZ)

Metrics: win rate Inform Success

Baselines: Random Sampling BM25 RAG FT-LLM HDSA MarCo HDNO GALAXY KRLS AuGPT MTTOD RSTOD

Builds on: retrieval-augmented generation semantic router AlpacaEval

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy