Mitigating Pooling Bias in E-commerce Search via False Negative Estimation

Xiaochen Wang, Xiao Xiao, Ruhan Zhang, Xuan Zhang, Taesik Na, Tejaswi Tenneti, Haixun Wang, Fenglong Ma

TL;DR

Researchers at Instacart have developed Bias-mitigating Hard Negative Sampling (BHNS), a novel strategy to solve "pooling bias" in e-commerce search models. By leveraging query similarity to estimate the likelihood of a sample being a false negative, BHNS prevents models from accidentally learning to ignore relevant products, leading to significant gains in search accuracy and ranking performance.

What Problem Does This Paper Address?

Training a high-performance search engine requires teaching a model to distinguish between relevant and irrelevant products. Standard practice involves negative sampling: taking a query (e.g., "Honey") and pairing it with products that weren't clicked (e.g., "Garlic") to create "negative" training examples.

To make the model "smarter," researchers often use hard negatives—products that are semantically similar to the query but technically not the target (e.g., pairing "Honey" with "Wildflower Honey"). However, in e-commerce, these "hard negatives" are often actually relevant products that the user simply didn't happen to click. This is pooling bias. As shown in Figure 1, treating these highly relevant items as "irrelevant" during training introduces noise, over-penalizes popular products, and ultimately degrades search quality.

Pooling bias example

Methods

The authors propose a two-pronged approach called Bias-mitigating Hard Negative Sampling (BHNS), built on a core metric called False Negative Estimation (FNE).

  1. False Negative Estimation (FNE): The authors hypothesize that if two queries are semantically similar, they likely share the same relevant products. FNE uses a pre-trained bi-encoder to calculate similarity between a new query and queries known to be relevant to a specific product. This similarity score serves as a proxy for the likelihood that a query-product pair is a "false negative."
  2. Sampling Regularization: During the selection of hard negatives, the algorithm penalizes items with high FNE scores. This ensures the model doesn't accidentally pick a highly relevant product to use as a negative example.
  3. Pseudo Label Generation: Instead of the traditional binary approach (labeling all negatives as "0"), BHNS assigns a "soft" pseudo-label based on the FNE score. If a product is likely relevant, its label might be 0.2 instead of 0, informing the model of the potential bias.

The overall workflow, integrating these components into a cross-encoder training pipeline, is illustrated in Figure 2.

BHNS Workflow

Datasets

The researchers evaluated BHNS across three distinct environments:

  • STS Benchmark: A public dataset for Semantic Textual Similarity, used to test the domain-agnostic potential of the method.
  • Instacart In-house Data: A "golden dataset" featuring human-annotated query-product pairs categorized into five levels of relevance (Strongly Relevant to Offensive).
  • Instacart Search Logs: Real-world production data used to benchmark the ranking model's performance on actual user conversions.

Key Insights and Ideas

  • The Query Similarity Bridge: Rather than trying to estimate query-product relevance directly (which is what the model is trying to learn), BHNS uses query-to-query similarity as a robust "bridge." This leverages the fact that users often search for the same thing using different words.
  • Hard Negatives are a Double-Edged Sword: While hard negatives provide the most information for a model to learn fine-grained differences, they are also the most likely to be false negatives. BHNS allows researchers to keep the benefits of hard negatives while neutralizing their risks.
  • Domain Agnostic: The success on the STS benchmark suggests that pooling bias isn't just an e-commerce problem; it's a general challenge in information retrieval that BHNS can help solve.

Key Results

BHNS consistently outperformed vanilla negative sampling (VNS) and standard hard negative sampling (HNS), as well as several specialized baselines like STAR and FALSE.

  • Public Benchmark (STS): BHNS achieved the highest scores across Pearson, Spearman, and AUROC metrics (see Table 2).
  • Offline E-commerce Test: On Instacart's internal data, BHNS boosted AUROC to 95.06, compared to just 90.34 for standard hard negative sampling.
  • Live System Impact: When integrated into Instacart’s ranking system (Figure 3), the BHNS-boosted model improved Mean Reciprocal Rank (MRR) and NDCG@20, indicating that users were finding relevant products faster.
STS Results

Limitations and Future Work

The primary trade-off for BHNS is computational efficiency. The authors noted a 32% to 38% increase in training time compared to vanilla methods due to the additional similarity calculations required for FNE. However, they emphasize that this does not affect inference speed, which is critical for production systems.

Future work could involve exploring more efficient ways to calculate FNE or applying the strategy to different architectures beyond cross-encoders. The authors also suggest that the lack of independent embeddings in cross-encoders remains a challenge for heuristic sampling, which BHNS partially addresses by using a frozen bi-encoder as a guide.

Summary updated

BibTeX
@inproceedings{wang2024mitigating,
  author = {Xiaochen Wang and Xiao Xiao and Ruhan Zhang and Xuan Zhang and Taesik Na and Tejaswi Tenneti and Haixun Wang and Fenglong Ma},
  title = {{Mitigating Pooling Bias in E-commerce Search via False Negative Estimation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671630},
}
Figure