Distantly Supervised Transformers For E-Commerce Product QA

Happy Mittal, Aniket Chakrabarti, Belhassen Bayar, Animesh Anant Sharma, Nikhil RasiwasiaNAACL 2021

Introduction

In the modern e-commerce landscape, users frequently seek specific product information through the Community Question Answering (CQA) section. However, a significant challenge arises from the linguistic mismatch between user intent and available data. When a user enters a query like "Is it waterproof?" or more informal, typo-ridden searches such as "Bettry perfon," traditional retrieval systems often struggle to find the most relevant community-generated answers.

An example of the e-commerce interface where user queries are matched against community Q&A and reviews.

This problem is characterized by three main hurdles: a massive domain gap between informal user queries and formal CQA pairs, a data vacuum where human-labeled mappings between these two formats are scarce, and scalability constraints that prevent the use of computationally expensive cross-encoders in real-time production environments.

The SemQA Framework

To address these challenges, researchers developed SemQA, a system utilizing a Siamese Transformer architecture. Unlike standard models that process queries and answers together, SemQA encodes them independently into a shared vector space. This architectural choice allows for the offline pre-calculation of millions of CQA embeddings, enabling high-speed vector searches at runtime to meet the millisecond-latency requirements of global traffic.

Distant Supervision and Knowledge Distillation

The core innovation of SemQA lies in its use of distant supervision. To overcome the lack of labeled data, the team employed a "Teacher-Student" distillation approach. An existing syntactic matching system (the Teacher) provided top results for real user queries, which served as "silver" labels to train the Transformer-based Student model. This allows the model to learn the distribution of actual user behavior—including shorthand and typos—while inheriting the semantic depth of modern language models.

Multi-Task Training

The model is optimized through a multi-task objective, simultaneously learning to match community questions to their respective answers and noisy user queries to relevant CQA pairs. This dual focus ensures the model remains robust across both clean and noisy data distributions.

Experimental Setup

The framework was evaluated using massive internal datasets from Amazon across four distinct locales and three languages: Canada (English), Germany (German), France (French), and India (English). The training scale was substantial, involving up to 7.1 million CQA triplets and 10.6 million user query triplets. Performance was validated against human-annotated test sets to ensure that improvements in "silver" label accuracy translated to real-world utility.

Results and Discussion

SemQA demonstrated significant improvements over traditional baselines in both offline evaluations and live online A/B testing.

Offline Performance

The distantly supervised model (SemQA-CQA-DS) consistently outperformed baseline syntactic systems. As shown in the performance metrics, the model achieved substantial gains in Precision-Recall Area Under Curve (PR-AUC), with improvements reaching as high as +12.15% in the German (DE) locale.

Relative PR-AUC improvement of various model iterations (M0-M3) across different locales, highlighting the efficacy of distant supervision.

Online Impact

In a live A/B test deployed to 50% of traffic, the system increased answer coverage by up to 6.92%. Furthermore, the "new question asking rate"—a metric used to gauge user dissatisfaction—decreased across all locales, indicating that users were successfully finding answers to their queries without needing to post new questions.

Conclusion and Future Directions

SemQA proves that distant supervision can effectively bridge the gap between noisy user queries and structured community data at scale. While the current system focuses on CQA retrieval, future work aims to integrate broader information sources such as product reviews and technical specifications. Additionally, the researchers are exploring generative QA, where retrieved pairs serve as context for large language models to synthesize concise, direct answers for users.

Summary updated

BibTeX
@inproceedings{mittal2021distantly,
  author = {Happy Mittal and Aniket Chakrabarti and Belhassen Bayar and Animesh Anant Sharma and Nikhil Rasiwasia},
  title = {{Distantly Supervised Transformers For E-Commerce Product QA}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.315},
}
Figure