Saturday, April 19, 2014

Slides for Stanford Autism Update

I'm giving a talk at the Stanford Autism Update today. My slides can be found here: http://bit.ly/1nzhM7V. This is my first time using figshare – certainly seems easy.

Tuesday, April 1, 2014

Assessing cognitive models: visualization strategies

(This post is written in part as a reference for a seminar I'm currently teaching with Jamil Zaki and Noah Goodman, Models of Social Behavior).

The goal of research in cognitive science is to produce explicit computational theories that describe the workings of the human mind. To this end, a major part of the research enterprise consists of making formal artifacts – computational models. These are artifacts that take as their inputs some stimuli, usually in coded form, and produce as their outputs some measures that are interpretable with respect to human behavior. 

In this post I'll discuss a visualization-based strategy for assessing the fit of models to data, based on moving between plots at different levels of abstraction. I often refer to this informally as "putting a model through its paces." 

I take as my starting point the idea that a model is successful if it is both parsimonious itself and if it provides a parsimonious description of a body of data. To unpack this, a bit more, the basic idea is that any model is created as a formal theory of some set of empirical facts. If you know the theory, you can predict the facts – and so you don't need to remember them because they can be re-derived. A model can fail because it's too complicated – it predicts the facts, but at the cost of having so many moving parts that it is itself hard to remember. Or or it can fail because it is consistent with all patterns of data – and hence doesn't compress the particular pattern of data much at all. (I've discussed this this  "minimum description length" view of cognitive modeling in more depth both in this post and in my academic writing here and here. Note that it's consistent with a wide range of modeling formalisms from neural networks to probabilistic models).

So how do we assess models within this framework, and how do we compare them to data? Although the minimum description length framework provides a guiding intuition, it's not that easy to say exactly how parsimonious a particular model is; there are actually fundamental mathematical difficulties with computing parsimony. But there are nevertheless many methods for statistical comparison between models, and these can be very useful – especially when you are using models that are posed in coherent and equivalent vocabularies. Here are great slides from a tutorial that Mark Pitt and Jay Myung gave at CogSci a couple of years ago on model comparison.

My focus in this post is a bit more informal, however. What I want to do is to discuss a set of plots for model assessment that can be used together to gain understanding about the relationship of a model or set of models to data:

  1. A characteristic model plot, one that lets you see details of the model's internal state or scoring so that you can understand what it has learned or why it has produced a particular result. 
  2. A plot of model results across conditions or experiments, in precisely the same format as the experimental data are typically plotted. 
  3. A scatter plot of model vs. data for comparing across experiments and across models.
  4. A plot of model fit statistics as parameters are varied. 

In each of these, I've used examples from the probabilistic models literature, taken mostly from my work and the work of my collaborators. This choice is purely because I know these examples well, not because of anything special about these examples. The broader approach is due to Andrew Gelman's philosophy of exploratory model checking (on display, e.g. in this chapter).

1. Characteristic Model Plot

The first plot I typically make when I am working on a model has the goal of understanding why the model produces a particular result when it is given a certain pattern of input data. This plot is often highly idiosyncratic to the particular representation or model framework that I am using – but it gives insight into the guts of the model. It typically doesn't include the empirical data.

Here is one example, from Frank, Goodman, & Tenenbaum (2009). We were trying to understand how our model of word learning performed on a task that's sometimes called "mutual exclusivity" that had been used in the language acquisition literature. The task is simple: you show a child a known object (e.g. a BIRD) and a novel object (a DAX), and you say "can you show me the dax?" Children in this task reliably pick the novel object. 


Our model made this same inference, but we wanted to understand why. So we chose four different hypotheses that the model could have about what the word "dax" meant (represented at the top of each of the four panels) and computed the model's scores for each of these. In our model, the posterior score of a hypothesis about word meanings was the product of the prior probability of the lexicon, the probability of a corpus of input data, and the probability assigned in this specific experimental situation. So we plotted each of those numbers on a relative probability scale such that we could easily compare them. The result was an interesting insight: The major reason why the model preferred lexicon B (the one consistent with the data) was that it placed higher probability on previous utterances in which the word "dax" hadn't been heard before even though the BIRD object had been seen. It was this unseen data that made it odd to think that "dax" actually did mean BIRD after all (lexicons C and D).

Another example of this kind of plot comes from a follow-up to this paper (Lewis & Frank, 2013), again looking at the "mutual exclusivity" phenomenon. In this case, we plotted the relative probabilities assigned to different lexicons in a simple bar graph (with shading indicating different priors), but we used a graphical representation of the lexicon as the axis label. The generalization that emerged from this plot is that the lexicon where each word is correctly mapped one-to-one (the middle lexicon with one gray bar and one green bar), almost regardless of the prior that is used.


In general, visualizations of this class will be very project- and model-specific, because they will depend on the relevant aspects of the model that you find most informative in your explanations. Nevertheless, they form a crucial tool for diagnosing why the model produced a particular result for a given input configuration.

2. Data-space plot

This style of plot is very important for evaluating the correspondence of a model to human data. It's the first thing I typically do after getting a model working. I try to produce predictions about what the experimental data should look like, on the same axes (or at least in the same format) as the original plots of the experimental data. 

Here is one example, from a paper on word segmentation (Frank et al., 2010). We tracked human performance in statistical word segmentation tasks while we varied parameters of the language the participants were segmenting in three different experiments. We then examined the fit of a range of models to these data. The human data here are abstracted away from any variability and are just solid curves repeated across plots; the model predictions make clear that while there is some variability in performance on the first two experiments, it is Experiment 3 where all models fail:


Here's a second example, this one from Baker, Saxe, & Tenenbaum (2009). They had participants judge the goals of a cartoon agent at various different "checkpoints" along a path. For example, in panel (a), condition 1, the agent wended its way around a wall and then headed for the corner. At each numbered point, participants made a judgment about whether the agent was headed towards goal A, B, or C. In panel (b), experimental data show graded ratings for each goal, and in panel (c) you can compare model-derived ratings:


The general point here is that visualization is about comparison (a point I identify with William Cleveland but don't have a good citation for). This plot makes it easy to compare the gestalt pattern of model vs. experimental data in a format where you can readily identify the particular conditions under which deviations occur – sometimes even across models.

3. Cross-dataset, cross-model plot

These plots are more obvious and more conventional. You plot model predictions on the horizontal and human behavior on the vertical, resulting in a scatter plot where greater coherence indicates greater correlation between model and data. Of course, the result can be quite deceptive because it obscures the model's degrees of freedom. But this sort of plot is a simple and powerful tool for quickly assessing fit. Here's one nice one:


This example comes from Orban et al. (2008), a paper on visual statistical learning. They plot log probability ratio of test items by proportion correct in human experiments. Each datapoint is a separate condition, and the key relates each datapoint back to the experimental data, so that you can look up which points don't fit as well. When possible it's nice to plot the the actual labels on the axes so that you don't have to use a key, but sometimes this strategy can get overly messy. A minor note: I really like to plot confidence intervals (rather than standard error) here so that we can better assess by eye whether variability is due to measurement noise or a truly incorrect prediction by the model.

This sort of plot can also be very good at comparing across models, because you can see at a glance both which model fits better and which points are negatively affecting fit. Here's another version, from Sanjana & Tenenbaum (2002). The data aren't labeled here, but I like both the matrix of small plots (the grid is different models on the columns, different experimental conditions on the rows) and the prominent reporting of the correlation coefficients in each plot:


One interesting thing that you can see by presenting the data this way is that there are sets of conditions that don't vary in their model predictions (e.g. the bunches of dots on the right side of the center panel). As an analyst I would be interested to know whether these conditions are truly distinct experimentally and getting lumped inappropriately by this model. My next move would probably be to make plots #1 and #2 with just these conditions included. More generally, I find it extremely important to have the ability to move flexibly back and forth between more abstract plots like this one and plots that are more grounded in the data.

4. Parameter sensitivity plots

Even the simplest cognitive models typically have some parameters that can be set with respect to the data (free parameters). And all of the plots described above produce an output given some settings of the model's free parameters, allowing you to assess fit to data. But, as a number of influential critiques point out, a good fit is not necessarily what we should be looking for in a cognitive model. I take these critiques to be largely targeted at excessive flexibility in models – which can lead to overfitting. 

So an important diagnostic for any model is how its fit to data varies in different parameter regimes. Showing this kind of variability can be tricky, however. Sometimes parameters are cognitively interesting, but in other circumstances they are not – yet it is important to explore them fully. 

These plots typically plot either model performance (in the case of a small number of conditions) or a summary statistic capturing goodness of fit or performance (in the case of more data) as a function of one or more free parameters. The goodness of fit statistic is usually a measure like mean squared error (deviation from human data) or simple Pearson correlation with the data, but can be any number of other summary statistics as well.  In models with only one or two free parameters, visualizing the model space is not too difficult, but as the model space balloons, visualization can be difficult or impossible. 

Here is one example, from a paper I wrote on modeling infants' ability to learn simple rules:


It's a combination of a #4 plot (left) and a #2 plot, middle/right. On the left, I show model predictions across five conditions, as alpha (a noise parameter) was varied. The salient generalization from this plot is that the ordering of conditions stays the same, even though the absolute values change. The filled markers call out the parameter value that is then plotted in the middle as a bar graph for easy comparison with the right-hand panel. As you can see, the fit is not perfect, but the relative ordering of conditions is similar. 

Here is another example, one that I'm not proud of from a visualization perspective (especially as it uses the somewhat unintuitive matlab jet colormap):


This comes from our technical report on the word learning model described above. The model had three free parameters, alpha, gamma, and kappa. This plot shows a heatmap of f-score (a measure of the model's word learning performance) as a function of all three of those continuous parameters, with the maxima for each plot labeled. Although this isn't a great publication-ready graphic, it was very useful for me as a diagnostic of the parameter-sensitivity of the model – and led to us using a parameter-reduction technique to try to avoid this problem. 

Parameter plots may not always make for the best viewing, but they can be an extremely important tool for understanding how your model's performance varies in even a high-dimensional parameter space. 

Conclusions

I've tried to argue here for an exploratory visualization approach to model-checking for cognitive models especially. The approach is predicated on having plots at multiple levels of abstraction, from diagnostic plots that let you understand why a particular datapoint was predicted in a certain way, all the way up to plots that let you consider the stability of summary statistics throughout parameter space. It is not always trivial to code up all of these visualizations, let alone to create an ecosystem in which you can move flexibly between them. Nevertheless, it can be extremely useful in both debugging and in gaining scientific understanding. 

Thursday, March 27, 2014

Making messes brings babies closer to people

(Via astrorhysy).

M loves increasing entropy in the world – making messes. She is attracted to order: stuff in a basket, books on a shelf, or a pile of freshly folded clothing. She crawls over as fast as her little limbs can go, and begins sowing the seeds of disorder. I'm not the only one who has made this observation. But a study by Newman et al. (2010) suggests that maybe one reason that babies are so attracted to order is that they see it as related to people, since people tend be the primary sources of order in the world. So maybe M's drive to explore orderly things is related to her deep interest in understanding and sharing attention with other people.

In the Newman et al. study, the researchers used the violation of expectation method to test whether 7- and 12-month-old infants had a sense that order is something that is caused by people, rather than inanimate objects. Babies in the study saw videos of an animated ball roll towards a set of blocks that was covered by a screen. When the screen went down, it was revealed that the ball had either sorted or un-sorted the blocks.

In one condition, the ball had some cues that – according to other research in this tradition – should cause babies to think it is an animate agent (a person, more or less): it had eyes, and it seemed to move by itself in a way that indicated it was self-propelled. In another condition, it was just a ball and it rolled across the screen without stopping.

In the animate condition, 12-month-old infants didn't seem to have a strong expectation about what the ball would do and looked equally at both outcomes. In contrast, in the inanimate condition, they looked longer (indicating a violation of expectation) when the ball made the disorderly set of blocks more orderly. The seven-month-olds didn't show any systematic looking differences. A second experiment showed a conceptual replication of this finding using the contrast of a claw and a hand – again infants seemed to expect the claw to be more likely to create disorder than order.

So perhaps M's – and other babies' – interest in order stems from a general interest in people and the patterns they leave in their environment. Maybe when she sees a bookshelf full of books, just ripe for throwing on the ground, she thinks to herself, "I wonder who did that?"


ResearchBlogging.org Newman GE, Keil FC, Kuhlmeier VA, & Wynn K (2010). Early understandings of the link between agents and order. Proceedings of the National Academy of Sciences of the United States of America, 107 (40), 17140-5 PMID: 20855603

Sunday, March 23, 2014

How does sleep training work?


(A baby uninterested in sleep.)

About two months ago, M began waking up even more often in the middle of the night and it became hard to get a decent night's sleep. (Things had never been great, but they got noticeably worse). We decided to sleep train. Sleep training for infants is a very emotionally-charged topic for parents. Along with its strong advocates, you can find people arguing that sleep training is child abuse.

M's mom and I found a meta-analysis suggesting the efficacy of a variety of sleep-training techniques and a strong recent study that found no major negative effects. In addition, many of the critiques seemed like misreadings of the literature on infant attachment. So we decided to go for it. Based on a survey of friends, blogs, and our own conscience, we selected the "graduated extinction" method – also known as "Ferberization" – where you let the baby cry for gradually longer intervals before providing comfort. (I found Ferber's book to be the clearest and best-written of the baby sleep guides, as well).

The process was fairly traumatic for us. But it was comforting to see that M showed no evidence of caring in the morning – she still seemed to like us just fine. And after a few nights, she went to bed without crying; after a few more she slept through the night without waking. This amazing result has continued (with a few interruptions) for about a month and a half. It's an exaggeration to say that either of us is well-rested, but the situation is markedly improved.

Now on the other side of this process, it's easy for me to say that – despite many stories of cases where sleep training doesn't work well for individual kids – the evidence for population-level efficacy seems pretty clear. What I found astonishing, though, is how little discussion there is of why it works. In addition, the explanation that is on offer – Ferber's own – doesn't make much sense. It uses the language of behaviorism, but on a closer examination, it isn't consistent with actual behaviorism at all.

Ferber gives the following preamble to his instructions:
The goal of this approach is to help your child learn a new and more appropriate set of associations with falling asleep so that when he wakes in the middle of the night he will find himself still in the same conditions that were present at bedtime, conditions that he already is used to falling asleep under. But, to do this, you must first identify the pattern of associations that is currently interfering with his sleep (and yours) and which he must unlearn.
This seems straightforward: the child has associations with falling asleep – being rocked, maybe having a bottle, perhaps lying upright on your shoulder – that prevent him or her from falling asleep in the crib. You break these associations and the child learns to "self-soothe" and put him- or herself to sleep.

This analysis sounds reasonable. But fundamentally, its reasonableness is post hoc, like a lot of other psychological explanations. The technique works, so we accept the explanation. But there are many similar explanations that we would accept if they were linked to a technique that worked. And if the technique didn't work, we'd easily discard the explanation.

A big part of the prima facie reasonableness of the Ferber explanation is that it's couched in language we know: the associative language of classical (Pavlovian) conditioning. In classical conditioning,  a tone (conditioned stimulus: CS) is paired with a shock (unconditioned stimulus: US) to induce a fear response (conditioned response: CR). Eventually, the tone produces the fear response without the shock. (Somewhat) similarly, cuddling is associated with sleep. Eventually, cuddling becomes prerequisite for sleep. To allow for sleep without cuddling, this association must be "extinguished."

But there are a number of places where this analysis breaks down:

  • What's the US (the shock) in this case? Is it drowsiness? Presumably baby still needs to be drowsy to fall asleep after cuddling - though the cuddling might help the process along. So the US isn't ever out of the loop here.
  • Sleep isn't a stimulus-triggered aversive behavior like fear-based freezing in rats. Drowsiness is a feeling that is generated by the baby herself, more like hunger or thirst. I'm definitely not an expert on classical conditioning, but a quick reading of the literature suggests that maybe it's not quite so easy to condition appetites
  • Conditioning of a response to some cue doesn't mean that the response cannot be triggered by another CS (though there maybe some weakening), and especially doesn't mean that the US is no longer powerful. For example, a rat conditioned to freeze based on a tone will still freeze based on a shock. So why on this analysis can't babies sleep without "sleep associations"? Presumably they still get drowsy.
  • Finally, nothing anywhere in the conditioning analysis predicts crying as an outcome of not having the cues for sleep. I guess the idea is that the baby wants to sleep, but doesn't have the cues to allow sleep, and then is frustrated? But that extension of the explanation definitely isn't congruent with a conditioning analysis. Instead it reflects some kind of second-order response: frustration about the mismatch between the baby's needs and what's happening (I want to sleep but I can't). 
So despite the superficial theoretical trappings of behaviorism, it doesn't seem like a standard conditioning analysis predicts many of the salient parts of the phenomenon. 

Perhaps I haven't lined up the pieces right here. Perhaps there is actually a classical conditioning analysis that makes sense, but my still-somewhat-sleep-deprived mind hasn't been able to work it out. If so, I'd love to hear it. In the absence of that kind of analysis, though, the overall success of the Ferber method is even more magical. 

Wednesday, February 12, 2014

"Psychological plausibility" considered harmful

"goto" statement (programiz.com)
goto is considered harmful in programming languages.


The fundamental enterprise of cognitive science is to create a theory of what minds are. A major component of this enterprise is the creation of models – explicit theoretical descriptions that capture aspects of mind, usually by reference to the correspondence between their properties and some set of data. These models can be posed in a wide variety of frameworks or formalisms, from symbolic architectures to neural networks and probabilistic models.

Superficially, there are many arguments one can make against a particular model of mind. You can say that it doesn't fit the data, that it's overfit, that there are many possible alternative models, that it predicts absurd consequences, that it has a hack to capture some phenomenon, that it has too many free parameters, and so forth. But nearly all of these superficially different arguments boil down to well-posed statistical criticisms.

Consider a theory to be a compression of a large mass of data into a more parsimonious form, e.g. the "minimum description length" framework. For a given set of data, the total description length is the length of the theory (including its parameters), the predicted data from the theory, and some metric over the deviation of the data from those predictions. Under this kind of setup, the critiques above boil down to the following two critiques:
  1. There's a theory that compresses the data more, either (a) by having fewer free parameters, or (b) by being overall more parsimonious. 
  2.  If we add more data, your theory won't compress the new data well at all, where the new data are either (a) other pre-existing experiments that weren't considered in the initial analysis, or (b) genuinely new data ("model predictions"). Concerns about overfitting and generalization fall squarely into this bucket. 
Of course, we don't have a single description language for all theories, and so it's often hard to compare across different frameworks or formalisms. But within a formalism, it's typically pretty easy to say "this change to a model increased or decreased fit and/or parsimony." In linear regression, AIC and BIC are metrics for doing this sort of model comparison and selection. In the general Bayesian or statistical framework, the tradeoff between parsimony and fit to data is a natural consequence of the paradigm and has been formalized to good effect.

In this context, I want to call out one kind of critique as distinct from this set: the critique that a model is not "psychologically plausible." In my view, any way you read this kind of critique, it's harmful and should be replaced with other language. Here are some possible interpretations:

1. "Model X is psychologically implausible" means "model X is inconsistent with other data." This is perhaps the most common argument from plausibility. For example, "your model assumes that people can remember everything they hear."  Often this is an instance of argument (2a) above, only with an appeal to uncited, often non-quantitative data, so it is impossible to argue against. If there is an argument on the basis of memory/computation limits, citing the data makes it possible to have a discussion about possible modifications to model architecture (and the rationale for doing so). And often it becomes clearer what is at stake, as in the case of e.g. asking a model of word segmentation to account for data about explicit memory (discussion here and here) when the phenomenon itself may rely on implicit mechanisms.

2. "Model X is psychologically implausible" means "model X doesn't fit with framework Y." Different computational frameworks have radically different limitations, e.g. parallel frameworks make some computations easy while symbolic architectures make others easy. Consider Marr & Poggio's 1976 paper on stereo disparity, which shows that a computation that could be intractable using one model of "plausible" resources actually turns out to be very doable with a localist neural net.* We don't know  what the brain can compute. Limiting your interpretation of one model by reference to some other model (which is in turn necessarily wrong) creates circularity. Perhaps these arguments are best thought of as "poverty of the imagination" arguments.

3. "Model X is psychologically implausible" means "model X is posed at a higher/lower level of abstraction than other models I have in mind." To me, this is a standard question about the level of abstraction at which a model is posed – is it at the level of what neurons are doing, what psychological processes are involved, or the structure of the computation necessary in a particular environment. (This is the standard set of distinctions proposed by Marr, but there may even be other useful ones to make). As I've recently argued, from a scientific perspective I think it's pretty clear we want descriptions of mind at every level of abstraction. Perhaps some of these arguments are in fact requests to be clearer about levels of description (or even rejections of the levels of description framework).

In other words, arguments from psychological plausibility are harmful. Some possible interpretations of such arguments are reasonable – that a model should account for more data or be integrated with other frameworks. In these cases, the argument should be stated directly in a way that allows a response via modification of the model or the data that are considered. But other interpretations of plausibility arguments are circular claims or confusions about level of analysis. Either way, such arguments lump together a number of different possibilities without providing the clarity necessary to move the discussion forward.

---
Thanks to Ed Vul, Steve Piantadosi, Tim Brady, and Noah Goodman for helpful discussion, and * = HT Vikash Mansinghka. (Small edits 2/12/14.)

Tuesday, January 14, 2014

Early communicative vocalizations and the raspberry



M has begun blowing raspberries. It started one day just before she turned five months. I picked her up at day care and a teacher asked me whether she had been doing it at home – but this was the first I had heard of it. When I got her home and went to change her diaper, she rewarded me with a big wet "thbbbbt!" Since then, she deploys them unpredictably, with the raspberry even being her dominant vocalization some days.

What do the raspberries mean? I don't know – but they have an interesting feature: they are not necessarily either happy or sad. Sometimes M is struggling to get something out of reach, grunting with frustration, and then she turns aside and blows what seems to me (and other unbiased observers, like her mom) to be a sad raspberry. Other times, she looks at her grandmother or grandfather, smiles, and blows a happy one.

A gorgeous new paper by Oller and colleagues argues that this affective flexibility is an important characteristic of infants' early vocalizations. The study is very simple, coding the affective expression (e.g. smile, grimace, etc.) that goes along with a range of baby noises, including laughter, crying, squealing, growling, and "vocants" (coos and their siblings). Unlike laughter and cries, the other three vocalizations are all remarkably flexible. Like M's raspberries, they go along with – perhaps are even used to express – sadness, happiness, or something else altogether. Even infants 3 - 4 months old showed this same flexibility.

This early flexibility account seems like it goes along with a number of other proto-communicative responses that I've seen in M. Each of these is individually-consistent with conditioning of a specific response to a social stimulus. But they are also not inconsistent with the early beginnings of communication: 
  • When M is hungry at night, she cries harder when she sees or hears me come into the room. Presumably this is because she knows she has an audience?
  • M looks at me when I say her name (also when I say other things, but her name and various nicknames seem especially attention-grabbing)
  • M has started putting her arms up in a way that could be interpreted as "pick me up!"
  • Once (around 4 months), M cooed loudly, and I turned around in surprise. Her face lit up with a bigger smile than usual, as if to say "I didn't know that would happen!"
Again, none of these give strong evidence in favor of a communicative account over pure stimulus-response learning. But all seem like great candidates for further investigation – either to test whether they are communicative  or else to understand better how communication emerges out of simple social associations. 

(A post I drafted last month, hastily wrapped up.)

ResearchBlogging.org Oller DK, Buder EH, Ramsdell HL, Warlaumont AS, Chorna L, & Bakeman R (2013). Functional flexibility of infant vocalization and the emergence of language. Proceedings of the National Academy of Sciences of the United States of America, 110 (16), 6318-23 PMID: 23550164

Emergence of empathy and separation anxiety

M is six months this week (and sleeping in this morning; hence, time for blogging).

Over the weekend I noticed the emergence of two social behaviors – separation anxiety and empathic crying – that I hadn't previously thought were related. But this developmental co-incidence is making me reconsider.

Re "separation anxiety": M is an extremely social baby and up until now has loved being held by other people, spending time with different teachers at daycare, etc. So I was quite surprised when – for the first time – she burst into tears when a friend was holding her and I left the room. The same exact thing happened the next day with a different friend and M's mom, and then again at daycare yesterday.

From BabyCenter (that reliable source for all things developmental):
At around 7 months your baby will realize that he's independent of you. While this is an exciting cognitive milestone, this new understanding of separateness can make him anxious. He knows that you can leave him, but he doesn't know that you'll always come back, so he's likely to burst into tears when you leave, even for a minute.
I'm somewhat skeptical about the Freudian gloss about individuation that's given – and the connections to Piagetian object permanence also freak me out a bit (given that the different markers of this visual ability have moved around so much developmentally and depend on so many other aspects of cognition, e.g. here and here). Nevertheless, the phenomenon is striking.

And re empathic crying: a much-cited study suggests that even newborns cry more when they hear other babies crying. And indeed, I had noticed that M was a little bit more likely to cry when someone was crying nearby. But my primary observation was that she mostly didn't look visibly distressed by their distress. I was surprised, then, that during this last weekend she cared so much about our friends' sad toddlers and babies. To over-interpret a bit, it seemed like she got a pained look every time they screamed – as though she didn't want to continue carefree play while someone else was in so much discomfort.

On the Freudian/Piagetian gloss of separation anxiety, these two behaviors should likely have very little to do with one another. But if you posit that there is some underlying social understanding that is developing, it's not completely implausible that they are coincident. Perhaps the same understanding of their own vulnerability without the parent is also helping the child feel sympathy for a distressed other...

(edits 1/14)