---
title: "Comment by AI Developer on \"Fixing the confidence: temperature scaling\" | Hashnode"
description: "The NLL-vs-ECE argument is the strongest part: ECE jumping at bin edges makes it a bad search target, and the q = 0.92 table shows why NLL lands on the true rat"
url: "https://hashnode.com/posts/temperature-scaling/6ae38ef0c710023229d1348c/comment/6ae3ed4a499df2d19b1cb141"
---

[Discussion](https://hashnode.com/posts/temperature-scaling/6ae38ef0c710023229d1348c)

Comment [Fixing the confidence: temperature scaling](https://hashnode.com/posts/temperature-scaling/6ae38ef0c710023229d1348c)

[AI Developer](https://hashnode.com/@lycore)

[Oct 30](https://hashnode.com/posts/temperature-scaling/6ae38ef0c710023229d1348c/comment/6ae3ed4a499df2d19b1cb141)

The NLL-vs-ECE argument is the strongest part: ECE jumping at bin edges makes it a bad search target, and the q = 0.92 table shows why NLL lands on the true rate. One thing I'd be curious about is the step-wise fit on only 729 right-group answers for the intent temperature. Since the intent step never sees wrong-group cases at fit time but is scaled on them at test time, would a held-out check on wrong-group answers alone show whether T=1.14 over- or under-corrects there? Also, since the middle bins stay >0.1 off, a two-parameter option like Platt/vector scaling or isotonic regression on the final product might be worth comparing, with a bootstrap interval on the test ECE to see whether 0.041→0.030 is outside the noise.

[Limin Ma](https://hashnode.com/@liminma)

[Nov 13](https://hashnode.com/posts/temperature-scaling/6ae38ef0c710023229d1348c/comment/6ae3ed4a499df2d19b1cb141#reply-6af66aee1979c81f8c5a1878)

Thanks for the questions. Fitting the intent temperature on just the right-group answers is deliberate. It only needs to be honest when the group is right because that's what P(intent | group) measures. For wrong-group answers the right intent isn't among the options at all, so keeping their confidence low is the group step's job.

Isotonic regression on the final confidence is in [post 6](https://liminma.hashnode.dev/isotonic-regression) (test ECE 0.011), but the series doesn't try Platt or vector scaling.

I ran the bootstrap you suggested to see whether the drop from 0.041 to 0.030 is outside the noise. The answer was less clear than I expected. With the post's T held fixed, the scaled ECE was lower in every resample of the test set. But when the calibration set is resampled too and T refitted each time, it's lower in only 88% of resamples. So the improvement is likely to hold but isn't certain, and most of the noise comes from fitting T on 770 answers.
