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

基于合成句子生成的对比学习实现日语句子嵌入的领域自适应

Domain Adaptation for Japanese Sentence Embeddings with Contrastive Learning based on Synthetic Sentence Generation

Doshisha University(同志社大学);Kindai University(近畿大学)

Zihao Chen, Hisashi Handa, Miho Ohsaki, Kimiaki Shirahama

AI总结:

本文提出 SDJC 方法,通过生成与目标领域句子句法相同但语义不同的合成句子来增强对比学习,实现日语句子嵌入的领域自适应,并构建了日语 STS 基准数据集,实验验证了其有效性。

摘要:

多个在通用领域数据集上预训练的骨干模型能够将句子编码为广泛有用的嵌入。此类句子嵌入可以通过领域自适应进一步增强,即让骨干模型适应特定领域。然而,对于日语这类低资源语言,由于缺乏大规模标注数据集,领域自适应往往十分困难。为克服这一问题,本文提出了 SDJC(Self-supervised Domain adaptation for Japanese sentence embeddings with Contrastive learning,基于对比学习的自监督日语句子嵌入领域自适应方法),该方法利用数据生成器生成句子,这些句子与未标注特定领域语料库中的句子具有相同的句法结构,但表达不同的语义含义。随后,生成的句子被用于增强对比学习,使骨干模型能够准确判别特定领域中的句子。此外,SDJC 的组成部分(如骨干模型及其自适应方法)需要谨慎选择,但目前尚无适用于日语的基准数据集。因此,本文通过将机器翻译自英文的数据集与现有数据集相结合,构建了一个综合性的日语 STS(Semantic Textual Similarity,语义文本相似度)基准数据集。实验结果验证了 SDJC 在两个领域特定下游任务上的有效性,以及所构建数据集的实用性。由 SDJC 自适应的数据集、代码和骨干模型可在我们的 GitHub 仓库 https://github.com/ccilab-doshisha/SDJC 获取。

英文摘要:

Several backbone models pre-trained on general domain datasets can encode a sentence into a widely useful embedding. Such sentence embeddings can be further enhanced by domain adaptation that adapts a backbone model to a specific domain. However, domain adaptation for low-resource languages like Japanese is often difficult due to the scarcity of large-scale labeled datasets. To overcome this, this paper introduces SDJC (Self-supervised Domain adaptation for Japanese sentence embeddings with Contrastive learning) that utilizes a data generator to generate sentences, which have the same syntactic structure to a sentence in an unlabeled specific domain corpus but convey different semantic meanings. Generated sentences are then used to boost contrastive learning that adapts a backbone model to accurately discriminate sentences in the specific domain. In addition, the components of SDJC like a backbone model and a method to adapt it need to be carefully selected, but no benchmark dataset is available for Japanese. Thus, a comprehensive Japanese STS (Semantic Textual Similarity) benchmark dataset is constructed by combining datasets machine-translated from English with existing datasets. The experimental results validates the effectiveness of SDJC on two domain-specific downstream tasks as well as the usefulness of the constructed dataset. Datasets, codes and backbone models adapted by SDJC are available on our github repository https://github.com/ccilab-doshisha/SDJC.

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

↑