Introduction
In the competitive landscape of e-commerce, accurately interpreting user intent is critical for conversion. When a user searches for "small girl swimming suit," the system must distinguish between the target demographic ("small girl") and the product category ("swimming suit"). Traditional Named Entity Recognition (NER) systems often falter due to the "decorative" nature of product attributes—where words like "leather" in "leather iPhone case" describe the case rather than the phone itself—and the sheer scale of evolving inventories. Researchers at Walmart Global Tech have introduced a novel framework to address these challenges by combining BERT-CRF models with a "Decorative Relation Correction" (DRC) mechanism and leveraging Llama 2.0 for automated data labeling.
Methodology
The proposed architecture integrates three key components to improve extraction precision and scalability.
BERT-CRF Backbone and DRC
The system utilizes a DistilBERT model to generate contextual word embeddings, followed by a Conditional Random Fields (CRF) layer to decode attribute tags. The primary innovation is the Decorative Relation Correction (DRC) module. This three-layer neural network serves as a validation step, evaluating the semantic relationship between extracted attributes and product types to ensure they are logically compatible.
LLM-Based Annotation
To overcome the bottleneck of manual data labeling, the team employed Llama 2.0 (13B) to expand the attribute taxonomy and annotate training data. This pipeline includes a self-review loop where the LLM verifies its own outputs, significantly reducing hallucinations and ensuring high-quality labels for "long-tail" attributes like material or cuisine type.
Experimental Results
The framework was evaluated using the Walmart internal dataset (~140k queries), the BestBuy E-commerce NER dataset, and the CoNLL-2003 benchmark.
Performance Metrics
The BERT-CRF-DRC model achieved state-of-the-art results, with F-scores of 0.9457 and 0.9484 on the Walmart and BestBuy datasets, respectively. The DRC module proved particularly effective for e-commerce queries, though its impact was negligible on general-purpose datasets like CoNLL, highlighting the domain-specific nature of decorative relations.
Real-World Impact
Beyond offline benchmarks, the system was deployed in Walmart’s Sponsor Product Search for two months. The deployment resulted in measurable improvements in click-through rates and a notable decrease in search abandonment, confirming the model's efficacy in a live production environment.
Conclusion and Future Work
While the framework significantly advances attribute extraction, challenges remain in recognizing brand names that overlap with common nouns (e.g., "Apple") and handling multi-product queries (e.g., "t-shirt and jeans"). Future research will focus on refining LLM prompting for brand detection and implementing grouping techniques to parse complex, multi-item search strings.
Summary updated