Concepts and Categories
What do you know when you know what a bird is?
Is a penguin a bird? Everyone says yes, and everyone is slower to say it than for a robin. Aristotle's definitions fail for birds and games alike; membership is graded and its edges unstable. Two equations replace definitions: a prototype, recognised though never seen, and a memory of every member, whose summed similarity wins the 5-4 structure. Shepard, Hovland and Jenkins's six problems, refitted on the 1994 open data, need an attention that learns. Scaling turns Ekman's colour ratings into Newton's colour circle and Rothkopf's Morse confusions into a map, and in that map Shepard's law holds: generalization falls exponentially, as it must for a mind unsure how far a consequence extends. Tversky shows similarity is not distance, and his count of asymmetries is rerun on the open table. Knowledge is a network, not a tree; priming through it is real and small. Concepts are theories, as the pizza and the raccoon show; three examples can teach one by the size principle; and Jane Austen's words, placed by the company they keep, find their meanings and their opposites.
What you need. Part 11's psychophysical scales, Part 13's opponent channels, Part 16's delta rule, Part 18's attention weights and Part 21's semantic network. Distances, eigenvectors, the SVD, Bayes' rule and a little integration.
- Hook
- is a penguin a bird?
- Ideas, models and mathematics
- definitions and family resemblance, prototypes and the generalized context model with the 5-4 structure, the six problems and ALCOVE fitted to open data, multidimensional scaling of colours and Morse code, Shepard's universal law tested and derived, Tversky's contrast model and his asymmetry count rerun, semantic networks and priming at scale, the basic level and category utility, concepts as theories, the number game and the size principle, word vectors from Jane Austen, RSA and language models
- Psyche gains
- the GCM, a prototype model, ALCOVE, non-metric MDS, consequential regions, the contrast model, category utility, a Bayesian concept learner, PPMI word vectors
- On you
- the number game
What you will be able to do
Psych 101 and the major
- Explain why few everyday concepts have definitions, and what typicality and family resemblance are.
- Contrast prototype and exemplar accounts, and describe the basic level.
- Describe semantic networks, spreading activation and semantic priming.
Graduate
- Derive the generalized context model and fit exemplar, prototype and ALCOVE models to data.
- Derive classical multidimensional scaling and run its non-metric version.
- Derive Shepard's exponential law from consequential regions and Tversky's contrast asymmetry.
Research
- Compute a Bayesian concept learner's posterior with the size principle.
- Build word vectors from co-occurrence by PPMI and the SVD, and compare spaces by RSA.
Practice
- Run and analyse a card sort to design a navigation scheme.
- Explain why a polythetic diagnosis admits hundreds of symptom profiles.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Psych 101 and the major 24 min · Graduate 27 min · Research 59 min · Practice 27 min.
- 0Is a penguin a bird?Psych 101 and the major3 min
- 1No definitionPsych 101 and the major3 min
- 2The average memberPsych 101 and the major2 min
- 3Every member rememberedPsych 101 and the major4 min
- 4Six problems, and attention that learnsResearch4 min
- 5A map of similarityResearch3 min
- 6A universal law of generalizationResearch4 min
- 7Similarity is not distanceResearch5 min
- 8Knowledge as a networkPsych 101 and the major4 min
- 9Concepts as theoriesResearch5 min
- 10Learning a concept from a few examplesResearch4 min
- 11Meaning from companyResearch4 min
- 12The LedgerPsych 101 and the major4 min
- 13In practice: taxonomies, diagnosis, recommendationPractice3 min
- 14Frontier: concepts in minds and machinesResearch4 min
- Recap, problems, and the road aheadAll tracks4 min
Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.
Is a penguin a bird?Psych 101 and the major3 min
Let's start with an experiment on you. Some sentences will appear, one at a time. For each, say true or false out loud, as fast as you can, and notice which ones made you hesitate. Ready?
Did you notice? A robin is a bird came at once. A penguin is a bird is just as true, but most people are a beat slower. And a bat is a bird is false, but it makes you think. In 1975 Eleanor Rosch asked students to rate how good an example of its category each member was. They agreed with each other closely: robins and sparrows are very good birds; penguins and ostriches are poor ones. And that rating predicts almost everything: typical members are verified faster, named first when you list a category, learnt earlier by children, and used as reference points. At the edges it gets stranger. Michael McCloskey and Sam Glucksberg asked people whether borderline things belonged, is a tomato a fruit, is a telephone furniture. People disagreed with each other, and when asked again some weeks later, a fair number changed their own minds.
This part asks a question that sounds simple: what do you know when you know what a bird is? For two thousand years the answer was a definition. We'll see why it fails. Then the two great answers of the last fifty years: a concept is an average, a prototype, or a concept is the collection of every example you have met. Each becomes an equation. Six classic problems, with open data, will tell them apart, and show that attention itself has to be learnt. Then similarity as a space, and a law that Roger Shepard argued should hold for any mind anywhere, tested on open data from the 1950s. And finally knowledge as a network, concepts as theories, how a child learns a word from three examples, and what a computer learns about meaning from Jane Austen's novels.
This is Part 22 of Psychology, Built, the fifth part of Act Five, on thinking: concepts and categories. We'll see why concepts are not definitions. We'll derive the prototype model and the generalized context model, and the structure built to tell them apart. We'll fit a learning model to the six problems of Shepard, Hovland and Jenkins, from data that are open. We'll scale colours and Morse code into maps, and test Shepard's universal law on them. Then Tversky's features, semantic networks and priming, and concepts as theories. And we'll learn concepts from a few examples by Bayes' rule, and learn the meanings of words from their company.
What it does: Typicality on you; Rosch's ratings; the questions; objectives
1No definitionPsych 101 and the major3 min
The oldest answer is the classical view, going back to Aristotle. A concept is a definition: a list of features, each necessary, and together sufficient. A bachelor is an unmarried adult male. If that's right, membership is all or none, every member is equally a member, and the boundary is sharp. It's how logic, law and mathematics define their terms, and for two thousand years it was assumed to be how minds hold concepts too. But try it on bird. Flies? Not the penguin. Sings? Not the ostrich. Every feature you list has exceptions, and the ones without exceptions, like has feathers, don't tell you why a robin is a better bird than a penguin.
In the 1940s Ludwig Wittgenstein set a challenge. Consider the things we call games: board games, card games, patience, ball games, ring-a-ring-o'-roses. What is common to them all? Competition? Not patience. Winning and losing? Not ring-a-ring-o'-roses. Skill, luck? Sometimes. Don't say there must be something common, he wrote: look and see. What you find is a network of similarities, overlapping and criss-crossing, with no single thread running through. He called it family resemblance: like the build, the eyes, the way of walking of the members of a family. No feature is shared by everyone, and yet you can tell who belongs.
In 1975 Eleanor Rosch and Carolyn Mervis turned family resemblance into a number. Here is a small table of birds and their features. For each bird, go through its features and count how many of the other birds share each one. That sum is its family resemblance. Rosch and Mervis did this with features that people themselves listed for members of everyday categories, and found that the members sharing the most features with the rest were the ones people rated most typical. In our table the robin and the sparrow share the most, and the penguin and the ostrich the least. Typicality comes out of the structure of the category, with no definition anywhere.
And the boundaries are fuzzy. McCloskey and Glucksberg found clear members, clear non-members, and in between a band of items where people disagreed with each other, and, asked again, with themselves. James Hampton reanalysed their data in 1998. The chance that a person says yes, it's a member, rises smoothly with how similar the item is to the category, like a threshold applied to a noisy judgement. The curve here is a schematic of that shape. So membership is graded, and the grade is similarity. Which raises the next question: similarity to what?
What it does: The classical view; Wittgenstein's games; family resemblance computed; fuzzy boundaries
2The average memberPsych 101 and the major2 min
If membership is similarity, the simplest answer to similarity to what is: to the average member, the prototype. In 1968 Michael Posner and Steven Keele made categories you could not have met before. Each category began as a random pattern of nine dots, and people learnt to classify only jittered distortions of it. They never saw the original. At test the original pattern, the prototype, was classified as well as the patterns they had trained on, and better than new distortions. In a follow-up, after a week the trained patterns had faded more than the prototype had. The mind, it seemed, had extracted the central tendency of what it saw, and stored that.
Here are the numbers from a careful version by Donald Homa and Robert Vosburgh in 1976, from the open data packaged with the catlearn library. The never-seen prototype is classified best of all. New patterns fall off with their distortion, their distance from the prototype. And the more members a category had, the better new patterns were classified. A prototype theory can explain that: the average of nine noisy patterns is a better estimate of the original than the average of three. But a rival theory explains it too, differently: every example you remember is one more thing a new pattern can resemble. Telling the two apart takes categories built for the purpose.
As an equation, the prototype model has four lines. Each category is stored as one summary, the mean of its members. The distance from a new item to each prototype is summed over dimensions, each weighted by how much attention it gets. Similarity decays with distance at a rate c. And the choice follows Luce's rule from Part eleven: pick each category in proportion to its similarity. The model makes a strong prediction. Since everything is measured from two points, a category is easy only if a straight boundary can separate it from its rival. Keep that in mind.
What it does: Posner and Keele's dot patterns; Homa and Vosburgh's open data; the prototype model
3Every member rememberedPsych 101 and the major4 min
In 1978 Douglas Medin and Marguerite Schaffer proposed the opposite. Don't store a summary at all. Store every example you've met, labelled with its category. A new item is compared with all of them at once, and each example votes for its own category in proportion to how similar it is. In their context model similarity multiplies across dimensions, so a single large mismatch makes two things very different. No abstraction is ever stored. The category is simply its members, and typicality is how many of them an item resembles.
Robert Nosofsky put the context model into a space in 1986: the generalized context model. Examples are points in a psychological space, and the distance between two of them weights each dimension by attention, stretching the ones that matter and shrinking the rest. The exponent r is one for dimensions you notice separately, like size and colour, and two for ones you see as a whole. With r equal to one, the exponential of minus c times the distance is exactly Medin and Schaffer's product across dimensions. The evidence for a category is the summed similarity to every one of its members. And the choice is Luce's rule again, with a bias and a determinism. Put it next to the prototype model: the same distance, the same similarity, the same choice rule. The one difference is what the new item is compared with: one average, or every member.
To tell the theories apart, Medin and Schaffer built categories on purpose. Here is their most famous design, the 5-4 structure: nine training items on four binary dimensions, five in category A and four in B. The prototype of A is all ones. Look at A1 and A2. A1 shares three features with the prototype; A2 only two. The prototype model says A1 should be easier. But A2 is just one step from two other members of A, and far from every member of B, while A1 is close to two B's. The context model, summing over members, says A2 should be at least as easy. In their second experiment people made more errors on A1 than on A2, against every model that adds up independent cues, and as the context model predicted. The 5-4 structure was used in dozens of studies after that, which is where the argument went next.
The argument has run for forty years. In 1981 Medin and Paula Schwanenflugel showed that categories no straight boundary can separate were not harder to learn, which the prototype model says they must be. But in 2000 David Smith and John Paul Minda looked at thirty data sets with the 5-4 structure, and argued that a prototype model with a little memory for exceptions fitted many of them as well. Large categories, and the early stages of learning, look prototype-like; small categories learnt to perfection look exemplar-like. And the models can mimic each other: an exemplar model with low precision behaves much like a prototype. How to tell models apart is Part 48. The most decisive evidence came from a set of six problems, where it turned out that attention itself has to be learnt.
What it does: The context model; the GCM derived; the 5-4 structure; the debate
4Six problems, and attention that learnsResearch4 min
In 1961 Roger Shepard, Carl Hovland and Herbert Jenkins found the cleanest test of all. Take eight objects that vary in three binary ways: big or small, black or white, square or triangle. Split them four and four into two categories. There are only six essentially different ways to do it. In Type I one dimension decides: all the big ones. In Type II two dimensions matter, as an exclusive or, and the third is irrelevant. Type IV is a family resemblance: members share most features with a prototype. And Type VI has no regularity at all: every dimension matters, and each object is its own rule. Drawn as the corners of a cube, the colour of each corner is its category.
Here are the learning curves, from a replication by Nosofsky and colleagues in 1994, with forty learners on each problem, packaged as open data. Type I is learnt almost at once. Then Type II. Then III, IV and V, close together. Then Type VI, by far the slowest. That order matches the original 1961 study. And it's a puzzle for prototypes. Type IV has a perfect family resemblance structure: every member is closer to its own prototype. Type II has no prototype at all: its categories' averages are identical. Yet II is easier.
Two simple models fail. A prototype network, the dimensions wired straight to the categories and trained by the delta rule of Part 16, can learn only categories that a straight boundary separates. It learns I and IV, only part of III and V, and stays at chance on II and VI. An exemplar model with attention fixed, spread equally over the three dimensions, does learn everything. Fitted as well as it can be to the data, it gets the order wrong: Type II comes out harder than III and IV. With equal attention, the irrelevant third dimension of Type II keeps getting in the way.
John Kruschke's ALCOVE, in 1992, put the two together: Parts 16 and 18 meeting in one network. There is one hidden unit for every stored example, and its activation is the GCM's similarity, with attention strengths alpha on each dimension. The category outputs sum over the examples, and Luce's rule makes the choice. After each trial, the association weights learn by the delta rule. And the attention strengths learn too, by gradient descent on the same error: attention shifts to the dimensions whose differences reduce the error, and away from the ones that only get in the way.
Here's ALCOVE fitted to all ninety-six points, four numbers for six curves. The order now comes out right at the start: Type I, then II, then III, IV and V. Type II's mean error is against for Type III. The reason is in the attention it ends with. On Type I, all attention goes to the one dimension that decides. On Type II, to the two that matter, and the third is ignored. On Type VI it stays spread over all three, because all three are needed. It isn't perfect. At these fitted values it learns Type VI about as fast as III to V, with mean error , where people's was : the most difficult problem is where this version struggles. Still, the main lesson stands: to learn a category you must learn what to attend to, and exemplars plus learnt attention capture that.
What it does: The six problems; the 1994 data; a delta-rule network's failure; ALCOVE derived and fitted
5A map of similarityResearch3 min
Suppose you have a table of how dissimilar every pair of things is. Can it be turned into a map? If the dissimilarities really were distances between points, then squared distance is a sum of inner products, and the inner products could be recovered. Warren Torgerson's double-centring does it: subtract the row and column means of the squared distances, and you get the matrix of inner products, B. Its top eigenvectors, scaled by the square roots of their eigenvalues, are the map, and the eigenvalues tell you how many dimensions it needs. Psychological dissimilarities are rarely distances in that strict sense, so Roger Shepard and Joseph Kruskal made a version that uses only their rank order: find the configuration whose distances come in the same order as the dissimilarities, with the least misfit, called stress. That is non-metric multidimensional scaling.
A classic example. In 1954 Gösta Ekman had thirty-one people rate the similarity of every pair of fourteen colours, from violet at 434 nanometres to red at 674. Scaled into two dimensions, the fit is almost perfect, stress , and the colours lie on a circle. Wavelength is a straight line, but the colours bend round so that violet and red, the two ends of the spectrum, come close together: the colour circle Newton drew, recovered from nothing but people's judgements of similarity. And the two directions of the map line up roughly with the opponent channels of Part 13: the space is largely the eye's.
A harder case. In 1957 Ernst Rothkopf played 598 people pairs of Morse code signals, all thirty-six letters and digits, and asked whether the two were the same. Mistakes reveal similarity: the more often two different signals were called the same, the more alike they sound. Here the confusions are scaled into two dimensions, with stress . One direction of the map is the number of beeps, one to five; the other is, roughly, how many of them are long dashes rather than short dots. Roger Shepard found these two dimensions in 1963. Untrained listeners hear a Morse signal by its length and its rhythm, not as a letter. A map like this is a psychological space, and in the next chapter it carries a law.
What it does: Classical and non-metric scaling derived; Ekman's colour circle; Rothkopf's Morse map
6A universal law of generalizationResearch4 min
Psychology has few laws. In 1987 Roger Shepard proposed one, in the journal Science. The question is generalization. Something had a consequence: a food nourished, a tone came before a shock. How likely is it that something else will have the same consequence? Shepard gathered generalization data from people and from pigeons, for colours, tones, shapes and Morse code, and scaled each set of stimuli into a psychological space, as in the last chapter. In every case generalization fell off with distance in that space in the same way: exponentially, curving upwards, not like a bell curve. He argued it was a candidate for the first general law of psychology, and that it should hold for any mind that evolved anywhere. Let's test it, and then see why he thought so.
First, a clean measure of generalization. A confusion rate mixes two things: how similar two signals are, and how ready a person is to say same in the first place. Under Luce's choice model, the bias cancels from this ratio: the square root of the two cross-confusions over the two correct responses. What's left is the similarity itself. It is one for a signal with itself, and near zero for signals never confused. It's Shepard's measure from 1957, and we'll apply it to Rothkopf's signals.
Here is the test. Each point is one pair of Morse signals, six hundred and thirty of them: the generalization between the two, against their distance in the map of the last chapter. The exponential law fits well: it explains percent of the variance in the log of generalization. A bell-shaped Gaussian, the natural alternative, does worse than a flat line. And this isn't built in. The map was made from the rank order of the dissimilarities alone, so the curve was free to come out any shape. It came out Shepard's.
Why should any mind obey this? Shepard's answer is one of the most elegant arguments in psychology. The consequence, being nourishing, say, belongs to some region of the space, a consequential region, of unknown size and position. All you know is that it contains the one thing you tried. Generalization to a new stimulus is the probability that it falls in that region too, averaged over all the regions you can't rule out. In one dimension, a region of size s that contains the first stimulus also contains one at distance d with probability one minus d over s. Average over sizes. With this prior on size, the integral is exactly e to the minus d. Other priors that spread over many sizes give curves close to it, all curving upwards. Only if you already knew the size almost exactly, the pink curve, does it bend into a flat shoulder. So the law comes from uncertainty about the region, whatever the stimuli are, which is why Shepard thought it should be universal. Joshua Tenenbaum and Thomas Griffiths later recast it as Bayesian inference, which is chapter ten.
What it does: Shepard's claim; his bias-free measure; the law tested on Morse code; consequential regions derived
7Similarity is not distanceResearch5 min
The last two chapters treated similarity as closeness in a space. That is a strong claim, because any distance obeys three rules. Minimality: nothing is closer to a thing than the thing itself, and every thing is the same distance, zero, from itself. Symmetry: a is as far from b as b is from a. And the triangle inequality: the way from a to c through b is never shorter than the direct way. If similarity is closeness in a space, people's judgements must obey all three. In 1977 Amos Tversky showed that they don't, and that each failure says something about what similarity really is.
Here are the three failures. Minimality. In Rothkopf's Morse experiment, when the same signal was played twice, people called it the same percent of the time for the letter , a single dot, but only percent for . Things are not all equally similar to themselves. Symmetry. Tversky asked sixty-nine students which phrase they would rather use. Sixty-six chose North Korea is similar to Red China. Three chose the reverse. Across all twenty-one pairs of countries, most people put the less prominent country first and compared it to the more prominent one. Direct ratings showed the same asymmetry. The triangle. Jamaica is similar to Cuba, by geography. In 1977 Cuba was similar to Russia, by politics. But Jamaica and Russia are not similar at all. The example, which Tversky built on one of William James's, works because the two similarities rest on different features, so they don't add up the way distances must.
Tversky's alternative drops space altogether. Each object is a set of features. Similarity grows with the features two objects share, and shrinks with the features each has that the other lacks. Here is an illustrative list for the two countries. The shared features are in green. The key is that the two kinds of distinctive feature are weighted differently. In a statement like a is similar to b, attention falls on a, the subject, so its own features count more: alpha is bigger than beta. Now compute. North Korea has one feature China lacks; China has five that North Korea lacks. Starting from North Korea, similarity is . Starting from China, it is . The less prominent country is more similar to the more prominent one than the reverse: the asymmetry, from a model with no distance in it at all.
Tversky also tested the asymmetry on Rothkopf's Morse data, and we can rerun his test on the open table. pairs of signals differ in length. For each, compare the two orders. In pairs, people said same more often when the shorter signal came first. In , the reverse. were equal. Tversky's own count was three hundred and thirty-six, one hundred and eighty-one, and thirty-eight: a match to within one pair, a nice check that the open table is the one he used. The average difference is about three points, small but very reliable. Read through the contrast model, the first signal plays the subject and the second the referent, and a short signal is more like a long one than the reverse, just as North Korea is more like China.
So who is right, Shepard or Tversky? Both, for different kinds of thing. Spaces work for stimuli that vary along a few continuous dimensions, like colours, tones and the timing of beeps, and they are what Shepard's law needs. Features work for conceptual things with many discrete properties, like countries, and they capture asymmetry and prominence, which a fixed distance cannot. And similarity is not one fixed thing. Which features count depends on the task and on what is being compared, as the attention weights of the exemplar models already suggested. That is a problem for any theory that builds concepts out of similarity alone, and in chapter nine it becomes the central problem.
What it does: The metric axioms; three failures; the contrast model derived; Tversky's count rerun; spaces or features
8Knowledge as a networkPsych 101 and the major4 min
How is everything you know about the world stored? In 1969 Allan Collins and Ross Quillian proposed an answer taken from a computer program Quillian had written. Concepts are nodes in a hierarchy, joined by is a links: a canary is a bird, a bird is an animal. The principle is cognitive economy. A property is stored once, at the highest node it applies to. Has wings is stored with bird, not with every bird, and it is inherited by everything below. So answering a question means travelling the links, and each link should take time. A canary can sing is stored right at canary. A canary can fly needs one step up. A canary has skin needs two, up to animal. The first experiments agreed: the more links a sentence needed, the slower people were to say true.
The tree soon ran into trouble. Typicality, again. A robin is a bird is checked faster than a penguin is a bird, though both are a single link. A hierarchy has no way to say that one member is better than another. Levels reversed. Lance Rips, Edward Shoben and Edward Smith found that a bear is an animal can be checked faster than a bear is a mammal, though animal is further up the tree. And familiarity. Carol Conrad showed in 1972 that the properties people most often mention with a word are checked fast whatever their level. The link counts had been confounded with how familiar each fact was. The tidy tree was wrong. But two of its ideas survived: knowledge is a network, and using it takes time spent moving through it.
In 1975 Allan Collins and Elizabeth Loftus kept the network and threw away the tree. Any two concepts can be linked, and closer meanings have shorter links. Thinking of a concept sends activation out along its links, weaker with every step and divided among the links. Here is an illustrative network, with robin lit. One step: bird and red warm up. Two steps: activation reaches the things that are red, a fire engine and a cherry, and the other birds. Three steps, and it is spread thinly everywhere. Dividing activation among links explains a curious effect John Anderson found: the more facts you have learned about a person or a place, the slower you are to verify any one of them. He called it the fan effect.
Spreading activation predicts something you can measure. In 1971 David Meyer and Roger Schvaneveldt asked people to decide, as fast as they could, whether a string of letters was a word. They were faster to say butter is a word just after reading bread than after reading an unrelated word. Reading bread had warmed butter in advance. This is semantic priming. How big is it? The Semantic Priming Project measured it at scale: target words, people at four universities, in lexical decision and in naming, with a short and a long delay between the words. Priming is real and reliable, but small: about milliseconds in lexical decision, and in reading aloud. And it was smaller than earlier studies suggested. For the strongest associates, the bars on the left are the same lab's 2008 study, the bars on the right the project's. The authors wrote that they were unsure why. One possibility they raised: the earlier studies used only the strongest pairs, while the project's pairs cover the natural range.
What it does: Collins and Quillian's hierarchy; its failures; spreading activation; semantic priming at scale
9Concepts as theoriesResearch5 min
Before theories, a puzzle about levels. The thing you are sitting on is a kitchen chair, a chair, and a piece of furniture. Which is it, really? In 1976 Eleanor Rosch and her colleagues asked people to list the attributes of things at each level. They listed few for furniture, many for chair, and hardly more for kitchen chair. The middle level, which they called basic, is the most inclusive level whose members share many attributes, a common shape, and a common way of handling them. It is the level people name things at, the level they verify fastest, and the level children learn first. And it moves with knowledge. James Tanaka and Marjorie Taylor found that dog experts and bird experts, in their own domain, named pictures at the subordinate level, beagle or robin, as fast as at the basic level.
Why that level? James Corter and Mark Gluck proposed a measure in 1992. Category utility asks: once you know a thing belongs to category c, how many more of its features can you guess correctly, on average? Large categories score through the probability of the category: they apply to many things. Tight categories score through the features they predict. The measure trades one against the other. Here is an illustrative world with three superordinates, nine basic kinds and eighteen subtypes. While the members of a superordinate share little, as Rosch found for furniture, the basic level has the highest utility. But give the superordinates more features in common, and the peak climbs to them. So the basic level is not a fixed rung of a ladder. It is a fact about how features cluster in the world. And the experts' shift is something this measure does not produce: giving the subtypes more features of their own never lifts them above the basic level here. Knowing a domain changes more than a feature count.
Prototypes, exemplars and spaces all build concepts out of similarity. Here is the trouble. Lance Rips told people about a round object, three inches across. Was it more similar to a quarter or to a pizza? A quarter. Was it more likely to be a quarter or a pizza? A pizza. Quarters are made to one exact size; pizzas come in many. What people know about how a kind comes to be overrides what it resembles. Lawrence Barsalou studied categories made up on the spot for a goal, like things to take from a burning house: children, pets, photographs, important papers. They look nothing alike, yet people agree on which are typical, by how well they serve the goal. Gregory Murphy and Douglas Medin drew the conclusion in 1985. A category hangs together because some theory explains why its members belong, and it's the theory that decides which similarities count.
Where do these theories come from? Children have them early. Frank Keil told children about a raccoon that doctors dyed, shaved and fitted with a sac of smelly liquid, until it looked and smelled just like a skunk. What is it now? Kindergartners were often swayed by the new looks. By fourth grade, children said it was still a raccoon, whatever it looked like. For an artefact, a coffeepot rebuilt into a bird feeder, children of every age accepted that it had become a bird feeder. Susan Gelman and Ellen Markman showed four-year-olds a flamingo that feeds its baby mashed-up food, a bat that feeds its baby milk, and a blackbird that looks like the bat but is called a bird. How does the blackbird feed its baby? Most children followed the name, not the look. Douglas Medin and Andrew Ortony called this psychological essentialism: people treat natural kinds as if they had a hidden essence, which they may not know, but believe is there. It is a theory, not a resemblance, and it appears in preschool.
What it does: The basic level; category utility derived; similarity is not enough; psychological essentialism
10Learning a concept from a few examplesResearch4 min
Play a game Joshua Tenenbaum invented. A concept picks out some of the numbers from 1 to 100. I tell you sixteen is in it. Is thirty-two in it? Seventeen? Eighty-seven? You're not sure. Now I tell you sixteen, eight, two and sixty-four are in it. Thirty-two? Almost certainly. Seventeen? Almost certainly not. And if the examples are sixteen, twenty-three, nineteen and twenty? Then seventeen is very likely in, and thirty-two is probably out. One example leaves you unsure. Four can make you nearly certain, and of very different kinds of thing: a rule in one case, a range in the other. Similarity alone can't do that. Sixteen is the same distance from thirty-two in both games.
Tenenbaum's model is Bayesian inference, with one idea at its heart. The hypotheses are the concepts the numbers could pick out: mathematical ones, like even, squares, powers of two and multiples of seven, and every range from a to b, with a prior that favours ranges of moderate size. Now the key step. Suppose the examples were drawn at random from the true concept. Then each one has probability one over the size of the concept. A small concept makes the same examples more likely, and with n examples, the advantage is raised to the power n. This is the size principle. To predict, average every hypothesis still standing, each weighted by how believable it now is. After sixteen, eight, two and sixty-four, powers of two has six members and even has fifty. The examples are about four thousand eight hundred times likelier under powers of two. Four powers of two would be a wild coincidence if the concept were merely even.
Here is the model on the three games, with a bar for every number from one to a hundred. After sixteen alone, generalization is spread thin. The best single hypothesis is powers of four, with 28 percent of the belief, then powers of two and the squares, and nearby numbers get some weight from the ranges. After sixteen, eight, two and sixty-four, belief collapses onto powers of two: they light up, and almost nothing else does. After sixteen, twenty-three, nineteen and twenty, the mathematical hypotheses have nothing to offer, and the model generalizes to a range around the examples, fading at the edges, much like Shepard's gradient. Rules and similarity, two styles of thinking that psychologists had long treated as separate systems, come out of one inference. When Tenenbaum ran the game with people, their judgements showed the same pattern.
The size principle shows up in word learning. Fei Xu and Joshua Tenenbaum showed adults and preschool children a Dalmatian and called it a fep. Given one example, people extended fep to other dogs, the basic level. Given three Dalmatians, all called feps, they mostly kept the word to Dalmatians. Three Dalmatians in a row would be a suspicious coincidence if fep meant any dog. That's the size principle again, and a learner who ignored it would need many more examples. And it closes the loop with chapter six. Tenenbaum and Thomas Griffiths showed that if the hypotheses are regions of a space, the same inference gives Shepard's law of generalization. Shepard's consequential regions were Bayesian all along.
What it does: The number game; the size principle derived; the model's generalization; suspicious coincidences
11Meaning from companyResearch4 min
Concepts aren't only learned from things. Most are learned from words. Here's a word you have probably never seen: tezgüino. She poured the tezgüino into a cup. Everyone likes tezgüino. Tezgüino makes you drunk. They make tezgüino out of corn. You already know roughly what it is: a drink, alcoholic, made from corn. And no one defined it for you. The linguist Zellig Harris put the idea in 1954: words that occur in similar contexts tend to have similar meanings. John Firth said it more memorably: you shall know a word by the company it keeps. Most of the tens of thousands of words an adult knows were learned this way, from reading and listening, not from definitions.
Turn that idea into arithmetic in four steps. First, count. For every word, count how often each other word appears within four words of it. Second, keep only the surprise. Pointwise mutual information compares how often two words appear together with how often they would by chance. Words like the and of appear near everything, so they tell you nothing and score zero. Third, compress. The singular value decomposition squeezes the huge table down to a hundred dimensions, and words that share company end up close together. Fourth, compare. The similarity of two words is the cosine of the angle between their vectors. Latent semantic analysis, in 1997, used a version of these steps.
Let's try it. Psyche reads Jane Austen's six novels, about seven hundred and thirty thousand words, and builds vectors for the four thousand commonest words, after dropping the commonest function words. Nobody told it what any word means, only which words stood near which. Here are the nearest neighbours of some words. Letter: note, written, letters, read. Morning sits near day, next, and the days of the week. Walk sits near gravel and along. Neighbours share meaning, or at least use. A letter is written and read, and in Austen a walk goes along the gravel.
Here are twenty words placed on a map by their similarity, using the scaling from chapter five. Three clusters emerge, with no labels supplied: the family words, the times of the week and the day, and the feelings. But look where unhappy sits: among the happy words. Opposites keep the same company. Both are said of the same people, in the same kinds of sentence, so co-occurrence alone pushes them together. A meaning built from company can confuse a word with its opposite.
How far can company go? In 1997 Thomas Landauer and Susan Dumais trained latent semantic analysis on an encyclopaedia and gave it eighty items from the TOEFL synonym test. It got percent right. Applicants to American colleges from non-English-speaking countries averaged . Analogies are harder. On Austen, brother is to sister as father is to mother: right. But son is to daughter as uncle is to permission. The right answer, aunt, comes in fourth. Austen is a small corpus. Vectors trained on billions of words get far more analogies right. And they learn our prejudices. Aylin Caliskan, Joanna Bryson and Arvind Narayanan showed in 2017 that vectors trained on text from the web reproduce the associations measured by the Implicit Association Test: flowers go with pleasant words and insects with unpleasant ones, and the same holds for associations about race and gender. The vectors are a mirror of the language they read. What company can't supply is grounding. Stevan Harnad asked how symbols defined only by other symbols could ever be about the world. That question, for minds and for machines, is the frontier.
What it does: Harris and Firth; PPMI and the SVD derived; Austen's neighbours and map; LSA, analogies, bias, grounding
12The LedgerPsych 101 and the major4 min
Eight rows today. The first: members of a category differ reliably in how typical they are, and typical members are classified faster. The original: Rips, Shoben and Smith, 1973, timing sentences like a robin is a bird. The record: Rosch's ratings of about fifty members of ten categories, and McCloskey and Glucksberg's people, who agreed on typicality but changed their minds about borderline members. One of the sturdiest regularities in cognition. What explains it is another matter. Replicated.
The second: things are named, verified and first learned at a middle level of abstraction. The original: Rosch and colleagues, 1976. The record: Murphy and Smith's artificial tools, and Tanaka and Taylor's experts. Robust, and it moves with expertise. Replicated.
The third: after learning distortions of a prototype, people classify the unseen prototype as well as the items they studied. The original: Posner and Keele's dot patterns, 1968. The record: Homa and Vosburgh's categories of different sizes, whose data we used, and Medin's two tests where the prototype account lost. The effect is solid. That it shows a stored prototype is not, because exemplar models predict it too. Replicated.
The fourth: the six problems of Shepard, Hovland and Jenkins are learned in the order one, two, then three to five, then six. The original: 1961. The record: Nosofsky and colleagues' replication in 1994, whose data we fitted, and Kurtz and colleagues in 2013, who did not always find Type Two easier than Type Four. One first and six last is robust; two's place depends on the task. Replicated.
The fifth: generalization falls off exponentially with distance in psychological space. The original: Shepard, 1957. The record: Nosofsky's practised observers, whose gradients were Gaussian; Shepard's twelve data sets in 1987; Sims's derivation from efficient coding in 2018; and this part's reanalysis of Rothkopf's table. Exponential across many data sets, with exceptions the theory can account for. Replicated.
The sixth: similarity is asymmetric, the lesser thing more like the greater than the reverse. The original: Tversky, 1977. The record: Tversky and Gati in 1978; Aguilar and Medin in 1999, who found no reliable asymmetry in rated similarity at first, and asymmetries only under some conditions; and this part's recount of Rothkopf. The preference for one phrasing is strong. Asymmetries in rated similarity are small and fragile. Replicated, smaller.
The seventh: knowledge is a hierarchy with each fact stored once, so a fact takes longer to check the more links it crosses. The original: Collins and Quillian, 1969. The record: Conrad's familiarity confound in 1972, and the typicality and level reversals of Rips and colleagues. The strict hierarchy did not survive. The network did. Failed.
And the eighth: a word is recognized faster after a related word. The original: Meyer and Schvaneveldt, 1971. The record: Lucas's meta-analysis of priming by meaning alone, and the Semantic Priming Project's seven hundred and sixty-eight people and sixteen hundred targets. Real and very reliable, but about nineteen milliseconds, smaller than the hand-picked pairs of earlier studies suggested. Replicated, smaller.
Here is the part's tally. The regularities held: typicality, the basic level, the prototype effect, the ordering of the six problems, and Shepard's law. What failed was a theory, the tidy hierarchy. What shrank were effects first measured on the most favourable items. And a lesson for every theory chapter in this part: a result that every model predicts can't tell you which model is right. It took designs like the five-four structure, and the six problems, to make the theories disagree.
What it does: Typicality; the basic level; the prototype effect; the six problems; Shepard's law; asymmetry; the hierarchy; priming
13In practice: taxonomies, diagnosis, recommendationPractice3 min
Categories do a great deal of work outside the laboratory, and one place is the clinic. In DSM-5, a major depressive episode needs at least five of nine symptoms, one of which must be low mood or loss of interest. Count the ways to meet that rule: . Two people can share the diagnosis and have only one symptom in common. And the variety is real. Eiko Fried and Randolph Nesse looked at 3,703 patients in a large trial and found 1,030 different profiles across twelve symptoms. The most common profile was shared by fewer than two percent. A diagnosis like this is a polythetic category, a family resemblance like Wittgenstein's games. One response is to stop forcing people into boxes and measure dimensions of psychopathology instead, as the HiTOP consortium proposes. Act Eight returns to it.
A second place is design. When a team builds the menus of a website or the aisles of an online shop, it runs a card sort. People sort cards naming the items into piles of their own choosing. Here Psyche simulates forty people sorting twelve groceries, each attending to different features, the attention weights of chapter four. The share of people who put each pair in the same pile is a measure of similarity, and clustering it gives the users' own taxonomy. It isn't the shop's. Potatoes go with rice more often than with carrots: a pile of cooked staples. And bread belongs nowhere for long. It is a poor member of every pile, which tells the designer to list it in two places.
And a third place is software. Recommendation: people who bought this also bought that. Item-to-item similarity is an exemplar model with millions of exemplars, and the neighbours are computed, never defined. Search: documents and queries become vectors, and a match is a small angle between them. That's chapter eleven at the scale of the web, and it inherits the company the words kept, prejudices included. Labels: a classifier learns whatever categories its labels draw. In 2019 and 2020 the team behind ImageNet, the dataset that launched modern computer vision, reviewed its categories of people and removed many as offensive, or as things no picture can show. Choosing categories is a decision about people. The theories of this part run at industrial scale, and so does the question of who draws the boundaries.
What it does: 227 ways to be depressed; a card sort; recommendation, search and labels
14Frontier: concepts in minds and machinesResearch4 min
How would we tell whether a machine, or a brain area, has concepts like ours? The frontier's main tool is simple. Turn each system into a table of dissimilarities over the same items, and correlate the tables. It's called representational similarity analysis. Here it is on Ekman's colours, against three models of the eye. The hue angle between lights, in the opponent channels of Part 13, matches people best, rho , and if we let one weight be fitted. Wavelength gets : it can't close the circle. Raw cone signals get : they miss how hue is coded after the cones. The same comparison is made between brain areas, people and artificial networks. It gives all three one currency.
Now a surprise. In 2024 Raja Marjieh and colleagues asked large language models to rate the similarity of pairs of stimuli they could not see or hear: given only as text, like Ekman's fourteen colours written as hex codes. The ratings tracked people's. For Ekman's colours the correlation was point eight nine, and scaling the model's ratings recovered the colour wheel. Pitch did as well. It was weaker for taste and timbre, which language describes less well. That's Firth's idea at scale. Much of the structure of perception is written into how people talk about it, and a model of text can read it out, without an eye or an ear.
Can machines learn concepts the way people do? Brenden Lake, Ruslan Salakhutdinov and Joshua Tenenbaum gave a program handwritten characters from fifty alphabets, one example each. Their model inferred how each character had been drawn, stroke by stroke, a structured hypothesis like the number game's. On one-shot tests it erred on 3.3 percent, people on 4.5. Joshua Peterson, Joshua Abbott and Thomas Griffiths found that the image features of deep networks predict human similarity judgements only moderately, and that reweighting the features, much as ALCOVE's attention does, brings them much closer. And Lake and Marco Baroni trained a network on many small tasks until it learned to combine new words the way people did, including the errors people typically make. The old theories of this part keep coming back as engineering.
Four questions are open. Where are concepts in the brain? Alexander Huth and colleagues mapped which parts of the cortex respond to which meanings while people listened to stories for hours. The maps were broad, on both sides of the brain, and much alike from person to person. Is a concept one thing at all? Prototypes, exemplars and theories may each describe a different use of concepts: recognising, remembering, explaining. Does a model that matches our similarity tables share our concepts? Matching a table is not the same as knowing why the members belong, which was chapter nine's lesson. And grounding: how do systems trained on text, and children, come to tie their words to the world?
What it does: RSA on Ekman's colours; language models' judgements; one-shot learning; open questions
Recap, problems, and the road aheadAll tracks4 min
Part twenty-two in ten lines. Few everyday concepts have definitions: membership is graded, and typical members come first. A prototype is the average member, and people recognise it though they have never seen it. Exemplar models remember every member and add up the similarities, paying attention to the features that matter. The six problems of Shepard, Hovland and Jenkins are learned in an order that an attention which learns can explain. Scaling turns confusions into a map, like Ekman's colour circle and Rothkopf's Morse code. Generalization falls exponentially with distance in that map, because the region of a consequence is uncertain. But similarity is not distance: it is asymmetric, and built from features. Knowledge is a network, not a tree, and priming through it is real, and small. Concepts are also theories, as the pizza, the raccoon and the size principle show. And meaning can be read from the company words keep, prejudices included, though company is not grounding.
Kant's wager. The first objection, that mathematics can't apply to the mind, met a law of generalization derived from uncertainty, and models of exemplars, attention and inference fitted to open data. The second, that the mind can't be experimented on, met the six problems, run in 1961 and again in 1994, with the second set of data open for anyone to refit. And the third, that looking inward disturbs what you look at, met similarity read from confusions and choices, never from asking people what their concepts are.
Where this comes back. Language, with words, rules and the past tense, is the next part. Essences and kinds in the infant mind are Part 30. Whether a disorder is a category or a dimension is Part 39. Scaling, surveys and choice are Part 46. Model mimicry, when behaviour can't choose between two theories, is Part 48. Designing for minds, with navigation and card sorts, is Part 52. And the geometry of machine embeddings is Part 60.
Seven problems, with full solutions in this part's README. One shows that a prototype model is a special exemplar model. One proves the double-centring identity. One does Shepard's integral. One finds the contrast model's asymmetry. One finds two concepts in the number game that no example can tell apart. One reruns Tversky's count with a different measure of prominence. And the last, with the star, asks you to design a study on which prototype and exemplar models must disagree. Pause here if you'd like to try them.
The books and papers behind this part are listed here and in the README. Gregory Murphy's The Big Book of Concepts is the field's best guide, honest about what each theory can and can't do.
Today's concepts were mostly words: bird, game, fep. Next time, the words themselves. Colorless green ideas sleep furiously. The sentence is new to you, it means nothing, and yet you know it is English. How does a child who hears a finite number of sentences come to understand an infinite number? It's Part 23: language.
Where it goes next. Language is Part 23, essences in the infant mind Part 30, categories against dimensions in diagnosis Part 39, scaling Part 46, model mimicry Part 48, design for minds Part 52, and the geometry of machine embeddings Part 60.
Key results
The part's results in one place, for revision.
Try it
Lab 22 · Concepts and categories
Fit exemplar, prototype and attention-learning models; turn confusions into a map; test Shepard's law and derive it; count Tversky's asymmetries; find the most useful level of a taxonomy; learn a concept from a few examples by Bayesian inference; and read meaning from the company words keep.
python -m videos.psychology.labs 22
needs numpy, scipy, matplotlib · download lab22.py ·
source on GitHubP(A) for A1 and A2: exemplar model; prototype model 0.66, 0.74; 0.65, 0.62
mean error, Types I to VI: data 0.015, 0.051, 0.092, 0.102, 0.111, 0.195
mean error, Types I to VI: ALCOVE at the film's fitted values 0.049, 0.067, 0.127, 0.121, 0.127, 0.125
Ekman's colours: stress; angular span of the circle (degrees) 0.029; 279
Morse: stress; exponential law k and R^2 in log g 0.195; 1.92, 0.71
Tversky's count: pairs, shorter-first more, fewer, equal (1977: 555, 336, 181, 38) 555, 336, 182, 37
consequential regions, sizes ~ s e^-s: g(d) at d = 0, 1, 2 1.000, 0.368, 0.135
category utility, superordinate, basic, subordinate (superordinates share nothing) 0.481, 0.642, 0.349
number game after [16]: best hypothesis powers of 4 (0.28)
number game after [16, 8, 2, 64]: best hypothesis powers of 2 (1.00)
number game after [16, 23, 19, 20]: best hypothesis 16 to 23 (0.09)
activation of a hub's other neighbours after two steps (fan of 3) 0.083
Austen: nearest neighbours of 'letter' note, written, wrote, letters, lines
The exemplar model gets the 5-4 structure's hard item right and the prototype model does not; attention learning orders the six problems; Ekman's colours lie on a circle; generalization in Rothkopf's map is exponential, and an Erlang prior on region size gives exactly e^-d; the shorter Morse signal heard first is called 'same' more often; the basic level wins when superordinates are loose; four powers of 2 are enough to pick out the rule; Austen's letters are written and read.
The code (131 lines; it asserts its own result)
"""Lab 22: the generalized context model and the prototype model on the 5-4 structure; ALCOVE on the six problems of
Shepard, Hovland and Jenkins, with and without attention learning, against Nosofsky et al.'s (1994) open data;
non-metric scaling of Ekman's colours and Rothkopf's Morse code; Shepard's exponential law and its derivation from
consequential regions; Tversky's asymmetry count; category utility; the number game; spreading activation; and word
vectors from Jane Austen."""
import numpy as np
from videos.coursekit import labs
from explainer.psychology import opendata
from explainer.psychology.psyche import concepts as K
TITLE = "Concepts and categories"
GOAL = ("Fit exemplar, prototype and attention-learning models; turn confusions into a map; test Shepard's law and "
"derive it; count Tversky's asymmetries; find the most useful level of a taxonomy; learn a concept from a few "
"examples by Bayesian inference; and read meaning from the company words keep.")
TASKS = [
"Refit ALCOVE to the six problems with `concepts.fit_alcove_shj`, with `attention=False` and then with "
"attention learning (a few minutes each). Which problem's place changes most, and why does attention matter?",
"In the number game, find a set of three examples after which the model generalizes to a range and to a "
"mathematical rule about equally. What makes the tie?",
"Rerun `concepts.prominence_asymmetry` on Rothkopf's table with prominence measured by the number of dashes. "
"Is the asymmetry larger or smaller than with length?",
]
def run(seed=0):
out = labs.Lab()
rng = np.random.default_rng(seed)
# 1. the 5-4 structure: exemplars against a prototype
a = np.array([[1, 1, 1, 0], [1, 0, 1, 0], [1, 0, 1, 1], [1, 1, 0, 1], [0, 1, 1, 1]], float)
b = np.array([[1, 1, 0, 0], [0, 1, 1, 0], [0, 0, 0, 1], [0, 0, 0, 0]], float)
ex, lab_ = np.r_[a, b], np.r_[np.zeros(5, int), np.ones(4, int)]
pg = K.gcm_prob(ex, ex, lab_, c=3.0)[:, 0]
pp = K.prototype_prob(ex, ex, lab_, c=3.0)[:, 0]
out.row("P(A) for A1 and A2: exemplar model; prototype model",
f"{pg[0]:.2f}, {pg[1]:.2f}; {pp[0]:.2f}, {pp[1]:.2f}")
assert pg[0] < pg[1] and pp[0] > pp[1] # the models disagree, and people side with the exemplars
# 2. the six problems
ok = opendata.available("nosof94")
if ok:
obs = opendata.nosof94()["error"]
# the parameters fitted in the film (concepts.fit_alcove_shj, 20 orders; refitting takes a couple of minutes)
c, phi, lw, la = 7.774, 1.823, 0.178, 0.466
pred = [float(K.alcove(K.SHJ_TYPES[t], c, phi, lw, la, orders=4, rng=rng).mean()) for t in range(1, 7)]
out.row("mean error, Types I to VI: data", ", ".join(f"{obs[t].mean():.3f}" for t in range(6)))
out.row("mean error, Types I to VI: ALCOVE at the film's fitted values", ", ".join(f"{v:.3f}" for v in pred))
assert pred[0] < pred[1] < pred[5]
else:
out.row("the six problems", "Nosofsky et al.'s data could not be fetched")
# 3. a map of colours
if opendata.available("ekman_1954"):
e = opendata.ekman_1954()
r = K.nonmetric_mds(1 - e["similarity"], 2, rng=np.random.default_rng(1954))
ang = np.unwrap(np.arctan2(*(r["X"] - r["X"].mean(0)).T[::-1]))
out.row("Ekman's colours: stress; angular span of the circle (degrees)",
f"{r['stress']:.3f}; {np.degrees(np.ptp(ang)):.0f}")
assert r["stress"] < 0.1
# 4. Shepard's law, tested and derived
if opendata.available("rothkopf_1957"):
m = opendata.rothkopf_1957()
G = K.shepard_generalization(m["same"])
r = K.nonmetric_mds(1 - G, 2, rng=np.random.default_rng(1957))
D = np.sqrt(((r["X"][:, None] - r["X"][None]) ** 2).sum(-1))
iu = np.triu_indices(36, 1)
law = K.fit_exponential_law(D[iu] / D[iu].mean(), G[iu])
out.row("Morse: stress; exponential law k and R^2 in log g", f"{r['stress']:.3f}; {law['k']:.2f}, "
f"{law['r2_log']:.2f}")
asy = K.prominence_asymmetry(100 * m["same"], [K.morse_duration(s) for s in m["signals"]])
out.row("Tversky's count: pairs, shorter-first more, fewer, equal (1977: 555, 336, 181, 38)",
f"{asy['pairs']}, {asy['more']}, {asy['fewer']}, {asy['ties']}")
assert asy["more"] > asy["fewer"]
d = np.linspace(0, 4, 9)
s = np.linspace(1e-3, 40, 8000)
g = K.consequential_region_gradient(d, s, s * np.exp(-s))
out.row("consequential regions, sizes ~ s e^-s: g(d) at d = 0, 1, 2", ", ".join(f"{v:.3f}" for v in g[[0, 2, 4]]))
assert np.allclose(g, np.exp(-d), atol=2e-3)
# 5. the basic level
U = K.level_utilities(*K.nested_world(f_super=0))
out.row("category utility, superordinate, basic, subordinate (superordinates share nothing)",
", ".join(f"{v:.3f}" for v in U))
assert U[1] == U.max()
# 6. the number game
for ex_ in ([16], [16, 8, 2, 64], [16, 23, 19, 20]):
top = K.number_game(ex_)["top"][0]
out.row(f"number game after {ex_}: best hypothesis", f"{top[0]} ({top[1]:.2f})")
assert K.number_game([16, 8, 2, 64])["top"][0][0] == "powers of 2"
# 7. spreading activation with a fan
A = np.array([[0, 1, 1, 1], [1, 0, 0, 0], [1, 0, 0, 0], [1, 0, 0, 0]], float)
h = K.spreading_activation(A, 1, steps=2)
out.row("activation of a hub's other neighbours after two steps (fan of 3)", f"{h[-1][2]:.3f}")
# 8. meaning from company
if opendata.available("austen_emma"):
import collections
tokens = opendata.austen()
cnt = collections.Counter(tokens)
stop = set(K.STOPWORDS)
vocab = [w for w, _ in cnt.most_common(2500) if w not in stop][:1500]
V = K.ppmi_svd(K.cooccurrence(tokens, vocab, window=4), k=60)
nb = [w for w, _ in K.neighbours(V, vocab, "letter", 5)]
out.row("Austen: nearest neighbours of 'letter'", ", ".join(nb))
assert any(w in nb for w in ("note", "letters", "written", "wrote"))
out.note = ("The exemplar model gets the 5-4 structure's hard item right and the prototype model does not; "
"attention learning orders the six problems; Ekman's colours lie on a circle; generalization in "
"Rothkopf's map is exponential, and an Erlang prior on region size gives exactly e^-d; the shorter "
"Morse signal heard first is called 'same' more often; the basic level wins when superordinates are "
"loose; four powers of 2 are enough to pick out the rule; Austen's letters are written and read.")
fig, ax = labs.figure(2, size=(11, 4.2))
for ex_, col in (([16], labs.GOLD), ([16, 8, 2, 64], labs.BLUE), ([16, 23, 19, 20], "#5bd18b")):
ax[0].plot(np.arange(1, 101), K.number_game(ex_)["gen"], color=col, lw=1.2, label=str(ex_))
ax[0].set(title="The number game", xlabel="number", ylabel="P(in the concept)")
ax[0].legend(fontsize=8)
for name, p in (("s e^-s", s * np.exp(-s)), ("uniform to 4", (s < 4).astype(float)),
("near 2", np.exp(-((s - 2) ** 2) / 0.5))):
dd = np.linspace(0, 4, 81)
ax[1].plot(dd, K.consequential_region_gradient(dd, s, p), lw=1.5, label=name)
ax[1].set(title="Generalization from consequential regions", xlabel="distance", ylabel="generalization")
ax[1].legend(fontsize=8)
out.fig = fig
return out
Now change it
- Refit ALCOVE to the six problems with `concepts.fit_alcove_shj`, with `attention=False` and then with attention learning (a few minutes each). Which problem's place changes most, and why does attention matter?
- In the number game, find a set of three examples after which the model generalizes to a range and to a mathematical rule about equally. What makes the tie?
- Rerun `concepts.prominence_asymmetry` on Rothkopf's table with prominence measured by the number of dashes. Is the asymmetry larger or smaller than with length?
Problems, with solutions
Try each problem before opening its solution.
1. A prototype is a one-exemplar GCM. Show that the generalized context model with one exemplar per category, placed at the category's mean, is a prototype model, and find an item of the 5-4 structure on which the two must disagree.
Solution
The GCM gives P(A | x) = β_A Σ_{a∈A} η(x, a) / Σ_K β_K Σ_{k∈K} η(x, k), with η(x, y) = exp(−c d(x, y)). If category A stores a single exemplar at its mean μ_A (and B one at μ_B), the sums have one term each and P(A | x) = β_A η(x, μ_A) / Σ_K β_K η(x, μ_K): the prototype model. In the 5-4 structure the prototype of A is (1, 1, 1, 1). Item A1 = 1110 differs from it in one feature and A2 = 1010 in two, so the prototype model must rank A1 above A2. But A2 is one feature from two other A items (A1 and A3) and two or more from every B item, while A1 is one feature from two B items (B1 = 1100 and B2 = 0110), so the summed similarity favours A2. People made fewer errors on A2 (Medin and Schaffer 1978, Experiment 2): the exemplar model's ordering.
2. Double centring. For centred points \(X\), prove that \(-\tfrac{1}{2} J D^{(2)} J = X X^\top\), and say what a negative eigenvalue of \(B\) tells you about the dissimilarities.
Solution
Let X be n × k with centred columns (1ᵀX = 0) and B = XXᵀ, so b_ij = x_i · x_j. Then d_ij² = b_ii + b_jj − 2 b_ij, i.e. D⁽²⁾ = diag(B) 1ᵀ + 1 diag(B)ᵀ − 2B. With J = I − 11ᵀ/n, J1 = 0, so the first two terms vanish under J · J and −½ J D⁽²⁾ J = J B J = B, since JX = X. B = XXᵀ is positive semi-definite; a negative eigenvalue of −½ J D⁽²⁾ J therefore shows that no Euclidean configuration, in any number of dimensions, has exactly these distances. Classical MDS then keeps the positive part; non-metric MDS gives up the distances and keeps their order.
3. Shepard's integral. Show that \(\int_0^\infty s\, e^{-s} \max(0, 1 - d/s)\, ds = e^{-d}\), and find the gradient when sizes are uniform on \([0, L]\).
Solution
For s > d the region of size s holds the second stimulus with probability 1 − d/s, so g(d) = ∫_d^∞ s e^{−s} (1 − d/s) ds = ∫_d^∞ (s − d) e^{−s} ds = e^{−d} ∫_0^∞ u e^{−u} du = e^{−d}. With sizes uniform on [0, L], g(d) = (1/L) ∫_d^L (1 − d/s) ds = (1/L)[L − d − d ln(L/d)] for d < L and 0 beyond. Its slope, −ln(L/d)/L, is unbounded at 0, so it falls steeply at first and reaches zero at d = L. Uncertainty spread over regions of every size is what gives the exponential's steady upward curve; a bounded prior gives a curve that ends.
4. The contrast model's asymmetry. In the contrast model, show that \(S(a, b) - S(b, a) = (\beta - \alpha)\,[f(A - B) - f(B - A)]\), and say when the asymmetry vanishes.
Solution
S(a, b) − S(b, a) = θ f(A∩B) − α f(A−B) − β f(B−A) − θ f(A∩B) + α f(B−A) + β f(A−B) = (β − α)[f(A−B) − f(B−A)]. It vanishes when α = β (no focusing on the subject) or when the two objects have equally many distinctive features. With α > β, S(a, b) > S(b, a) exactly when f(A−B) < f(B−A): the subject with fewer distinctive features, the less prominent one, is more similar to the referent than the reverse.
5. Indistinguishable concepts. Show that no examples from 1 to 100 can separate multiples of 10 from ending in 0, and say what decides between them.
Solution
Among 1 to 100, the multiples of 10 are 10, 20, …, 100 and the numbers ending in 0 are the same ten numbers. Every example is in both or neither, and the two have the same size, so their likelihoods are equal for every set of examples: the posterior ratio is the prior ratio forever. Only the prior, or examples from outside 1 to 100, or a different kind of evidence (being told the rule), can decide. Any learner faces such sets of hypotheses that its data cannot separate; it is the number game's version of model mimicry (Part 48).
6. Prominence by dashes. With `explainer.psychology.opendata': rerun Tversky's sign count on Rothkopf's table with prominence measured by the number of dashes instead of the length.
Solution
In concepts.prominence_asymmetry, pass the number of dashes of each signal as the
prominence; pairs with equal counts drop out. On Rothkopf's table this leaves 493 pairs: in 266 the signal with fewer
dashes heard first is called "same" more often, in 192 the reverse, 35 ties (sign test p ≈ 0.0006), a mean difference
of 1.8 points. With temporal length it is 336, 182 and 37 (p ≈ 10⁻¹¹, 3.2 points), and with the share of dashes there
is no asymmetry at all (266 against 276). What makes a signal prominent here is how much of it there is to hear, which
length measures best.
7. ⋆ A study on which the models must disagree. Prototype and exemplar models often predict the same accuracies. Design a study whose outcome they must predict differently.
Solution
One answer: use a structure like 5-4, where an item closer to the prototype is surrounded by the other category's exemplars, and test it before and after adding exemplars of the other category near it. The exemplar model predicts that accuracy on that item falls as the new exemplars are added; the prototype model, if the prototypes are unchanged, predicts no change. Another: transfer to new items at equal distance from the prototype but different distances from the stored exemplars. A good design states, before the data, which pattern each model predicts with its parameters fitted to the training phase alone, so that one cannot mimic the other after the fact.
Notes and sources
Sources
- E. Rosch, Cognitive representations of semantic categories, Journal of Experimental Psychology: General 104 (1975) 192-233; E. Rosch and C. B. Mervis, Family resemblances, Cognitive Psychology 7 (1975) 573-605; L. J. Rips, E. J. Shoben and E. E. Smith, Journal of Verbal Learning and Verbal Behavior 12 (1973) 1-20.
- L. Wittgenstein, Philosophical Investigations (1953), §§ 66-67; M. E. McCloskey and S. Glucksberg, Natural categories: well defined or fuzzy sets?, Memory & Cognition 6 (1978) 462-472; J. A. Hampton, Cognition 65 (1998) 137-165.
- M. I. Posner and S. W. Keele, Journal of Experimental Psychology 77 (1968) 353-363 and 83 (1970) 304-308; D. Homa and R. Vosburgh, JEP: Human Learning and Memory 2 (1976) 322-330.
- D. L. Medin and M. M. Schaffer, Context theory of classification learning, Psychological Review 85 (1978) 207-238; R. M. Nosofsky, JEP: General 115 (1986) 39-57; D. L. Medin and P. J. Schwanenflugel, JEP: HLM 7 (1981) 355-368; J. D. Smith and J. P. Minda, JEP: LMC 26 (2000) 3-27.
- R. N. Shepard, C. I. Hovland and H. M. Jenkins, Psychological Monographs 75 (1961) no. 13; R. M. Nosofsky, M. A. Gluck, T. J. Palmeri, S. C. McKinley and P. Glauthier, Memory & Cognition 22 (1994) 352-369; J. K. Kruschke, ALCOVE, Psychological Review 99 (1992) 22-44; K. J. Kurtz et al., JEP: LMC 39 (2013).
- W. S. Torgerson, Psychometrika 17 (1952) 401-419; R. N. Shepard, Psychometrika 27 (1962) 125-140 and 219-246; J. B. Kruskal, Psychometrika 29 (1964) 1-27; G. Ekman, Dimensions of color vision, Journal of Psychology 38 (1954) 467-474; E. Z. Rothkopf, JEP 53 (1957) 94-101; J. de Leeuw and P. Mair, Multidimensional scaling using majorization: SMACOF in R, Journal of Statistical Software 31 (2009) 1-30.
- R. N. Shepard, Psychometrika 22 (1957) 325-345; R. N. Shepard, Toward a universal law of generalization for psychological science, Science 237 (1987) 1317-1323; C. R. Sims, Science 360 (2018) 652-656.
- A. Tversky, Features of similarity, Psychological Review 84 (1977) 327-352; A. Tversky and I. Gati, Studies of similarity, in Cognition and Categorization (1978) 79-98; C. M. Aguilar and D. L. Medin, Psychonomic Bulletin & Review 6 (1999) 328-337.
- A. M. Collins and M. R. Quillian, JVLVB 8 (1969) 240-247; C. Conrad, JEP 92 (1972) 149-154; A. M. Collins and E. F. Loftus, Psychological Review 82 (1975) 407-428; J. R. Anderson, Cognitive Psychology 6 (1974) 451-474; D. E. Meyer and R. W. Schvaneveldt, JEP 90 (1971) 227-234; M. Lucas, Psychonomic Bulletin & Review 7 (2000) 618-630; K. A. Hutchison et al., The semantic priming project, Behavior Research Methods 45 (2013) 1099-1114.
- E. Rosch, C. B. Mervis, W. D. Gray, D. M. Johnson and P. Boyes-Braem, Cognitive Psychology 8 (1976) 382-439; J. W. Tanaka and M. Taylor, Cognitive Psychology 23 (1991) 457-482; J. E. Corter and M. A. Gluck, Psychological Bulletin 111 (1992) 291-303.
- G. L. Murphy and D. L. Medin, Psychological Review 92 (1985) 289-316; L. J. Rips, Similarity, typicality, and categorization, in Similarity and Analogical Reasoning (1989) 21-59; L. W. Barsalou, Memory & Cognition 11 (1983) 211-227; F. C. Keil, Concepts, Kinds, and Cognitive Development (1989); S. A. Gelman and E. M. Markman, Cognition 23 (1986) 183-209; D. L. Medin and A. Ortony, Psychological essentialism, in Similarity and Analogical Reasoning (1989).
- J. B. Tenenbaum, Rules and similarity in concept learning, NIPS 12 (2000); J. B. Tenenbaum and T. L. Griffiths, Behavioral and Brain Sciences 24 (2001) 629-640; F. Xu and J. B. Tenenbaum, Word learning as Bayesian inference, Psychological Review 114 (2007) 245-272.
- Z. S. Harris, Distributional structure, Word 10 (1954) 146-162; J. R. Firth, A synopsis of linguistic theory 1930-1955 (1957); T. K. Landauer and S. T. Dumais, Psychological Review 104 (1997) 211-240; A. Caliskan, J. J. Bryson and A. Narayanan, Science 356 (2017) 183-186; S. Harnad, The symbol grounding problem, Physica D 42 (1990) 335-346.
- E. I. Fried and R. M. Nesse, Journal of Affective Disorders 172 (2015) 96-102; R. Kotov et al., The Hierarchical Taxonomy of Psychopathology (HiTOP), Journal of Abnormal Psychology 126 (2017) 454-477; K. Yang, K. Qinami, L. Fei-Fei, J. Deng and O. Russakovsky, Towards fairer datasets, FAT* (2020) 547-558.
- N. Kriegeskorte, M. Mur and P. Bandettini, Representational similarity analysis, Frontiers in Systems Neuroscience 2 (2008) 4; R. Marjieh, I. Sucholutsky, P. van Rijn, N. Jacoby and T. L. Griffiths, Large language models predict human sensory judgments across six modalities, Scientific Reports 14 (2024); B. M. Lake, R. Salakhutdinov and J. B. Tenenbaum, Science 350 (2015) 1332-1338; J. C. Peterson, J. T. Abbott and T. L. Griffiths, Cognitive Science 42 (2018) 2648-2669; B. M. Lake and M. Baroni, Nature 623 (2023) 115-121; A. G. Huth, W. A. de Heer, T. L. Griffiths, F. E. Theunissen and J. L. Gallant, Nature 532 (2016) 453-458.
- Open data: A. J. Wills et al., catlearn 1.1; J. de Leeuw, P. Mair and P. Groenen, smacof 2.1-7; J. Silge, janeaustenr 1.0.0 (all from CRAN; the files are fetched on first use and never committed).
About this partfrom its README
Is a penguin a bird? Everyone says yes, and everyone takes a little longer to say it than for a robin. This part asks what you know when you know what a bird is. Definitions fail; two equations replace them, a prototype and a memory of every member; six small problems show that attention has to learn; a table of confusions becomes a map in which Roger Shepard finds a law of generalization he argued should hold for any mind; and then similarity itself is questioned, by Amos Tversky's asymmetries, by networks of knowledge, by theories that override resemblance, by a learner that needs only three examples, and by a machine that reads meaning from the company words keep.
Typicality on you and in Rosch's ratings; the classical view and Wittgenstein's games; family resemblance computed on Psyche's bird table; fuzzy boundaries; Posner and Keele's dot patterns and Homa and Vosburgh's open data; the context model and the generalized context model derived, with the 5-4 structure where they part from prototypes; Shepard, Hovland and Jenkins's six problems on Nosofsky et al.'s 1994 open data, a delta-rule network that cannot learn them, and ALCOVE fitted with and without attention learning; classical and non-metric scaling derived, with Ekman's colours closing into Newton's circle and Rothkopf's Morse code mapped by length and rhythm; Shepard's law tested on that map and derived from consequential regions; the metric axioms and their failures, the contrast model, and Tversky's count of asymmetries rerun on the open table; the hierarchical network, its failures, spreading activation and the Semantic Priming Project; the basic level and category utility; Rips's pizza, Barsalou's goals, Keil's raccoon and Gelman and Markman's blackbird; the number game and the size principle; and word vectors from Jane Austen's novels, with their neighbours, a map, an opposite in the wrong place, analogies, and the biases of larger corpora. The practice chapter is diagnosis as a polythetic category, card sorting for navigation design, and categories in recommendation, search and dataset labels; the frontier is representational similarity analysis, language models' judgements of colour and pitch, one-shot learning, and the open questions.
What is computed and built
explainer/psychology/psyche/concepts.py: the generalized context model and the prototype model; the six problems, ALCOVE with its fit and attention, and a delta-rule network; classical and non-metric scaling (SMACOF with monotone regression); Shepard's generalization measure, the exponential law and consequential regions; Tversky's contrast model and his asymmetry count; category utility in a nested world; spreading activation with a fan; the number game; co-occurrence, PPMI and the SVD, neighbours and analogies; RSA and hue angles; the polythetic count and a card sort. Tested intests/psychology/test_concepts.py.explainer/psychology/rdata.py: a reader for R's XDR data files that reads data and never evaluates anything, so the classic datasets packaged in CRAN source packages can be used without R.explainer/psychology/opendata.pygains CRAN source tarballs with mirrors, one member read from a tarball without extracting it, and readers for Nosofsky et al. (1994), Homa and Vosburgh (1976), Ekman (1954), Rothkopf (1957) and Jane Austen's novels.- The Ledger gains eight rows; the Archive eight datasets.
- The course's interactive is the number game: three rounds of examples, your judgements against the model's.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | Is a penguin a bird? | Typicality on you; Rosch's ratings; the questions; objectives |
| 1 | No definition | The classical view; Wittgenstein's games; family resemblance computed; fuzzy boundaries |
| 2 | The average member | Posner and Keele's dot patterns; Homa and Vosburgh's open data; the prototype model |
| 3 | Every member remembered | The context model; the GCM derived; the 5-4 structure; the debate |
| 4 | Six problems, and attention that learns | The six problems; the 1994 data; a delta-rule network's failure; ALCOVE derived and fitted |
| 5 | A map of similarity | Classical and non-metric scaling derived; Ekman's colour circle; Rothkopf's Morse map |
| 6 | A universal law of generalization | Shepard's claim; his bias-free measure; the law tested on Morse code; consequential regions derived |
| 7 | Similarity is not distance | The metric axioms; three failures; the contrast model derived; Tversky's count rerun; spaces or features |
| 8 | Knowledge as a network | Collins and Quillian's hierarchy; its failures; spreading activation; semantic priming at scale |
| 9 | Concepts as theories | The basic level; category utility derived; similarity is not enough; psychological essentialism |
| 10 | Learning a concept from a few examples | The number game; the size principle derived; the model's generalization; suspicious coincidences |
| 11 | Meaning from company | Harris and Firth; PPMI and the SVD derived; Austen's neighbours and map; LSA, analogies, bias, grounding |
| 12 | The Ledger | Typicality; the basic level; the prototype effect; the six problems; Shepard's law; asymmetry; the hierarchy; priming |
| 13 | In practice: taxonomies, diagnosis, recommendation | 227 ways to be depressed; a card sort; recommendation, search and labels |
| 14 | Frontier: concepts in minds and machines | RSA on Ekman's colours; language models' judgements; one-shot learning; open questions |
| Recap, problems, and the road ahead | Ten lines; Kant's three objections; payoffs; problems; references; Part 23 |
NotesWhere the numbers come from
| What | Source |
|---|---|
| Family resemblance and similarity to the prototype for eleven birds and a bat | Psyche's bird table (features by common knowledge, an illustration), item birds |
| Classification of prototypes, distortions, old items and random patterns for categories of 3, 6 and 9 | Homa and Vosburgh (1976), as packaged in catlearn 1.1, fetched by explainer.psychology.opendata and checked by SHA-256, item homa |
| The context model's and the prototype model's P(A) for the 16 items of the 5-4 structure | Psyche (concepts.gcm_prob, prototype_prob), item gcm54 |
| Mean error in 16 blocks of 16 trials for the six problems, 40 learners each | Nosofsky, Gluck, Palmeri, McKinley and Glauthier (1994), as packaged in catlearn 1.1, item shj |
| ALCOVE fitted with attention learning (c 7.77, φ 1.82, λw 0.178, λα 0.466; SSE 0.209) and without (SSE 0.335); a delta-rule network | Psyche (concepts.fit_alcove_shj, delta_rule_network), 20 random orders per problem, item shj |
| Ekman's 14 colours from 434 to 674 nm, 31 raters; the non-metric map (stress 0.029) | Ekman (1954), as packaged in smacof 2.1-7; Psyche (concepts.nonmetric_mds), item ekman |
| Rothkopf's 36 Morse signals and 598 listeners; the map (stress 0.19); the exponential law (R² 0.71 in log g; a Gaussian −0.12) | Rothkopf (1957), smacof's asymmetric morse2; Psyche (concepts.shepard_generalization, fit_exponential_law), item morse |
| Consequential regions under four priors on size | Psyche (concepts.consequential_region_gradient), item regions |
| 69 students, 66 against 3; 21 pairs of countries; 555 Morse pairs of unequal length, 336, 181 and 38 | Tversky (1977), pp. 334 and 336 |
| The same count on the open table: 555, 336, 182 and 37, mean difference 3.2 points, sign test p ≈ 10⁻¹¹ | Psyche (concepts.prominence_asymmetry), item morse |
| Spreading activation from robin in an illustrative network | Psyche (concepts.spreading_activation), item network |
| 1,661 targets, 768 people, four universities; priming of about 19 ms in lexical decision and 6 in naming; first associates 26 and 20 ms against 42 and 60 in 2008 | Hutchison et al. (2013), the paper's method and discussion |
| Category utility at three levels of an illustrative taxonomy | Psyche (concepts.category_utility, nested_world), item levels |
| The number game after one, and two sets of four, examples | Psyche (concepts.number_game; 34 mathematical hypotheses and every range), item numbers |
| 729,322 words of six novels; 4,000 words; PPMI and a 100-dimensional SVD; neighbours, two analogies and a map | Jane Austen via janeaustenr 1.0.0 (Project Gutenberg texts); Psyche (concepts.cooccurrence, ppmi_svd, neighbours, analogy), item austen |
| LSA 64.4% on 80 TOEFL items; applicants 64.5% | Landauer and Dumais (1997) |
| 227 symptom sets meeting DSM-5's rule for a major depressive episode | Psyche (concepts.polythetic_count), item cardsort |
| 3,703 patients, 1,030 profiles of 12 symptoms, the commonest 1.8% | Fried and Nesse (2015), the paper's abstract and results |
| A card sort by 40 simulated people of 12 groceries | Psyche (concepts.card_sort, illustrative features), item cardsort |
| Ekman's colours against wavelength (ρ 0.77), cone excitations (0.65) and hue angle in the opponent plane (0.83; 0.91 with one fitted weight) | Psyche (concepts.rsa, hue_angle_distances; Part 13's cones and opponent channels), item ekman |
| Language models' similarity ratings against people's: pitch 0.92, colour 0.89, loudness 0.89, consonants 0.57, taste 0.54, timbre 0.42 | Marjieh, Sucholutsky, van Rijn, Jacoby and Griffiths (2024), the paper (arXiv 2302.01308v2) |
| One-shot classification errors of 3.3% (the model) and 4.5% (people) | Lake, Salakhutdinov and Tenenbaum (2015) |
Notes
| Finding | Original | Status |
|---|---|---|
| Members of a category differ reliably in how typical they are, and typical members are classified faster | Rips, Shoben and Smith 1973 | replicated |
| Objects are named, verified and first learned at a middle level of abstraction, the basic level | Rosch, Mervis, Gray, Johnson and Boyes-Braem 1976 | replicated |
| After learning distortions of a prototype, people classify the never-seen prototype as well as or better than the items they studied | Posner and Keele 1968 | replicated |
| Of the six ways to split eight three-feature objects four and four, Type I is learned fastest, then II, then III, IV and V, and VI slowest | Shepard, Hovland and Jenkins 1961 | replicated |
| Generalization falls off exponentially with distance in psychological space | Shepard 1957 | replicated |
| Similarity judgements are asymmetric: a less prominent thing is judged more similar to a prominent one than the reverse | Tversky 1977 | replicated, smaller |
| Knowledge is stored in a hierarchy of concepts with each property stored once, so checking a fact takes longer the more links it crosses | Collins and Quillian 1969 | failed |
| A word is recognized faster after a related word than after an unrelated one | Meyer and Schvaneveldt 1971 | replicated, smaller |
Shown without a row, with the reason recorded in explainer/psychology/ledger.py: Kruschke (a model, fitted here),
Rips, Barsalou and Murphy and Medin (single studies and a theoretical paper, told as the case for theories), Keil,
Gelman and Markman and Medin and Ortony (development, Part 30), Xu and Tenenbaum with Tenenbaum and Griffiths (a model
and its test, described), Harris, Firth, Nida and Lin (the history of an idea), Landauer and Dumais, Caliskan et al.
and Harnad (a model's benchmark, a measurement of text and an argument), Fried and Nesse, Kotov et al. and DSM-5
(Part 39), Yang et al. (a dataset's audit), Marjieh et al. (Part 60), Lake et al., Peterson et al. and Lake and
Baroni (frontier models), Huth et al. (Part 49).
Notes
Before the narrated master:
- Rosch's typicality ladder and McCloskey and Glucksberg's borderline items are drawn from summaries of the papers; the ladder's order, not its values, is shown.
- Hutchison et al.'s priming effects (about 19 and 6 ms; 26 and 20 against 42 and 60) are from the paper's discussion; check them against its tables.
- Fried and Nesse's 1,030 profiles and 1.8% are from the abstract and results; Marjieh et al.'s correlations are from the arXiv version (2302.01308v2).
- The English preflight flags the bird table's rotated column labels (builds nests, eats insects, swims): their bounding boxes touch, the drawn text does not. Reviewed on the frame and accepted.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: true or false, as fast as you can (a robin, a penguin, a bat is a bird); Rosch's typicality ratings as a ladder; McCloskey and Glucksberg's borderline items; the questions; objectives.
- No definition: the classical view; Wittgenstein's games; family resemblance computed on Psyche's bird table (Rosch and Mervis 1975); fuzzy boundaries (McCloskey and Glucksberg 1978; Hampton 1998, as a schematic).
- The average member: Posner and Keele's dot patterns (1968, 1970); Homa and Vosburgh (1976) from catlearn's open data (prototypes .92 to .99, rising with category size); the prototype model as four equations.
- Every member remembered: the context model (Medin and Schaffer 1978); the generalized context model derived (Nosofsky 1986); the 5-4 structure, where A2 beats A1 for exemplars and loses for the prototype; the debate (Medin and Schwanenflugel 1981; Smith and Minda 2000; mimicry, Part 48).
- Six problems, and attention that learns: Shepard, Hovland and Jenkins (1961) as cubes; Nosofsky et al. (1994) from the open data; a delta-rule network that cannot learn II and VI and an equal-attention exemplar model that orders II wrongly; ALCOVE derived (Kruschke 1992) and fitted (SSE .209 against .335 without attention learning), with VI still too easy at the fitted values, said so.
- A map of similarity: classical scaling derived (Torgerson's double centring) and non-metric scaling (Shepard, Kruskal); Ekman's 14 colours close into Newton's circle (stress .029); Rothkopf's 36 Morse signals map by length and rhythm (stress .19).
- A universal law: Shepard (1987); his bias-free measure from confusions (1957, after Luce); the law tested on the Morse map (exponential R² .71 in log g, a Gaussian −.12); consequential regions derived (an Erlang prior gives exactly e^−d; a nearly known size gives a shoulder).
- Similarity is not distance: the metric axioms and three failures (Rothkopf's diagonal 97% for E, 83% for P; 66 of 69 for "North Korea is similar to Red China"; Jamaica, Cuba, Russia); the contrast model derived; Tversky's count of Morse asymmetries rerun on the open table (336, 182, 37 against his 336, 181, 38).
- Knowledge as a network: Collins and Quillian (1969); its failures (typicality; levels reversed; Conrad 1972); spreading activation with a fan (Collins and Loftus 1975; Anderson 1974); semantic priming (Meyer and Schvaneveldt 1971) and the Semantic Priming Project (Hutchison et al. 2013: about 19 ms; first associates 26 and 20 ms against 42 and 60 earlier).
- Concepts as theories: the basic level (Rosch et al. 1976; Tanaka and Taylor 1991); category utility derived (Corter and Gluck 1992), with the basic level winning only while superordinates are loose; Rips's pizza (1989), Barsalou's goals (1983), Murphy and Medin (1985); Keil's raccoon (1989), Gelman and Markman's blackbird (1986), psychological essentialism.
- Learning from a few examples: the number game and the size principle derived (Tenenbaum 1999); the model after one and four examples (powers of 4 at 28%; powers of 2; a range); Xu and Tenenbaum's feps (2007); Shepard's law as Bayesian inference (Tenenbaum and Griffiths 2001).
- Meaning from company: Harris (1954), Firth (1957), the tezgüino example; PPMI and the SVD derived; Jane Austen's six novels (729,322 words) with neighbours, a map in which unhappy sits among the happy words, analogies (one right, one wrong); LSA on the TOEFL (64.4% against 64.5%); Caliskan et al.'s biases; grounding (Harnad 1990).
- The Ledger. 13. In practice: 227 symptom sets for one DSM-5 diagnosis, and Fried and Nesse's 1,030 profiles; HiTOP; a card sort of twelve groceries by 40 simulated people, clustered; recommendation, search and ImageNet's person categories. 14. Frontier: RSA on Ekman's colours (hue angle .83, wavelength .77, cones .65); language models' similarity ratings (Marjieh et al. 2024: colour .89 from hex codes); one-shot learning (Lake et al. 2015), reweighted network features (Peterson et al. 2018), compositional learning (Lake and Baroni 2023); semantic maps (Huth et al. 2016) and open questions.
Psyche: concepts: the GCM and the prototype model; ALCOVE with attention learning fitted to the six problems and
a delta-rule network; classical and non-metric MDS; Shepard's measure, law and consequential regions; the contrast
model and the asymmetry count; category utility; spreading activation; the number game; PPMI word vectors and
analogies; RSA and hue angles; the polythetic count and a card sort. rdata: a data-only reader for R's XDR files.
opendata: catlearn, smacof and janeaustenr from CRAN, one member read from each tarball, checked by SHA-256.
On you: true or false at speed in the film; the interactive is the number game (three rounds, the reader's
judgements against the model's).
Ledger: typicality (replicated); the basic level (replicated); the prototype effect (replicated, with its
interpretation contested); the six-problem ordering (replicated, Type II's place depending on the task); Shepard's
law (replicated); asymmetric similarity (replicated, smaller); the hierarchical network (failed); semantic
priming (replicated, smaller).
In practice: diagnosis by polythetic criteria, card sorting for navigation, recommendation by similarity, search
by vectors, the categories in dataset labels.
Frontier: representational similarity analysis; what language models know about perception; one-shot and
compositional learning; where concepts are in the brain; grounding.
Reading: Rosch 1975; Medin & Schaffer 1978; Nosofsky 1986; Shepard 1987; Tversky 1977; Kruschke 1992; Murphy,
The Big Book of Concepts; Tenenbaum & Griffiths 2001; Landauer & Dumais 1997.
Build the film
python -m videos.psychology.psych22.compute # the part's numbers, into .cache/psych22
python tools/build.py psych22 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py psych22 Hook # one chapter, silent, with a contact sheet
Scenes: videos/psychology/psych22. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.psychology.psych22.compute # every number (a few minutes; fetches three CRAN packages once)
python tools/qa_scene.py psych22 Attention # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py psych22 -q l # the whole part, silent preview
python tools/build.py psych22 # 1080p30 with narration
python tools/qa_scene.py psych22 Law --lang zh # the Chinese edition of one chapter
python tools/make.py psych22 # both editions, with the checks a long build needs
python -m videos.psychology.labs 22 # the lab: the 5-4 structure to Jane Austen's word vectors
python tools/check_ledger.py psych22 # every study shown has its Ledger row, or a reason
python -m pytest tests/psychology # Psyche's concepts module, the Ledger, the Archive
The Chinese edition is zh_lines.py (the narration, line by line) and the series table
videos/psychology/psychology_text_zh.json (the text on screen); the terms are in
PSYCHOLOGY_ZH_GUIDE.md.