Differentially private deep learning for survey autocoders
For the Bureau of Labor Statistics (BLS), my team is developing methods to enable releasing machine learning models trained on sensitive data with formal privacy guarantees. We’re addressing a problem agencies are increasingly facing: models—not just data products—are becoming public-facing assets, and they can leak training data through membership inference and related attacks.
We developed a novel method called SWAG‑PPM, a Bayesian approach to differentially private deep learning that concentrates privacy protection on high‑risk records. This contrasts with common methods like differentially private stochastic gradient descent DP-SGD, which apply uniform noise. The effect is that privacy distortion is confined mostly to high‑risk tail records, while modal regions—where most utility comes from—remain largely intact.
We’re currently piloting SWAG-PPM with a model used to classify open-text responses on the Survey of Occupational Injuries and Illnesses. To enable this, I used Claude Code to refactor an experimental codebase to a production-ready system. This makes it easy for us to run training experiments at scale with only a few tweaks to config files.
