Saved in:
Bibliographic Details
Main Authors: Chu, Shao-Yu, Tian, Yuhe, Wang, Yu-Xiang, Jin, Haojian
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.12590
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914039158800384
author Chu, Shao-Yu
Tian, Yuhe
Wang, Yu-Xiang
Jin, Haojian
author_facet Chu, Shao-Yu
Tian, Yuhe
Wang, Yu-Xiang
Jin, Haojian
contents This paper explores how programmers without specialized expertise in differential privacy (DP) (i.e., novices) can leverage LLMs to implement DP programs with minimal training. We first conducted a need-finding study with 6 novices and 3 experts to understand how they utilize LLMs in DP implementation. While DP experts can implement correct DP analyses through a few prompts, novices struggle to articulate their requirements in prompts and lack the skills to verify the correctness of the generated code. We then developed DPCheatSheet, an instructional tool that helps novices implement DP using LLMs. DPCheatSheet combines two learning concepts: it annotates an expert's workflow with LLMs as a worked example to bridge the expert mindset to novices, and it presents five common mistakes in LLM-based DP code generation as erroneous examples to support error-driven learning. We demonstrated the effectiveness of DPCheatSheet with an error identification study and an open-ended DP implementation study.
format Preprint
id arxiv_https___arxiv_org_abs_2509_12590
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DPCheatSheet: Using Worked and Erroneous LLM-usage Examples to Scaffold Differential Privacy Implementation
Chu, Shao-Yu
Tian, Yuhe
Wang, Yu-Xiang
Jin, Haojian
Human-Computer Interaction
This paper explores how programmers without specialized expertise in differential privacy (DP) (i.e., novices) can leverage LLMs to implement DP programs with minimal training. We first conducted a need-finding study with 6 novices and 3 experts to understand how they utilize LLMs in DP implementation. While DP experts can implement correct DP analyses through a few prompts, novices struggle to articulate their requirements in prompts and lack the skills to verify the correctness of the generated code. We then developed DPCheatSheet, an instructional tool that helps novices implement DP using LLMs. DPCheatSheet combines two learning concepts: it annotates an expert's workflow with LLMs as a worked example to bridge the expert mindset to novices, and it presents five common mistakes in LLM-based DP code generation as erroneous examples to support error-driven learning. We demonstrated the effectiveness of DPCheatSheet with an error identification study and an open-ended DP implementation study.
title DPCheatSheet: Using Worked and Erroneous LLM-usage Examples to Scaffold Differential Privacy Implementation
topic Human-Computer Interaction
url https://arxiv.org/abs/2509.12590