mLUKE(多语言LUKE)是LUKE的多语言扩展。
请查看此处的 official repository 获取更多详情和更新。
这是mLUKE的基础模型,包含12个隐藏层,768个隐藏单元。该模型的总参数数为5.85亿(词嵌入和编码器为2.78亿,实体嵌入为3.07亿)。模型的初始化权重是从XLM-RoBERTa(基础版)中获取,并使用2020年12月版本的包含24种语言的维基百科进行训练。
当您使用AutoModel.from_pretrained从默认配置加载模型时,您将看到以下警告:
Some weights of the model checkpoint at studio-ousia/mluke-base-lite were not used when initializing LukeModel: [ 'luke.encoder.layer.0.attention.self.w2e_query.weight', 'luke.encoder.layer.0.attention.self.w2e_query.bias', 'luke.encoder.layer.0.attention.self.e2w_query.weight', 'luke.encoder.layer.0.attention.self.e2w_query.bias', 'luke.encoder.layer.0.attention.self.e2e_query.weight', 'luke.encoder.layer.0.attention.self.e2e_query.bias', ...]
这些权重是针对实体感知注意力的权重(如 the LUKE paper 所述)。这是预期的,因为默认情况下use_entity_aware_attention设置为false,但是预训练权重包含这方面的权重,以防您启用use_entity_aware_attention并将权重加载到模型中。
如果您发现mLUKE对您的工作有用,请引用以下论文:
@inproceedings{ri-etal-2022-mluke,
title = "m{LUKE}: {T}he Power of Entity Representations in Multilingual Pretrained Language Models",
author = "Ri, Ryokan and
Yamada, Ikuya and
Tsuruoka, Yoshimasa",
booktitle = "Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
year = "2022",
url = "https://aclanthology.org/2022.acl-long.505",