Generalized approximate survey propagation for high-dimensional estimation*This article is an updated version of: Lucibello C, Saglietti L and Lu Y 2019 Generalized approximate survey propagation for high-dimensional estimation Proc. 36th Int. Conf. on Machine Learning pp 4173--82. (21st December 2020)