Saved in:
Bibliographic Details
Main Authors: Le, Cuong Chi, Truong-Vinh, Hoang-Chau, Phan, Huy Nhat, Le, Dung Duy, Nguyen, Tien N., Bui, Nghi D. Q.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.23402
Tags: Add Tag
No Tags, Be the first to tag this record!
Table of Contents:
  • Predicting program behavior and reasoning about code execution remain significant challenges in software engineering, particularly for large language models (LLMs) designed for code analysis. While these models excel at understanding static syntax, they often struggle with dynamic reasoning tasks. We introduce VisualCoder, a simple yet effective approach that enhances code reasoning by integrating multimodal Chain-of-Thought (CoT) reasoning with a visual Control Flow Graph (CFG). By aligning code snippets with their corresponding CFGs, VisualCoder provides deeper insights into execution flows. We address challenges in multimodal CoT integration through a reference mechanism, ensuring consistency between code and its execution path, thereby improving performance in program behavior prediction, error detection, and output generation.