Learn

The theory, the terms, and the limits.

A 5-minute primer

1. The task

Say I ask you to categorise a stimulus that varies on two dimensions, a face's expression (happy/sad) and sex (male/female). Across many trials we get a 4×4 confusion matrix that indicates which of the 4 stimuli was shown against which of the 4 responses was given.

2. The model

General Recognition Theory (GRT; Ashby & Townsend, 1986) starts from the fact that perception is noisy: the same face does not look exactly the same every time. So instead of a single point in the mind, each face is represented as a cloud of possible impressions (a bivariate normal distribution). The cloud is spread over two directions, one for expression and one for sex. Each time you see the face, your impression is one point from that cloud. You then decide using two lines: one separates happy from sad, and the other separates male from female. Which side of each line your impression falls on determines your answer. (GRIN fixes both lines at the origin. See decisional separability below.)

That single picture, four ellipses and a pair of crossed lines, is the entire model. Everything else on this site is about estimating where the ellipses are located in space and how they are shaped from the responses alone. You can go build one of these spaces in the Space Builder page. It is faster to understand by dragging sliders than by reading all of this.

3. The two questions we typically ask with GRT

Perceptual separability. Does how happy a face looks depend on whether it is male or female? If male faces look a little happier just because they are male, expression is not separable from sex. In the picture, the clouds shift.

Perceptual independence. For any one face, are the random ups and downs in the two impressions linked? Suppose that whenever a face happens to look extra happy, it also tends to look extra male. Then the two impressions are correlated, and that face's cloud tilts.

These are two separate questions. A space can be separable but correlated, non-separable but uncorrelated, or any combination.

4. The confusion matrix

Each row of the 4×4 table gives the proportion of each answer to one face, so it adds up to 1 and only 3 of its 4 numbers are free to vary. That gives 12 free numbers in total. GRIN's model also has 12 numbers to estimate: where each of the four clouds sits left–right (4), where it sits up–down (4), and how much it tilts (4). With 12 numbers in and 12 out, a single table is just enough for the model to fit it exactly, as long as the decision lines stay fixed in place. That also means the table alone cannot show the model is wrong, and the correlations are much harder to pin down than the positions. The usual method finds those 12 numbers with a step-by-step search (maximum likelihood), run once per participant for each version of the model. GRIN instead uses a network trained in advance on many simulated experiments, so it gets the answer in one quick calculation. See Evidence for how well that works.

Glossary

Identification task

The experimental design GRT (and GRIN) assumes: one stimulus per trial, varying on two binary dimensions, one response naming both levels. One response key per response option.

Perceptual separability (PS)

A dimension is separable from another if its marginal perceptual distribution does not shift with the other dimension's level. In GRIN's model every cloud has the same spread, so a failure of separability is a mean effect. It moves where an ellipse is centred.

Perceptual independence (PI)

Zero correlation between the two dimensions' perceptual noise, within a single stimulus. Failure of independence is a correlation effect. It tilts an ellipse. GRIN's model classes distinguish exact independence (PI), one shared correlation across all four stimuli (RHO1), and a fully free correlation per stimulus.

Decisional separability (DS)

The decision bound on one dimension does not depend on the perceived level of the other. GRIN assumes DS throughout. The crossed decision lines are always fixed at the origin, which is why the 12-parameter model has exactly as many parameters as the table has free numbers.

Model class

One combination of three correlation patterns (independent, one shared ρ, or a free ρ for each stimulus), times whether A is separable, times whether B is separable, 12 in total. "Fitting a model" in the classical sense means picking the best of these 12. GRIN instead returns continuous parameters plus the probability of each structural claim, so you are not forced to pick one.

Amortised inference

Paying the cost of learning "how to invert this model" once, during training, so that every subsequent inference is just a forward pass, rather than solving a fresh optimisation for each dataset at analysis time.

FAQ
Why not just always fit the unconstrained model, with every value free, and skip model selection?

You can, and the "MLE, full model" column on the Analyse page does exactly that, for comparison. But the constrained classes exist because separability and independence are the scientific questions usually being asked. Reporting only the unconstrained fit answers "what are the 12 numbers" without addressing "are the dimensions independent," which is normally the actual point of running a GRT study.

My data do not fit a 2×2 design. Can I still use this?

Not directly. GRIN is trained specifically on 2-dimension, 2-level identification designs. A 3-level or 3-dimension design has a different-shaped confusion matrix and a different parameter count, and the network has never seen it. The Analyse page rejects the wrong matrix shape, but that input check is not a general detector of model misspecification. A separate 3×3 estimator is now being explored, but it is not part of the released tool.

How is this different from just fitting a hierarchical Bayesian GRT model in Stan?

They are not automatically the same target. GRIN currently makes a separate, fixed-prior inference for each participant. A hierarchical Stan model estimates population and participant effects jointly and lets the data determine the amount of pooling. GRIN is much faster for the model and prior it was trained on. Stan is slower but can express different priors, hierarchies, and model extensions directly.

Limitations

Amortised over a fixed prior

GRIN was trained on sensitivities up to 3 either side of zero, correlations from −0.9 to 0.9, and 1 to 1000 trials per stimulus. It was tested from 5 to 500 trials per stimulus. Analyse checks matrix shape, trial counts, and accuracy where it can. Those are useful input checks, not proof that a dataset falls inside the training distribution or that GRT generated it.

Decisional separability

The decision bounds are fixed at the origin in every model class GRIN fits. If your participants use response criteria that shift with the other dimension, GRIN will not detect that, because it is not in the model family. No method could detect it from one table either. Every such shift produces exactly the same table as some space in which the criteria do not shift.

2×2 identification designs only

Two dimensions, two levels each, one stimulus and one full response per trial. Not same-different tasks, not detection tasks, not larger factorial designs.

A model class winning at 0.4 is not a finding

GRIN reports a probability alongside every structural claim specifically so you do not have to pretend a narrow plurality is a confident conclusion. The Space Builder and Analyse pages show any probability below 0.6 dimmed, as a sign that the answer is not firm.

Further reading

Now do something with it

The tutorials are complete walkthroughs in Python and R: analysing data you already have, stopping a task when the estimate is precise enough, and steering stimulus levels into the range where your question is answerable.

Or try the live task, a short identification task. By default the GRT model is refitted at each block break.