StatLLaMA: Multi-Stage training for domain-optimized statistical large language models

Jing-Yi Zeng, Guan-Hua Huang
12/26/2025
cs.CLcs.AI

Official code: HuangDLab/StatLLaMA (0 stars, last commit 2026-03-11).

Abstract

This study investigates how to efficiently build a domain-specialized large language model (LLM) for statistics using the lightweight LLaMA-3.2-3B family as the foundation model (FM). We systematically compare three multi-stage training pipelines--starting from a base FM with no instruction-following capability, a base FM augmented with post-hoc instruction tuning, and an instruction-tuned FM with strong general reasoning abilities--across continual pretraining, supervised fine-tuning (SFT), reinforcement learning from human feedback (RLHF) preference alignment, and downstream task fine-tuning (DTFT). Results show that pipelines beginning with a base FM fail to develop meaningful statistical reasoning, even after extensive instruction tuning, SFT, or RLHF alignment. In contrast, starting from LLaMA-3.2-3B-Instruct enables effective domain specialization. A comprehensive evaluation of SFT variants reveals clear trade-offs between domain expertise and general reasoning ability. We further demonstrate that direct preference optimization provides stable and effective RLHF preference alignment. Finally, we show that DTFT must be performed with extremely low intensity to avoid catastrophic forgetting in highly optimized models. The final model, StatLLaMA, achieves strong and balanced performance on benchmarks of mathematical reasoning, common-sense reasoning, and statistical expertise, offering a practical blueprint for developing resource-efficient statistical LLMs. The code is available at https://github.com/HuangDLab/StatLLaMA.

View on arXivView PDF

Code Implementations(1)

Trying to collect data and train a large language model focused on statistics.

00Python, Jupyter NotebookJul 15, 20257 months ago

Similar Papers

Cite this paper

@article{zeng2025statllama,
  title  = {StatLLaMA: Multi-Stage training for domain-optimized statistical large language models},
  author = {Jing-Yi Zeng and Guan-Hua Huang},
  year   = {2025},
  eprint = {2601.09718},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.09718v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.09718.svg)](https://codeofpaper.com/paper/2601.09718)

Discussion