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

Spec basic privacy budgeting #79

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

csharrison
Copy link
Contributor

@csharrison csharrison commented Feb 4, 2025

This PR adds basic privacy budgeting, without getting into the safety limit budgeting (which I still need to think about).

cc #77 . This PR still uses floating point budgeting which is the simplest approach until we resolve that issue.

api.bs Outdated Show resolved Hide resolved
api.bs Outdated Show resolved Hide resolved
api.bs Outdated Show resolved Hide resolved
api.bs Show resolved Hide resolved
Copy link
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure about putting all this gory detail in that section, rather than pushing it down the document. Having it further down (in the privacy budgeting section) might ensure that the explanatory text in the document doesn't grow impenetrable algorithmic stuff. These algorithms are pretty reader-hostile (even if this one is pretty clear to me).

Otherwise, this seems solid.

1. Let |currentValue| be the result of [=map/get|getting the value=] of |key|
in the [=privacy budget store=].

1. If |currentValue| is less than or equal to 0, return false.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this step? From the outside, the algorithm doesn't change if you remove this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am open to removing it. The reason why I added this line was to avoid having to subtract budget from an exhausted epoch. It felt a little weird mutating a key's value in that state.

@csharrison
Copy link
Contributor Author

I'm not 100% sure about putting all this gory detail in that section, rather than pushing it down the document. Having it further down (in the privacy budgeting section) might ensure that the explanatory text in the document doesn't grow impenetrable algorithmic stuff. These algorithms are pretty reader-hostile (even if this one is pretty clear to me).

Heh I thought this was the part of the spec that was supposed to be gory :) . TBH I don't have a full picture of how we want the spec to be organized. It seems the latter sections are less algorithm-y and more like non-normative sections.

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

Successfully merging this pull request may close these issues.

3 participants