Skip to content
arXiv· arXiv:2512.05459· Zheng Liu, Chen Gong, Terry Yue Zhuo, Kecen Li, Weichen Yu, Matt Fredrikson, Tianhao Wang·Indexed by this site · Originally published

PrivCode: When Code Generation Meets Differential Privacy

PrivCode: When Code Generation Meets Differential Privacy

AI summary

The researchers propose PrivCode, which they describe as the first differentially private synthesizer designed specifically for code datasets, used to reduce the privacy leakage risk of fine-tuning large language models on private data. Its two-stage framework first uses DP-SGD combined with syntactic information to generate differentially private synthetic code, then fine-tunes a larger pretrained LLM to compensate for utility loss. Experiments on four large language models and four benchmarks show that its generated code has higher utility and can protect sensitive data under different privacy budgets.

Read originalNDSS 2026