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

Case for unique solution sampler #3

Open
xuyoji opened this issue Aug 11, 2019 · 2 comments
Open

Case for unique solution sampler #3

xuyoji opened this issue Aug 11, 2019 · 2 comments

Comments

@xuyoji
Copy link

xuyoji commented Aug 11, 2019

I have a question on the case of unique solution.
If a sampler only outputs unique solutions(which means one valid solution can only appears once in the output), whether barbarik works correctly? In other words, whether the output data of barbarik is meaningful?
Thanks : )

@kuldeepmeel
Copy link
Contributor

This is where the non-adversarial sampler assumption comes into the play. Ideally, barbarik should be able to catch a sampler that is not truly uniform sampler, since a truly uniform sampler would need to ensure that every solution occurs with equal probability and a deterministic sampler that simply enumerates solution may not necessarily do so.

Therefore, if barbarik is able to "catch", i.e., Reject the sampler, then one can use that output to debug the sampler but it is indeed possible that such an enumeration based algorithm may be able to fool barbarik. We would be very interested either way.

@msoos
Copy link
Collaborator

msoos commented May 3, 2020

Let me chime in, being a bit pedantic perhaps :) You mentioned "a sampler only outputs unique solutions" -- please note that this is not correct uniform sampling in many cases. Let's say that there are 1k solutions, and you are asked to give 500 uniform samples at random. One is expected to find a number of repeated samples. A sampler that only outputs unique solutions will therefore not be a uniform sampler in this case. There are other "edge-cases", and particularly, heuristic "corners" that can make such a unique-solution-only solver non-viable and in fact highly dangerous, making the sampler seem uniform, when in fact it's not. Thankfully, Barbarik can often distinguish such samplers from truly uniform samplers :) I'm not sure I answered you question, but I wanted to highlight this perhaps easy-to-overlook aspect.

@msoos msoos closed this as completed May 3, 2020
@msoos msoos reopened this May 3, 2020
@meelgroup meelgroup locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants