Skip to main content
QUICK REVIEW

[Paper Review] llm-japanese-dataset v0: Construction of Japanese Chat Dataset for Large Language Models and its Methodology

Masanori Hirano, Masahiro Suzuki|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper introduces the llm-japanese-dataset v0, a 8.4-million-sample Japanese chat dataset designed to fine-tune English-pretrained large language models (LLMs) for improved performance in Japanese. The dataset includes diverse tasks like translation and knowledge benchmarks, and the study demonstrates via LoRA fine-tuning on LLaMA-13B that the dataset enables measurable qualitative improvements in response fluency, factual accuracy, and task-specific coherence, particularly in multilingual instruction following.

ABSTRACT

This study constructed a Japanese chat dataset for tuning large language models (LLMs), which consist of about 8.4 million records. Recently, LLMs have been developed and gaining popularity. However, high-performing LLMs are usually mainly for English. There are two ways to support languages other than English by those LLMs: constructing LLMs from scratch or tuning existing models. However, in both ways, datasets are necessary parts. In this study, we focused on supporting Japanese in those LLMs and making a dataset for training or tuning LLMs in Japanese. The dataset we constructed consisted of various tasks, such as translation and knowledge tasks. In our experiment, we tuned an existing LLM using our dataset and evaluated the performance qualitatively. The results suggest that our dataset is possibly beneficial for LLMs. However, we also revealed some difficulties in constructing LLMs in languages other than English.

Motivation & Objective

  • To address the lack of high-quality, diverse Japanese-language datasets for fine-tuning English-based LLMs.
  • To improve the multilingual capabilities of existing English-focused LLMs, particularly for Japanese language understanding and generation.
  • To evaluate the effectiveness of a curated Japanese dataset in enhancing LLM performance through low-rank adaptation (LoRA).
  • To lower the barrier for researchers and developers to adapt state-of-the-art LLMs to Japanese by providing a publicly available, open-source dataset and fine-tuned model.

Proposed method

  • Constructed a 8.39 million-sample Japanese chat dataset using multiple parallel corpora, including Coursera lectures, Nature Communications abstracts, and bilingual sentence pairs.
  • Organized data into instruction-following format: ### Instruction: ..., ### Input: ..., ### Response: ..., to align with standard LLM fine-tuning paradigms.
  • Focused on multilingual transfer by including bidirectional translation tasks (Japanese-English and English-Japanese) to link English knowledge with Japanese output.
  • Applied LoRA (Low-Rank Adaptation) to fine-tune the LLaMA-13B model using the dataset, updating only a small subset of parameters to reduce computational cost.
  • Used PEFT and DeepSpeed ZeRO-2 for efficient training, with hyperparameters: 3e-4 initial LR, 256 context length, 130 batch size, 1 epoch, r=4, α=16 for LoRA.
  • Evaluated performance qualitatively by comparing model responses to zero-shot LLaMA and LoRA-fine-tuned LLaMA on diverse Japanese prompts.

Experimental results

Research questions

  • RQ1Can a curated, multilingual Japanese dataset improve the performance of English-pretrained LLMs in Japanese instruction following and generation tasks?
  • RQ2To what extent does LoRA fine-tuning on this dataset enhance response fluency, factual accuracy, and coherence in Japanese?
  • RQ3How does the performance of a fine-tuned LLaMA model compare to the original model on zero-shot Japanese prompts?
  • RQ4What are the key challenges in adapting high-performing English LLMs to low-resource languages like Japanese?
  • RQ5Can open-sourcing a high-quality, diverse Japanese dataset accelerate multilingual LLM development and reduce barriers to entry?

Key findings

  • The LoRA-fine-tuned LLaMA-13B model showed qualitative improvements over the original LLaMA model in response relevance and coherence on Japanese instruction-following tasks.
  • Responses to factual questions like 'Where is the University of Tokyo located?' became more accurate and concise after fine-tuning, though minor factual errors (e.g., incorrect address) persisted.
  • The model demonstrated better handling of common-sense reasoning and practical instructions, such as 'What should I do when a phone rings?', with more appropriate and concise outputs after fine-tuning.
  • Translation tasks showed that the model could generate correct and natural-sounding translations in both directions, indicating effective knowledge transfer from English to Japanese.
  • The qualitative evaluation revealed that while improvements were observable, especially in response structure and relevance, the model still struggled with complex or ambiguous prompts, suggesting room for further tuning and better evaluation benchmarks.
  • The study confirmed that dataset quality and task diversity are critical for effective multilingual adaptation, and that LoRA is a viable, efficient method for fine-tuning LLMs in low-resource languages.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.