Abstract
LLM-jp is a collaborative initiative involving over 1,500 researchers aimed at developing fully open-source Japanese Large Language Models (LLMs). This project addresses the "black box" nature of proprietary models and the under-representation of Japanese language and culture in global AI development. By releasing two iterations of 13B-parameter models (v1.0 and v2.0), along with their training corpora, tokenizers, and safety benchmarks, LLM-jp provides a transparent foundation for Japanese NLP research. This paper details the architectural shifts, data curation strategies, and performance gains achieved through this massive cross-organizational effort.
Introduction
The rapid advancement of Large Language Models (LLMs) has been dominated by proprietary, "black-box" systems like GPT-4. For the Japanese research community, this presents significant challenges: architectural opacity, linguistic under-representation (Japanese tokens often comprise less than 0.1% of global datasets), and risks to economic security and cultural sovereignty.
LLM-jp was founded in May 2023 as a "Big Science" initiative to reclaim linguistic sovereignty. By mobilizing a massive cross-organizational volunteer force, the project aims to build high-quality Japanese models from the ground up with total transparency, providing the community with everything from raw training corpora to fine-tuning recipes.
Methodology
The project evolved through two major iterations, transitioning from a foundational learning phase to a performance-optimized stage.
Architectural Evolution
The initial model suite (v1.0) utilized a GPT-2 architecture to establish a stable baseline. For v2.0, the team adopted the Llama-2 architecture, enhancing performance and ensuring compatibility with the broader open-source ecosystem. This shift was accompanied by improvements in the computational environment and pre-training tools.
Tokenization and Training
A custom SentencePiece tokenizer was developed to address the lack of spaces in Japanese text. By incorporating the MeCab morphological analyzer for pre-tokenization, the model avoids learning "meaningless" tokens that cross word boundaries. Training was conducted on the mdx cloud platform and ABCI supercomputer, moving from Megatron-DeepSpeed to Megatron-LM for pre-training and eventually incorporating Direct Preference Optimization (DPO) for human alignment.
Data Curation and Benchmarking
The project involved a massive data curation effort, resulting in two distinct corpora:
- v1.0 Corpus: 270B tokens (130B Japanese, 130B English, 10B code) sourced from Wikipedia, mC4, the Pile, and Stack.
- v2.0 Corpus: A refined Japanese token set extracted from Common Crawl (2013–2023), totaling approximately 285.5B tokens.
To ensure safety and cultural relevance, the team developed new benchmarks:
- jaster: A collection of Japanese NLP tasks in instruction format.
- AnswerCarefully (AC): A safety dataset (945 samples) tailored to Japanese cultural contexts.
- JBBQ: A Japanese adaptation of the Bias Benchmark for QA, replacing US-centric categories with local social contexts.
Key Results and Insights
The transition to v2.0 yielded substantial performance gains. On the Japanese Vicuna QA benchmark, v2.0 models achieved an "Adjusted Win Rate" of 68-71% against GPT-3.5, compared to only 7-28% for v1.0. Despite the heavy Japanese focus, a 50/50 Japanese-English training split allowed the models to remain competitive on English benchmarks.
Crucially, the project demonstrated that "safety" is culturally dependent. Safety-tuning with the AnswerCarefully dataset tripled the "Acceptable Response Rate" without significantly degrading model helpfulness, a trade-off often observed in other LLMs.
Conclusion and Future Work
LLM-jp proves that a volunteer-driven, transparent approach can produce competitive LLMs. While the 13B models are a significant milestone, the project is currently scaling up to a 175B-parameter model. Future efforts will focus on reducing violation rates—which remain at 47.5%—and incorporating high-quality "closed" data sources like scientific papers and medical records to further enhance model depth and reliability.
Summary updated