Proceedings

ExLipBaB: Exact Lipschitz Constant Computation for Piecewise Linear Neural Networks

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 753-761.

https://doi.org/10.24963/ijcai.2026/85

Abstract

It has been shown that a neural network's Lipschitz constant can be leveraged to derive robustness guarantees, to improve generalizability via regularization or even to construct invertible networks. Therefore, a number of methods varying in the tightness of their bounds and their computational cost have been developed to approximate the Lipschitz constant for different classes of networks. However, comparatively little research exists on methods for exact computation, which has been shown to be NP-hard. Nonetheless, there are applications where one might readily accept the computational cost of an exact method. These applications could include the benchmarking of new methods or the computation of robustness guarantees for small models on sensitive data. Unfortunately, existing exact algorithms restrict themselves to only ReLU-activated networks, which are known to come with severe downsides in the context of Lipschitz-constrained networks. We therefore propose a generalization of the LipBaB algorithm to compute exact Lipschitz constants for arbitrary continuous piecewise linear neural networks and p-norms. With our method, networks may contain traditional activations like ReLU or LeakyReLU, activations like GroupSort or the related MaxMin and FullSort, which have been of increasing interest in the context of Lipschitz-constrained networks, or other piecewise linear functions like MaxPool.

  1. [Anil et al., 2019] Cem Anil, James Lucas, and Roger Grosse. Sorting Out Lipschitz Function Approximation. In Proceedings of the 36th International Conference on Ma- chine Learning, pages 291-301. PMLR, May 2019.
  2. [Behrmann et al., 2019] Jens Behrmann, Will Grathwohl, Ricky T. Q. Chen, David Duvenaud, and Joern-Henrik Ja- cobsen. Invertible Residual Networks. In Proceedings of the 36th International Conference on Machine Learning, pages 573-582. PMLR, May 2019.
  3. [Bhowmick et al., 2021] Aritra Bhowmick, Meenakshi D'Souza, and G. Srinivasa Raghavan. LipBaB: Com- puting Exact Lipschitz Constant of ReLU Networks. In Igor Farkaš, Paolo Masulli, Sebastian Otte, and Stefan Wermter, editors, Artificial Neural Networks and Machine Learning -ICANN 2021, pages 151-162, Cham, 2021. Springer International Publishing.
  4. [Chen et al., 2019] Ricky T. Q. Chen, Jens Behrmann, David K Duvenaud, and Joern-Henrik Jacobsen. Residual Flows for Invertible Generative Modeling. In Advances in Neural Information Processing Systems, volume 32. Cur- ran Associates, Inc., 2019.
  5. [Cisse et al., 2017] Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Par- seval Networks: Improving Robustness to Adversarial Ex- amples. In Proceedings of the 34th International Confer- ence on Machine Learning, pages 854-863. PMLR, July 2017.
  6. [Cortez et al., 2009] Paulo Cortez, António Cerdeira, Fer- nando Almeida, Telmo Matos, and José Reis. Model- ing wine preferences by data mining from physicochem- ical properties. Decision Support Systems, 47(4):547-553, November 2009.
  7. [Diep, 2012] Nguyen Hong Diep. Efficient Implementation of Interval Matrix Multiplication. In Kristján Jónasson, editor, Applied Parallel and Scientific Computing, pages 179-188, Berlin, Heidelberg, 2012. Springer.
  8. [Ducotterd et al., 2024] Stanislas Ducotterd, Alexis Goujon, Pakshal Bohra, Dimitris Perdios, Sebastian Neumayer, and Michael Unser. Improving Lipschitz-Constrained Neural Networks by Learning Activation Functions. Journal of Machine Learning Research, 25(65):1-30, 2024.
  9. [Fanaee-T and Gama, 2014] Hadi Fanaee-T and Joao Gama. Event labeling combining ensemble detectors and back- ground knowledge. Progress in Artificial Intelligence, 2(2):113-127, June 2014.
  10. [Fazlyab et al., 2019] Mahyar Fazlyab, Alexander Robey, Hamed Hassani, Manfred Morari, and George Pappas. Ef- ficient and Accurate Estimation of Lipschitz Constants for Deep Neural Networks. In Advances in Neural Informa- tion Processing Systems, volume 32.
  11. Curran Associates, Inc., 2019.
  12. [Gehr et al., 2018] Timon Gehr, Matthew Mirman, Dana Drachsler-Cohen, Petar Tsankov, Swarat Chaudhuri, and Martin Vechev. Ai 2: Safety and robustness certification of neural networks with abstract interpretation. In Security and Privacy (SP), 2018 IEEE Symposium on, 2018.
  13. [Gendron and Crainic, 1994] Bernard Gendron and Teodor Gabriel Crainic. Parallel Branch-And-Bound Algorithms: Survey and Synthesis. Operations Research, 42(6):1042-1066, 1994.
  14. [Gorokhovik et al., 1994] V. V. Gorokhovik, O. I. Zorko, and G. Birkhoff. Piecewise affine functions and polyhedral sets. Optimization, 31(3):209-221, January 1994.
  15. [Goujon et al., 2024] Alexis Goujon, Arian Etemadi, and Michael Unser. On the number of regions of piecewise linear neural networks. Journal of Computational and Ap- plied Mathematics, 441:115667, May 2024.
  16. [Gouk et al., 2021] Henry Gouk, Eibe Frank, Bernhard Pfahringer, and Michael J. Cree. Regularisation of neu- ral networks by enforcing Lipschitz continuity. Machine Learning, 110(2):393-416, February 2021.
  17. [Hanin and Rolnick, 2019] Boris Hanin and David Rolnick. Deep ReLU Networks Have Surprisingly Few Activation Patterns. In Advances in Neural Information Processing Systems, volume 32.
  18. Curran Associates, Inc., 2019.
  19. [Huster et al., 2019] Todd Huster, Cho-Yu Jason Chiang, and Ritu Chadha. Limitations of the Lipschitz Con- stant as a Defense Against Adversarial Examples. In Carlos Alzate, Anna Monreale, Haytham Assem, Al- bert Bifet, Teodora Sandra Buda, Bora Caglayan, Brett Drury, Eva García-Martín, Ricard Gavaldà, Irena Koprin- ska, Stefan Kramer, Niklas Lavesson, Michael Madden, Ian Molloy, Maria-Irina Nicolae, and Mathieu Sinn, edi- tors, ECML PKDD 2018 Workshops, pages 16-29, Cham, 2019. Springer International Publishing.
  20. [Johnston, 2016] Nathaniel Johnston. How to compute hard- to-compute matrix norms. https://njohnston.ca/2016/01/ how-to-compute-hard-to-compute-matrix-norms/, 2016. Accessed: 2024-05-22. Link
  21. [Jordan and Dimakis, 2020] Matt Jordan and Alexandros G Dimakis. Exactly Computing the Local Lipschitz Constant of ReLU Networks. In Advances in Neural Information Processing Systems, volume 33, pages 7344-7353.
  22. Curran Associates, Inc., 2020.
  23. [Lee, 2004] Jon Lee. A First Course in Combinatorial Opti- mization. Cambridge Texts in Applied Mathematics. Cam- bridge University Press, Cambridge, 2004.
  24. [Li et al., 2019] Jianlin Li, Jiangchao Liu, Pengfei Yang, Liqian Chen, Xiaowei Huang, and Lijun Zhang. Ana- lyzing Deep Neural Networks with Symbolic Propagation: Towards Higher Precision and Faster Verification. In Bor- Yuh Evan Chang, editor, Static Analysis, pages 296-319, Cham, 2019. Springer International Publishing.
  25. [Pauli et al., 2023] Patricia Pauli, Dennis Gramlich, and Frank Allgöwer. Lipschitz constant estimation for 1D con- volutional neural networks. In Proceedings of The 5th Annual Learning for Dynamics and Control Conference, pages 1321-1332. PMLR, June 2023.
  26. [Pauli et al., 2024] Patricia Pauli, Aaron J. Havens, Alexan- dre Araujo, Siddharth Garg, Farshad Khorrami, Frank Allgöwer, and Bin Hu. Novel Quadratic Constraints for Extending LipSDP beyond Slope-Restricted Activations. In The Twelfth International Conference on Learning Rep- resentations, 2024.
  27. [Pintore and Després, 2024] Moreno Pintore and Bruno De- sprés. Computable Lipschitz Bounds for Deep Neural Net- works, October 2024. arXiv:2410.21053 [cs].
  28. [Rump, 2012] Siegfried M. Rump. Fast interval matrix mul- tiplication. Numerical Algorithms, 61(1):1-34, September 2012.
  29. [Shi et al., 2022] Zhouxing Shi, Yihan Wang, Huan Zhang, J. Zico Kolter, and Cho-Jui Hsieh. Efficiently Computing Local Lipschitz Constants of Neural Networks via Bound Propagation. Advances in Neural Information Processing Systems, 35:2350-2364, December 2022.
  30. [Stargalla et al., 2025] Moritz Stargalla, Christoph Hertrich, and Daniel Reichman. The Computational Complexity of Counting Linear Regions in ReLU Neural Networks.
  31. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Ko- niusz, M. Ghassemi, and N. Chen, editors, Advances in Neural Information Processing Systems, volume 38, pages 125970-125988.
  32. Curran Associates, Inc., 2025.
  33. [Szegedy et al., 2014] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks, February 2014. arXiv:1312.6199 [cs].
  34. [Tanielian and Biau, 2021] Ugo Tanielian and Gerard Biau. Approximating Lipschitz continuous functions with GroupSort neural networks. In Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, pages 442-450. PMLR, March 2021.
  35. [Tao et al., 2022] Qinghua Tao, Li Li, Xiaolin Huang, Xi- angming Xi, Shuning Wang, and Johan A. K. Suykens. Piecewise linear neural networks and deep learning. Na- ture Reviews Methods Primers, 2(1):42, June 2022.
  36. [Tsuzuku et al., 2018] Yusuke Tsuzuku, Issei Sato, and Masashi Sugiyama. Lipschitz-Margin Training: Scalable Certification of Perturbation Invariance for Deep Neural Networks. In Advances in Neural Information Processing Systems, volume 31.
  37. Curran Associates, Inc., 2018.
  38. [Virmaux and Scaman, 2018] Aladin Virmaux and Kevin Scaman. Lipschitz regularity of deep neural networks: analysis and efficient estimation. In Advances in Neural Information Processing Systems, volume 31.
  39. [Wang, 2022] Yuan Wang. Estimation and Comparison of Linear Regions for ReLU Networks. In Proceedings of the Thirty-First International Joint Conference on Artifi- cial Intelligence, volume 4, pages 3544-3550, July 2022. IJCAI
  40. [Warwick et al., 1994] Nash Warwick, Sellers Tracy, Talbot Simon, Cawthorn Andrew, and Ford Wes. Abalone, 1994. Published: UCI Machine Learning Repository.
  41. [Weng et al., 2018a] Lily Weng, Huan Zhang, Hongge Chen, Zhao Song, Cho-Jui Hsieh, Luca Daniel, Duane Boning, and Inderjit Dhillon. Towards Fast Computation of Cer- tified Robustness for ReLU Networks. In Proceedings of the 35th International Conference on Machine Learning, pages 5276-5285. PMLR, July 2018.
  42. [Weng et al., 2018b] Tsui-Wei Weng, Huan Zhang, Pin-Yu Chen, Jinfeng Yi, Dong Su, Yupeng Gao, Cho-Jui Hsieh, and Luca Daniel. Evaluating the Robustness of Neural Networks: An Extreme Value Theory Approach. In Inter- national Conference on Learning Representations, 2018.
  43. [Zhang et al., 2024] Zeyu Zhang, Khandaker Asif Ahmed, Md Rakibul Hasan, Tom Gedeon, and Md Zakir Hossain. A Deep Learning Approach to Diabetes Diagnosis. In Ngoc Thanh Nguyen, Richard Chbeir, Yannis Manolopou- los, Hamido Fujita, Tzung-Pei Hong, Le Minh Nguyen, and Krystian Wojtkiewicz, editors, Recent Challenges in Intelligent Information and Database Systems, pages 87- 99, Singapore, 2024. Springer Nature.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards