{"slug": "show-hn-climblab-ja-and-climbmix-ja-japanese-llm-pretraining-datasets", "title": "Show HN: ClimbLab-Ja and ClimbMix-Ja: Japanese LLM Pretraining Datasets", "summary": "Kanta Hayashi released two Japanese LLM pretraining datasets on Hugging Face: ClimbLab-Ja, a filtered, 6-axis-scored corpus of about 361B tokens, and ClimbMix-Ja, a mixture-optimized subset of about 115B tokens. ClimbLab-Ja is included in the pretraining corpus of Marin \"Mochi\" 535B-A23B, an open MoE model under development by the Stanford-originated Marin (Open Athena) project, and in continued pretraining of google/gemma-3-270m ClimbMix-Ja reached the source LLM-jp data's ~10B-token baseline BPB at ~3.07B tokens, roughly 3.3x token efficiency, across three held-out domains. ClimbMix-Ja also beat both ClimbLab-Ja and the source LLM-jp data on a 6-benchmark Japanese multiple-choice average across pretraining from scratch with karpathy/nanochat and continued pretraining with Qwen/Qwen3.5-0.8B-Base and google/gemma-3-270m.", "body_md": "I have released two Japanese LLM pretraining datasets on Hugging Face: **ClimbLab-Ja (~361B tokens)**, a filtered and 6-axis-scored corpus, and **ClimbMix-Ja (~115B tokens)**, a mixture-optimized subset derived through empirical proxy sweeps.\n\n- **ClimbLab-Ja:**[huggingface.co/datasets/KantaHayashiAI/ClimbLab-Ja](https://huggingface.co/datasets/KantaHayashiAI/ClimbLab-Ja)\n- **ClimbMix-Ja:**[huggingface.co/datasets/KantaHayashiAI/ClimbMix-Ja](https://huggingface.co/datasets/KantaHayashiAI/ClimbMix-Ja)\n\n### Key takeaways\n\n- **Adopted in a 535B open model:** ClimbLab-Ja is included in the pretraining corpus of**Marin “Mochi” 535B-A23B** , an open MoE model under development by the Stanford-originated Marin (Open Athena) project ([data pipeline blog](https://openathena.ai/blog/marin-data-pipeline-overview/) ).\n- **Over 3× token efficiency on held-out BPB:** In continued pretraining of`google/gemma-3-270m` , ClimbLab-Ja reaches the ~10B-token baseline BPB of the source LLM-jp data at**~3.87B tokens** , and ClimbMix-Ja reaches it at**~3.07B tokens** (~69.3% fewer tokens, or**~3.3×** token efficiency) across three held-out domains (Aozora Bunko, Wiki40B, and Wikinews).\n- **Consistent gains across all three model families:** On a 6-benchmark Japanese multiple-choice average, ClimbMix-Ja outperforms both ClimbLab-Ja and the source LLM-jp data across all three evaluation settings: pretraining from scratch (`karpathy/nanochat` ) and continued pretraining (`Qwen/Qwen3.5-0.8B-Base` ,`google/gemma-3-270m` ). Both ClimbLab-Ja and ClimbMix-Ja also outperform the source LLM-jp data on Japanese generation and En→Ja translation.\n- **When to use which:** Use**ClimbMix-Ja** as a drop-in Japanese foundation corpus up to ~110B tokens. Use**ClimbLab-Ja** if you need larger scale, stronger STEM/technical coverage, or custom domain re-weighting using all 20 clusters and 6 quality/value scores.\n\n## Dataset overview\n\n**ClimbLab-Ja** serves as the foundation corpus for custom filtering and mixture design, while **ClimbMix-Ja** is the ready-to-train, mixture-optimized release.\n\nIn terms of scale, **ClimbLab-Ja** contains ~201M documents across 512 Parquet shards, and **ClimbMix-Ja** contains ~80.9M documents (40.2% of Lab) across 768 Parquet shards. Because ClimbLab-Ja retains both cluster IDs and all six quality/value scores alongside the text, you can easily re-filter or build custom mixtures for your own use case. *(Token counts are measured over the entire `text` column using the `Qwen/Qwen3-0.6B-Base` tokenizer without BOS/EOS tokens, chat templates, or truncation.)*\n\n## Methodology: applying Nemotron-CLIMB to Japanese\n\nThe pipeline follows NVIDIA’s [Nemotron-CLIMB](https://arxiv.org/abs/2504.13161): organize documents into semantic clusters, train small proxy models across many candidate domain mixtures, and fit a predictor to identify high-performing mixtures under a fixed token budget.\n\nAll experiments were run on JCAHPC’s **Miyabi** supercomputer using individually secured compute. ClimbLab-Ja was fully self-funded (largely out of my part-time job savings), and the ClimbMix-Ja search additionally drew on fellowship grant support.\n\n### Step 1: 6-axis scoring and 20-cluster curation (ClimbLab-Ja)\n\nThe starting point is the Japanese portion of [LLM-jp Corpus v4](https://gitlab.llm-jp.nii.ac.jp/datasets/llm-jp-corpus-v4).\n\nA common pitfall of single-axis filtering (such as filtering strictly by an educational score) is collapsing stylistic and topical diversity into textbook-like prose. To avoid this, I distilled annotations from `Qwen3-235B-A22B` into a 6-head `modernbert-ja-130m` classifier that scores each document from 0 to 5 along six axes:\n\n1. **Quality**\n2. **Ad-freeness** (higher = less promotional)\n3. **Informational value**\n4. **Educational value**\n5. **Cultural value**\n6. **Creative value**\n\nDocuments were then processed through: **clustering into 1,000 fine-grained groups → group-level filtering by mean scores → merging into 20 topic clusters → document-level filtering**. Both the group and document filtering stages enforce three criteria:\n\n1. `Quality >= 2`\n2. `Ad-freeness >= 2`\n3. At least one of `{Informational, Educational, Cultural, Creative} >= 3`\n\nThis removes clearly low-quality and ad-heavy pages while retaining diverse documents that are useful along different axes.\n\n### Step 2: 112-mixture proxy sweep and optimization (ClimbMix-Ja)\n\nNext, I searched for an optimal mixture over the 20 clusters.\n\nUsing the Nemotron-CLIMB 350M-class proxy architecture (~376M actual parameters, 32 layers, hidden size 960, Llama 2 SentencePiece tokenizer), I trained **112 distinct mixtures** for **~2.0B tokens each** in three progressive waves (64 → +32 → +16).\n\nTo prevent test-set contamination, the search objective equal-weights four standardized metrics (three **train-split** benchmarks plus one independent generation benchmark built specifically for the search):\n\n- **JCoLA** (train split, AUC)\n- **JCommonsenseQA** (train split,`acc_norm` )\n- **KUCI** (train split,`acc_norm` )\n- **ClimbGen-Ja** (custom generation benchmark for mixture search)\n\nOptimizing solely on multiple-choice knowledge tasks risks selecting mixtures that score well on QA while degrading open-ended text generation. At the same time, optimizing directly on `pfgen-bench` would contaminate downstream evaluation. Inspired by `pfgen-bench`, I built **ClimbGen-Ja** as a completely independent benchmark: it spans diverse prompts, generates reference Japanese outputs using `kimi-k3` and `gemma-4-31B`, and scores model generations via n-gram overlap.\n\nFrom the 112 proxy runs, I trained a TabPFN v2 predictor to map 20-cluster weights to the composite objective and selected the top-scoring mixture out of **100,000 valid candidates** subject to each cluster’s available token capacity. Finally, I excluded evaluation/dev overlaps, ran exact deduplication after text normalization on ClimbLab-Ja, and sampled documents to match the target mixture to produce **ClimbMix-Ja**.\n\n## Optimized 20-cluster mixture\n\nIn **ClimbMix-Ja**, the top five clusters account for **84.85%** of all tokens (up from **30.22%** in ClimbLab-Ja):\n\n- **Pop culture***(anime, manga & games)* : 6.80% → 21.22%\n- **Corporate & finance** : 6.60% → 20.22%\n- **Culture & history** : 5.97% → 15.18%\n- **Hobbies***(hobbies, nature & diaries)* : 6.03% → 14.15%\n- **Psychology***(psychology, family & self-improvement)* : 4.81% → 14.07%\n\nIncluding the 6th-largest cluster (**Domestic travel**, 4.41% → 10.97%), the top six domains make up **95.8%** of ClimbMix-Ja. Conversely, **Engineering** (15.64% → 0.039%), **Government** (11.28% → 0.70%), **Academia** (5.53% → <0.001%), and **Education** (2.90% → <0.001%) were heavily downweighted.\n\nThis shift may look counterintuitive at first glance, but it reflects the search objective: because the objective targets Japanese grammar, commonsense reasoning, and natural text generation, clusters rich in fluent natural Japanese prose were strongly favored. If your target workload relies heavily on technical or academic knowledge, or if you want to design your own domain ratios, start from **ClimbLab-Ja**, which retains all 20 clusters and their 6-axis scores.\n\n## Evaluation across three model families\n\nSeparate from the 350M proxy architecture, I compared **ClimbMix-Ja**, **ClimbLab-Ja**, and the source **LLM-jp** corpus across three distinct model families and training regimes:\n\n- **`karpathy/nanochat` (d24, ~1.38B params):** Pretraining from scratch (~5.84B tokens, 3 seeds each; 24 layers, context 2,048, vocab 32,768)\n- **`Qwen/Qwen3.5-0.8B-Base`:** Continued pretraining (~10B tokens, 1 run each)\n- **`google/gemma-3-270m`:** Continued pretraining (~10B tokens, 3 seeds each)\n\n### Held-out BPB scaling: over 3× token efficiency\n\nI tracked equal-weighted Bits Per Byte (BPB) on a held-out evaluation set of 512 documents each from **Aozora Bunko** (Japanese literature), **Wiki40B**, and **Wikinews**.\n\nOn `google/gemma-3-270m` (3-seed mean), the source LLM-jp corpus reaches a BPB of **1.0476** at ~10B tokens. By linear interpolation, **ClimbLab-Ja** reaches the same level at **~3.87B tokens**, and **ClimbMix-Ja** reaches it at **~3.07B tokens**, a **~69.3% reduction** in tokens (**~3.3×** token efficiency).\n\n### Downstream benchmarks: multiple-choice, generation, and translation\n\nDownstream performance was evaluated on three held-out axes separate from the mixture search:\n\n1. **6-benchmark Japanese MC average (%):** Equal-weighted accuracy across JCommonsenseQA, KUCI, JBLiMP, JMMLU (4 Japan-specific subjects), XWinograd, and JamC-QA.\n2. **Japanese generation (PFGEN):**`pfgen-bench` .\n3. **En→Ja translation (BLEU):** ALT (1,017 sentences).\n\nTwo patterns stand out:\n\n- **Consistent improvement over the source corpus:** Both ClimbLab-Ja and ClimbMix-Ja outperform LLM-jp across every model family and every metric.\n- **Efficiency vs. breadth (Mix vs. Lab):** ClimbMix-Ja wins the 6-task multiple-choice average across all three families, as well as both generation and translation on Qwen and translation on Gemma. However, ClimbLab-Ja slightly edges out ClimbMix-Ja in mean score on Nanochat PFGEN/BLEU and Gemma PFGEN (though differences on PFGEN are small relative to seed variance in some settings). This highlights the trade-off between aggressive mixture concentration and preserving broader domain coverage.\n\n## Full evaluation numbers (mean ± std)\n\n| Model Family (Regime) | Dataset | 6-Task MC Avg (%) | PFGEN | En→Ja BLEU | \n|---|---|---|---|---|\n| **`karpathy/nanochat` (~1.38B)** | LLM-jp | 50.09 ± 0.22 | 37.54 ± 0.69 | 4.26 ± 0.93 | \n| *(From scratch, ~5.84B tokens, 3 seeds)* | ClimbLab-Ja | 51.87 ± 0.34 | **39.99 ± 0.49** | **5.88 ± 0.52** | \n|  | ClimbMix-Ja | **52.57 ± 0.18** | 39.89 ± 0.56 | 4.99 ± 0.62 | \n| **`Qwen/Qwen3.5-0.8B-Base`** | LLM-jp | 55.04 | 38.55 | 17.64 | \n| *(CPT, ~10B tokens, 1 run)* | ClimbLab-Ja | 56.16 | 39.67 | 19.67 | \n|  | ClimbMix-Ja | **56.74** | **40.66** | **20.57** | \n| **`google/gemma-3-270m`** | LLM-jp | 44.80 ± 0.25 | 27.27 ± 0.23 | 6.51 ± 0.13 | \n| *(CPT, ~10B tokens, 3 seeds)* | ClimbLab-Ja | 45.04 ± 0.18 | **28.34 ± 0.57** | 8.19 ± 0.13 | \n|  | ClimbMix-Ja | **45.70 ± 0.47** | 28.27 ± 0.07 | **8.46 ± 1.29** | \n\n## Limitations of filtering and future directions\n\nOne clear takeaway from this project is that **filtering and mixture optimization are effective, but fundamentally bounded**.\n\nAggressive selection raises token efficiency under a fixed compute budget, yet inevitably shrinks total data volume. Documents containing rare facts or niche knowledge are lost permanently if filtered out on surface quality alone. While budget constraints ruled it out here, a promising next step is combining curation with **information-preserving data transformations**: rewriting or restructuring under-utilized text into higher-utility training data without discarding its underlying content.\n\n### Release scope and recipes\n\n- **What is released:** This release covers the datasets (**ClimbLab-Ja** and**ClimbMix-Ja** ) only. If there is interest in the training/evaluation scripts or the 6-axis classifier, I may consider releasing them separately.\n- **Reference implementation:** NVIDIA published an official reproduction recipe while this project was underway; if you want to adapt the pipeline, the cleanest starting point is[NVIDIA NeMo Curator’s Nemotron-CLIMB tutorial](https://github.com/NVIDIA-NeMo/Curator/tree/main/tutorials/text/nemotron-climb-data-curation) .\n\n## Acknowledgments\n\nI am deeply grateful to the **LLM-jp** team for releasing LLM-jp Corpus v4, and to the **NVIDIA** research team behind Nemotron-CLIMB. This work was supported by The Nippon Foundation HUMAI Program. I also thank the developers and open-source communities behind the models, Japanese benchmarks, and tooling used throughout this project.\n\n## Datasets\n\n- **ClimbLab-Ja (~361B tokens):**[KantaHayashiAI/ClimbLab-Ja](https://huggingface.co/datasets/KantaHayashiAI/ClimbLab-Ja)\n- **ClimbMix-Ja (~115B tokens):**[KantaHayashiAI/ClimbMix-Ja](https://huggingface.co/datasets/KantaHayashiAI/ClimbMix-Ja)\n\n## Citation\n\n```\n@misc{hayashi2026climblabmixja,\n  author       = {Hayashi, Kanta},\n  title        = {ClimbLab-Ja and ClimbMix-Ja: Cluster-Based Curation and Mixture Optimization for Japanese LLM Pretraining},\n  year         = {2026},\n  month        = {dec},\n  howpublished = {\\url{https://kantahayashiai.github.io/posts/climblab-ja-and-climbmix-ja/}},\n  note         = {Datasets: \\url{https://huggingface.co/collections/KantaHayashiAI/climblab-ja-and-climbmix-ja}}\n}\n```\n\n*Originally written in Japanese ([original on note](https://note.com/kantahayashiai/n/n44421eb69aae)).*", "url": "https://wpnews.pro/news/show-hn-climblab-ja-and-climbmix-ja-japanese-llm-pretraining-datasets", "canonical_source": "https://kantahayashiai.github.io/posts/climblab-ja-and-climbmix-ja/", "published_at": "2026-11-30 19:58:34+00:00", "updated_at": "2026-11-30 20:15:41.218404+00:00", "lang": "en", "topics": ["large-language-models", "machine-learning", "artificial-intelligence"], "entities": ["Kanta Hayashi", "ClimbLab-Ja", "ClimbMix-Ja", "Hugging Face", "Marin (Open Athena)", "Marin \"Mochi\" 535B-A23B", "LLM-jp Corpus v4", "Nemotron-CLIMB"], "also_reported_by": [], "takeaway": "ClimbMix-Ja reaches the source LLM-jp data's ~10B-token baseline BPB at ~3.07B tokens on google/gemma-3-270m, about 3.3x token efficiency, and beats both ClimbLab-Ja and LLM-jp data on a 6-benchmark Japanese multiple-choice average.", "recommendation": {"advice": "Use ClimbMix-Ja as a drop-in Japanese foundation corpus up to ~110B tokens, and ClimbLab-Ja when you need larger scale, stronger STEM coverage, or custom re-weighting with its 20 clusters and 6 quality scores.", "playbook": "training-data", "playbook_url": "https://wpnews.pro/playbooks/training-data"}, "alternates": {"html": "https://wpnews.pro/news/show-hn-climblab-ja-and-climbmix-ja-japanese-llm-pretraining-datasets", "markdown": "https://wpnews.pro/news/show-hn-climblab-ja-and-climbmix-ja-japanese-llm-pretraining-datasets.md", "text": "https://wpnews.pro/news/show-hn-climblab-ja-and-climbmix-ja-japanese-llm-pretraining-datasets.txt", "jsonld": "https://wpnews.pro/news/show-hn-climblab-ja-and-climbmix-ja-japanese-llm-pretraining-datasets.jsonld"}}