PLaMo-100B: A Ground-Up Language Model Designed for Japanese Proficiency

Kenshin Abe, Kaizaburo Chubachi, Yasuhiro Fujita, Yuta Hirokawa, Kentaro Imajo, Toshiki Kataoka, Hiroyoshi Komatsu, Hiroaki Mikami, Tsuguo Mogami, Shogo Murai, Kosuke Nakago, Daisuke Nishino, Toru Ogawa, Daisuke Okanohara, Yoshihiko Ozaki, Shotaro Sano, Shuji Suzuki, Tianqi Xu, Toshihiko YanasearXiv 2024 · DOI

Abstract

Preferred Elements (Preferred Networks) presents PLaMo-100B, a 100-billion parameter large language model (LLM) engineered specifically for high-level Japanese linguistic and cultural proficiency. Unlike many existing models that are fine-tuned from English-centric bases, PLaMo-100B was trained from scratch on a 2-trillion-token dataset. To ensure training stability at this scale, the researchers implemented QK Normalization and Z-Loss regularization. Furthermore, a sophisticated post-training pipeline—incorporating multi-stage Supervised Fine-Tuning (SFT), iterative Direct Preference Optimization (DPO), and model merging—was employed to align the model with human preferences. PLaMo-100B achieves state-of-the-art results on Japanese benchmarks, outperforming GPT-4 in specific domestic contexts.

Introduction

The rapid advancement of Large Language Models has primarily been driven by English-centric datasets and architectures. While these models often exhibit impressive multilingual capabilities, they frequently struggle with the deep cultural nuances and linguistic structures of Japanese, often producing text that feels like a direct translation. Building a high-performing Japanese model from the ground up presents significant challenges, notably the scarcity of high-quality Japanese text at the scale required for 100B+ parameter models and the inherent numerical instability of large-scale training runs on modern hardware like NVIDIA H100s.

PLaMo-100B addresses these issues through a combination of massive-scale data curation, proactive architectural safeguards, and a refined alignment process.

Methodology

Architectural Stability and Precision Engineering

To mitigate the risk of "loss spikes" and numerical explosions during the 2-trillion-token training run, PLaMo-100B utilizes a decoder-only Transformer architecture with several stability enhancements. These include QK Normalization, which applies RMSNorm to Query and Key tensors prior to the dot product, and Z-Loss regularization to stabilize the softmax function.

A key finding during development involved the use of FP8 precision. While FP8 significantly accelerates training on H100 GPUs, the researchers discovered that applying it to the final lm-head layer led to instability. By switching the lm-head to bfloat16, they successfully stabilized the model's "z-loss," preventing the divergence observed in pure FP8 configurations.

Figure 1: Comparison of z-loss stability between FP8 and BFP16 for the output head.

Post-Training and Alignment

The transition from a base model to an instruction-following assistant involved a multi-stage pipeline designed to minimize task interference. The researchers first conducted a two-stage Supervised Fine-Tuning (SFT) process, prioritizing technical tasks (mathematics and coding) before introducing general conversational data. This curriculum-based approach prevented the performance degradation often seen when mixing disparate tasks in a single pass.

Following SFT, the model underwent iterative Direct Preference Optimization (DPO). This process utilized a combination of on-policy data (generated by the model itself) and Self-Play Fine-Tuning (SPIN). Finally, different model checkpoints were blended using Spherical Linear Interpolation (SLERP) to create a robust final version that captures the strengths of various training iterations.

Figure 2: The iterative post-training pipeline used to develop PLaMo-100B-Instruct.

Datasets and Training

PLaMo-100B was pre-trained on a total of 2 trillion tokens, consisting of 1.3 trillion English tokens and 0.7 trillion Japanese tokens. To ensure the highest quality for the Japanese subset, the team processed raw WARC files from CommonCrawl directly, rather than relying on pre-extracted text files. This allowed for better preservation of document structure and resulted in a cleaner 460-billion-token Japanese corpus.

To supplement the instruction-tuning phase, synthetic data was generated by using PLaMo-100B to translate high-quality English datasets and by employing smaller PLaMo-13B models to create Japanese question-answer pairs.

Results

The model's performance was evaluated across several rigorous benchmarks:

  • Jaster: On this suite of Japanese NLP tasks, PLaMo-100B-Instruct achieved a 0-shot score of 0.738, surpassing GPT-4-0125-Preview (0.722).
  • Rakuda Benchmark: In evaluations focusing on Japanese culture, history, and geography, the model scored 9.73/10, again outperforming GPT-4 (9.55). In head-to-head battles, PLaMo-100B secured 42 wins against GPT-4's 36.
  • Training Efficiency: The training run achieved a throughput of 540 TFLOP/s/GPU, representing approximately 27% of the theoretical peak for H100 FP8, demonstrating the efficiency of the custom training framework.

Conclusion and Future Work

PLaMo-100B represents a significant milestone for Japanese-centric AI, demonstrating that ground-up development with targeted stability measures can produce results competitive with the world's leading general-purpose models. While the model currently lags behind GPT-4 in complex mathematical reasoning and coding, it sets a new standard for Japanese linguistic proficiency. Future iterations will focus on multimodal capabilities, including the integration of image and audio processing to further enhance its utility in diverse Japanese contexts.

Base model available at: https://huggingface.co/pfnet/plamo-100b

Summary updated

BibTeX
@misc{abe2024plamo,
  author = {Kenshin Abe and Kaizaburo Chubachi and Yasuhiro Fujita and Yuta Hirokawa and Kentaro Imajo and Toshiki Kataoka and Hiroyoshi Komatsu and Hiroaki Mikami and Tsuguo Mogami and Shogo Murai and Kosuke Nakago and Daisuke Nishino and Toru Ogawa and Daisuke Okanohara and Yoshihiko Ozaki and Shotaro Sano and Shuji Suzuki and Tianqi Xu and Toshihiko Yanase},
  title = {{PLaMo-100B: A Ground-Up Language Model Designed for Japanese Proficiency}},
  year = {2024},
  eprint = {2410.07563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.07563},
}
Figure