Language Learning Biases
Transcript
-(Sharon) So like the rest of my work, this work is of course about language learning and induction. And in particular what I'm interested in is the fundamental question of my research is you know "What is it that we can build into these models to try to model the learning biases that are necessary in order to make the correct generalizations?" Right? And we've been already sort of talking about the fact that you know when..if your question is "What are the learning biases?" Actually in many ways it makes sense to take this from a structured approach because you know structured approaches, which is what I've done for most of my research, the biases and representations are typically explicit. They're examinable. It makes things very easy to understand what's going on. And so actually that is what I'll be talking about most of today. But as most of you have also noticed, it's kind of hard to ignore neural networks at this point.
You know they're..it's not great for trying to understand the biases because they're typically implicit. Representations are kind of hard to interpret, but as I mentioned yesterday and a bunch of people have mentioned since then, it does seem like their ability to model similarity is a really big advantage certainly on the engineering side of things and I think perhaps on the cognitive science side of things as well. And I would actually agree with Paul on this, but I don't think these are incompatible approaches. I just think you know they're modeling different levels and I do think we need to start thinking about how to integrate them. I think actually several of the other speakers have done a really nice job in giving talks that really do integrate them. I'm going to take a slightly different approach here and sort of have two different parts of my talk, which don't so far integrate these approaches other than in
the sense that these are kind of about what I view as similar kinds of tasks but taking two very different approaches to it. So most of this talk is going to be a sort of much more complete version of work that is using a structured probabilistic model to look at joint learning and syntax and word meaning. Hopefully that will sort of give you an example of the kinds of things that you could do with these sort of structured approaches. And then very briefly at the end I'm going to talk about much more preliminary work that as I said kind of looks at a similar sort of task. And I think for me at least so far has raised a lot more questions than it has given answers and I'm going to try and sort of raise some of those here as well. So let me start with the probabilistic model. So the main point that I want to make here with this model is that by modeling syntactic and lexical acquisition jointly we can provide a
unified explanation for the various developmental phenomena that I will talk about in a moment. What I mean by syntactic and lexical acquisition is that this model is going to learn lexical categories that is syntactic categories. It's going to learn about word order and it's going to learn word meanings. And the assumptions that it makes in order to do that is it a very old assumption with sort of a syntactic bootstrapping type of a model, but a little bit different than the sort of original view of semantic bootstrapping. So here we're going to assume that the child is able to infer one or maybe a few possible meanings for some complete utterances based on the context in which those are uttered. And using that information the child or the learner is going to then be able to infer word meanings and order and so forth. And the way that that happens is because of the fact that the syntax and
semantics are structured and very closely tied together. I'm also going to assume here that learning is incremental and is probabilistic. So the phenomena that we model in this case..there's a number of them. I'm not gonna have time to actually go through all of these, but I will talk about the first three of them in a bit more detail later. I just want to point out that there are obviously some related models to this one. Most of the work up until when we proposed this model was actually looking at either word learning or syntactic acquisition kind of separately and so I think you know approaching this as a joint model..we were certainly weren't the first to do it, but the previous work on joint modelling either had worked mainly with synthetic data of sort of varying degrees of realism. And one of the things we really wanted to do was work with real corpus data here. And there were
some..there are some other models that have done that, but so far at least haven't been evaluated on the kinds of developmental phenomena that I'll talk about. Ok so what's actually being learned by this model? Basically as I said we're assuming that the model gets as input some pairs of sentences along with in this case they're logical forms. So the child kind of infers that meaning from the context. And from these kinds of sentence logical form pairs, the model is
going to have to learn both the lexical items in this is obviously a lexicalized chromatic form of CCG. And so each lexical item is a sort of fairly complex unit which consists of the..can I use the pointer on here? Yes. Consists of the word form the syntactic category of that word form and its meaning. and together with those lexical items we also need to learn a parsing model which basically is just a set of rule probablities
that allow us to put together those lexical items into full sentence derivation. And as I mentioned the way that we're going to do this is using CCG grammar. Hopefully most of you already know what this is, but just as a reminder right? We've got our lexicon and with that lexicon we can make some derivation. So for example in this case, we have the word "you" and the word "see" in its intransitive form and these two things combine. And as they do that both the syntax
and the semantics are combining in lockstep right? So we apply this intransitive.. sorry yea. Intransitive category to the NP to form "yes" and simultaneously we apply this semantics to the semantics of view and get the semantics of the full sentence. And of course just again as a reminder if we have a transitive verb, we would need to actually have distinct syntactic category and logical form for that to allow it to combine with the object to its right and subject to its left.
And one of the things that this model is going to have to learn is that in English you know the order that that happens in is first combining with the object to the right hand and subject to the left and not vice versa or some other ordering. Okay so the model that needs to learn probabilities that are associated with the rules that build up these derogations. And there's two kinds of rules right? There's binary syntactic rules right? So like this here that tells us that we combine and appease with intransitive and transitive verb category. And there's a bunch of unary lexical rules that derive the word forms from the syntactic categories right? So we basically have a syntactic category that then generates a lexical category
which then generates the meaning of that word and then generates the actual word form. And each of those also has probabilities associated with it which means that you know there are going to be probabilities associated with the lexical items in the grammar as well as the binary syntactic rules. We're using a Bayesian formalism here which means that we've got some priors on these and basically all pos..you know theoretically possible rules have some non zero probability associated with them. Our prior assumes that we have higher probabilities for shorter words and for logical forms and categories that are simpler so there's no simplicity bias here. And what's going to happen is that as we see more data, these probabilities will be updated.
Okay so rather than going through all the math I'm going to actually just try and go through an example really quickly to kind of give you the intuition of what's going on. So let's imagine that the first input that our model sees consists of this sentence logical form here. What's going to happen is that the model is going to first split these into all possible derivation that could derive that sentence in that logical form. Okay so in this case, there is one derivation here that is assumes that it's basically a multi-word expression that can't be decomposed any further. And there's two derivations that assume on the one hand that "more" is the meaning for "more" and "dogs" is the meaning of "doggies" and the other one which has the opposite. And you know because we haven't seen anything before we don't have any particular way of deciding which of those two is the correct one. So what's going to happen is we'll add all of the
possible lexical items from each of those derivations to our grammar. And in this case, you know, there's these two kind of symmetrical cases: one correct and one incorrect. They get assigned equal probabilities this. This last case with the multi-word expression actually has a slightly lower probability because it's more complicated. Okay so far so good. Now we get to some later point at which we see another example that happens to share one of the same words as the one
that I showed already. And in this case, we again have the same well or at least analogous derivations and analogous five words that go into the our derivations, but now there's a slight difference because now one of these word forms..sorry one of these lexical items is the same as one that we've seen before which means that we've already assigned a slightly higher probability to that word form. The result of that is that if we look at the particular derivation that contains that word form, that word form will have slightly higher probability and therefore this whole derivation will get slightly higher probability. And the result of that is that the actual binary syntactic rule that goes into it which says that determiners come on the left of nouns rather than on the right will again start to accrue probability more probability than the opposite. So you can get a sense of what's going to happen
here, which is that as we see more and more of these examples we're going to start to build up knowledge about the correct ordering of words, which means that at some later point if we happen to see a noun phrase where we actually don't know anything about either of the determiner or the noun we can then start to use this syntactic knowledge to actually start to disambiguate those as well. So there's going to be sort of feeding back and forth. Okay so that's the kind of idea of this model. Let me just tell you a little bit about the Internet data and the results that we get. So we used input data from the childÃs corpus from..sorry from the childis database the Eve corpus from them, which is about 14000 trial directed speech utterances. Their hand annotated with dependency parses and some various other information, which allowed us to basically write a simple rule based system that converted those dependency parses into the kinds of logical forms that we need in order to train this model.
And this is just one example so you can see that there are some pretty complicated things in there obviously some also very simple things. Now I mentioned that the..we're assuming that the child can infer from context what these logical forms are, but we're not assuming that the child can necessarily do that perfectly. So we approximate their uncertainty by including along with the correct logical form some number of distractors which come from utterances that were immediately before or after that in the corpus. So they probably have something similar in meaning, but are not exactly correct.
And we range between zero and six distractors. I'll show you a plot in a second that has all of those, but after that I'll basically just be focusing on the four distractor case to try and avoid having too many plots. So this is basically just an indication of how well this model is learning overall. So what's going on here is we train the model on anywhere from 0 to 20 sections of this corpus. We have the twenty first section as a held out test corpus or test data. And once the model has been trained on the training set, we then present sentences from that test data and just ask the model to tell us what the correct [inaudible]. And you can see this it's certainly learning and in the addition to that that it's relatively robust to the number of distractors that are presented. So that's nice, but of course what we really would like to do is actually be able to explain some of these developmental phenomena.
So the first one that I would like to talk about is this idea that children seem to go through a rather abrupt changes from incorrect to correct grammars. This is something that was argued by Thornton and Tesan in 2007 as an argument in favor of non-statistical triggering approaches to learning. They actually only compared them to a single statistical learner Charles Eames model, but I think sort of by implication its..they're basically saying that's this particular statistical learner is too gradual to model this kind of thing. And I think the implication although they don't say so explicitly is that other kinds of statistical learners would be too gradual as well. So what basically what we wanted to show is that that's actually not necessarily the case. And in particular if you have a model that has you know sufficient structure and the right kinds of biases in it, that you
know it will learn statistically, but it will have quite rapid learning. So you can see this is kind of you know confused a little bit of beginning but then very rapidly converges on assuming that you know when it sees a new transitive verb that has a and SVO category to it. The second phenomena that I want to talk about is actually kind of related to that which is the idea of one-shot learning. That the model is able to actually learn the meaning of a word from just a single exposure after at least some learning has already taken place. So you can see that with this plot or at least you can start to see that with this plot. So this is showing a number of different verbs and how quickly or when..how those particular verbs are learned.
And you can at least see that there's something interesting going on here with practice needs that they're kind of very low initially and then jump up. It doesn't necessarily mean that that's the first time we've seen them, but if you zoom in on this or the beginning part of that plot these are sort of little timelines here. So each time there's a little blip on here it means that I've seen that word in the corpus. And so what you'll notice is that the word "want", which is very frequent. You know it's seen a lot and it's kind of learned very gradually because at the time when you first see it you just don't know very anything else. Whereas those two words that I mentioned earlier "cracked" and "needs" they're not very frequent which means the first time we see that we've actually already accrued a lot of information and so we see it once and we basically learned it immediately.
And at the third thing that I want to talk about is syntactic bootstrapping effects. So this is basically the idea that we can potentially infer word meaning using syntax. It's sometimes talked about almost as if it's like distinct or opposing to semantic bootstrapping but in fact hope you'll see here is that it's really just something that kind of falls out as well from this connection between syntax and semantics. So we simulated these sort of classic type of experiments. The particular one that we looked at was one where kids were given a sentence with a nonce verb in it so something like the man daxed the baby. And they're shown two pictures; one in which the man is the agent of this action and one in which the man is the patient of this action. And you can see from their looking preferences that they basically figure out that "daxed" is something where the man should be the agent. And so we simulated that by just
giving the model two possible logical forms again one where the man is the agent and one where it's the patient and just like the kids the model does choose correctly as long as this exposed to some previous training data and some exposure to the syntax. Okay so to summarize that part of the talk, basically what I've showed is that this model that uses whole sentence semantics and this very tight syntax semantics coupling is able to simultaneously learn word meanings and syntax capturing a number of behavioral phenomena. I've only talked about the first three. If you're interested in the other two, look at the paper. And it does that by kind of relying on this very structured symbolic approach. So I think that's really nice because it kind
of gives us insights into these different phenomena and shows that they don't require different mechanisms. But since I have to say something about neural networks right? I will point out that there's actually you know a number of weaknesses here as well. I think one of those is that it sort of completely ignores any sort of similarity relations in the semantics right? So the fact that two words might be related semantically might tell us something about their argument structure for example and this model is not able to use that information. And I think something that's even more important to me because actually a lot of my work is not about syntax and semantics but it's really about very early learning of acoustics and phonetics is this question of "Where these symbols are coming from in the first place?" And actually I think a lot of the models that we've seen already although they internally are
representing things using distributed approaches, they're actually still feeding inwards at the bottom level. And so that's not actually what infants are hearing or seeing but probably hearing right? They're actually getting acoustics. So I want to start thinking about what a connectionist version of something like this might look like and it looks quite different. So what I actually have been working on recently is a speech-to-text translation model, where we have Spanish speech as the input and we're try and predict English text as the output. And of course this is also what our training data that looks like. You'll notice this is no longer child directed speech because we don't have such a corpus of child directed speech. And as I said on the surface this looks kind of different, but I'd like to argue that it's actually a very similar kind of task. We can kind of imagine that in
place of the sentences that we saw before that's where this kind of Spanish speech is taking the place of that except obviously a far less structured representation far closer to the actual raw inputs that the infant might get. And then these mean representations that we had before basically this English text you can think of as a meaning representation for the Spanish speech. As I said we do not have child directed speech or what we're actually working with here is the Fisher Spanish corpus which, contains about 160 hours of speech from a bunch of different speakers. And those English texts are actually crowd sourced so they have considerable amount of noise in them as well. I'm not going to go into much detail about how this model works as they said this last part is really more about raising questions than about providing answers, but I do
want to say a little bit about this because to give you context for the questions that I'm going to raise. So it turns out we actually started thinking about this about a year ago and didn't quite start working on it and then in March it turns out Google solved this problem. So the paper came out in March. This is the architecture so it turns out they didn't answer all the questions that we wanted to so we decided to start from this and try to reimplement this. Okay so you don't need to understand exactly what this model is except that it's very complicated and has lots of computational bits that take a long time to train. Okay so basically what it's doing is it's got the raw speech converts that into MFCs. There's a convolutional neural network, a convolutional LSTM, an LSTM; that's on the encoder side. Then there's a decoder which uses an attention mechanism and another
LSTM and it's decoding into characters. Okay so it's speech on the input and characters on the output side. So we try to do this; we realize that despite our pretty extensive computational resources in Edinburgh we are nowhere close to the computational resources that Google has, so this is what we actually did. You'll notice that we've made a number of simple simplifying things going on here. So we've reduced the number of speech features. We've simplified the units here. We're not including the convolutional LSTM. We're actually decoding two words rather than characters. We don't have a bunch of fancy search and optimization things. That's because we're running this on a single GPU actually maybe more than that now but anyway much less I think then presumably what Google was doing, which is their multiple TPUs. Okay so what is the result of that?
The result of that is that although we got this to work and I'll actually show you some examples to convince you that it really is doing something. You know our blue score which is a measure of translation quality is you know a lot worse than the Google. Okay now these numbers in isolation probably mean nothing. So just to give you a sense; the human level blue score when you compare the human translation to the others is about 55. So the Google model is actually pretty close to human level translation what you'll see from our model is actually I think is surprisingly good. So the human translation here for this particular example "I'm from Puerto Rico but I live here in Denver, Colorado". We actually looked at how much data is required to get different levels of translation. For some reason I don't have 100% model here, but you can see from the 50% model which trains on 80 hours of speech it's pretty good right? It says
"I'm from Puerto Rico but I live here in Canada". [AUDIENCE CUCKLE] Okay so Canada is obviously not the same as Denver. I think this is actually kind of interesting because presumably this is not an acoustic confusion right? This is something about semantics right? So again pointing out that these models are doing something with semantics and not just acoustics. It degrades pretty rapidly with less data and the Google one in this case got it perfectly right. So as I said that's that's basically all I want to say about that model except for a bunch of questions that this raises in my mind I mean. So first of all I just want to point out as I said this model I was shocked at how good this was. I mean you know it's even though it's nowhere close to as good as Google so I'm even more shocked at how good their model is. But you know I mean this is 80 hours of speech, but you know there's no word boundaries. There's no
phones given on the input side. There's no explicit structure or any kind of internal representation. The translations themselves are pretty noisy so as I said it's kind of amazing how well this is working. On the other hand, it was really not easy to get even to that point. I have a very tenacious PhD student who managed to get us there, but it involved a huge amount of tuning, trying different architectures, different training, different regularization parameters.
This is something I think people haven't really mentioned very much so far in this workshop but it actually turns out to be super critical. The regularization in particular you know to get this thing to work really really mattered. And I think that that raises a number of issues. This has been just fairly recently I think coming up in the engineering community, but I think this question of computation cost actually raises some interesting scientific questions as well. Because you know different labs have different access to resources. You know the fact that we were not able to get a score as good as Google..well I don't really care that much but I kind of do care if it means perhaps that that very large quantitative difference actually reflective of a qualitative difference as well. You know maybe the reason that Google's model is doing so much better is because it's actually
learned some qualitatively different internal representation and I just have no way to tell. And similarly if I'm making some comparison between two different architectures and I do a bunch of work and I do figure out what's going on inside of them and I see something qualitatively different, is it because there's actually an in-principle difference between those two architectures or is it just because I did a better job of tuning one? So I think those are some big questions that I'd like to talk about. I don't have answers to them so instead I'm just gonna conclude. So basically what I've talked about today was I said it kind of two different approaches. One this structured probabilistic approach, which I think still can give us new insights into old ideas like the semantic bootstrapping hypothesis and in particular that a number of different well-known phenomena actually can fall
out from the same learning mechanism. And then sort of thinking about you know how can we transition from there to a neural network approach to be the same kinds of questions. I've obviously started doing that, but I still have a lot of things that I'm uncomfortable about to let say. And I think there's a lot of scientific challenges there so as I said I kind of wanted to just raise those questions so I think I'll stop there and hopefully you'll have some ideas. Thanks. [AUDIENCE CLAPPING] -(Male MC)Okay so we have time for maybe just one quick question. Does anyone have a burning question right now?
-(Male audience) Mine's quick. So you didn't say a whole lot but you talked about the CCG, base huddle, I just want to know what inferences were you using to make the lines? -(Sharon) Variational ..online variational Bayesian EM. -(Male audience) Thanks. -(Sharon) Yea. [AUDIENCE CUCKLE]

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