TensorX
返回文献探索

Paper · arXiv 2308.16458

BioCoder: A Benchmark for Bioinformatics Code Generation with Contextual Pragmatic Knowledge

Xiangru Tang, Bill Qian, Rick Gao, Jiakang Chen, Xinyun Chen, Mark Gerstein

13 upvotesAugust 31, 2023arXiv 预印本
AI 摘要

BioCoder evaluates pre-trained models for bioinformatics code generation, focusing on domain knowledge and complex functional dependencies.

pre-trained language modelsbioinformaticscode generationdomain knowledgedata operationsfunctional dependenciesfunction-code generationpackage dependenciesclass declarationsglobal variablesfuzz-testing frameworkInCoderCodeGenCodeGen2SantaCoderStarCoderStarCoder+InstructCodeT5+ChatGPT

Abstract

Pre-trained language models like ChatGPT have significantly improved code generation. As these models scale up, there is an increasing need for the output to handle more intricate tasks. Moreover, in bioinformatics, generating functional programs poses additional notable challenges due to the amount of domain knowledge, the need for complicated data operations, and intricate functional dependencies between the operations. Here, we present BioCoder, a benchmark developed to evaluate existing pre-trained models in generating bioinformatics code. In relation to function-code generation, BioCoder covers potential package dependencies, class declarations, and global variables. It incorporates 1026 functions and 1243 methods in Python and Java from GitHub and 253 examples from the Rosalind Project. BioCoder incorporates a fuzz-testing framework for evaluation, and we have applied it to evaluate many models including InCoder, CodeGen, CodeGen2, SantaCoder, StarCoder, StarCoder+, InstructCodeT5+, and ChatGPT. Our detailed analysis of these models emphasizes the importance of domain knowledge, pragmatic code generation, and contextual understanding. Our dataset, benchmark, Docker images, and scripts required for testing are all available at https://github.com/gersteinlab/biocoder.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
BioCoder: A Benchmark for Bioinformatics Code Generation with Contextual Pragmatic Knowledge | TensorX