Skip to content

Error when testing the robustness of networks with small non-zero weights #157

Closed Answered by vtjeng
vtjeng asked this question in Q&A
Discussion options

You must be logged in to vote

It is a known issue that having input weights which are small (relative to the largest weights) but non-zero leads to issues in the numerical methods used by the underlying solver (Gurobi, CPLEX or similar).

(In my experience, having sparse networks with weights exactly zero will actually help with solve times --- see the Appendix H to the paper linked in the README for some numerical details).

  • If you are able to retrain the network with a regularization term in the loss to encourage sparsity (a small L1 penalty on weights forces weights to be zero in my experience) that will help with verification.
  • Otherwise, try rounding those small values to zero

Replies: 1 comment

Comment options

vtjeng
Jan 7, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by vtjeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant