Huemn homeResearch ↗

Computational study

Learning
orientation.

A 20 × 20 pixel patch contains 400 values. How much of its direction can a small model recover?

Inspect a prediction ↓
0°Four learned basis filters for the 0-degree class
45°Four learned basis filters for the 45-degree class
90°Four learned basis filters for the 90-degree class
135°Four learned basis filters for the 135-degree class
Learned filters · four spatial components per class. Dark and pale encode opposite signs; each filter is scaled independently for display.

Inference

Inside one
decision.

Choose a held-out input. Its pixels are centered, normalized and projected onto each set of learned filters. The largest projection energy wins.

Original noisy test grating, sample 0
Sample 0 · 20 × 20 px
Target
0°
Predicted
0°
Energy by class
0°0.22910.2291
45°0.00500.0050
90°0.00470.0047
135°0.06350.0635

Energy is the fraction of normalized image energy captured by a class subspace. It is not a probability.

Held-out evaluation

406 of 480.

A separately seeded test set contains 120 examples per class. The model made 74 errors. The nominal direction ranges overlap around adjacent class boundaries.

Prediction, in degrees
Target0°45°90°135°
0°109308
45°169680
90°071103
135°1601391

Cells count held-out images. Rows are true generation classes. Columns are predicted classes. Greater intensity indicates a larger count.

Class-wise sampling uncertainty
TargetCorrect95% interval
0°109 / 12084.3–94.8%
45°96 / 12072.0–86.2%
90°110 / 12085.3–95.4%
135°91 / 12067.4–82.6%

Each interval is a two-sided approximate Wilson interval for the proportion correct within one generator class. These are individual intervals, with no multiple-comparison adjustment.

Method

Reproduce
the study.

Samples and labels

The labels denote the nominal direction of intensity change, perpendicular to the drawn stripes. Each 20 × 20 patch samples a cosine grating. Its angle varies ±26° around one of four nominal directions. Frequency is uniform over 0.075–0.16 cycles per pixel. Phase, brightness, amplitude and Gaussian noise level are sampled independently. Values are clipped and rounded to eight bits.

Fitting the model

Training uses 96 generated examples per class, 384 in total. After removing each patch’s mean and normalizing its L2 norm, singular-value decomposition learns four spatial basis vectors per class. At inference the model sums the squared projections onto each class basis and returns the largest sum. Scores can overlap because the class subspaces can overlap.

Evaluation scope

Training uses seed 1462. The held-out run uses seed 96311 with the same generation process. The viewer includes the first correct and first incorrect example encountered in each class. The full table includes every test example. The measured results apply only to this constructed task and generator. They provide no estimate of Huemn Face accuracy or performance on natural images.