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

Zihao Chen, Hisashi Handa, Miho Ohsaki, Kimiaki Shirahama
3/12/2025
3 citations
cs.CL
contrastive-ssl

Official code: ccilab-doshisha/SDJC (1 star, Python, MIT, last commit 2026-03-05).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

The GitHub repository of our paper SDJC.

10Python, Jupyter NotebookFeb 25, 20259 months agoMIT

Similar Papers

Cite this paper

@article{chen2025domain,
  title  = {Domain Adaptation for Japanese Sentence Embeddings with Contrastive Learning based on Synthetic Sentence Generation},
  author = {Zihao Chen and Hisashi Handa and Miho Ohsaki and Kimiaki Shirahama},
  year   = {2025},
  eprint = {2503.09094},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.09094v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.09094.svg)](https://codeofpaper.com/paper/2503.09094)

Discussion