DeBERTinha:一种将DebertaV3 XSmall适配到巴西葡萄牙语自然语言处理任务的多步骤方法
DeBERTinha: A Multistep Approach to Adapt DebertaV3 XSmall for Brazilian Portuguese Natural Language Processing Task
AI总结:
本文提出多步骤方法将DebertaV3 XSmall适配为巴西葡萄牙语模型DeBERTinha,通过葡语词汇构建和替换词元检测微调,在多项NLP任务中以40M参数超越BERTimbau-Large。
摘要:
本文提出了一种将预训练于英语的DebertaV3 XSmall模型适配到巴西葡萄牙语自然语言处理(NLP)任务的方法。该方法的一个关键方面是采用多步骤训练过程,以确保模型能够有效地针对葡萄牙语进行调优。来自Carolina和BrWac的初始数据集经过预处理,以解决表情符号、HTML标签和编码等问题。使用SentencePiece创建了一个包含50,000个词元的葡萄牙语专用词汇表。考虑到从头训练的高昂成本,该方法并非从头训练,而是利用预训练英语模型的权重来初始化网络的大部分参数,并使用随机嵌入。模型采用与DebertaV3训练相同格式的替换词元检测任务进行微调。适配后的模型称为DeBERTinha,在命名实体识别、情感分析和句子相关性判断等下游任务上展现了有效性,尽管仅有40M参数,仍在两项任务中超越了BERTimbau-Large。
英文摘要:
This paper presents an approach for adapting the DebertaV3 XSmall model pre-trained in English for Brazilian Portuguese natural language processing (NLP) tasks. A key aspect of the methodology involves a multistep training process to ensure the model is effectively tuned for the Portuguese language. Initial datasets from Carolina and BrWac are preprocessed to address issues like emojis, HTML tags, and encodings. A Portuguese-specific vocabulary of 50,000 tokens is created using SentencePiece. Rather than training from scratch, the weights of the pre-trained English model are used to initialize most of the network, with random embeddings, recognizing the expensive cost of training from scratch. The model is fine-tuned using the replaced token detection task in the same format of DebertaV3 training. The adapted model, called DeBERTinha, demonstrates effectiveness on downstream tasks like named entity recognition, sentiment analysis, and determining sentence relatedness, outperforming BERTimbau-Large in two tasks despite having only 40M parameters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。