A task-oriented dialogue system is a conversational program that helps a user get something done, such as booking a table, checking the weather or moving a meeting, instead of chatting for its own sake. Semantic parsing is the step inside many such systems that turns what the user said into a formal meaning representation, often a small program, that software can run. Voice assistants such as Siri and Alexa are the familiar examples.[1]
The field spent a decade on problems that agents built on large language models now face again. A system has to work out what the user wants, resolve what is ambiguous, keep track of the conversation, and produce an action that a program can check and execute. Research on dialogue state, executable representation languages and training data for rare commands is a useful map for anyone designing structured output or tool calls today.
I worked in this area at Clockwise on Prism, a calendar assistant that turned requests into programs in a small domain-specific language.[1]
How it works
The classic design is a pipeline. A language understanding module labels the user's intent and fills slots, such as the date and party size for a restaurant booking. A state tracker keeps a running belief about what the user wants. A policy picks the next system action, and a generator turns that action into a reply. A 2020 survey by Zhang et al. names three hard problems for these systems: learning from little data, choosing good actions over many turns, and building knowledge of the domain into the model.[2]
Researchers tried to collapse the pipeline into one trained model. Bordes et al. set up restaurant-booking tasks that require issuing API calls and using their results, and found that an end-to-end neural model did promisingly but imperfectly.[3] Sequicity, in 2018, tracked the dialogue state as a span of text inside a single sequence-to-sequence model, which cut parameters and training time compared with pipelines.[4]
Semantic parsing gives the system its actions. Berant and Liang, in 2014, generated candidate logical forms for a question, wrote each one out in plain canonical English, and then picked the candidate whose wording best paraphrased the question.[5] That idea of a controlled, readable target language comes back repeatedly in later work.
Programs as dialogue state
An influential design for complex requests came from researchers at Semantic Machines. In their 2020 paper, the state of a conversation is a dataflow graph, and each user utterance is mapped to a program that extends the graph. The programs include operators for reference ("that meeting") and revision ("make it 3 instead"), which reuse pieces of earlier turns. The authors released SMCalFlow, a dataset of dialogues about events, weather, places and people. On MultiWOZ, the common benchmark of multi-domain dialogues introduced below, an off-the-shelf sequence-to-sequence model using their representation matched the best specialized state tracker.[6] A follow-up model abstracted away concrete values in the history and predicted from types and functions, which made it more compact and generalize better.[7]
Other groups designed their own executable languages. ThingTalk, part of a framework for building transactional agents from a database and APIs, represents user requests directly as executable statements and standardizes types and interfaces so agents can be combined. Its authors reported 79% turn-by-turn accuracy on MultiWOZ.[8] A 2023 paper built a domain-specific language for Microsoft Office, ODSL, whose programs are translated into application API calls. Because the language is small and regular, they could add a layer that automatically corrects many errors in model-written programs.[9] AnyTOD splits the work differently. A language model tracks what has happened in the conversation, and a symbolic program written by a designer decides which action to recommend next, so new tasks need a schema instead of new training.[10]
Benchmarks and data
MultiWOZ, released in 2018, is the common benchmark. It holds about 10,000 written human-to-human conversations across several domains, collected by crowd workers.[11] Google's Schema-Guided Dialogue dataset has over 20,000 conversations across about 20 domains, and describes each service's intents and slots in a schema with plain-language descriptions.[12]
Data is the constant bottleneck, because each new domain or command needs labeled examples. Yang et al. studied a realistic setting where real user utterances are private, and generated canonical utterances from programs, rewrote them into natural language with a model, and filtered the results.[13] Meron and Guimarães showed in 2023 that generated dialogues added to SMCalFlow training data improved the translation of requests into dataflow expressions.[14]
Adding commands to a working system is harder than it looks. Stengel-Eskin et al. found that as a training set grows, accuracy on a newly added symbol often falls unless its own examples grow too. They traced this to "source signal dilution": the words that strongly signal the new command get drowned out.[15] Madotto et al. built a benchmark of 37 domains for adding skills to a deployed system without retraining it from scratch.[16]
When language models arrived
Large language models made few-shot semantic parsing practical. Shin and Van Durme found in 2021 that Codex, OpenAI's code model, beat equivalent GPT-3 models on Overnight, a semantic parsing benchmark, and SMCalFlow, and did as well writing the meaning representation directly as writing canonical English, perhaps because those representations look like code.[17] Synchromesh, in 2022, combined picking few-shot examples whose target programs are similar with constrained decoding that only allows valid programs, and reduced errors on SQL, Vega-Lite (a language for specifying charts) and SMCalFlow.[18] Grammar Prompting, in 2023, added a small grammar to each example, had the model first write the grammar for the new input, and then generate a program that follows it.[19]
Using a general model with no fine-tuning had limits. Hudeček and Dušek found in 2023 that instruction-tuned models did worse than specialized models at tracking dialogue state, though they could bring a conversation to a successful end when given correct slot values.[20] The DIALIGHT toolkit's evaluations in 2024 found that fine-tuned smaller models were more accurate and coherent, while large models gave more varied and likeable replies but struggled to follow task-specific instructions.[21]
History and timeline
- 2014: Berant and Liang parse by paraphrasing into canonical utterances.[5]
- 2016: Bordes et al. test end-to-end models on restaurant booking.[3]
- 2018: Sequicity folds state tracking into one sequence-to-sequence model,[4] and MultiWOZ is released.[11]
- 2020: Semantic Machines publish dataflow dialogue and SMCalFlow.[6] Zhang et al. survey the field.[2]
- 2021: value-agnostic parsing,[7] a continual learning benchmark,[16] and Codex used for few-shot parsing.[17]
- 2022: Synchromesh,[18] ThingTalk,[8] work on private-data augmentation[13] and on source signal dilution,[15] a call to simplify dataflow dialogue,[22] and AnyTOD.[10]
- 2023: Grammar Prompting,[19] ODSL for Office,[9] dataflow dialogue generation,[14] and a test of off-the-shelf models on dialogue benchmarks.[20] In June I join Clockwise's Growth team to work on its AI calendar assistant (Clockwise Prism (Clockwise AI)).[23]
- 2024: DIALIGHT compares fine-tuned and prompted systems.[21] In October I write up what I learned building one.[1]
- Oct 2026: I write that fine-tuning small models for special purposes is costly to keep up.[24]
My position
An intermediate program between the user and the actions is worth its cost when actions change someone's data. In 2024 I gave three reasons. Output is constrained to what the language can express, and business logic lives in the language and its interpreter instead of the prompt. The plan can be audited, or shown to the user for confirmation before anything runs. And a language model left to make decisions is like a weighted die, which works most of the time and sometimes blows up.[1]
That is why I preferred a custom language over plain function calling, which I saw as putting business logic into prompts and leaving decisions to the model. Python was the other option we tried, and Clockwise Prism (Clockwise AI) covers why it lost.[1] ODSL's authors made similar choices for Office.[9]
I also asked why so few people built these systems once language models made the parsing easy. My answer was that they are hard to build. A team needs a new language and its interpreter, training data in a language no model has seen, model serving and an eval set. Many newcomers to the field had never heard of the approach.[1] A 2022 paper on dataflow dialogue asked the same question about the research community and also blamed perceived complexity.[22]
My view of the training half has changed more than my view of the language. In 2024 I wrote that the death of fine-tuning was exaggerated, because a small model fine-tuned for one purpose has much lower latency per token than a large general model.[1] By October 2026, after about three years of fine-tuning small models for special purposes, I described it as a sure way to experience the The bitter lesson. It suits high-volume or low-latency tasks, but it means a never-ending cycle of curating datasets and evals, chasing new model releases and managing inference.[24] Adapting language models covers that shift.
Criticism and counterpoints
Most agents today work the other way. Agent harnesses give a general model a list of tools and let it decide which to call, step by step, which is the function-calling design I argued against for business actions. Harnesses manage the risk with permission rules and human review instead of a custom language. A custom language also has to grow with the product, and every new command needs new data, which Stengel-Eskin et al. show can make each new one harder to learn.[15]
The benchmarks leave gaps. MultiWOZ and SGD are written conversations about bookings and services.[11][12] They say little about long multi-step requests like rescheduling a week, which is what calendar assistants face.
Several of the strongest results here came from groups with large teams and annotation budgets, such as Semantic Machines' hand-annotated SMCalFlow.[6][22] A small team may not be able to copy them.
Open questions
- Does constrained decoding against a domain grammar make a custom language practical without fine-tuning, now that grammars can be enforced at decode time (Prompting, grammars and structured output)?
- Should agent tools expose a small executable language, with a plan the user approves, rather than many separate function calls?
- Can large models generate enough clean training data that adding a command stops being expensive?
See also
Change log
- 2026-12-03: First written, from my 2024 post on task-oriented dialogue, my 2026 post on fine-tuning small models, and papers on dialogue systems, semantic parsing and their benchmarks.
Reading
References
- ^ Task Oriented Dialog Systems (post, Oct 2024)
- ^ Zhang et al., Recent Advances and Challenges in Task-oriented Dialog System
- ^ Bordes et al., Learning End-to-End Goal-Oriented Dialog
- ^ Lei et al., Sequicity: Simplifying Task-oriented Dialogue Systems with Single Sequence-to-Sequence Architectures
- ^ Berant and Liang, Semantic Parsing via Paraphrasing
- ^ Andreas et al. (Semantic Machines), Task-Oriented Dialogue as Dataflow Synthesis
- ^ Platanios et al., Value-Agnostic Conversational Semantic Parsing
- ^ Lam et al., ThingTalk: An Extensible, Executable Representation Language for Task-Oriented Dialogues
- ^ Gandhi et al., Natural Language Commanding via Program Synthesis
- ^ Zhao et al., AnyTOD: A Programmable Task-Oriented Dialog System
- ^ MultiWOZ dataset (GitHub)
- ^ The Schema-Guided Dialogue Dataset (GitHub)
- ^ Yang et al., Addressing Resource and Privacy Constraints in Semantic Parsing Through Data Augmentation
- ^ Meron and Guimarães, Dataflow Dialogue Generation
- ^ Stengel-Eskin et al., When More Data Hurts: A Troubling Quirk in Developing Broad-Coverage Natural Language Understanding Systems
- ^ Madotto et al., Continual Learning in Task-Oriented Dialogue Systems
- ^ Shin and Van Durme, Few-Shot Semantic Parsing with Language Models Trained On Code
- ^ Poesia et al., Synchromesh: Reliable code generation from pre-trained language models
- ^ Wang et al., Grammar Prompting for Domain-Specific Language Generation with Large Language Models
- ^ Hudeček and Dušek, Are Large Language Models All You Need for Task-Oriented Dialogue?
- ^ Hu et al., DIALIGHT: Lightweight Multilingual Development and Evaluation of Task-Oriented Dialogue Systems with Large Language Models
- ^ Meron, Simplifying Dataflow Dialogue Design
- ^ Moving onto a new chapter (post, Jun 2023)
- ^ Fine-tuning small models is a fast way to learn the bitter lesson (@trashpandaemoji, Oct 2026)