A Bandit Approach to Posterior Dialog Orchestration Under a Budget

Sohini Upadhyay, Mayank Agarwal, Djallel Bouneffouf, Yasaman KhazaeniarXiv 2019

Introduction

In the landscape of modern conversational AI, systems like Amazon Alexa, Google Assistant, and IBM Watson Assistant have moved toward modular architectures. These systems consist of multiple "skills"—independent agents specialized in domains such as weather, finance, or home automation. A central component, the orchestrator, is responsible for routing user queries to the most appropriate skill.

Effective orchestration is critical for user satisfaction. However, as the number of skills grows, the complexity of routing increases. This paper from IBM Research AI addresses the challenge of optimizing this routing process under real-world constraints, specifically focusing on the trade-off between decision accuracy and computational cost.

The Orchestration Dilemma: A-Priori vs. Posterior

Orchestration strategies generally fall into two categories:

  1. A-Priori Orchestration: The system selects a skill based solely on the initial user query. While fast and inexpensive, it lacks the context of how well a skill might actually perform on that specific query.
  2. Posterior Orchestration: The system executes multiple skills, examines their outputs (e.g., confidence scores or proposed answers), and then selects the best one. This is significantly more accurate but comes with high costs in terms of latency, API usage fees, and server resources.

The authors propose a middle ground: a "budgeted" posterior approach. The goal is to select a small, informative subset of skills to "peek" at before making a final routing decision, thereby capturing the benefits of posterior orchestration without the full computational overhead.

Proposed Framework: CABO and CATSO

To formalize this problem, the authors introduce the Context Attentive Bandit with Observations (CABO) framework. In this setting, an agent observes a "free" context (the user query) and must choose a limited number of "hidden" features (skill outputs) to reveal before selecting a final action (the winning skill).

The primary algorithmic solution is CATSO (Context Attentive Thompson Sampling with Observations), which operates in two distinct stages:

  • Stage 1: Feature Selection. Using the initial query context, the agent employs a Contextual Combinatorial Bandit approach to identify which skills are likely to provide the most useful information for the current query.
  • Stage 2: Action Selection. After revealing the selected skill outputs, the agent merges this new information with the original query context. It then uses Contextual Thompson Sampling to make the final routing decision.
Performance comparison (Total Average Reward) across different datasets and observation budgets (U).

Handling Non-Stationarity: NCATSO

In real-world applications, the performance of skills can change over time due to model updates or shifts in user behavior. To address this, the authors developed NCATSO, a non-stationary variant. NCATSO incorporates a decay parameter that weights recent observations more heavily than older ones, allowing the orchestrator to adapt to evolving skill capabilities dynamically.

Experimental Evaluation

The researchers evaluated CATSO and NCATSO against several baselines, including TSRC (Thompson Sampling with Restricted Context) and a standard a-priori contextual bandit (CTS-query).

Datasets

The evaluation utilized both simulated and real-world data:

  • Simulated Benchmarks: Three classic datasets—Covertype, CNAE-9, and Warfarin—were transformed into bandit problems to test robustness across different data distributions.
  • IBM Customer Assistant: A real-world dataset comprising over 28,000 queries across 9 domains. Each query was represented by GloVe embeddings, and skills provided confidence scores and intent labels.

Results and Discussion

The experimental results highlight the efficiency of the CABO framework. As shown in the performance curves, the proposed methods significantly outperform a-priori methods even with a minimal observation budget.

Total average reward vs. number of skills revealed (budget) for stationary (left) and non-stationary (right) environments.

Key findings include:

  • Rapid Convergence: On the IBM dataset, CATSO achieved near-optimal performance by probing only 2 out of 9 available skills.
  • Superiority over TSRC: CATSO consistently outperformed TSRC, demonstrating that using the initial query context to guide feature selection is more effective than random or fixed probing strategies.
  • Adaptability: NCATSO successfully maintained high performance in non-stationary environments where the "ground truth" skill for specific queries shifted over time.

Conclusion

This research demonstrates that intelligent, budgeted posterior orchestration is a viable and superior alternative to traditional routing methods in multi-skill AI systems. By framing the problem as a Context Attentive Bandit with Observations, the authors provide a principled way to balance accuracy and cost. Future work will look into handling non-uniform costs for different skills and exploring multi-winner scenarios where skills can collaborate.

Summary updated

BibTeX
@misc{upadhyay2019bandit,
  author = {Sohini Upadhyay and Mayank Agarwal and Djallel Bouneffouf and Yasaman Khazaeni},
  title = {{A Bandit Approach to Posterior Dialog Orchestration Under a Budget}},
  year = {2019},
  eprint = {1906.09384},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.09384},
}
Figure