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 ↓



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.

- Target
- 0°
- Predicted
- 0°
| 0° | 0.2291 | |
|---|---|---|
| 45° | 0.0050 | |
| 90° | 0.0047 | |
| 135° | 0.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.
| Target | 0° | 45° | 90° | 135° |
|---|---|---|---|---|
| 0° | 109 | 3 | 0 | 8 |
| 45° | 16 | 96 | 8 | 0 |
| 90° | 0 | 7 | 110 | 3 |
| 135° | 16 | 0 | 13 | 91 |
Cells count held-out images. Rows are true generation classes. Columns are predicted classes. Greater intensity indicates a larger count.
| Target | Correct | 95% interval |
|---|---|---|
| 0° | 109 / 120 | 84.3–94.8% |
| 45° | 96 / 120 | 72.0–86.2% |
| 90° | 110 / 120 | 85.3–95.4% |
| 135° | 91 / 120 | 67.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.