arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.04635cs.IRcs.AI
收藏

伪代码自动提取的规模化扩展

Scaling Automatic Extraction of Pseudocode

The Pennsylvania State University(宾夕法尼亚州立大学)

Levent Toksoz, Gang Tan, C. Lee Giles

AI总结:

本文从 220 万篇 arXiv 论文中提取近 32 万个伪代码示例,提出优化覆盖率的提取机制和基于随机抽样的验证机制,并通过聚类与统计分析揭示伪代码使用呈指数级增长。

摘要:

学术论文中的伪代码提供了一种简洁的方式来表达其中实现的算法。伪代码也可以被视为一种中间表示,有助于弥合编程语言与自然语言之间的差距。拥有大规模伪代码集合可以带来多种益处,包括增强算法理解、促进进一步的算法设计,以及赋能基于自然语言处理或计算机视觉的模型,用于自动代码生成和光学字符识别(OCR)等任务。我们通过从 arXiv 论文中提取近 320,000 个伪代码示例,构建了一个大规模伪代码集合。这一过程涉及扫描超过 220 万篇学术论文,其中 1,000 篇经过人工检查和标注。鉴于该集合固有的异质性,我们的方法包括一个为优化覆盖率而定制的提取机制,以及一个基于随机抽样的验证机制,用于检查其准确性和可靠性。此外,我们借助聚类和统计分析,提供了对常见伪代码结构的见解。值得注意的是,这些分析表明伪代码的使用呈指数级增长,凸显了其日益增长的重要性。

英文摘要:

Pseudocode in a scholarly paper provides a concise way to express the algorithms implemented therein. Pseudocode can also be thought of as an intermediary representation that helps bridge the gap between programming languages and natural languages. Having access to a large collection of pseudocode can provide various benefits ranging from enhancing algorithmic understanding, facilitating further algorithmic design, to empowering NLP or computer vision based models for tasks such as automated code generation and optical character recognition (OCR). We have created a large pseudocode collection by extracting nearly 320,000 pseudocode examples from arXiv papers. This process involved scanning over $2.2$ million scholarly papers, with 1,000 of them being manually inspected and labeled. Our approach encompasses an extraction mechanism tailored to optimize the coverage and a validation mechanism based on random sampling to check its accuracy and reliability, given the inherent heterogeneity of the collection. In addition, we offer insights into common pseudocode structures, supported by clustering and statistical analyses. Notably, these analyses indicate an exponential-like growth in the usage of pseudocodes, highlighting their increasing significance.

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

↑