NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Extracting Hierarchies of Search Tasks & Subtasks via a Bayesian Nonparametric Approach

Rishabh Mehrotra, Emine YilmazSIGIR 2017 · DOI

Abstract

A significant amount of search queries originate from some real world information need or tasks. In order to improve the search experience of the end users, it is important to have accurate representations of tasks. As a result, significant amount of research has been devoted to extracting proper representations of tasks in order to enable search systems to help users complete their tasks, as well as providing the end user with better query suggestions, for better recommendations, for satisfaction prediction and for improved personalization in terms of tasks. Most existing task extraction methodologies focus on representing tasks as flat structures. However, tasks often tend to have multiple subtasks associated with them and a more naturalistic representation of tasks would be in terms of a hierarchy, where each task can be composed of multiple (sub)tasks. To this end, we propose an efficient Bayesian nonparametric model for extracting hierarchies of such tasks & subtasks. We evaluate our method based on real world query log data both through quantitative and crowdsourced experiments and highlight the importance of considering task/subtask hierarchies.

Introduction

Modern search engines typically treat user search history as a sequence of isolated queries or, at best, flat clusters of related terms. However, human information-seeking behavior is inherently hierarchical. A complex goal like "buying a house" involves several distinct subtasks, such as researching neighborhoods, comparing mortgage rates, and finding home inspectors.

Existing task extraction methods often fail to capture these nuances, producing flat structures that ignore the relationship between a high-level goal and its constituent parts. Furthermore, standard hierarchical clustering algorithms often impose a binary tree structure, which is restrictive. A complex task might naturally branch into many subtasks, not just two. This research addresses these limitations by proposing a method to extract multi-branching hierarchical structures directly from raw search logs.

Methodology

The proposed approach utilizes an efficient Bayesian nonparametric model centered on Bayesian Rose Trees (BRT). Unlike traditional hierarchical clustering that produces binary trees, BRTs allow for an arbitrary number of children at each node, better reflecting the "one-to-many" nature of human tasks.

Tree Operations and Affinity

The model builds the hierarchy using three primary operations: Join, Absorb, and Collapse. These operations allow the tree to grow in a way that accurately mirrors task-subtask relationships.

Illustration of tree operations (Join, Collapse, Absorb) used in Bayesian Rose Trees to build multi-branching task hierarchies.

To determine which queries belong together, the authors developed a Conjugate Model of Query Affinities. This model handles rich, weighted relationships between queries based on four categories:

  • Query-term: Textual similarity and edit distance.
  • URL-based: Shared destination websites.
  • Session/User: Temporal and user-specific context.
  • Embeddings: Semantic similarity derived from word vectors (e.g., Word2Vec).

Task Coherence Pruning

To avoid over-splitting tasks into single queries, the model employs Pointwise Mutual Information (PMI) to measure "Task Coherence." When a group of queries reaches a high level of coherence, it is identified as an "atomic task," and the model stops further splitting.

Experimental Setup

The model was evaluated using two primary datasets:

  1. AOL Search Logs: A subset of 1,000 sessions manually annotated by humans was used to benchmark task identification.
  2. TREC Session Track 2014: This dataset facilitated "Term Prediction" experiments to assess the model's ability to anticipate future user queries based on extracted hierarchies.

Results

The proposed hierarchical model demonstrated significant improvements over existing flat task extraction methodologies.

Quantitative Performance

On the AOL benchmark, the model achieved an F1 score of approximately 0.84, notably outperforming state-of-the-art flat models such as Bestlink-SVM and LDA-Hawkes.

F-Score performance comparison of the proposed model against various state-of-the-art flat task extraction baselines.

Human and Predictive Validation

Crowdsourced evaluations via Amazon Mechanical Turk confirmed the quality of the hierarchies, with judges finding the extracted subtasks to be 81% valid and 67% useful for the parent task. Furthermore, the hierarchical model proved superior in predicting future query terms within a session, indicating that understanding subtask structures significantly enhances a search engine's ability to anticipate user needs.

Conclusion

This work highlights the importance of hierarchical representations in search task extraction. By moving beyond flat structures and binary trees, the Bayesian Rose Tree approach more accurately captures the complexity of human information-seeking. While the model shows great promise, future work could address hyperparameter sensitivity and the lack of hierarchical "gold standard" datasets for evaluation. Ultimately, this approach paves the way for more sophisticated, task-aware search personalization and recommendation systems.

Summary updated

BibTeX
@inproceedings{mehrotra2017extracting,
  author = {Rishabh Mehrotra and Emine Yilmaz},
  title = {{Extracting Hierarchies of Search Tasks \& Subtasks via a Bayesian Nonparametric Approach}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2017},
  doi = {10.1145/3077136.3080823},
}
Figure