Skip to main content
Log in

Max-convolution through numerics and tropical geometry

  • Original Paper
  • Published:
Numerical Algorithms Aims and scope Submit manuscript

Abstract

The maximum function, on vectors of real numbers, is not differentiable. Consequently, several differentiable approximations of this function are popular substitutes. We survey three smooth functions which approximate the maximum function and analyze their convergence rates. We interpret these functions through the lens of tropical geometry, where their performance differences are geometrically salient. As an application, we provide an algorithm which computes the max-convolution of two integer vectors in quasi-linear time. We show this algorithm’s power in computing adjacent sums within a vector as well as computing service curves in a network analysis application.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Algorithm 1
Algorithm 2
Fig. 18
Fig. 19
Fig. 20
Fig. 21

Similar content being viewed by others

Data availability

All data is described in the text.

References

  1. Zang, I.: A smoothing-out technique for min-max optimization. Math. Programming. 19(1), 61–77 (1980)

    Article  MathSciNet  MATH  Google Scholar 

  2. Zhao, G., Wang, Z., Mou, H.: Uniform approximation of min/max functions by smooth splines. J. Comput. Appl. Math. 236(5), 699–703 (2011). The 7th International Conference on Scientific Computing and Applications, June 13–16, 2010, Dalian, China

  3. Asadi, K., Littman, M.L.: An alternative softmax operator for reinforcement learning. In: Proceedings of the 34th International Conference on Machine Learning, Vol 70. ICML’17, pp. 243–252. JMLR.org, (Online) (2017)

  4. Liu, W., Wen, Y., Yu, Z., Yang, M.: Large-margin softmax loss for convolutional neural networks. In: Balcan, M., Weinberger, K. (eds.) International Conference on Machine Learning, Vol 48. Proceedings of Machine Learning Research, vol. 48 (2016). 33rd International Conference on Machine Learning, New York, NY, JUN 20–22, 2016

  5. Nielsen, F., Sun, K.: Guaranteed bounds on information-theoretic measures of univariate mixtures using piecewise log-sum-exp inequalities. Entropy. 18(12) (2016). https://doi.org/10.3390/e18120442

  6. Blanchard, P., Higham, D.J., Higham, N.J.: Accurately computing the log-sum-exp and softmax functions. IMA J. Numer. Anal. 41(4), 2311–2330 (2020). https://doi.org/10.1093/imanum/draa038. https://academic.oup.com/imajna/articlepdf/41/4/2311/40758053/draa038.pdf

  7. Trefethen, L.N., Weideman, J.A.C.: The exponentially convergent trapezoidal rule. SIAM Review. 56(3), 385–458 (2014)

    Article  MathSciNet  MATH  Google Scholar 

  8. Pfeuffer, J., Serang, O.: A bounded p-norm approximation of max-convolution for sub-quadratic Bayesian inference on additive factors. J. Mach. Learn. Res. 17, 36–13639 (2016)

    MathSciNet  MATH  Google Scholar 

  9. Serang, O.: A fast numerical method for max-convolution and the application to efficient max-product inference in bayesian networks. J. Comput. Biol. J. Mol. Cell. Biol. 22 (2015). https://doi.org/10.1089/cmb.2015.0013

  10. Maclagan, D., Sturmfels, B.: Introduction to tropical geometry. Graduate Studies in Mathematics, vol. 161. American Mathematical Society, Providence, Rhode Island (2015)

  11. Bergman, G.M.: The logarithmic limit-set of an algebraic variety. Trans. Am. Math. Soc. 157, 459–469 (1971)

    Article  MathSciNet  MATH  Google Scholar 

  12. DeWolff, T., Schroeter, F.: The boundary of amoebas. arXiv Preprint: - arXiv:1310.7363 (2013)

  13. Forsberg, M., Passare, M., Tsikh, A.: Laurent determinants and arrangements of hyperplane amoebas. Adv. Math. 151, 45–70 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  14. Moenck, R.T.: Practical fast polynomial multiplication. In: Proceedings of the Third ACM Symposium on Symbolic and Algebraic Computation. SYMSAC’ 76, pp. 136–148. Association for Computing Machinery, New York, NY, USA (1976)

  15. Cygan, M., Mucha, M., Wundefinedgrzycki, K., Włodarczyk, M.: On problems equivalent to (min,+)-convolution. ACM Trans. Algorithms 15(1) (2019)

  16. Van Bemten, A., Kellerer, W.: Network calculus: a comprehensive guide (2016). https://doi.org/10.13140/RG.2.2.32305.89448

Download references

Funding

This material is based upon work supported by the National Science Foundation under grants CCF-1812746 and CMMI-2041789. The first author is partially supported by an NSERC Discovery Grant (Canada).

Author information

Authors and Affiliations

Authors

Contributions

J. D. H. and T. B. developed the theories and algorithms and wrote the main manuscript. T. B. and C. H. tested the convergence rates; T.B. prepared Figs. 113 and 1618. T.B. analyzed and wrote Section 4 regarding tropical geometry and wrote Section 6.1. C.H. tested and prepared Figs. 1415 and 1920 and wrote Sects. 5.15.2 and 6.2. All authors reviewed the manuscript.

Corresponding author

Correspondence to Caroline Hills.

Ethics declarations

Ethical approval

Not applicable

Conflict of interest

The authors declare no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Brysiewicz, T., Hauenstein, J.D. & Hills, C. Max-convolution through numerics and tropical geometry. Numer Algor (2023). https://doi.org/10.1007/s11075-023-01668-w

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11075-023-01668-w

Keywords

Navigation