PortBERT:探索葡萄牙语语言模型的深度
PortBERT: Navigating the Depths of Portuguese Language Models
AI总结:
本文提出PortBERT,一种基于RoBERTa的葡萄牙语语言模型家族,通过字节级BPE分词和稳定预训练在超过450GB数据上训练,在ExtraGLUE基准上达到竞争性能,并重点分析了训练和推理效率。
摘要:
Transformer模型主导现代自然语言处理,但高效的语言特定模型仍然稀缺。在葡萄牙语中,大多数工作侧重于规模或准确性,往往忽略了训练和部署效率。在本文中,我们介绍了PortBERT,一个基于RoBERTa的葡萄牙语语言模型家族,旨在平衡性能和效率。使用fairseq在来自CulturaX的超过450GB去重和过滤的mC4和OSCAR23数据上从头训练,PortBERT利用字节级BPE分词以及在GPU和TPU处理器上的稳定预训练流程。我们发布了两个变体,PortBERT base和PortBERT large,并在ExtraGLUE(一组翻译的GLUE和SuperGLUE任务)上评估它们。两个模型都表现出竞争力,匹配或超越现有的单语和多语言模型。除了准确性,我们还报告了训练和推理时间以及微调吞吐量,提供了模型效率的实用见解。因此,PortBERT通过解决葡萄牙语NLP中计算-性能权衡这一未被充分探索的维度,补充了先前的工作。我们在Huggingface上发布所有模型,并提供fairseq检查点以支持进一步的研究和应用。
英文摘要:
Transformer models dominate modern NLP, but efficient, language-specific models remain scarce. In Portuguese, most focus on scale or accuracy, often neglecting training and deployment efficiency. In the present work, we introduce PortBERT, a family of RoBERTa-based language models for Portuguese, designed to balance performance and efficiency. Trained from scratch on over 450 GB of deduplicated and filtered mC4 and OSCAR23 from CulturaX using fairseq, PortBERT leverages byte-level BPE tokenization and stable pre-training routines across both GPU and TPU processors. We release two variants, PortBERT base and PortBERT large, and evaluate them on ExtraGLUE, a suite of translated GLUE and SuperGLUE tasks. Both models perform competitively, matching or surpassing existing monolingual and multilingual models. Beyond accuracy, we report training and inference times as well as fine-tuning throughput, providing practical insights into model efficiency. PortBERT thus complements prior work by addressing the underexplored dimension of compute-performance tradeoffs in Portuguese NLP. We release all models on Huggingface and provide fairseq checkpoints to support further research and applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。