paper-with-me

Papers

LLMDFA: Analyzing Dataflow in Code with Large Language Models

2024-02-16 · Chengpeng Wang, Wuqi Zhang, Zian Su, Xiangzhe Xu, Xiaoheng Xie, Xiangyu Zhang

Dataflow analysis is a fundamental code analysis technique that identifies dependencies between program values. Traditional approaches typically necessitate successful compilation and expert customization, hindering their applicability and usability for analyzing uncompilable programs with evolving analysis needs in real-world scenarios. This paper presents LLMDFA, an LLM-powered compilation-free and customizable dataflow analysis framework. To address hallucinations for reliable results, we decompose the problem into several subtasks and introduce a series of novel strategies. Specifically, we leverage LLMs to synthesize code that outsources delicate reasoning to external expert tools, such as using a parsing library to extract program values of interest and invoking an automated theorem prover to validate path feasibility. Additionally, we adopt a few-shot chain-of-thought prompting to summarize dataflow facts in individual functions, aligning the LLMs with the program semantics of small code snippets to mitigate hallucinations. We evaluate LLMDFA on synthetic programs to detect three representative types of bugs and on real-world Android applications for customized bug detection. On average, LLMDFA achieves 87.10% precision and 80.77% recall, surpassing existing techniques with F1 score improvements of up to 0.35. We have open-sourced LLMDFA at https://github.com/chengpeng-wang/LLMDFA.

📄 PDF Abstract BibTeX arXiv:2402.10754

Code (1)

chengpeng-wang/llmdfa 공식 구현

Tasks

Hallucination

Methods 이 논문이 사용한 방법론

Library 설명 없음

Similar Papers 제목 키워드 기반

DataFlow: An LLM-Driven Framework for Unified Data Preparation and Workflow Automation in the Era of Data-Centric AI

2025-12-18 · Hao Liang, Xiaochen Ma, Zhou Liu, Zhen Hao Wong 외 arxiv

The rapidly growing demand for high-quality data in Large Language Models (LLMs) has intensified the need for scalable, reliable, and semantically rich data preparation pipelines. However, current practices remain domina…

Mathematical Reasoning

Dataflow Accelerator Architecture for Autonomous Machine Computing

2021-09-15 · Shaoshan Liu, Yuhao Zhu, Bo Yu, Jean-Luc Gaudiot 외

Commercial autonomous machines is a thriving sector, one that is likely the next ubiquitous computing platform, after Personal Computers (PC), cloud computing, and mobile computing. Nevertheless, a suitable computing sub…

Cloud Computing

The Ingenuity Mars Helicopter Specified and Analyzed with the Real-time Mode-aware Dataflow Model

2025-01-13 · Guillaume Roumage, Selma Azaiez, Cyril Faure, Stéphane Louise

Ingenuity is an autonomous Cyber-Pysical System (CPS) that has successfully completed more than 70 flights over Mars between 2021 and 2024. Ensuring the safety of its mission is paramount, as any failure could result in …

Ingenuity

DataFlow-Harness: A Grounded Code-Agent Platform for Constructing Editable LLM Data Pipelines

2026-07-18 · Runming He, Zhen Hao Wong, Hao Liang, Zimo Meng 외 hf

Large language models (LLMs) are increasingly used to automate data-processing workflows, yet coding agents typically produce scripts that are not automatically materialized as persistent, editable platform artifacts. We…

DCP: Learning Accelerator Dataflow for Neural Network via Propagation

2024-10-09 · Peng Xu, Wenqi Shao, Mingyu Ding, Ping Luo

Deep neural network (DNN) hardware (HW) accelerators have achieved great success in improving DNNs' performance and efficiency. One key reason is dataflow in executing a DNN layer, including on-chip data partitioning, co…

Few-Shot LearningScheduling