AtTGen: Attribute Tree Generation for Real-World Attribute Joint Extraction

Yanzeng Li, Bingcong Xue, Ruoyu Zhang, Lei ZouACL 2023

Abstract

Attribute extraction (AE) is a critical component of modern e-commerce systems, facilitating product search and the construction of comprehensive knowledge graphs. Traditional AE methods typically operate under either a closed-world assumption (classification) or an open-world assumption (sequence tagging). However, real-world data often presents a hybrid of both, where standard attributes coexist with novel, free-form mentions. This paper introduces AtTGen, a unified framework that treats AE as a text-to-tree generation task. By generating an "Attribute Tree" that prioritizes values as anchors, AtTGen bridges the gap between pre-defined schemas and open-world extraction. Our evaluation across three diverse benchmarks shows that AtTGen achieves state-of-the-art performance, notably outperforming existing models by over 9% in value extraction on benchmark e-commerce data while remaining highly parameter-efficient.

Introduction

Attribute Extraction (AE) involves identifying product attributes and their corresponding values from unstructured text. Historically, researchers have approached this task through two distinct lenses:

  1. Closed-World Assumption (CWA): Attributes belong to a fixed, pre-defined set (e.g., "Color," "Material"). This is typically treated as a classification problem.
  2. Open-World Assumption (OWA): Attributes are discovered dynamically from the text (e.g., "Waterproof Rating"). This is usually treated as a sequence tagging problem.

In real-world e-commerce, these scenarios frequently overlap. A single product description may contain standard attributes defined in a schema alongside entirely new ones. Previous attempts to unify these paradigms often relied on multi-stage pipelines or ensembles, which are susceptible to "cascading errors"—where a failure in initial extraction propagates through the system. AtTGen addresses this by unifying the extraction process into a single, consistent generative task: the production of an Attribute Tree.

The AtTGen Framework

AtTGen redefines attribute extraction as a structured generation problem. Instead of predicting labels for individual tokens, the model generates a hierarchical structure representing the product's attributes.

The Attribute Tree structure defines a reasoning path from the product (root) to attribute values and then to attribute names.

The tree structure follows a specific reasoning path: $Root \rightarrow Value \rightarrow Name$. A key innovation of AtTGen is its "value-first" approach. The authors argue that attribute values (e.g., "4K", "27 inch") often exhibit more distinct and predictable syntactic patterns in text than attribute names, which can be highly varied, synonymous, or even implicit. By extracting the value first, the model uses it as a reliable "anchor" to identify the associated attribute name, whether that name is a literal mention in the text or a label from a pre-defined schema. Furthermore, the tree structure naturally avoids generating paths for missing information, bypassing the "null-value" issue that often plagues sequence tagging models.

Architecture and Implementation

AtTGen utilizes an encoder-decoder architecture optimized for joint extraction.

The AtTGen architecture employs a BiLSTM-CNN encoder and a pointer-based decoder to unify span extraction from text and label selection from schemas.

Encoder

The encoder uses a BiLSTM-CNN to process the input descriptive sentence. Crucially, it also encodes the labels from the pre-defined schema. This allows the model to map both the input text and the schema labels into a shared representation space.

Decoder and Span Copier

The decoder is a unary LSTM that generates the paths within the Attribute Tree. To handle the dual nature of real-world AE, AtTGen incorporates a Span Copier. This pointer-based mechanism allows the model to "point" to specific spans in the original text (for literal values and names) or to the schema label set (for pre-defined categories). This design effectively unifies sequence tagging and classification into a single mathematical operation, allowing the model to handle closed-world and open-world extraction seamlessly.

Experimental Results

The model was evaluated on three benchmarks representing different real-world scenarios: MEPAVE (Closed-World), AE-110K (Open-World), and Re-CNShipNet (Semi-Open). AtTGen established new state-of-the-art (SOTA) benchmarks across all three.

On the MEPAVE dataset, it outperformed the previous best model (M-JAVE) by 9.09% in attribute value extraction and 5.79% in name prediction, despite M-JAVE utilizing additional multimodal (image) information. On the AE-110K dataset, it surpassed the BART generative model by 6.45% in value extraction. Furthermore, AtTGen is remarkably parameter-efficient; while BERT-based models typically require ~110M parameters, AtTGen achieves these results with only ~2M parameters.

Conclusion and Future Work

AtTGen demonstrates that a specialized, generative tree-based approach can significantly outperform general-purpose language models and complex pipelines in attribute extraction. By unifying closed-world and open-world extraction through a "value-first" reasoning path and a pointer-based copying mechanism, it provides a robust and efficient solution for real-world e-commerce applications.

While highly effective, the authors noted that standard Pre-trained Language Models (PLMs) like BERT did not integrate well with the current architecture due to tokenization mismatches. Future research will focus on better integrating PLMs, incorporating multimodal data (such as product images), and scaling the approach to even larger datasets.

Summary updated

BibTeX
@inproceedings{li2023attgen,
  author = {Yanzeng Li and Bingcong Xue and Ruoyu Zhang and Lei Zou},
  title = {{AtTGen: Attribute Tree Generation for Real-World Attribute Joint Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.119},
}
Figure