paper-with-me

Papers

Code2Doc: A Quality-First Curated Dataset for Code Documentation

2025-12-21 · Recep Kaan Karaman, Meftun Akarsu arxiv

The performance of automatic code documentation generation models depends critically on the quality of the training data used for supervision. However, most existing code documentation datasets are constructed through large scale scraping of public repositories with limited quality control. As a result, they often contain noisy documentation, extensive duplication, and increasing contamination from AI generated content. These issues weaken the supervision signal available to learning-based models and complicate evaluation. We introduce Code2Doc, a quality-first curated dataset for function-level code documentation generation. Code2Doc consists of 13,358 high-quality function-documentation pairs extracted from widely used open-source repositories spanning five programming languages: Python, Java, TypeScript, JavaScript, and C++. The dataset is constructed using a four-stage curation pipeline that enforces documentation completeness and clarity, filters functions based on structural and complexity criteria, removes exact and near-duplicate code, and identifies documentation likely to be AI generated. Starting from 52,069 extracted candidates, only 25.6% satisfy all quality constraints. We provide a detailed analysis of the resulting dataset, which achieves a mean documentation quality score of 6.93 out of 10. Overall, 86.9% of samples contain explicit type annotations, and only 2.9% are flagged as potentially AI generated. Baseline experiments show that fine-tuning a large language model on Code2Doc yields relative improvements of 29.47% in BLEU and 24.04% in ROUGE-L over zero shot performance, despite the modest dataset size. We release both the dataset and the full curation pipeline to support reproducible research on automatic code documentation generation.

📄 PDF Abstract BibTeX arXiv:2512.18748

Code (0)

등록된 구현이 없습니다.

Tasks

Code Documentation Generation

Similar Papers 제목 키워드 기반

TigerCoder: A Novel Suite of LLMs for Code Generation in Bangla

2025-09-11 · Nishat Raihan, Antonios Anastasopoulos, Marcos Zampieri arxiv

Despite being the 5th most spoken language, Bangla remains underrepresented in Large Language Models (LLMs), particularly for code generation. This primarily stems from the scarcity of high-quality data to pre-train and/…

Domain AdaptationCode Generation

Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Quality

2026-07-16 · Saima Afrin, Alessandro Midolo, Camilo Escobar-Velásquez, Mario Linares-Vásquez 외 arxiv

Large Language Models (LLMs) perform differently on identical programming tasks when prompted in different natural languages, a phenomenon known as language bias. While this behavior has been widely studied for general t…

Code GenerationText Generation

Klear-CodeTest: Scalable Test Case Generation for Code Reinforcement Learning

2025-08-07 · Jia Fu, Xinyu Yang, Hongzhi Zhang, Yahui Liu 외 arxiv

Precise, correct feedback is crucial for effectively training large language models (LLMs) in code reinforcement learning. However, synthesizing high-quality test cases remains a profoundly challenging and unsolved probl…

Reinforcement Learning

M-DaQ: Retrieving Samples with Multilingual Diversity and Quality for Instruction Fine-Tuning Datasets

2025-09-19 · Chunguang Zhao, Yilun Liu, Pufan Zeng, Yuanchang Luo 외 arxiv

Multilingual instruction fine-tuning (IFT) empowers large language models to generalize across diverse linguistic and cultural contexts; however, high-quality, systematically curated multilingual IFT datasets remain scar…

DisSent: Sentence Representation Learning from Explicit Discourse Relations

2017-10-12 · Allen Nie, Erin D. Bennett, Noah D. Goodman

Learning effective representations of sentences is one of the core missions of natural language understanding. Existing models either train on a vast amount of text, or require costly, manually curated sentence relation …

Dependency ParsingNatural Language UnderstandingRelationRelation Prediction+3