An unofficial, read-only Hacker News reader.

An introduction to uncertainty in machine learning (opens external site)

147 points by chrhenning 3 days ago | chrhenning.com | 14 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. I kinda liked to think of uncertainty/entropy minimization as "spike sharpening". Picture baseline distribution of perfectly even odds being uniform/flat, no spike. The sharper the spike rising up from that (line being pulled into a curve), the bigger the confidence in a specific prediction (label above the "mountaintop").

    Typical supervised/self-supervised training needs a correct known answer to sharpen towards (cross-entropy/KL-divergence minimization), with soft caps on certainty/spikes to smooth labels, and a temperature var to divide logits before they become % (flat = hot/fluid, sharp = cool/rigid).

    IIRC, smoothening is a static knob affecting backward pass, while temp is a dynamic one affecting forward pass, alongside some other knobs ("trimmers"/filters like top K & P).

    Besides being a kind of generic control knob for different subsystems, end-users could tweak inference temp a lot more often in past models (less expose it now for a bunch of reasons).

    It's basically a signal that says "Be more adventurous!" when high. Might explain why the common advice was to ratchet up temp for creative stuff and cool it down for stuff like code.

    Bit of a tangent but related to the post topic I guess. There's a bunch of caveats but it's the least bad way I found so far to intuit the gist of the process during some model experiments.