Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary tensor modification tracking #376

Open
ffuuugor opened this issue Mar 11, 2022 · 1 comment
Open

Arbitrary tensor modification tracking #376

ffuuugor opened this issue Mar 11, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ffuuugor
Copy link
Contributor

There are many possible tensor modifications that break DP guarantees.
We make a weak attempt to verify the model does not break any conventions (e.g. check for BatchNorm layers), but it's in no way comprehensive.

Is there a way to generalise such modification? Only allow certain operations? Use tensor hooks somehow. No answer yet, but interesting topic to explore

@ffuuugor ffuuugor added the enhancement New feature or request label Mar 11, 2022
@ffuuugor
Copy link
Contributor Author

One idea on how to approach this: functional testing.
Static analysis might prove very challenging, but running a batch and then comparing the results with individually-run examples looks easy. We do the same when unit-testing grad samplers, now we just need to package it differently and provide interface for clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant