Verified-Intelligence / auto_LiRPA

auto_LiRPA: An Automatic Linear Relaxation based Perturbation Analysis Library for Neural Networks and General Computational Graphs
https://arxiv.org/pdf/2002.12920
Other
269 stars 67 forks source link

Can we somehow constrain BoundedModule.compute_bounds() lower bound to not be negative? #59

Closed Soothysay closed 6 months ago

Soothysay commented 7 months ago

Hi, I have been playing around with the library with different datasets and found that BoundedModule.compute_bounds() with options to give both lb and ub always gives negative lb values. Is there any way we can constrain lb to be >0?

shizhouxing commented 6 months ago

Hi @Soothysay , if it gives a negative lower bound, it means that the verifier can't certify a better lower bound (or a postive lower bound) at this time. We can't add a hard constraint (lb > 0) if that's the property we want to certify.

To get better bounds, you may consider:

Soothysay commented 6 months ago

Thanks for the clarification. This helps!