Ask-and-Verify: Span Candidate Generation and Verification for Attribute Value Extraction

Yifan Ding, Yan Liang, Nasser Zalmout, Xian Li, Christan Grant, Tim Weninger

Abstract

Attribute Value Extraction (AVE) is a critical task in e-commerce, aimed at extracting structured attribute-value pairs from unstructured product descriptions. Traditional sequence labeling and Machine Reading Comprehension (MRC) methods often struggle with a trade-off between recall and precision. We propose "Ask-and-Verify," a novel two-stage framework that disentangles candidate generation from verification. By using an attribute-agnostic classifier to filter candidates produced by an MRC-based generator, our model achieves state-of-the-art performance on multiple industrial datasets, showing up to a 3.1% F1 improvement over existing methods and superior scalability to thousands of attributes.

Introduction

In the world of e-commerce, structured data is essential for powering search and recommendation engines. The task of Attribute Value Extraction (AVE) involves identifying specific values (e.g., "Strawberry Banana") for given attributes (e.g., "Flavor") within product text. Current approaches typically fall into two categories: sequence labeling and MRC-based extraction. Sequence labeling models often suffer from high false-negative rates due to the sparsity of attribute tokens. Conversely, MRC-based models, while more flexible, tend to "hallucinate" or over-generate irrelevant spans, leading to poor precision.

The "Ask-and-Verify" framework addresses these issues by separating the "discovery" of potential values from the "validation" of their structural and contextual integrity.

The Ask-and-Verify Framework

The proposed pipeline consists of two distinct stages: candidate generation ("Ask") and candidate verification ("Verify").

1. Candidate Generation (The "Ask" Step)

The model treats the attribute as a query and the product description as a passage. Using a BERT-based encoder, it identifies the most likely start and end indices for potential attribute values. Instead of selecting only the top-ranked span, this stage identifies the "Top-K" most probable candidates, ensuring high recall.

2. Candidate Verification (The "Verify" Step)

The core innovation lies in the verification stage. Each candidate span is passed to a binary classifier that evaluates its validity based on "span features," including the hidden states of the start/end tokens and a learned length embedding. Crucially, this classifier is attribute-agnostic, meaning it learns the general characteristics of valid attribute values rather than relying on attribute-specific parameters. This design allows the model to scale efficiently to thousands of attributes without a linear increase in model complexity.

The Ask-and-Verify architecture, showing the two-stage process of span candidate generation and verification.

Experimental Evaluation

The framework was evaluated on two major e-commerce sources:

  • AliExpress (AE-110K): A large-scale public dataset. Subsets like AE-48 (48 frequent attributes) were used for deep benchmarking.
  • Amazon (AZ-15 & AZ-33): Internal datasets derived from real product pages, used to test generalization and performance on diverse attribute sets.

Key Results

Ask-and-Verify consistently outperformed ten baseline models, including BERT, OpenTag, and AVEQA. The model demonstrated significant F1 gains across all test sets, particularly in precision.

Comparison of Ask-and-Verify against baseline models across AE-48, AZ-15, and AZ-33 datasets.

Ablation studies highlighted the importance of the verification step. Removing the "Verify" module led to a precision drop of approximately 47%, confirming its role in filtering out the false positives common in standard MRC approaches. Furthermore, on the full AE-110K dataset, the model outperformed the previous state-of-the-art by 1.3% F1, proving its industrial-scale viability.

Conclusion

The "Ask-and-Verify" framework provides a robust solution for large-scale Attribute Value Extraction by disentangling generation and verification. While the current implementation has minor constraints regarding span length and threshold sensitivity, its ability to maintain high precision while scaling to thousands of attributes makes it a powerful tool for e-commerce platforms. Future work will focus on optimizing the pipeline for high-traffic production environments.

Summary updated

BibTeX
@inproceedings{ding2022ask,
  author = {Yifan Ding and Yan Liang and Nasser Zalmout and Xian Li and Christan Grant and Tim Weninger},
  title = {{Ask-and-Verify: Span Candidate Generation and Verification for Attribute Value Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-industry.9},
}
Figure