LLM-Based Code Documentation Generation and Multi-Judge Evaluation

Ikbel Ghrab, Mohamed Dhieb, Ismail Khenissi, Ines Abdeljaoued-Tej
5/11/2026
cs.HCcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

High-quality source code documentation is vital yet often neglected, especially in critical domains like healthcare where reliability and maintainability are essential. We presented an AI powered framework that automates documentation generation from code and repositories using eight state of the art Large Language Models (LLMs), including GPT, Gemini, Qwen, and LLaMA variants.

Show full abstract

Built on the PocketFlow orchestration framework, the system applies modular pipelines and advanced prompt engineering to produce structured, context aware documentation. To ensure quality and guide model selection, we introduced a MultiLLMasJudges evaluation framework, where four independent LLMs assess outputs across nine criteria, such as Completeness, Clarity, and Faithfulness. Experiments conducted on an open-source medical physics library, demonstrated showed a 42% performance gap between top and bottom models. By combining diverse model outputs, optimized prompting, and rigorous evaluation, our approach enhances documentation quality and reduces manual effort, especially in safety critical healthcare software.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ghrab2026llmbased,
  title  = {LLM-Based Code Documentation Generation and Multi-Judge Evaluation},
  author = {Ikbel Ghrab and Mohamed Dhieb and Ismail Khenissi and Ines Abdeljaoued-Tej},
  year   = {2026},
  eprint = {2606.09852},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.09852v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.09852.svg)](https://codeofpaper.com/paper/2606.09852)

Discussion