LLM-Ensemble: Optimal Large Language Model Ensemble Method for E-commerce Product Attribute Value Extraction

Chenhao Fang, Xiaohan Li, Zezhong Fan, Jianpeng Xu, Kaushiki Nag, Evren Korpeoglu, Sushant Kumar, Kannan AchanarXiv 2024

TL;DR

The paper introduces LLM-Ensemble, a theoretically optimal algorithm that aggregates outputs from multiple Large Language Models (LLMs) to extract product attribute values for e-commerce. By treating different LLMs as independent workers in a crowdsourcing framework, the method iteratively learns model weights to outperform any single state-of-the-art LLM. Deployed at Walmart, it significantly boosted both offline extraction accuracy and online business metrics like Click-Through Rate (CTR) and Gross Merchandise Volume (GMV).

What Problem Does This Paper Address?

In e-commerce, understanding precise product attributes (e.g., identifying that a product title implies a "female" gender or "toddler" age group) is vital for high-quality search and recommendation systems. While modern LLMs excel at zero-shot information extraction, they exhibit diverse strengths and weaknesses depending on their training data, architecture, and the specific product category.

Because no single LLM dominates across all categories, e-commerce platforms face a dilemma: experimenting with and fine-tuning different LLMs for millions of distinct product categories is prohibitively expensive and time-consuming. This paper addresses the challenge of effectively combining the complementary strengths of multiple LLMs without needing domain-specific training data or costly category-by-category manual tuning.

Methods

The core innovation of LLM-Ensemble is framing the combination of multiple LLMs as a crowdsourcing problem. Instead of human annotators, the "workers" are different LLMs (such as GPT-4, Llama2, and PaLM-2).

The authors adapt the classic Dawid-Skene Model, a structured latent variable model, to iteratively estimate both the true product attributes and the reliability (weights) of each LLM:

  1. Voting & Initialization: The algorithm starts by observing the labels provided by each LLM for a given product attribute.
  2. Iterative Weight Learning: It computes an expected truth based on a weighted majority vote, then updates each LLM's weight based on how well its answers align with this estimated truth.
  3. Convergence: This expectation-maximization (EM) style approach rapidly converges to an optimal weight distribution.

The algorithm naturally handles missing data (when an LLM fails to generate a label for a specific product) and mathematically approximates the oracle Maximum A Posteriori (MAP) rule. This ensures that "superior" LLMs receive higher weights, while the influence of underperforming models or "spammers" is minimized.

Figure 1: (a) The input data matrix 𝑊. We take the attribute "gender" as an example, and its labels are "Male" (M), "Female" (F), and "Unisex" (U). (b) The illustration of LLM-ensemble procedures. To learn the label of a product for attribute 𝑞, we have 𝑁 LLMs as inputs to the LLM-Ensemble algorithm. After several rounds of iteration, the algorithm generates the weights for each LLM and aggregates the labels with weights to predict the final label ˆ𝑦𝑞.

Datasets

The method was evaluated using Walmart's internal e-commerce data:

  • Walmart-Age: 20K product items labeled for age-appropriateness.
  • Walmart-Gender: 20K product items labeled for gender targets.

For both datasets, the ground-truth evaluation labels were generated via human crowdsourcing.

Key Insights and Ideas

  • LLMs as Crowd Workers: The conceptual leap of treating distinct LLMs as human annotators allows e-commerce platforms to leverage decades of research in crowdsourcing and truth inference algorithms.
  • Bypassing the "Best Model" Trap: Instead of trying to find or train one master model that fits all product types, ensembling acknowledges that model diversity is a feature, not a bug.
  • Resource Efficiency: The algorithm operates on the text outputs (labels) of the LLMs rather than their internal embeddings or token probabilities. This makes it highly computationally efficient, fast to converge, and easy to deploy safely in production pipelines.

Key Results

Offline Evaluation

The LLM-Ensemble method consistently outperformed all baseline models, including traditional machine learning (Logistic Regression), rule-based systems, and individual state-of-the-art LLMs.

  • On the Walmart-Age dataset, it achieved an accuracy of 0.956, outperforming GPT-4 (the best single model) by 2.36%.
  • On the Walmart-Gender dataset, it achieved an accuracy of 0.979, outperforming GPT-4 by 2.76%.
Comparison of prediction accuracy across different baseline models and the proposed LLM-ensemble.

Online Production A/B Test

The ensemble method was deployed as a top-layer filtration system across more than 200 product categories on Walmart's live e-commerce platform. An online A/B test demonstrated statistically significant improvements across all primary business metrics:

  • Gross Merchandise Volume (GMV): +0.38%
  • Click-Through Rate (CTR): +2.16%
  • Conversion Rate (CVR): +0.26%
  • Add-to-Cart Rate (ATC): +1.42%
Table 2: Online experiment results

Limitations and Future Work

Due to corporate privacy policies, the authors only disclose evaluation details for two specific attributes (age and gender), though they note the system handles more in practice. Additionally, the paper focuses primarily on categorical attribute extraction where the label space is predefined.

Future extensions could explore how this crowdsourcing ensemble approach handles open-ended text generation tasks or highly structured, multi-valued attribute extraction where target labels are not fixed.

Summary updated

BibTeX
@misc{fang2024llm,
  author = {Chenhao Fang and Xiaohan Li and Zezhong Fan and Jianpeng Xu and Kaushiki Nag and Evren Korpeoglu and Sushant Kumar and Kannan Achan},
  title = {{LLM-Ensemble: Optimal Large Language Model Ensemble Method for E-commerce Product Attribute Value Extraction}},
  year = {2024},
  eprint = {2403.00863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.00863},
}
Figure