arXiv:2602.17288cs.AIcs.CL2026-02

从arXiv原始LaTeX训练13.6亿参数科学模型,全流程透明公开。

ArXiv-to-Model: A Practical Study of Scientific LM Training

  • 基于arXiv LaTeX源码构建端到端训练流程,覆盖数据清洗与归一化。
  • 在520亿预训练令牌下实现稳定训练,验证数据规模对收敛的关键作用。
  • 适合预算有限的研究者复现领域专用模型,提供可落地的工程经验。

尽管前沿大语言模型展现出强大的推理与数学能力,但利用原始数据从头训练领域专用科学语言模型的实际过程仍缺乏详细记录。本文详述了从数学、计算机科学和理论物理领域的arXiv LaTeX源码中直接训练一个13.6亿参数科学语言模型的完整案例。我们构建了一个涵盖元数据过滤、归档验证、LaTeX提取、文本归一化、领域感知分词及在受限算力(2×A100 GPU)下的密集Transformer训练的端到端流水线。通过24次实验,分析了训练稳定性、扩展行为、数据产量损失及基础设施瓶颈。研究发现,预处理决策显著影响可用令牌量,分词方式影响符号稳定性,而存储与I/O限制可能与算力一样成为关键制约因素。我们进一步分析了收敛动态,证明在数据充足场景(520亿预训练令牌)下可实现稳定训练。本工作不提出新架构,而是提供一个基于工程实践、透明可复现的小型科学语言模型训练报告,旨在支持具备中等算力资源的研究者构建领域专用模型。

原文摘要 · Abstract (English)

While frontier large language models demonstrate strong reasoning and mathematical capabilities, the practical process of training domain-specialized scientific language models from raw sources remains under-documented. In this work, we present a detailed case study of training a 1.36B-parameter scientific language model directly from raw arXiv LaTeX sources spanning mathematics, computer science, and theoretical physics. We describe an end-to-end pipeline covering metadata filtering, archive validation, LaTeX extraction, text normalization, domain-aware tokenization, and dense transformer training under constrained compute (2xA100 GPUs). Through 24 experimental runs, we analyze training stability, scaling behavior, data yield losses, and infrastructure bottlenecks. Our findings highlight how preprocessing decisions significantly affect usable token volume, how tokenization impacts symbolic stability, and how storage and I/O constraints can rival compute as limiting factors. We further analyze convergence dynamics and show stable training behavior in a data-rich regime (52B pretraining tokens). Rather than proposing a novel architecture, this work provides an engineering-grounded, transparent account of training a small scientific language model from scratch. We hope these insights support researchers operating under moderate compute budgets who seek to build domain-specialized models.

科学语言模型arXivLaTeX训练流水线

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。