arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.04673cs.SE
收藏

跨任务基准测试与通用型和代码特定大型语言模型的评估

Cross-Task Benchmarking and Evaluation of General-Purpose and Code-Specific Large Language Models

National Institute of Technology Karnataka(卡纳塔克国家技术学院);Bosch Research and Technology Centre(博世研究与技术中心)

Gunjan Das, Paheli Bhattacharya, Rishabh Gupta

AI总结:

本文评估了通用和代码特定大型语言模型在跨任务基准测试中的表现,发现代码优化模型在推理和语法精确度上优于通用模型。

摘要:

大型语言模型(LLMs)已经革新了通用自然语言处理和领域特定应用,如代码合成、法律推理和金融。然而,尽管先前研究探讨了个体模型能力,但系统性跨领域比较,统一语言、推理和代码理解能力仍处于探索阶段。在本工作中,我们对五种通用型和三种代码特定的最新LLMs在六个多样化的基准测试中进行了全面评估,涵盖语言能力、数学推理和可信度。此外,我们分析了CoNaLa数据集上模型的行为,比较了自然语言和代码专用LLMs。我们的发现表明,优化用于代码的模型(如CodeLLaMA变体)在推理和语法精确度方面表现强劲,即使在非编码任务中也能展示可测量的性能提升,与通用型模型如Mistral-7B和Llama-3-8B形成对比。

英文摘要:

Large Language Models (LLMs) have revolutionized both general natural language processing and domain-specific applications such as code synthesis, legal reasoning, and finance. However, while prior studies have explored individual model capabilities, a systematic cross-domain comparison that unifies linguistic, reasoning, and code understanding abilities remains underexplored. In this work, we present a comprehensive evaluation of five general-purpose and three code-specific state-of-the-art LLMs across six diverse benchmarks encompassing linguistic competence, mathematical reasoning, and trustworthiness. Additionally, we analyze model behavior on the CoNaLa dataset for code explanation, comparing natural language and code-specialized LLMs. Our findings reveal that models optimized for code (e.g., CodeLLaMA variants) exhibit strong reasoning and syntactic precision, that even for non-coding tasks can show measurable performance gains, in contrast to general-purpose models like Mistral-7B and Llama-3-8B.

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

↑