RexBERT: 电商专用双向编码器
RexBERT: Context Specialized Bidirectional Encoders for E-commerce
AI总结:
RexBERT通过专为电商设计的编码器,在参数更少的情况下超越通用模型,提升电商领域任务表现。
摘要:
仅编码器的Transformer在检索、分类和排序系统中仍然不可或缺,尤其是在延迟、稳定性和成本至关重要的情况下。然而,大多数通用编码器都是在通用语料库上进行训练,其对专用领域的覆盖有限。我们介绍了RexBERT,一种专为电商语义设计的BERT风格编码器。我们做出了三个贡献。首先,我们发布了Ecom-niverse,一个从多样化的零售和购物来源中精心挑选出的3500亿词语料库。我们描述了一个模块化的流水线,该流水线能够从FineFineWeb和其他开放网络资源中隔离并提取电商内容,并表征由此产生的领域分布。第二,我们提出了一种可复现的预训练配方,基于ModernBERT的架构进步。该配方包括三个阶段:通用预训练、上下文扩展和退火领域专业化。第三,我们训练了从1700万到40亿参数的RexBERT模型,并在使用电商数据集的标记分类、语义相似性和一般自然语言理解任务上进行了评估。尽管参数数量比2-3倍少,RexBERT在更大的通用编码器上表现更优,并在领域特定基准上与现代长上下文模型匹配或超过。我们的结果表明,高质量的领域内数据结合有原则的训练方法,比盲目扩展更能为电商应用提供更稳固的基础。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。