Representation Learning Using Multi-Task Deep Neural Networks for Semantic Classification and Information Retrieval

Xiaodong Liu, Jianfeng Gao, Xiaodong He, Li Deng, Kevin Duh, Ye-Yi Wang

Abstract

This research introduces a Multi-Task Deep Neural Network (MT-DNN) designed to learn robust text representations by simultaneously optimizing for query classification and web search ranking. By utilizing a shared-bottom architecture, the model develops "universal" embeddings that act as a powerful regularizer, mitigating data scarcity issues and improving generalization. Experimental results on large-scale commercial search engine data demonstrate that MT-DNN outperforms single-task models in both classification accuracy and information retrieval relevance, while also exhibiting superior performance in domain adaptation tasks with limited labeled data.

Introduction

In 2015, the field of Natural Language Processing (NLP) faced significant challenges in developing models that could generalize across diverse tasks. Supervised models often suffered from overfitting due to data scarcity in specific domains, while unsupervised methods like early Word2Vec did not directly optimize for downstream tasks like classification or ranking. Search queries, characterized by their brevity and sparsity, presented a particular difficulty. This research addresses these hurdles by proposing a multi-task learning framework that maps arbitrary text into a low-dimensional semantic space where related concepts are naturally clustered.

Methods

The MT-DNN architecture employs a "shared-bottom, task-specific top" design to leverage cross-task information.

  1. Word Hashing ($l_1$): To manage a massive 500,000-word vocabulary, the model decomposes words into letter-trigrams. This reduces input dimensionality to 50,000 and provides robustness against typos and out-of-vocabulary terms.
  2. Shared Semantic Layer ($l_2$): This core layer maps hashed inputs into a 300-dimensional vector. Updated by gradients from all tasks, it learns a representation capturing the fundamental semantic essence of the text.
  3. Task-Specific Layers ($l_3$): The model branches into task-specific projections (e.g., 128-dimensional) for objectives like "Restaurant Classification" or "Web Ranking."
The MT-DNN architecture featuring shared semantic layers and task-specific branches.

The model is trained using Stochastic Gradient Descent (SGD), alternating between tasks in each iteration to ensure the shared layers benefit from diverse supervisory signals.

Results

The MT-DNN was evaluated using large-scale datasets from a commercial search engine, including query classification across four domains (Restaurant, Hotel, Flight, Nightlife) and a web search dataset of 4.08 million queries.

  • Classification and Ranking: MT-DNN consistently outperformed single-task deep neural networks and strong SVM baselines. In web search ranking, it achieved a statistically significant NDCG@1 of 0.334, surpassing the state-of-the-art Deep Structured Semantic Model (DSSM).
  • Domain Adaptation: A key strength of the MT-DNN is its ability to adapt to new domains with minimal data. The shared representations provide a significant performance boost even when only 0.1% of training data is available for a specific task.
Performance comparison across four domains showing the effectiveness of semantic representations in low-data scenarios.

Discussion and Conclusion

The success of MT-DNN highlights the power of multi-task learning as a regularization technique. By combining disparate tasks like classification and ranking, the model prevents overfitting to task-specific keywords and gains a broader understanding of user intent. Furthermore, the model's compact size (<150KB) makes it highly efficient for production environments.

Future work could address the current "bag-of-words" limitation by incorporating Convolutional Neural Networks (CNNs) or Recurrent Neural Networks (RNNs) to capture word order and sentence structure. Additionally, expanding the framework to include other knowledge sources, such as sentiment analysis, could further enhance the quality of the learned semantic representations.

Summary updated

BibTeX
@inproceedings{liu2015representation,
  author = {Xiaodong Liu and Jianfeng Gao and Xiaodong He and Li Deng and Kevin Duh and Ye-Yi Wang},
  title = {{Representation Learning Using Multi-Task Deep Neural Networks for Semantic Classification and Information Retrieval}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/n15-1092},
}
Figure