A Semi-supervised Multi-channel Graph Convolutional Network for Query Classification in E-commerce

Chunyuan Yuan, Ming Pang, Zheng Fang, Xue Jiang, Changping Peng, Zhangang Lin

TL;DR

Researchers at JD.com have developed SMGCN, a semi-supervised graph-based model designed to fix the "long-tail" problem in e-commerce search. By combining BERT-based text encoding with a multi-channel Graph Convolutional Network, the system "borrows strength" from popular product categories to accurately identify user intent for rare ones, significantly improving search relevance and product diversity.

What Problem Does This Paper Address?

In e-commerce, understanding "query intent"—knowing that a user searching for "earphones" might want "Bluetooth headsets"—is vital. Most systems rely on posterior labels: they look at what users clicked on in the past to train the model.

However, this creates two major hurdles:

  1. The Matthew Effect (Category Imbalance): Popular categories (like "Smartphones") get millions of clicks, while niche categories (like "Bone Conduction Headphones") get very few. Models trained on this data become biased toward popular items, making it nearly impossible for "long-tail" products to ever surface in search results.
  2. Label Instability: User clicks are noisy. One person might click "Headset" for the query "earphones," while another clicks "Gaming headphones." This randomness makes the model sensitive and inconsistent.

The authors aim to break this vicious cycle by moving beyond simple click data and leveraging the inherent relationships between product categories.

Methods

The proposed model, SMGCN (Semi-supervised Multi-channel Graph Convolutional Network), uses a three-pronged approach:

  • Dual-Channel Graphs: The model builds two distinct graphs to represent how categories relate to one another:
  • Co-occurrence Graph: Links categories that are frequently clicked together in the same session.
  • Semantic Similarity Graph: Links categories based on the textual similarity of their names and descriptions (e.g., "Wired Headset" and "Gaming Headphones").
  • Multi-channel GCN: A Graph Convolutional Network processes these graphs. This allows the model to propagate information from "head" (popular) categories to "tail" (rare) categories. If the model knows a lot about "Headsets," it can transfer that knowledge to a semantically related but data-poor category like "Bone Conduction Headphones."
  • Semi-supervised Label Generation: To combat noisy click data, the model calculates a similarity score between the query and all possible categories. It uses these scores as "soft labels" to augment the actual click data. To prevent the model from simply "confirming its own biases," they implement a stop-gradient mechanism, ensuring the semi-supervised signals guide the training without causing a feedback loop that leads to model collapse.

Datasets

The model was evaluated on two massive, real-world datasets from JD.com:

  • Category Data: Contains over 113 million training queries mapped to 6,634 leaf categories.
  • Intent Data: A more curated set with 67 million training queries mapped to 1,605 expert-defined intent domains.
  • Evaluation: Unlike many academic papers, the test sets were manually annotated by experts to ensure a "ground truth" that isn't biased by historical click logs.

Key Insights and Ideas

  • Structural Knowledge vs. Raw Data: The "aha moment" here is that raw click data is insufficient for fair search. By explicitly modeling the relationships between labels (categories) via graphs, the model can generalize to items it has rarely seen.
  • Macro-F1 is the Real Metric: While many models look good on "Micro-F1" (which favors popular categories), SMGCN showed its true strength in Macro-F1. This indicates that the performance boost is coming specifically from the difficult, long-tail categories.
  • The Power of Shared Encoders: By using a shared BERT encoder for both queries and categories, the model maps them into the same semantic space, making the similarity-based "soft labels" much more accurate.

Key Results

SMGCN was tested against strong baselines like XML-CNN, LSAN, and MMAN:

  • Offline Performance: SMGCN outperformed all baselines. Notably, it achieved nearly a 10% improvement in recall for relevant categories. In the Intent Data set, it reached a Macro-F1 of 48.54, compared to MMAN’s 33.36.
  • Online A/B Testing: When deployed on the JD.com search engine, the model led to a +0.79% increase in UV value (Gross Merchandise Value per visitor) and a +2.87% increase in category diversity. This proves that the model isn't just more accurate—it's actually helping users discover a wider variety of products.

Limitations and Future Work

While highly effective, the authors note a few areas for growth:

  • Taxonomic Hierarchy: Currently, the model treats categories as nodes in a graph but doesn't fully exploit the "parent-child" tree structure of e-commerce taxonomies (e.g., Electronics -> Audio -> Headphones).
  • External Knowledge: The authors suggest that incorporating external knowledge bases or "encyclopedic" product information could further refine how the model understands the nuances between very similar niche products.
  • Computational Overhead: While they used "distillation" to make the model fast enough for production, GCNs can be computationally expensive to update in real-time as new products are added.

Summary updated

BibTeX
@inproceedings{yuan2024semi,
  author = {Chunyuan Yuan and Ming Pang and Zheng Fang and Xue Jiang and Changping Peng and Zhangang Lin},
  title = {{A Semi-supervised Multi-channel Graph Convolutional Network for Query Classification in E-commerce}},
  booktitle = {The Web Conference},
  year = {2024},
  doi = {10.1145/3589335.3648302},
}
Figure