跳到主要导航 跳到搜索 跳到主要内容

Visualizing Program Behavior: A Study of Enhanced Program Diagrams Using LLM

  • Beihang University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

This paper aims to address the difficulties faced by novice programmers in grasping code structure and execution flow, improving programming thinking, and pinpointing code errors with accuracy. It proposes providing students with program behavior diagrams based on large language models (LLMs) and visualization techniques to achieve personalized guidance. Specifically, these program behavior diagrams include programming thinking visualization diagrams and code vulnerability visualization diagrams. A programming thinking visualization diagram employs static code analysis to gather code structure information, combined with the structured chain-of-thought method to collectively optimize the LLM. This enables the LLM to explain each interpretable part of the code from top to bottom, detailing the programming concepts, and displaying them on a modularized code structure diagram. The code vulnerability visualization diagram primarily utilizes the fine-tuned LLM, optimizing it based on program analysis and clustering analysis methods to accurately identify vulnerabilities in student code and display them on a code flow diagram. Its feature is to visually display to students the error location, error information, and the impact of errors on program flow, rather than providing the programming answers. Lastly, through experiments and statistical analysis of actual teaching data, this paper serves a demonstration that the enhanced models used in the visualization diagram generation process have a noticeable effect on mainstream LLMs, and that visualization diagrams hold significant value for students at different stages of learning.

源语言英语
主期刊名2024 IEEE Frontiers in Education Conference, FIE 2024 - Proceedings
出版商Institute of Electrical and Electronics Engineers Inc.
ISBN(电子版)9798350351507
DOI
出版状态已出版 - 2024
活动54th IEEE Frontiers in Education Conference, FIE 2024 - Washington, 美国
期限: 13 10月 202416 10月 2024

出版系列

姓名Proceedings - Frontiers in Education Conference, FIE
ISSN(印刷版)1539-4565

会议

会议54th IEEE Frontiers in Education Conference, FIE 2024
国家/地区美国
Washington
时期13/10/2416/10/24

学术指纹

探究 'Visualizing Program Behavior: A Study of Enhanced Program Diagrams Using LLM' 的科研主题。它们共同构成独一无二的学术指纹。

引用此