RexBERT: Domain Adapted Encoders for Product Understanding and Relevance Ranking in E-commerce
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.