RexBERT: Domain Adapted Encoders for Product Understanding and Relevance Ranking in E-commerce
cs.CL, cs.AI
Submitted: 2026-02-04
Updated: 2026-11-27
Comments: Blog: https://owlgebra.ai/blog/rexbert/ Models: https://huggingface.co/collections/thebajajra/rexbert Ecom-niverse Dataset: https://huggingface.co/datasets/thebajajra/Ecom-niverse
License: http://creativecommons.org/licenses/by/4.0/
The gist: E-commerce retrieval and recommendation re- quire encoders that preserve product specific distinctions, including substitutes versus com- plements, attribute equivalence…
Terminology
Abstract
E-commerce retrieval and recommendation re- quire encoders that preserve product specific distinctions, including substitutes versus com- plements, attribute equivalence, brand/category constraints, and query product intent. General purpose encoders trained on broad web text often underrepresent these fine grained compatibility and specification signals. We intro- duce RexBERT, a family of encoder models with 17M to 400M parameters for e-commerce product understanding. Starting from the public Ettin long context encoder, RexBERT is domain annealed on Ecom-niverse, a 350B token e-commerce domain language corpus, while retaining an 8,192-token context window. We further introduce Guided MLM, a masking strategy that preferentially selects salient product spans without changing the masked language modeling objective. We evaluate RexBERT on e-commerce domain language modeling, ESCI graded query product similarity, WANDS relevance ranking, and GLUE retention checks. Domain annealing substantially improves held out e-commerce modeling: at Base scale, perplexity drops from 6.04 to 3.99 after Phase 3 training with Guided MLM. On Amazon ESCI, RexBERT-base already matches E5-large with fewer than half the parameters, while RexBERT-large reaches 0.457 Spearman correlation, outperforming E5-large and BGE-large under the same graded similarity protocol. On WANDS, RexBERT-large achieves 0.924 NDCG@5, 0.933 NDCG@10, and 0.977 MAP, while maintaining competitive GLUE retention. These results show that targeted domain annealing and guided span masking can deliver stronger e-commerce relevance than general purpose encoders at compact encoder scales.
Sources
- MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
- The non-intrusive reduced basis two-grid method applied to sensitivity analysis
- RoBERTa: A Robustly Optimized BERT Pretraining Approach
- Evaluation of GPT-3 for Anti-Cancer Drug Sensitivity Prediction
- Shopping Queries Dataset: A Large-Scale ESCI Benchmark for Improving Product Search
- BioClinical ModernBERT: A State-of-the-Art Long-Context Encoder for Biomedical and Clinical NLP
- Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference
- Seq vs Seq: An Open Suite of Paired Encoders and Decoders
- FinBERT: A Pretrained Language Model for Financial Communications
- E-BERT: A Phrase and Product Knowledge Enhanced Language Model for E-commerce
Related papers
- MedGame: Storytelling Gamification Empowered by Large Language Models for Medical Education
- SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference
- UniVer: A Unified Perspective for Multi-step and Multi-draft Speculative Decoding
- Grounding Text Embeddings in Stakeholder Associations
- Linguistic and Argument Diversity in Synthetic Data for Function-Calling Agents
- TRIM: Achieving Extreme Sparsity with Targeted Row-wise Iterative Metric-driven Pruning