arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.01784cs.AIcs.PL
收藏

CatCode:面向代码与文本混合的大语言模型综合评估框架

CatCode: A Comprehensive Evaluation Framework for LLMs On the Mixture of Code and Text

IIIS, Tsinghua University(清华大学交叉信息研究院);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai Qi Zhi Institute(上海期智研究院)

Zhenru Lin, Yiqun Yao, Yang Yuan

AI总结:

针对现有代码与文本混合任务评估覆盖不足、缺乏标准化的问题,本文基于范畴论提出 CatCode 自动评估框架,用态射和函子建模调试、转换、翻译、生成、解释与复现,以综合评估多种 LLM 的编程能力。

摘要:

诸如 ChatGPT 之类的大语言模型(LLM)在理解和生成代码与文本的混合内容方面正变得日益熟练。基于这种混合内容进行评估,可以更全面地理解模型解决编程问题的能力。然而,在这一背景下,当前评估方法要么任务覆盖范围有限,要么缺乏标准化。为解决该问题,我们提出使用范畴论作为评估框架。具体而言,代码范畴内的态射可表示代码调试与转换,两个范畴之间的函子可表示代码翻译,而代码范畴与自然语言范畴之间的函子则可表示代码生成、解释和复现。我们提出了一个名为 CatCode(Category Code)的自动评估框架,能够全面评估包括 ChatGPT、Text-Davinci 和 CodeGeeX 在内的 LLM 的编程能力。

英文摘要:

Large language models (LLMs) such as ChatGPT are increasingly proficient in understanding and generating a mixture of code and text. Evaluation based on such $\textit{mixture}$ can lead to a more comprehensive understanding of the models' abilities in solving coding problems. However, in this context, current evaluation methods are either limited in task coverage or lack standardization. To address this issue, we propose using category theory as a framework for evaluation. Specifically, morphisms within a code category can represent code debugging and transformation, functors between two categories represent code translation, and functors between a code category and a natural language category represent code generation, explanation, and reproduction. We present an automatic evaluation framework called $\textbf{CatCode}$ ($\textbf{Cat}$egory $\textbf{Code}$) that can comprehensively assess the coding abilities of LLMs, including ChatGPT, Text-Davinci, and CodeGeeX.

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

↑