Miracles of Learning


Miracles of Learning

Anna
Today we're diving into some really interesting work on how we might learn phonological rules — the kind of rules that tell us whether to pronounce the plural as 's' or 'z'.

Corey
Right, and this is a perfect example of why just falling in love with a mechanism like neural nets isn't always the best approach. Patrick Winston called those 'pistareens' — ideas that are flashy but don't actually perform that well.

Anna
Ha, pistareen. It's a Spanish coin of little value. So neural nets and genetic algorithms — he's not a fan? He says getting them to work is like getting a dog to walk on its hind legs.

Corey
Exactly. But he still teaches them because they're part of the field. The real focus today is on a different approach — one that starts with the problem, not the mechanism. And the problem is: how do we learn that the plural of 'cat' is 'cats' with an 's' sound, but 'dog' becomes 'dogs' with a 'z'?

Anna
It's a miracle that even non-native speakers get this right without ever being taught the rule explicitly. So how could a machine learn it? That's what Sussman and Yip set out to figure out.

Corey
First, they had to learn the science — they went to Morris Halle, who developed the theory of distinctive features. These are binary features like 'voiced' or 'continuant' that describe each sound, or phone.

Anna
So every phone is a combination of about 14 of these binary features. That means there are 2 to the 14th — around 16,000 — possible sounds in principle. But no language uses more than about 100. English only uses about 40.

Corey
That sparseness is key. Anyway, Sussman and Yip built a machine that uses constraints — propagators — that can pass information in any direction. So when you see two apples, your visual system triggers the concept of plural, which connects to the word 'apple' and the plural constraint. That constraint looks at the last sound of the word and decides whether to add 's' or 'z'.

Anna
And the machine can work in reverse: if you hear 'apples', you can run it backwards and imagine there are apples out there. But how does it learn the constraints in the first place?

Corey
With positive and negative examples. So for our simple case: 'cats' is a positive example of the 's' plural, and 'dogs' is a negative example — it should get the 'z' plural. You start with a seed, say 'cats', and then you generalize it by replacing some of the distinctive features with 'don't care' symbols.

Anna
You generalize until you accidentally cover a negative example — at which point you stop. The order matters: you generalize features farthest from the last sound first, because they're least likely to affect the plural.

Corey
They used a beam search so they don't miss a solution. And the result? The system learned the exact rule from phonology textbooks: if the last sound is voiceless and non-strident, you add 's'; if it's voiced, you add 'z'; if it's strident, you add 'ez'.

Anna
So why did it work? Sussman and Yip think it's because the space of possible phonemes is sparse and high-dimensional — 14 dimensions. When you have a sparse space, it's easy to separate positive and negative examples with simple hyperplanes.

Corey
And that sparseness might also explain why languages have so few phonemes: it makes them learnable. Or it might ensure that phonemes are equally distant from each other, making them easier to distinguish in speech.

Anna
Interestingly, when you plot all English phonemes by how many distinctive features separate them, you see that consonants are well-separated, but vowels are all tangled up. That's why vowels are harder to distinguish than consonants.

Corey
This whole case study is a great example of David Marr's catechism: first specify the problem, then find a good representation — here distinctive features — then an approach, an algorithm, and finally experiments. Don't start with mechanism envy like 'let's use a neural net' and force it onto everything.

Anna
Right, the representation made the right things explicit — like voicing — and exposed constraints. And it was local: you could see the answer by looking at just the last sound. That's the kind of thinking that leads to real progress.

Ask anything
We've read this whole study set, so questions about it get the best answers.