arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.14395cs.CLcs.AIcs.LG
收藏

PARAMANU-GANITA:小型数学语言模型能在数学推理上与大型语言模型匹敌吗?

PARAMANU-GANITA: Can Small Math Language Models Rival with Large Language Models on Mathematical Reasoning?

Gyan AI Research(智研AI研究院);CNRS(法国国家科学研究中心);LIG(信息与信号处理实验室);Grenoble INP(格勒诺布尔理工学院);Univ. Grenoble Alpes(格勒诺布尔大学);Indian Institute of Technology Kanpur(坎普尔印度理工学院)

Mitodru Niyogi, Arnab Bhattacharya

AI总结:

本文提出2.08亿参数的数学专用小型语言模型Paramanu-Ganita,通过领域预训练与CoT微调,在多个数学推理基准上超越7B等大模型,兼具高性能与低成本。

摘要:

在本文中,我们研究了从头开始使用领域专用分词器对小型生成式语言模型(SLM)进行领域特定预训练,并结合思维链(CoT)指令微调,是否能在数学推理上取得与LLM相媲美的性能?其次,这种方法是否具有环境可持续性和极高的成本效益?为了解决这些研究问题,我们提出了Paramanu-Ganita,一个拥有2.08亿参数的、新颖的仅解码器自回归数学SLM。我们在包含网页、源代码、教科书、CoT模板化的StackOverflow问答对,以及我们整理的LaTeX数学讲义的混合数学语料库上,使用4096的上下文大小进行了从头预训练,共处理了315亿个token,耗时170个A100小时。我们还训练了一个数学和代码专用的BPE分词器。我们提出并在MetaMathQA数据集上对Paramanu-Ganita进行了CoT指令微调。我们的模型Paramanu-Ganita,尽管比7B LLM小34倍,但在GSM8K测试准确率指标上,比通用LLM高出约30个百分点,甚至比数学专用LLM高出3-23个百分点。在MATH基准上,Paramanu-Ganita比各种模型高出6-8个百分点。在LogiQA、MMLU(高中、大学水平)和竞赛考试水平的AGIEVAL(AQuA-RAT、SAT-Math)等基准上,Paramanu-Ganita比其他模型高出1-4%。我们的模型可在https://huggingface.co/gyanai/paramanu-ganita-208M-hf获取。

英文摘要:

In this paper, we study whether domain specific pretraining of small generative language models (SLM) from scratch with domain specialized tokenizer and Chain-of-Thought (CoT) instruction fine-tuning results in competitive performance on mathematical reasoning compared to LLMs? Secondly, whether this approach is environmentally sustainable, highly cost efficient? To address these research questions, we present Paramanu-Ganita, a 208 million-parameter novel decoder-only Auto Regressive SLM on mathematics. We performed pretraining from scratch on 31.5 billion tokens for 170 A100 hours using a context size of 4096 on a mixed mathematical corpus consisting of web pages, source code, textbooks, CoT templatised StackOverflow QA pairs, and mathematical lecture notes in LaTeX curated by us. We also trained a math and code specialised BPE tokenizer. We proposed and performed CoT instruction fine-tuning of Paramanu-Ganita on the MetaMathQA dataset. Our model Paramanu-Ganita, despite being 34 times smaller than the 7B LLMs, outperforms generalist LLMs by approximately 30% points, and even math-specialised LLMs by 3-23% points in GSM8K test accuracy metric. On MATH benchmark, Paramanu-Ganita outperformed the various models by 6-8% points. On benchmarks like LogiQA, MMLU (high school, college level), and competitive exams level, AGIEVAL (AQuA-RAT, SAT-Math), Paramanu-Ganita outperformed others by 1-4%. Our model is available at https://huggingface.co/gyanai/paramanu-ganita-208M-hf .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑