Japan's NII Releases LLM-jp-4 to Beat GPT-4o on Japanese Benchmarks
Japan's National Institute of Informatics releases an 8B dense and 32B MoE model trained from scratch on 12T tokens, with the full pipeline open to inspection.
Takeaways
- NII released LLM-jp-4, an 8B dense and 32B-A3B MoE model trained from scratch on ~12T tokens.
- 32B-A3B scored 7.82 on Japanese MT-Bench, beating GPT-4o's 7.29 under a GPT-5.4 judge.
- MoE uses 128 experts with 8 active per token, giving 3.8B active parameters out of 32.1B total.
- Both models support 65,536-token context and ship under Apache 2.0 for commercial use.
- Full training scripts, corpus composition, and selection criteria are published for reproducibility.
- Three-stage pipeline: pre-training, mid-training with QA and context extension, SFT+DPO for thinking mode.
Japan’s National Institute of Informatics (NII) has released LLM-jp-4, a family of Japanese large language models designed for transparent, reproducible deployment. It includes an 8-billion-parameter dense model and a mixture-of-experts model with 32.1 billion total parameters and 3.8 billion active per token. The paper describes roughly 11.7 trillion training tokens for each model.
The authors report a Japanese MT-Bench score of 7.82 for the 32B-A3B model, using GPT-5.4 as the automated evaluator. Their results place it above GPT-4o on that evaluation. The release gives organizations handling Japanese data an Apache-licensed option whose weights, training process, and infrastructure are governed domestically.
From-scratch weights, auditable inputs
Fine-tuning Llama, Qwen, Mistral, or another existing model carries forward its base weights, license, and partially documented training history. LLM-jp-4 removes that dependency by training new weights from an assembled corpus while retaining established architectural ideas.
The dense model uses a Llama-style architecture, while the sparse model adopts the Qwen3MoE design. Neither model is a fine-tune or distillation of existing base weights.
NII documents its criteria for selecting data, external models, and software. It also publishes pretraining code, including scripts for the 8B model and the MoE model.
The weights use the Apache 2.0 license, which permits commercial use, redistribution, and modification subject to its terms. Dataset licenses, privacy obligations, output risks, and local regulations still require separate review before production deployment.
A three-stage route to 64K
Both models pass through pretraining, mid-training, and post-training, with each stage changing the data mix or model behavior.
- Pretraining: The first phase builds general language capability. The second increases the share of mathematics and source code.
- Mid-training: A question-answering corpus enters the mixture, and the supported context length expands from 4,096 to 65,536 tokens.
- Post-training: Supervised fine-tuning teaches response formats from worked examples. Direct preference optimization then trains the model to favor selected responses over rejected alternatives.
Post-training also produces a reasoning mode in which the models generate intermediate reasoning tokens before the final answer. Those extra tokens can improve some multistep tasks, but they increase latency and inference cost.
Dense and sparse designs diverge
| Specification | 8B dense | 32B-A3B MoE |
|---|---|---|
| Architecture | Llama-style dense transformer | Qwen3MoE-style sparse transformer |
| Parameters | About 8B total and active | 32.1B total, 3.8B active per token |
| Layers | 32 | 32 |
| Hidden size | 4,096 | 2,560 |
| Attention heads | 32 query heads, 8 key-value heads | 40 query heads, 4 key-value heads |
| Experts | None | 128 total, 8 active per token |
| Attention details | Grouped-query attention | Grouped-query attention with QK normalization |
| Vocabulary | 196,608 tokens | Not specified in the supplied summary |
| Maximum context | 65,536 tokens | 65,536 tokens |
Grouped-query attention lets several query heads share key and value heads, reducing memory use during inference. QK normalization stabilizes the attention calculation by normalizing query and key vectors.
Activating 8 of 128 experts for each token keeps per-token computation near 3.8 billion parameters. All 32.1 billion parameters must remain accessible in memory, so storage requirements follow the total parameter count rather than the active count. The A3B label rounds the paper’s reported 3.8-billion active-parameter figure.
NII uses fewer experts and layers than Qwen3.5-35B-A3B, which has 256 experts and 40 layers. The smaller routing structure reduces expert-selection and communication overhead when the inference engine implements sparse execution efficiently.
The 7.82 score in context
Japanese MT-Bench evaluates multi-turn responses with another language model acting as the judge. In the reported run, GPT-5.4 assigned the following scores:
| Model | Japanese MT-Bench | English MT-Bench |
|---|---|---|
| LLM-jp-4 8B | 7.54 | 7.79 |
| LLM-jp-4 32B-A3B | 7.82 | 7.86 |
The paper reports that the 32B-A3B model ranks above GPT-4o on the Japanese evaluation. Evaluator choice, prompt formatting, decoding settings, and benchmark version can all change model-as-judge scores, so production decisions require tests on representative prompts and failure cases.
The separate llm-jp-eval version 2.1.3 suite covers Japanese tasks, English tasks, and a more difficult reasoning-and-knowledge subset. NII also plans to add results for a 33B dense variant in a later paper revision.
Memory sets the deployment floor
Mixture-of-experts inference reduces arithmetic per token, but it still requires access to the complete expert pool. Approximate weight-only memory requirements illustrate the difference:
| Model | Bfloat16 weights | 4-bit weights | Likely deployment |
|---|---|---|---|
| 8B dense | About 16GB | About 4GB | A 24GB GPU provides room for runtime overhead and cache at moderate context lengths. |
| 32B-A3B MoE | About 64GB | About 16GB | Bfloat16 generally calls for an 80GB accelerator or multiple GPUs. A 24GB device may support 4-bit weights with a constrained cache and batch size. |
These estimates exclude the key-value cache, temporary tensors, framework overhead, and quantization metadata. Long prompts and concurrent requests can add substantial memory use, especially near the 65,536-token context limit.
Serving performance also depends on the runtime’s support for expert routing. Engines that move expert weights frequently between host and accelerator memory can erase much of the expected throughput advantage.
Where each model fits
| Model | Suitable workloads | Main constraints |
|---|---|---|
| 8B dense | Single-GPU serving, local inference, extraction, classification, summarization, and latency-sensitive applications | Lower benchmark scores and less capacity for difficult multistep tasks |
| 32B-A3B MoE | Japanese document analysis, meeting-minutes search, retrieval-assisted legal workflows, and bilingual Japanese-English assistants | High weight memory, routing requirements, and additional latency from reasoning output |
LLM-jp-4 targets Japanese and bilingual performance. Teams focused on English-only workloads or advanced coding should compare it with specialist models on their own test sets.
High-stakes document and legal applications require retrieval, citations, access controls, and human verification around the model. Benchmark scores do not establish factual accuracy for a particular organization’s documents.
Classification and extraction workloads may gain little from long reasoning traces. Deployment tests should measure whether reasoning mode improves the target metric enough to justify the added tokens and latency.
A training recipe others can inspect
Public weights, scripts, corpus documentation, architectural choices, and ablations make LLM-jp-4 useful as a reference for teams building language-specific or domain-specific models. Researchers can inspect how NII changes data composition, context length, dense computation, and sparse routing across a large training run.
Exact replication still requires comparable data access, large-scale compute, distributed-training expertise, and matching software versions. The published materials nevertheless expose more of those requirements than a weights-only release, giving developers a concrete starting point for auditing or adapting the approach.