liveBook · Manning

Outlier

As explained in Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI

An observation that is unusual relative to other observations in the data.

An outlier is unusual relative to other observations. In clustering, it is far from the center of every cluster, in contrast to a centroid, which represents a cluster’s center. Sampling a few outliers can surface rare items or trends that clustering may miss, while avoiding a labeling queue dominated by similar examples. section 4.3.1 section 4.3.1

Neural-model scores offer another way to identify outliers. Raw logits retain absolute values that softmax normalizes away, helping distinguish true outliers from items with conflicting information. If logits are unavailable, the second-to-last layer may provide useful scores; exposing logits or retraining only the final layer with Leaky ReLU are alternatives to changing the whole model. section 4.1.2 section 4.1.2

Use outlier sampling sparingly and inspect what the unusual items represent:

  • Sample a small number per cluster; they may reveal missed trends, but can instead be genuinely rare or noisy examples. section 4.3.1
  • Check whether unusual text contains rare words or unusual images are noisy or corrupted. section 4.3.1
Figure 4.4 An example clustering algorithm applied to the data, splitting it into five separate clusters. For each cluster, the most central item is known as the centroid, and the items farthest from the centers are outliers.

The diagram shows centroids and the items farthest from cluster centers. section 4.3.1

How Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI covers it

How deep it goes
Explains cluster distance and neural-model score options, but does not specify a full outlier-detection algorithm.
Examples
Uses rare words, noisy or corrupted images, and items far from cluster centers as examples.
What you can do after
Apply via clustering to sample a few unusual items for review alongside more representative examples.
How it connects
Connects outliers to clustering, centroids, logits, softmax, and neural-network layers.

This explainer was generated by Manning's knowledge graph from the text of Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI. The section links point to the parts of the book it draws on.