Introduction
In the early 2000s, a pivotal paper established a formal bridge between Human-Computer Interaction (HCI) and Programming Language (PL) theory. It proposed that the complex, fluid nature of natural conversation could be modeled using a classic computer science technique: partial evaluation. By framing "mixed-initiative" interaction—where both the human and the computer can steer the dialogue—as a form of mixed computation, the authors provided a unified model for building flexible voice interfaces.
The Problem: The Rigidity of System-Initiated Dialogue
Early voice-recognition systems were primarily "system-initiated." The computer followed a rigid script, asking specific questions (e.g., "What size pizza?") and expecting specific answers. If a user attempted to provide information out of turn—for instance, saying "I'd like a large pepperoni" when the system only asked for the size—the system would typically fail or ignore the extra data.
Creating systems that could handle such "unsolicited" information was historically difficult. Developers had to manually code every possible conversational path, leading to brittle "spaghetti code" or overly complex state machines. The challenge was to find a programming model that allowed for flexibility without exponential increases in code complexity.
The Solution: Partial Evaluation as Interaction Staging
The authors proposed a novel architectural shift: Mixed-Initiative Interaction = Mixed Computation. In this model, a dialogue script is treated as a task-oriented program where "slots" (like pizza size or toppings) are variables.
Partial evaluation is a technique where a program is specialized based on a subset of its inputs. The authors applied this to conversation: when a user provides unsolicited information, the system "partially evaluates" the dialogue script. It fills the relevant variables and generates a simplified, specialized version of the script that skips the now-unnecessary questions. This allows the system to decide what to ask next based on what it already knows, a process the authors call "interaction staging."
Architectural Implementation
To realize this model, the paper proposes a dual-engine design within the Dialog Manager. This architecture separates the standard sequential flow from the logic required to handle out-of-turn inputs.
As shown in the architecture above, the system uses an Interpreter to handle the standard, responsive dialogue flow. When the user provides unsolicited input, the Partial Evaluator simplifies the remaining script on the fly. This treats responsive and unsolicited inputs uniformly as values for evaluation, rather than separate code paths.
Insights from VoiceXML
A key contribution of the paper is the theoretical validation of VoiceXML, the industry standard for voice applications at the time. The authors demonstrated that VoiceXML’s "Form Interpretation Algorithm" (FIA) was, in fact, a disguised partial evaluator.
By comparing the voice browser platform to the traditional web model, the authors showed that VoiceXML's power came from its implicit implementation of PL theory. The grammar files were not just for word recognition; they served as instructions for specializing the dialogue program. This realization allowed developers to write simple, linear scripts while the underlying platform handled the 13 to 24 different ways a simple three-item order might unfold.
Conclusion and Future Directions
By mapping interaction to computation, the authors provided a formal framework that reduced the complexity of building mixed-initiative systems. While the initial model focused on slot-filling, it laid the groundwork for more advanced dialogue management. Future work suggested extending this model with "program slicing" to handle more complex negotiations and meta-dialogues, where users might ask questions back to the system rather than just providing data.
Summary updated