An Empirically-grounded tool for Automatic Prompt Linting and Repair: A Case Study on Bias, Vulnerability, and Optimization in Developer Prompts
Dhia Elhaq Rzig, Dhruba Jyoti Paul, Kaiser Pister, Jordan Henkel,, Foyzul Hassan

TL;DR
This paper presents PromptDoctor, an empirical tool for analyzing and repairing developer prompts in LLM applications, effectively detecting and fixing bias, vulnerabilities, and sub-optimal prompts to improve safety and performance.
Contribution
The paper introduces PromptDoctor, a novel tool for automatic detection and repair of issues in developer prompts, supported by an extensive empirical analysis of real-world prompts.
Findings
3.46% of prompts contained bias
10.75% were vulnerable to injection attacks
PromptDoctor improved prompt safety and performance
Abstract
The tidal wave of advancements in Large Language Models (LLMs) has led to their swift integration into application-level logic. Many software systems now use prompts to interact with these black-box models, combining natural language with dynamic values interpolated at runtime, to perform tasks ranging from sentiment analysis to question answering. Due to the programmatic and structured natural language aspects of these prompts, we refer to them as Developer Prompts. Unlike traditional software artifacts, Dev Prompts blend natural language instructions with artificial languages such as programming and markup languages, thus requiring specialized tools for analysis, distinct from classical software evaluation methods. In response to this need, we introduce PromptDoctor, a tool explicitly designed to detect and correct issues of Dev Prompts. PromptDoctor identifies and addresses…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEducation and Critical Thinking Development · Intelligent Tutoring Systems and Adaptive Learning · Teaching and Learning Programming
