An anomaly score ranks how unusual an item’s model activations are relative to other items. For each neuron, rank activations from largest to smallest: low activations receive high outlier scores, while high activations receive low scores. This uses rank order rather than relying on absolute activation values. section 4.2
Turn an activation rank into a score
Among 10 ranked activations, an item at -0.36 is ninth-lowest, giving it an outlier score of 9/10, or 0.9. For an unlabeled item between ranked values, interpolate: -0.35 halfway between the eighth- and ninth-lowest values scores 85%. section 4.2 section 4.2.1
[2.43, 2.23, 1.74, 1.12, 0.89, 0.44, 0.23, -0.34, -0.36, -0.42]
Example activations ranked from largest to smallest; the low end receives the highest outlier scores. section 4.2
Build the rankings from held-out validation data drawn from the training distribution, not training data, which may be overfit. For an item, average its ranked scores across neurons as a statistically safer choice; alternatively, use the lowest maximum logit score. section 4.2.1


