Using Large Pretrained Language Models for Answering User Queries from Product Specifications

Kalyani Roy, Smit Shah, Nithish Pai, Jaidam Ramtej, Prajit Prashant Nadkarn, Jyotirmoy Banerjee, Pawan Goyal, Surender Kumar

TL;DR

This paper tackles the challenge of answering user questions about products on e-commerce platforms by leveraging product specifications. They introduce a semi-supervised method to create training data and demonstrate that large pretrained language models like BERT and XLNet significantly outperform previous Siamese models in this task, even when trained on one product category and tested on others.

What Problem Does This Paper Address?

When shopping online, customers often have questions about products that go beyond what's immediately visible. While product reviews can offer insights, they are subjective, can be hard to navigate, and don't always directly address specific product attributes. This paper focuses on a more direct and objective source of information: product specifications. The core problem is to automatically identify which product specification is most relevant to a user's question, enabling e-commerce platforms to provide instant, accurate answers. This is crucial for improving customer experience and reducing the burden on customer support.

Methods

The authors propose a two-pronged approach:

  1. Semi-Supervised Dataset Creation: Manually labeling large datasets for this task is time-consuming and expensive. To overcome this, they employ a semi-supervised method using the Dual Embedding Space model (DESM). This method leverages word embeddings to calculate a "DUAL score" between a question and a specification. A threshold is used to automatically label pairs as positive (relevant) or negative (irrelevant), creating a large training dataset.
  2. Pretrained Language Model Fine-tuning: They adapt powerful pretrained language models, specifically BERT and XLNet, for this classification task. The models are fine-tuned to predict whether a given specification is relevant to a user's question. They compare their approach against a baseline Siamese deep learning model previously used for this problem.

Datasets

  • Training Data: A large dataset was created using the semi-supervised method described above, primarily from the "Mobile" product category.
  • Validation Data: A manually labeled balanced validation dataset of 380 question-specification pairs was used to determine the optimal threshold for the semi-supervised labeling.
  • Test Data: The models were evaluated on test datasets from six product categories: Mobile, AC, Backpack, Computer, Shoes, and Watches. These test datasets were manually annotated by domain experts, and importantly, there was no overlap with the training set, allowing for cross-domain evaluation.

Key Insights and Ideas

  • Specifications are a valuable, underutilized resource: While reviews are popular, specifications offer a more objective and direct way to answer many user queries.
  • Semi-supervised learning is key for scalability: Manually annotating massive datasets is a bottleneck. The proposed DESM-based method effectively generates a large, useful training set with minimal human effort.
  • Large pretrained models excel at understanding nuance: BERT and XLNet, with their deep bidirectional understanding of language, are far better at matching questions to relevant specifications than simpler Siamese models, which tend to rely more on direct word overlap.
  • Cross-domain generalization is possible: The models trained on one category (Mobile) performed well on other, unseen categories, suggesting the approach is robust.

Key Results

  • Significant performance gains: BERT and XLNet, when fine-tuned on the semi-supervised dataset, significantly outperformed the baseline Siamese model. For instance, they achieved higher HIT@1, HIT@2, and HIT@3 scores across most datasets.
  • XLNet often leads: XLNet showed a competitive edge over BERT in several categories (Computer, Shoes, Watches), indicating its strength in capturing complex relationships.
  • Effective cross-domain performance: The models demonstrated promising results when tested on different product verticals than they were trained on, highlighting the generalizability of the approach.
  • Qualitative improvements: The Siamese model's results often resembled simple keyword matching and sometimes returned incorrect specifications. In contrast, BERT and XLNet were more adept at retrieving the truly correct specifications.

Limitations and Future Work

  • Single Specification Assumption: The current model assumes only one correct specification for a given question. In reality, an answer might require combining multiple specifications.
  • Unit Conversion and Definition: The models struggle when users require answers in different units (e.g., inches vs. cm) or ask for definitions of specifications rather than just retrieval.
  • Inaccurate Labels: The semi-supervised labeling process, while efficient, can introduce inaccuracies that affect classification performance.
  • Future Directions: The authors plan to extend their method to account for multiple specifications as answers and to develop a classifier that can identify questions that cannot be answered from specifications.

Summary updated

BibTeX
@inproceedings{roy2020using,
  author = {Kalyani Roy and Smit Shah and Nithish Pai and Jaidam Ramtej and Prajit Prashant Nadkarn and Jyotirmoy Banerjee and Pawan Goyal and Surender Kumar},
  title = {{Using Large Pretrained Language Models for Answering User Queries from Product Specifications}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=7zIaYTEsmQ},
}
Figure