paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Exploring Static Taint Analysis in LLMs: A Dynamic Benchmarking Framework for Measurement and Enhancement

探索 LLM 中的静态污点分析:面向测量与增强的动态基准框架
ASE 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE)2025匹配度 6/10 · 论文聚焦用 LLM 做静态污点分析,属于「AI→PL」方向,且提出动态基准生成框架应对训练数据泄漏与评估标准不当,与用户对「重要场景下缺失 benchmark」和问题驱动研究的关注点相符。但其核心目标是对 LLM 自身能力的测量与免训练增强(偏提示词层面),与用户「研究目标本身是 LLM」的不感兴趣点有一定重叠,且未涉及浮点/贝叶斯分析或 Agentic 程序场景。引用 1 inbox
Haoran Zhao, Lei Zhang, Keke Lian, Fute Sun, Bofei Chen, Yongheng Liu, Zhiyu Wu, Yuan Zhang, Min Yang
crossref: 2026-09-12

AI 速览

一句话:提出 LLMCapLens 动态基准生成框架,系统测量并增强 LLM 的静态污点分析能力。

LLM 被越来越多地用于静态污点分析,但学界缺乏对其能力的系统理解;现有基准存在训练数据泄露、未考虑 LLM 特性与评估标准不当等问题,人工构建则成本高且难随模型演进。为此,本文提出 LLMCapLens 动态基准生成框架,建模影响因子,用基于基本单元的生成与轻量级动态污点分析验证实现自动化、多样化且正确的基准生成,并提出测量驱动、免训练、模型特定的增强方法。在 10 个主流 LLM 上的评测揭示了各因子下的表现与模型特有错误成因;增强使 GPT-4 Turbo 在 19 个因子中的 16 个上提升,真负率平均提高 21.29%,并通过漏洞检测验证了实际效果。

问题
LLM 在静态污点分析中的应用日益增多,但缺乏对其能力的系统理解;现有基准因训练数据泄露、未考虑 LLM 特性与评估标准不当而不适用,人工构建基准成本高且难以随模型演进。
方法
提出 LLMCapLens 动态基准生成框架:建模影响 LLM 污点分析能力的因子,采用基于基本单元的生成方法与轻量级动态污点分析验证方法自动生成多样且正确的基准,并提出测量驱动、免训练、模型特定的增强方法。
评估
在 10 个主流 LLM 上评测,揭示不同影响因子下的性能表现与各模型的错误成因;增强方法使 GPT-4 Turbo 在 19 个因子中的 16 个上提升,真负率平均提高 21.29%,并通过漏洞检测验证实际效果。
原文摘要(Abstract)

LLMs offer a promising avenue to overcome the limitations of traditional taint analysis techniques, with a growing number of studies leveraging LLMs for taint analysis and its downstream applications. However, these studies lack a systematic understanding of LLMs’ taint analysis capabilities, limiting their transferability and reliability. To bridge this gap and better apply LLMs to static taint analysis, we aim to comprehensively measure and understand LLMs’ taint analysis capabilities.Using existing benchmarks is a straightforward approach, but they are unsuitable due to issues such as training data leakage, not accounting for LLMs’ features, and improper assessment criteria. Manually constructing new benchmarks is not only labor-intensive but also struggles to remain effective as LLMs evolve. To address these, we propose LLMCapLens, a dynamic benchmark generation framework to systematically measure and enhance LLMs’ capabilities. LLMCapLens models influencing factors of LLMs’ taint analysis capabilities, employing a Basic Unit-Based generation method and a lightweight dynamic taint analysis-based verification method to implement the automated generation of targeted benchmarks, ensuring both diversity and correctness. Furthermore, LLMCapLens proposes a measurement-driven, training-free, model-specific enhancement approach.We apply LLMCapLens to 10 mainstream LLMs, revealing how they perform under various influencing factors and identifying unique characteristics, such as the underlying error causes for each model. Notably, our enhancement approach significantly improves LLM performance—GPT-4 Turbo, for instance, achieved improvements across 16 out of 19 factors, with an average True Negative Rate increase of 21.29%. Finally, we validate the real-world impact of our method by applying enhanced LLMs to vulnerability detection, demonstrating a substantial improvement over prior approaches.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot9355,
  title = {Exploring Static Taint Analysis in LLMs: A Dynamic Benchmarking Framework for Measurement and Enhancement},
  author = {Haoran Zhao and Lei Zhang and Keke Lian and Fute Sun and Bofei Chen and Yongheng Liu and Zhiyu Wu and Yuan Zhang and Min Yang},
  booktitle = {ASE},
  year = {2025},
  doi = {10.1109/ase63991.2025.00082}
}