Skip to main content
QUICK REVIEW

[Paper Review] Predicting user intent from search queries using both CNNs and RNNs

Mihai Pîrvu, Alexandra Anghel|arXiv (Cornell University)|Dec 18, 2018
Topic ModelingComputer Science14 references3 citations
TL;DR

This paper proposes a weakly supervised method for predicting user search intent—classifying queries as informational, transactional, or navigational—using both CNNs and RNNs on word embeddings. It achieves state-of-the-art performance, with RNNs using one-hot encoding reaching 79.01% accuracy on single-intent classification, outperforming pre-trained embeddings like GloVe and FastText.

ABSTRACT

Predicting user behaviour on a website is a difficult task, which requires the integration of multiple sources of information, such as geo-location, user profile or web surfing history. In this paper we tackle the problem of predicting the user intent, based on the queries that were used to access a certain webpage. We make no additional assumptions, such as domain detection, device used or location, and only use the word information embedded in the given query. In order to build competitive classifiers, we label a small fraction of the EDI query intent prediction dataset \cite{edi-challenge-dataset}, which is used as ground truth. Then, using various rule-based approaches, we automatically label the rest of the dataset, train the classifiers and evaluate the quality of the automatic labeling on the ground truth dataset. We used both recurrent and convolutional networks as the models, while representing the words in the query with multiple embedding methods.

Motivation & Objective

  • To develop a scalable method for predicting user intent from search queries without relying on external signals like location or device.
  • To address the challenge of labeling large-scale query datasets by using a small ground-truth set and heuristic rules for automatic labeling.
  • To evaluate the performance of both CNN and RNN architectures using multiple word embedding strategies on intent classification.
  • To compare weakly supervised learning models against rule-based labeling systems in terms of accuracy and coverage.
  • To investigate whether non-pretrained embeddings (e.g., one-hot) can outperform pre-trained embeddings in this intent classification task.

Proposed method

  • A two-step pipeline is used: first, a small ground-truth dataset is manually labeled; then, heuristic rules are applied to automatically label the remaining queries.
  • Recurrent Neural Networks (RNNs) and Convolutional Neural Networks (CNNs) are trained as standard multi-class classifiers on the automatically labeled data.
  • Multiple word embedding methods are evaluated: GloVe (100d, 300d), FastText, and one-hot encoding, with embeddings fed into the models.
  • The labeling rules include keyword matching, semantic similarity using GloVe embeddings, and cosine similarity thresholds to assign multi-intent labels.
  • Model performance is evaluated on two test sets: GT-2 (1,197 entries) and GT-3 (696 entries), measuring both accuracy and labeling coverage.
  • Hyperparameter tuning and model architecture variations (e.g., RNN-1 vs RNN-2, V1–V8 labeling rules) are explored to assess robustness and performance.

Experimental results

Research questions

  • RQ1Can a weakly supervised approach using heuristic rules and deep learning models achieve high-quality intent labeling on large-scale query data?
  • RQ2How do different word embedding strategies—pre-trained (GloVe, FastText) versus non-pretrained (one-hot)—affect intent classification performance?
  • RQ3Do RNNs and CNNs perform comparably on the intent classification task, or does one architecture consistently outperform the other?
  • RQ4Can one-hot encoding, despite its simplicity, outperform pre-trained embeddings in this specific intent prediction task?
  • RQ5To what extent does the automatic labeling method generalize compared to rule-based labeling, in terms of both accuracy and coverage?

Key findings

  • The RNN model using one-hot encoding achieved 79.01% accuracy on the GT-3 test set (single-intent classification), outperforming all pre-trained embeddings.
  • One-hot encoding yielded significantly better results than GloVe and FastText, with a 7.5% improvement over GloVe-300 on the GT-3 set.
  • The best-performing model (RNN-2 V7 with one-hot) achieved 74.07% accuracy on GT-2 and 79.01% on GT-3, demonstrating strong generalization.
  • The automatic labeling method using machine learning outperformed rule-based systems, achieving 67.83% accuracy on GT-2 and 70.78% on GT-3, compared to 22.64% and 7.50% for the weakest rule-based method.
  • The percentage of queries successfully labeled by the best model (V7) reached 80.78% on GT-2 and 86.06% on GT-3, significantly higher than rule-based approaches.
  • While pre-trained embeddings (GloVe, FastText) showed consistent but moderate performance, one-hot encoding with RNNs produced the highest results, suggesting that model capacity and training dynamics may outweigh embedding quality in this setup.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.