RexBERT: Context Specialized Bidirectional Encoders for E-commerce

TL;DR

RexBERT excels in e-commerce with Ecom-niverse corpus and three-phase training.

cs.CL 🔴 Advanced 2026-02-04 7 views
Rahul Bajaj Anuj Garg
e-commerce BERT NLP corpus model training

Key Findings

Methodology

RexBERT employs the Ecom-niverse corpus and a three-phase training strategy: general pre-training, context extension, and annealed domain specialization. It uses a modern encoder architecture with rotary positional embeddings and GeGLU activations.

Key Results

  • RexBERT outperforms larger general-purpose encoders on e-commerce datasets, despite having 2-3x fewer parameters.
  • On the Amazon ESCI dataset, RexBERT shows significantly higher Spearman correlation in semantic similarity tasks.
  • RexBERT performs excellently on the GLUE benchmark, especially in sentence classification and semantic similarity tasks.

Significance

RexBERT demonstrates strong potential in e-commerce applications through high-quality domain data and a systematic training approach. It offers new insights for domain-specific NLP, especially in scenarios requiring high precision and low latency.

Technical Contribution

Technically, RexBERT shows that smaller models can achieve excellent performance in specific domains through the use of the Ecom-niverse corpus and a modern encoder architecture.

Novelty

RexBERT is the first to apply a three-phase training strategy in e-commerce, combining modern BERT architecture to significantly enhance domain-specific task performance.

Limitations

  • RexBERT may not perform as well in non-e-commerce domains.
  • The training process requires substantial computational resources.

Future Work

Future research could explore RexBERT's application in other domains like healthcare and law, and optimize its performance in multilingual environments.

AI Executive Summary

RexBERT addresses the limitations of general-purpose encoders in specialized domains by introducing a BERT-style encoder specifically designed for e-commerce semantics. The key lies in using the Ecom-niverse corpus and a three-phase pre-training strategy, including general pre-training, context extension, and domain specialization. Experimental results show that RexBERT outperforms larger general-purpose models on e-commerce datasets, particularly in semantic similarity tasks on the Amazon ESCI dataset. This research highlights the potential of high-quality domain data combined with a systematic training approach, providing strong support for e-commerce applications. However, RexBERT's performance in non-e-commerce domains may be limited, and future research could explore its application in other fields.

Deep Analysis

Background

In the field of natural language processing, encoder models like BERT play a crucial role in classification, retrieval, and ranking systems. However, general-purpose encoders often perform poorly in specialized domains, particularly in e-commerce. RexBERT aims to address this issue by using a specialized e-commerce corpus and a modern encoder architecture.

Core Problem

General-purpose encoders struggle in e-commerce, failing to capture subtle distinctions and attributes between products. RexBERT aims to enhance semantic representation in e-commerce through a specialized corpus and training strategy.

Innovation

RexBERT's innovation lies in using the Ecom-niverse corpus and a three-phase training strategy. By employing a modern encoder architecture with rotary positional embeddings and GeGLU activations, it enhances performance in e-commerce.

Methodology

  • �� Use Ecom-niverse corpus for training
  • �� Three-phase training strategy: general pre-training, context extension, domain specialization
  • �� Employ modern encoder architecture with rotary positional embeddings and GeGLU activations

Experiments

Experiments use the Amazon ESCI dataset to evaluate RexBERT's performance in semantic similarity and GLUE benchmarks. By adjusting parameters and training strategies, the model's performance is optimized.

Results

RexBERT outperforms larger general-purpose encoders on e-commerce datasets, particularly in semantic similarity tasks. Its performance on GLUE benchmarks is also impressive, demonstrating its potential in multi-task processing.

Applications

RexBERT can be applied in e-commerce search, recommendation systems, and attribute extraction, enhancing user experience and system efficiency.

Limitations & Outlook

RexBERT may not perform as well in non-e-commerce domains, and its training process requires substantial computational resources. Future research could explore its application in other fields and performance in multilingual environments.

Plain Language Accessible to non-experts

Imagine a supermarket where RexBERT acts as a smart assistant that quickly identifies products. By learning from a vast amount of product information, it can swiftly find the most suitable products when customers inquire. Unlike ordinary assistants, RexBERT focuses on e-commerce, recognizing subtle differences between products, such as distinguishing substitutes and complements. It's like having a shopping-savvy friend who gives the best advice when needed.

ELI14 Explained like you're 14

Imagine you're shopping online, and RexBERT is like a super-smart shopping assistant. It quickly understands what you want to buy and recommends the best products. For example, if you want new shoes, it not only finds shoes but also tells you which ones match your clothes. It's like having a super-smart friend helping you shop, isn't that cool?

Glossary

RexBERT

A BERT-style encoder designed specifically for e-commerce semantics, trained using the Ecom-niverse corpus.

In the paper, RexBERT is used to enhance NLP capabilities in the e-commerce domain.

Ecom-niverse

A 350 billion token e-commerce-related corpus used to train RexBERT.

As the training data source for RexBERT, Ecom-niverse ensures domain specificity.

Three-phase training

RexBERT's training strategy, including general pre-training, context extension, and domain specialization.

Through three-phase training, RexBERT excels in the e-commerce domain.

Rotary positional embeddings

A modern positional embedding method for encoders, enhancing long-text processing capabilities.

RexBERT uses rotary positional embeddings to enhance context understanding.

GeGLU activations

An improved activation function that enhances model optimization.

In RexBERT, GeGLU activations are used to improve model performance.

Open Questions Unanswered questions from this research

  • 1 How to optimize RexBERT's performance in multilingual environments?
  • 2 What is RexBERT's applicability in non-e-commerce domains?

Applications

Immediate Applications

E-commerce search optimization

RexBERT can enhance the precision of e-commerce platform searches, helping users quickly find desired products.

Long-term Vision

Cross-domain applications

Explore RexBERT's application in other domains like healthcare and law, enhancing domain-specific NLP capabilities.

Abstract

Encoder-only transformers remain indispensable in retrieval, classification, and ranking systems where latency, stability, and cost are paramount. Most general purpose encoders, however, are trained on generic corpora with limited coverage of specialized domains. We introduce RexBERT, a family of BERT-style encoders designed specifically for e-commerce semantics. We make three contributions. First, we release Ecom-niverse, a 350 billion token corpus curated from diverse retail and shopping sources. We describe a modular pipeline that isolates and extracts e-commerce content from FineFineWeb and other open web resources, and characterize the resulting domain distribution. Second, we present a reproducible pretraining recipe building on ModernBERT's architectural advances. The recipe consists of three phases: general pre-training, context extension, and annealed domain specialization. Third, we train RexBERT models ranging from 17M to 400M parameters and evaluate them on token classification, semantic similarity, and general natural language understanding tasks using e-commerce datasets. Despite having 2-3x fewer parameters, RexBERT outperforms larger general-purpose encoders and matches or surpasses modern long-context models on domain-specific benchmarks. Our results demonstrate that high quality in-domain data combined with a principled training approach provides a stronger foundation for e-commerce applications than indiscriminate scaling alone.

cs.CL cs.AI