Reinforcement Learning Based Conversational Search Assistant

Milan Aggarwal, Aarushi Arora, Shagun Sodhani, Balaji KrishnamurthyarXiv 2017

Introduction

Traditional search engines are optimized for objective tasks—situations where a user has a specific, well-defined goal like booking a flight or finding a specific fact. These "slot-filling" tasks are straightforward for AI agents. However, many real-world search scenarios are "subjective." For example, a designer looking for the "perfect" image for a poster often starts with a vague concept that evolves through interaction with search results. This paper introduces a reinforcement learning (RL) based conversational assistant designed specifically for these subjective, iterative search journeys.

Subjective search is a cognitive process where the user's intent is refined over time. A user might begin searching for "nature," then see a mountain and refine to "snowy peaks," and finally decide on a "minimalist winter landscape." Keyword-based interfaces often fail to capture this nuance. Furthermore, building a conversational agent for this domain is difficult because large-scale, labeled conversational search datasets are virtually non-existent.

Methodology: A3C and Contextual Memory

To address these challenges, the authors developed an agent using the Asynchronous Advantage Actor-Critic (A3C) algorithm. A3C employs multiple agents training in parallel, which stabilizes the learning process compared to standard Q-learning.

A critical component of the architecture is the use of Long Short-Term Memory (LSTM) networks. In a multi-turn conversation, the context of previous interactions is vital. The LSTM allows the agent to maintain a "memory" of the dialogue history, ensuring that its suggestions remain relevant to the user's evolving intent.

The agent operates within a defined action space, choosing from various "assist actions" to guide the user. These actions range from showing results to asking for feedback or suggesting specific refinements.

A subset of the agent's predefined action space used to guide the user's search journey.

Bootstrapping with a Virtual User

To overcome the lack of conversational data, the researchers created a stochastic virtual user. By analyzing 20 days of search logs from a major stock photography marketplace, they built a finite state machine that models user behavior. This simulator predicts the likelihood of actions like "refine query" or "click result" based on the session history. This allowed the RL agent to undergo millions of training episodes in a simulated environment before interacting with real humans.

The reward function for the agent was carefully designed to balance different goals:

  • Task Success: High rewards for downloads or purchases.
  • Extrinsic Rewards: Positive feedback from the user.
  • Auxiliary Tasks: Smaller rewards for intermediate steps like clicks or adding items to a cart.

Results and Human Evaluation

The A3C-based agent demonstrated significant improvements over baseline models. In simulations, it achieved average rewards of approximately 2.0, quadrupling the performance of standard Q-learning (~0.5) upon convergence.

To validate these results in the real world, the authors conducted a study with 12 professional designers. The designers used the assistant for specific creative tasks. While the quantitative ratings for "Information Flow" (2.58/5) and "Appropriateness" (2.67/5) were moderate, the qualitative feedback was promising. One-third of the designers found the conversational interface "much easier to use" than traditional search, and 16.7% reported that it reduced the time required to find the right asset. The system's "Engagement" rating of 2.67/5 suggests it successfully created a more interactive experience than a static search bar.

Conclusion and Future Work

This research proves that search can be effectively modeled as a conversation. By bootstrapping from existing search logs to create a virtual user, the authors bypassed the need for specialized conversational datasets. The inclusion of LSTM-based memory proved essential for handling long-form, subjective search sessions.

Future iterations of this work aim to move beyond predefined action templates toward full Natural Language Generation (NLG), allowing for more fluid and natural interactions. Additionally, automating the engineering of state and action spaces using system logs could further enhance the agent's adaptability across different search domains.

Summary updated

Abstract

We develop a reinforcement learning based search assistant which can assist users through a set of actions and sequence of interactions to enable them realize their intent. Our approach caters to subjective search where the user is seeking digital assets such as images which is fundamentally different from the tasks which have objective and limited search modalities. Labeled conversational data is generally not available in such search tasks and training the agent through human interactions can be time consuming. We propose a stochastic virtual user which impersonates a real user and can be used to sample user behavior efficiently to train the agent which accelerates the bootstrapping of the agent. We develop A3C algorithm based context preserving architecture which enables the agent to provide contextual assistance to the user. We compare the A3C agent with Q-learning and evaluate its performance on average rewards and state values it obtains with the virtual user in validation episodes. Our experiments show that the agent learns to achieve higher rewards and better states.
BibTeX
@misc{aggarwal2017reinforcement,
  author = {Milan Aggarwal and Aarushi Arora and Shagun Sodhani and Balaji Krishnamurthy},
  title = {{Reinforcement Learning Based Conversational Search Assistant}},
  year = {2017},
  eprint = {1709.05638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.05638},
}
Figure