<?xml version='1.0' encoding='utf-8'?> <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> <dc:creator>Clarte, Lucas</dc:creator> <dc:creator>Loureiro, Bruno</dc:creator> <dc:creator>Krzakala, Florent</dc:creator> <dc:creator>Zdeborova, Lenka</dc:creator> <dc:date>2023-09-19</dc:date> <dc:description>Despite their incredible performance, it is well reported that deep neural networks tend to be overoptimistic about their prediction confidence. Finding effective and efficient calibration methods for neural networks is therefore an important endeavour towards better uncertainty quantification in deep learning. In this manuscript, we introduce a novel calibration technique named expectation consistency (EC), consisting of a post-training rescaling of the last layer weights by enforcing that the average validation confidence coincides with the average proportion of correct labels. First, we show that the EC method achieves similar calibration performance to temperature scaling (TS) across different neural network architectures and data sets, all while requiring similar validation samples and computational resources. However, we argue that EC provides a principled method grounded on a Bayesian optimality principle known as the Nishimori identity. Next, we provide an asymptotic characterization of both TS and EC in a synthetic setting and show that their performance crucially depends on the target function. In particular, we discuss examples where EC significantly outperforms TS. This record provides the code for the paper "Expectation consistency for calibration of neural networks".</dc:description> <dc:identifier>https://archive.materialscloud.org/record/2023.144</dc:identifier> <dc:identifier>doi:10.24435/materialscloud:ws-p3</dc:identifier> <dc:identifier>mcid:2023.144</dc:identifier> <dc:identifier>oai:materialscloud.org:1892</dc:identifier> <dc:language>en</dc:language> <dc:publisher>Materials Cloud</dc:publisher> <dc:rights>info:eu-repo/semantics/openAccess</dc:rights> <dc:rights>Creative Commons Attribution 4.0 International https://creativecommons.org/licenses/by/4.0/legalcode</dc:rights> <dc:subject>MARVEL/P2</dc:subject> <dc:subject>neural networks</dc:subject> <dc:subject>uncertainty quantification</dc:subject> <dc:subject>temperature scaling</dc:subject> <dc:title>Expectation consistency for calibration of neural networks (code)</dc:title> <dc:type>Dataset</dc:type> </oai_dc:dc>