From Critique to Clarity: A Pathway to Faithful and Personalized Code Explanations with Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xu, Zexing, Luo, Zhuang, Li, Yichuan, Lee, Kyumin, Etesami, S. Rasoul
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910798993948672
author Xu, Zexing
Luo, Zhuang
Li, Yichuan
Lee, Kyumin
Etesami, S. Rasoul
author_facet Xu, Zexing
Luo, Zhuang
Li, Yichuan
Lee, Kyumin
Etesami, S. Rasoul
contents In the realm of software development, providing accurate and personalized code explanations is crucial for both technical professionals and business stakeholders. Technical professionals benefit from enhanced understanding and improved problem-solving skills, while business stakeholders gain insights into project alignments and transparency. Despite the potential, generating such explanations is often time-consuming and challenging. This paper presents an innovative approach that leverages the advanced capabilities of large language models (LLMs) to generate faithful and personalized code explanations. Our methodology integrates prompt enhancement, self-correction mechanisms, personalized content customization, and interaction with external tools, facilitated by collaboration among multiple LLM agents. We evaluate our approach using both automatic and human assessments, demonstrating that our method not only produces accurate explanations but also tailors them to individual user preferences. Our findings suggest that this approach significantly improves the quality and relevance of code explanations, offering a valuable tool for developers and stakeholders alike.
format Preprint
id arxiv_https___arxiv_org_abs_2501_14731
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle From Critique to Clarity: A Pathway to Faithful and Personalized Code Explanations with Large Language Models
Xu, Zexing
Luo, Zhuang
Li, Yichuan
Lee, Kyumin
Etesami, S. Rasoul
Software Engineering
Artificial Intelligence
Computation and Language
In the realm of software development, providing accurate and personalized code explanations is crucial for both technical professionals and business stakeholders. Technical professionals benefit from enhanced understanding and improved problem-solving skills, while business stakeholders gain insights into project alignments and transparency. Despite the potential, generating such explanations is often time-consuming and challenging. This paper presents an innovative approach that leverages the advanced capabilities of large language models (LLMs) to generate faithful and personalized code explanations. Our methodology integrates prompt enhancement, self-correction mechanisms, personalized content customization, and interaction with external tools, facilitated by collaboration among multiple LLM agents. We evaluate our approach using both automatic and human assessments, demonstrating that our method not only produces accurate explanations but also tailors them to individual user preferences. Our findings suggest that this approach significantly improves the quality and relevance of code explanations, offering a valuable tool for developers and stakeholders alike.
title From Critique to Clarity: A Pathway to Faithful and Personalized Code Explanations with Large Language Models
topic Software Engineering
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2501.14731