arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.13130cs.CL
收藏

ELECTRA的句嵌入是否无可救药?以语义文本相似度为例

Are ELECTRA's Sentence Embeddings Beyond Repair? The Case of Semantic Textual Similarity

University of Zagreb(萨格勒布大学);Faculty of Electrical Engineering and Computing(电气工程与计算机学院);TakeLab

Ivan Rep, David Dukić, Jan Šnajder

AI总结:

针对ELECTRA句嵌入质量差、学界已默认不将其用于语义文本相似度任务的问题,本文提出截断模型微调(TMFT)方法修复嵌入,显著提升了STS基准性能,还发现ELECTRA生成器模型效果堪比BERT且参数效率更高。

摘要:

尽管BERT能生成高质量的句嵌入,但其预训练的计算成本是一大显著缺陷。相比之下,ELECTRA具备高性价比的预训练目标且下游任务表现更优,但句嵌入质量较差。学界已默认不再将ELECTRA的句嵌入用于语义文本相似度(STS)任务。我们注意到,与前几层相比,ELECTRA判别器的最后一层性能出现显著下降。我们探究了这一下降现象,并提出一种名为截断模型微调(TMFT)的新方法来修复嵌入。在STS基准测试中,TMFT将斯皮尔曼相关系数提升了8个点以上,同时提高了参数效率。我们将分析拓展到了不同模型规模、不同语言以及另外两项任务中。此外,我们还意外发现ELECTRA的生成器模型效果出色,其性能与BERT相当,但参数量少得多,嵌入维度也显著更小。最后,我们观察到将TMFT与词语相似度或领域自适应预训练相结合可进一步提升效果。

英文摘要:

While BERT produces high-quality sentence embeddings, its pre-training computational cost is a significant drawback. In contrast, ELECTRA provides a cost-effective pre-training objective and downstream task performance improvements, but worse sentence embeddings. The community tacitly stopped utilizing ELECTRA's sentence embeddings for semantic textual similarity (STS). We notice a significant drop in performance for the ELECTRA discriminator's last layer in comparison to prior layers. We explore this drop and propose a way to repair the embeddings using a novel truncated model fine-tuning (TMFT) method. TMFT improves the Spearman correlation coefficient by over $8$ points while increasing parameter efficiency on the STS Benchmark. We extend our analysis to various model sizes, languages, and two other tasks. Further, we discover the surprising efficacy of ELECTRA's generator model, which performs on par with BERT, using significantly fewer parameters and a substantially smaller embedding size. Finally, we observe boosts by combining TMFT with word similarity or domain adaptive pre-training.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑