Only the DISCRIMINATOR touches real data, so only the discriminator needs privatising. The generator sees the discriminator's output and nothing else, which makes it post-processing and therefore free – adding noise to it spends budget for nothing.
Arguments
- disc_grads
per-example discriminator gradients, (B, p).
- C, sigma, lr
as for
morie_dp_sgd.- n_disc_steps
discriminator steps per generator step, recorded for accounting.
- seed
optional integer seed.
Details
Account over discriminator steps, which typically outnumber generator steps several to one; counting generator steps instead understates the spend.
