Unconstrained Production Categorization with Sequence-to-Sequence Models

Yundi Maggie Li, Liling Tan, Stanley Kok, Ewa SzymanskaeCOM @ SIGIR 2018

Abstract

Traditional e-commerce product categorization treats taxonomies as static multi-class classification problems. This paper explores a novel approach by framing categorization as a sequence generation task using attentional Sequence-to-Sequence (Seq2Seq) models. By "translating" product titles into hierarchical category paths, the model can adapt to evolving taxonomies and even generate logical new category branches not present in the training data.

Introduction

Product categorization is fundamental to e-commerce search and recommendation systems. However, static, predefined taxonomies struggle with the rapid influx of new products and the "cross-pollination" of sub-categories. Manual maintenance is labor-intensive and prone to inconsistency. This research moves beyond "hard boundaries" by allowing a model to learn fluid relationships between sub-categories, potentially discovering more logical paths than human-annotated hierarchies.

Methodology

The core innovation lies in treating a hierarchical category path (e.g., Clothing > Shoes > Men > Boots) as a sentence.

Architecture

The authors utilized an attentional Encoder-Decoder framework implemented via the Marian toolkit. The model employs a single-layer Gated Recurrent Unit (GRU) for both the encoder and decoder.

Attention Mechanism and Inference

An attention mechanism allows the decoder to focus on specific tokens in the product title when generating each level of the category hierarchy. For inference, a Beam Search of size 6 was used to identify the most probable category sequences. To enhance robustness, an ensemble of four models (M1-M4) trained with different random seeds was employed.

Attention weights for a sample product title showing alignment between tokens like "gucci" or "eyeglasses" and specific category IDs.

Dataset and Results

The study utilized the Rakuten Data Challenge (RDC) dataset, comprising 1 million product titles with anonymized hierarchical labels. The data is characterized by high skewness and significant "noise" (e.g., non-ASCII characters).

Performance

The ensembled Seq2Seq system achieved a balanced F-score of 0.8256, outperforming the competition's baseline (0.8142). Notably, the model demonstrated "creativity" by generating 46 new, logical category paths on the test set that were absent from the original training taxonomy.

Interpretability and Limitations

The attention weights provide a "heat map" of the model's decision-making process, making the neural network more transparent. However, the model faced challenges with extremely short titles (e.g., single-word music or language titles).

Attention heatmaps for short titles ("bonjour", "asiatisch") illustrating the difficulty in distinguishing fine-grained sub-categories with minimal context.

As shown in Figure 2, single-word titles often provide enough context for top-level categorization but lack the detail required for accurate deep-level classification.

Discussion

A surprising finding was that "noise" in the dataset, such as specific non-ASCII strings, often served as a helpful feature rather than a distraction, as certain symbols appeared consistently within specific categories. While the unconstrained generation allows for the discovery of new paths, it also introduces the risk of generating nonsensical sequences. Future work will focus on refining the balance between creative path generation and hierarchical validity, as well as improving performance on short, low-context product titles.

Summary updated

BibTeX
@inproceedings{li2018unconstrained,
  author = {Yundi Maggie Li and Liling Tan and Stanley Kok and Ewa Szymanska},
  title = {{Unconstrained Production Categorization with Sequence-to-Sequence Models}},
  booktitle = {eCOM @ SIGIR},
  year = {2018},
  url = {https://openreview.net/forum?id=BJbWpHWd-B},
}
Figure