NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PAM: Understanding Product Images in Cross Product Category Attribute Extraction

Rongmei Lin, Xiang He, Jie Feng, Nasser Zalmout, Yan Liang, Li Xiong, Xin Luna Dong · DOI

TL;DR

PAM (Product-category-Aware Multimodal) is a framework that extracts product attributes by fusing text descriptions with visual features and OCR tokens from images. By conditioning extraction on product categories within a transformer-based sequence-to-sequence model, it achieves a 15% gain in recall over traditional text-only methods.

What Problem Does This Paper Address?

In the world of e-commerce, accurate product attributes (like brand, color, or material) are the backbone of search and recommendation systems. However, product data is often messy: titles are keyword-stuffed and incomplete, while manual entry leads to frequent errors.

Existing extraction methods typically rely on text descriptions, but these often miss critical information that is clearly visible in product images—such as a brand logo on a bottle or the physical form of a product (e.g., a "stick" vs. "powder"). Furthermore, extracting attributes across thousands of diverse categories is difficult because the relevant vocabulary changes drastically; "size" for a T-shirt is measured in letters, while "size" for a diaper is a number. The authors address these gaps by proposing a multimodal, category-aware approach.

Images provide critical information that text descriptions often miss, such as the brand name on a label or the physical form of the product.

Methods

The core of the work is the PAM framework, a sequence-to-sequence model built on a multi-modal transformer.

  1. Multimodal Inputs: The model processes three distinct streams:
  2. Textual Features: Product titles and descriptions encoded via BERT.
  3. Visual Features: Generic visual objects detected in the image using a Faster R-CNN.
  4. OCR Tokens: Textual content extracted directly from the product image (e.g., labels) using Optical Character Recognition.
  5. Multi-Modal Transformer: These inputs are projected into a shared embedding space and fed into a transformer encoder, allowing the model to attend to cross-modality relationships (e.g., matching the word "Lava" in the title to the "Lava" logo in the image).
  6. Category-Aware Decoding: To handle the diversity of product categories, the authors introduce two key innovations:
  7. Dynamic Vocabulary: The decoder queries a vocabulary of attribute values that is filtered based on the product category, narrowing the search space.
  8. Multi-Task Training: The decoder is trained to first predict the product category and then the attribute value. This forces the model to learn the correlation between categories and their specific attribute patterns.
Figure 3: Overview of the proposed framework. 1) Input modalities: Product title and product image. 2) Token selection: Tokens could be selected from product title, OCR tokens identified in product image and a dynamic vocabulary conditioned on the product category. We consider edit distance between candidates and existing attribute values while selecting the next token. 3) Target sequence: We ask the decoder to first decode product category, and then decode attribute value.

Datasets

The authors evaluated their model on a dataset of 61,308 samples collected from a public e-commerce website (Amazon.com), covering 14 product categories (ranging from cereal and honey to sunscreen and makeup).

They focused on two challenging attributes:

  • Item Form: A "closed vocabulary" attribute with about 20 possible values.
  • Brand: An "open vocabulary" attribute with over 100 unique values in the dataset.

Key Insights and Ideas

  • OCR as a Bridge: The paper highlights that OCR tokens are often the "missing link" in attribute extraction. While raw visual features (shape/color) are useful, the text printed on a product label is frequently the most reliable source of truth for brands and specific product types.
  • Cross-Validation: Multimodality allows for "cross-validation." If a product title mentions both "stick" and "powder," the visual shape of the product in the image can disambiguate which value is correct.
  • The Power of Category Context: Simply knowing the category (e.g., "Sunscreen") significantly improves precision. By forcing the model to decode the category first, the internal representations become "category-aware," which helps distinguish target attributes from distracting text.
  • Edit Distance Matters: The authors found that incorporating string similarity (edit distance) between candidate tokens and known attribute values helped the model overcome noise in OCR and domain-specific jargon.

Key Results

The PAM framework consistently outperformed state-of-the-art baselines:

  • Recall & F1 Gains: Compared to text-only methods, PAM achieved a 15% gain in Recall and a 10% gain in F1 score.
  • Ablation Success: Removing any single modality (text, image, or OCR) led to a performance drop, proving that all three are necessary for robust extraction. Text remains the most important single modality, but images provide the crucial "edge" for missing data.
  • Category Generalization: As shown in Figure 4, PAM outperformed brute-force word matching (WM) and text-only models (OpenTag) across specific categories like "sunscreen" and "tea," demonstrating its ability to generalize category-specific knowledge.
Figure 4: Comparison between different methods on a single product category.

Limitations and Future Work

While successful, the authors note several areas for growth:

  • Scaling: The current study uses 14 categories. Real-world e-commerce platforms have thousands. Future work involves scaling the model to handle massive, hierarchical category trees.
  • Retrieval-Augmented Generation (RAG): The authors suggest that the dynamic vocabulary selection could be further improved by incorporating techniques similar to RAG to handle even larger sets of potential attribute values.
  • Multi-Attribute Extraction: Currently, the model is evaluated on one attribute at a time. A promising direction is training a single model to extract all relevant attributes for a product in a single pass.

Summary updated

BibTeX
@misc{lin2021pam,
  author = {Rongmei Lin and Xiang He and Jie Feng and Nasser Zalmout and Yan Liang and Li Xiong and Xin Luna Dong},
  title = {{PAM: Understanding Product Images in Cross Product Category Attribute Extraction}},
  year = {2021},
  eprint = {2106.04630},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.04630},
}
Figure