Showing posts with label science. Show all posts
Showing posts with label science. Show all posts

Tuesday, May 14, 2013

Neocorticalism and Its Weaknesses

[Blogger's note:  I went dark halfway through writing this.  Started it back in November, then got diverted into a self-imposed software project and lost interest for a while.  Not sure I'm back to blogging for real--we'll see.  No doubt you, my three readers, are incredibly excited!]

Just finished reading [well, last November] Ray Kurzweil's How to Create a Mind.  This has the usual Kurzweillian arguments about why all information technologies--including those associated with biology and neuroscience--grow at an exponential rate, irrespective of the actual technology base.  It extends his singularity books by going a bit deeper into how to build artificial cortical pattern recognizers, and makes the argument that a hierarchy of these modules pretty much constitutes the human mind and its consciousness.

Kurzweil references Jeff Hawkins's On Intelligence, one of my favorite books of all time.  Kurzweil takes issue with some of the details of Hawkins's model, but the two authors both agree on several central points:
  • Both note the existence of a "cortical algorithm", where all areas of the neocortex work pretty much the same and project axons in pretty much the same way.  This means that patterns get recognized the same way everywhere, and project up to higher level pattern recognizers and down to excite, reinforce, or inhibit lower level patterns.
  • Kurzweil thinks that consciousness is an emergent property of a big neocortex, while Hawkins thinks that consciousness is "what it feels like to have a cortex".
  • Both of them spend a lot of time on input pattern recognition, but very little time on motor outputs.
  • Both treat the thalamus and brain stem as I/O devices, with little to do with consciousness (although Kurzweil does note that the thalamus is essential to be conscious).
  • Hawkins thinks that the secret sauce for complex cognition lies in the time-dependent behavior of cortical activation, where pattern #1 primes the downward links for pattern #2 to be activated if things go as the patterns expect them to in the immediate future.  Kurzweil is strangely silent on time-dependent behavior, which is weird, since speech recognition is so heavily time-biased.  I think he's glossing over some behavior of hidden Markov models in which I'm not expert.  He may also be slightly cagey about trade secrets.
I think that they're barking up the right tree with respect to the cortical algorithm, but they're both minimizing the importance of the older brain structures.  I have some trouble with this "neocorticalist" approach.  Here are my big objections:
  • Neocorticalism can't really explain attention.  As I've said before, I think that attention is likely an incredibly ancient property and is intimately involved with consciousness.  I'm prepared to believe that human-style self-reflection and theory of mind might be new, emergent properties, but they can only emerge because of some repurposing of older mechanisms.
  • Simple pattern matching doesn't get you very good motor performance.  I'm prepared to believe that the motor cortex is coordinating intentions and hifgh-level actions, but the whole business seems way too asynchronous to allow us to be catching balls or playing the piano.  The cerebellum is clearly involved, but I suspect that you need a way to make the neocortex semi-synchronous.  There's some evidence that the basal ganglia are involved at least in time perception; I'll bet we're going to discover that the same structures are "clocking" groups of neocortical patterns to coordinate activities in the motor cortex.
  • One of the things that was intriguing about Hawkins's architecture is that it hinted that the learning process self-organized the cortical hierarchy so that novel or unlearned activities were first handled, somewhat hesitantly, at high levels, but the learning process pushed down the salient features into lower level learning, but no mechanism was described for how this happens.  Kurzweil pretty much ignored this, going so far as to posit some kind of central allocator of pattern recognizers.  There's something subtle going on here that pure neocorticalism can't capture.
Since this book was published, Kurweil has taken a high-level technologist position at Google, which has also bought, DNNresearch, Geoff Hinton's startup.  Deep learning, a term coined by Hinton, has been getting a lot of press recently.  It's pretty clear that Google has decided to pour money into this.  It's a problem that's amenable to implementation in cloud computing, so the fit is pretty good.

People implementing deep learning train each layer in a multi-layer network separately, using unsupervised feature detection.  ("Unsupervised" means that you don't tell the layer when it's done something right or wrong--you merely let it classify inputs as it sees fit.)  This still can't be quite what biological systems do, because they can figure out their own layering, which has to be imposed for deep learning.  My guess is that layering in humans is governed by chunks of the cortex that are genetically predisposed to accept axons from I/O-like areas of the thalamus and other parts of the brainstem.  They therefore learn to detect features associated with that kind of input and project out to a more amorphous set of regions, which can then combine multiple projections into novel features.

This still doesn't define a mechanism where layers compete with each other to identify features at the appropriate level of detail, but you can see how that might emerge with enough feedback between layers.

My guess is that we're going to discover that a huge amount of our cognition is dependent on a fairly arbitrary set of input regions mapping to another fairly arbitrary set of cross-regions, and so on.  But note that "arbitrary" doesn't mean that they're not genetically predetermined.  The stability of those mappings across most humans is what allows us to communicate with each other and what allows us to perceive most individuals as "sane".  One of the most interesting things about figuring out how all this hangs together is the possibility of producing entities that think radically differently from us but which still can extract insights about the universe that we're not optimized to perceive.

Things are going to move pretty quickly from here.  We aren't close to a strong AI using this kind of technology, but the Watson/Jeopardy thing shows that you can get an awful lot of interesting work out of something that you wouldn't necessarily want at your dinner party.

Saturday, September 15, 2012

A Modest Post on the Nature of Consciousness, Self-Awareness, and What Makes Humans Human

The political campaigns are so dismal that I can’t bring myself to think much about them. So, now for something completely different: Let’s discuss some speculative neurology.

Let me see if I can get enough of this into a small enough space that I don’t get bored with it and it’s semi-intelligible. How brains compute is a moderate obsession of mine, and I’ve come to hold an idea of what I think consciousness and self awareness are. I’ll also take a crack at what makes humans different from other animals.

To start with, remember that evolution hardly ever throws anything away. If something works and provides a survival advantage, it gets conserved. Other stuff comes along later and may leverage the older stuff, or it may simply evolve to accommodate the older stuff.

All life needs to sense its environment, so that it knows how to react to consume resources, and how to avoid being consumed as resources—food. The first step to this involved chemical receptors arrayed on the outside of cells. Some interesting molecule would float by, the receptor would glom onto it, and a cascade of chemical reactions would cause the cell to do something. The “something” could be a simple as opening channel in the cell membrane to consume the molecule, or as complex as using a flagellum to turn toward or run away from the molecule.

Once you get to multi-cellular creatures, more information can be processed if cells specialize to detect certain types of information and relay that information to nerve cells. Nerve cells can then detect patterns of different kinds of information and respond to them with certain actions. Organisms are now capable of learning, but the learned behavior certainly isn’t conscious. It’s merely, “Detect stimulus A, respond with B. Detect stimulus C, respond with D,” and so on.

Animals can go a long way with this type of system, but it becomes energetically inefficient to strew neural processing nets all over the organism. The next step in complexity is to route all stimuli to a central spot, then have that central spot respond with a set of actions that get routed back out to the portions of the animal that can take action. Welcome to the age of brains. A slight step up from this further simplifies the transport of neural signals via a bundle of neurons that feed into the brain, and we’re now into the chordata phyllum.

Note that, evolutionarily, everything makes sense so far. Differentiating from a single-celled organism with receptors to a multi-celled animal with sets of cells doing the receiving and acting to other cells coordinating the receiving and acting starts out as separate organisms in symbiosis, then slowly evolves into true multi-cellularity. Everything is gradual. Similarly, once you get neural nets distributed around the animal’s body, evolution can gradually make things more energy-efficient by having the processing cells migrate together and more densely interconnect.

But brains at this point are still pretty much just bags of loosely-coupled stimulus-response loops. You get lots of variations of neurons that do very specialized tasks, depending on what kinds of stimuli they’re processing, or what kinds of actions—including motor actions—they’re controlling. If you look at the human brainstems, and those of more primitive chordates, you’ll find lots of neural nets like this. There are lots of slightly different tissues performing slightly different actions.

We’re now getting to the point where the array of stimuli from the environment is so large, so varied, that the brain is unlikely to be able to respond to everything that’s going on all at once. As brains have evolved, the environments into which they’ve evolved have become more and more complex. A single-celled animal in a tide-pool has a very simple environment: It “smells” food and tries to move toward it, and maybe it knows how to secrete something nasty or move away to avoid being eaten. An insect or a chordate on land has a bewildering array of features to its environment. Vision is almost essential, and the arms race between predators and prey floods the brain with conflicting stimuli.

Animals at this point have “memory”; they’ve learned to respond to patterns of stimuli with other patterns of response. But they now need a way to prioritize responses. To do this, the brain links lots of disparate neural nets together with another kind of memory, which can weigh conflicting stimuli, hold them together for long enough to select the important ones, and then coordinate a set of behaviors in response. We call this behavior “attention”, and the anatomical structures that contains the working memory for directing attention are the limbic system and the cortex.

Even with specialized tissues, it’s unlikely that all of the neurons are set with response patterns solely from genetic instructions. Things at least need to be fine-tuned, and the animal needs to be plastic enough to recover from damage if it’s to live long enough to reproduce. Brainstem elements therefore “learn”—they modify neural connections to get optimal response from the animal, even though the animal’s sensory and motor systems may change (mostly for the worse) over time.

I don’t know a lot about how those systems learn in things without a cortex. I suspect that learning strategies for various brainstems tissues co-evolved with the tissues themselves. But when an animal has a cortex, it can employ a much more powerful learning strategy.

Part of the attentional system works by detecting a moderate stimulus and, if attention is granted, greatly strengthening it by having the attentional system add further stimulus. This mechanism has another purpose. The combination of attention and stimulus can greatly enhance learning. The attention system can now simulate (no ‘t’) hunks of stimulus so that the motor system can “practice” its response—without actually having to experience the stimulus from the environment or execute the response. We’re pretty sure that this is what dreaming is for. If this is true, then most animals with a cortex should dream.

Being a computer geek, I’ll now make a computer analogy that is only slightly accurate, but will give us a framework for moving forward: The brainstem is the brain’s I/O system, the limbic system and cortex is the CPU, and attention is the active task. The learning mechanism doesn’t have a direct analogy here, but you might think of it as the memory refresh logic, constantly reading in memory and rewriting it. Alternatively, learning can be viewed as subtasks that are launched from an executive in the attentional system.

The more cortex you have, the more sophisticated the relationships are that can be held between the heavily-processed I/O from the peripheral sensory systems and the behaviors to be sent out to the motor (and endocrine) systems. Attention is merely the act of progressively abstracting these relationships and deciding to activate a small number of them instead of activating thousands of them.

I think you can have an organism with attention that isn’t what we would consider self-aware, but I’m willing to bet that the next step is where an organism becomes self-aware. That step is easy to evolve: We already have an attentional mechanism that gets stimulated by the outside world. Those stimuli get more and more hierarchically abstracted, so that a small stimulus pattern to the attentional mechanism can represent an incredibly complex stimulus. We have a word for these stimuli: we call them “concepts”.

We also have the ability for the cortical learning mechanism, which must be closely related to the attentional system, to activate concepts during dreaming. It’s only a small step from dreaming to allowing the attentional system to stimulate concepts during when it’s awake.

This sounds an awful lot like “thinking” to me, and my guess is that the act of thinking is the hallmark of self-awareness. When the attentional system isn’t being consumed with environmental stimuli, it simply activates concepts based on recent experience. The activation of those concepts cause other concepts to be activated, and the attentional system then chooses which concepts to attend to, in the process stimulating those concepts more strongly, which activates still other concepts, and so on.

Note that all of these mechanisms are merely an outgrowth of the more primitive attentional system and the cortical learning system. Again, evolution doesn’t have to add a lot to get greatly enhanced behavior.

If this is right, then almost everything with a cortex is to some extent “self-aware”. So what distinguishes humans from other chordates?

One answer might be “Nothing”. Perhaps human self awareness and processing is merely better as a matter of degree rather than kind. But there is one last piece to the puzzle that it appears that few animals have: language.

At one level, language is easy to extrapolate from what we already have. Since the attentional system can internally stimulate concepts, it may be natural to tag concepts with a motor activity corresponding to a sound. We call these sounds “words”.

A lot of animals are limited in the number of different sounds they can make. It would be natural for them to associate words only with the most important concepts, so that their inventory of sounds is used productively. However, the human vocal tract is capable of producing an astonishing number of sounds. Hence, it can associate a unique word with almost any concept. Note that the key evolution here isn’t really neural; the evolution of the vocal tract naturally leads to more and more words.

Eventually, there are enough words that ever more complex concepts can be created by stringing words together. Patterns of words become new concepts, eventually leading to syntax, which is just an attentional set of tricks to allow the sequencing of words.

At the end of this process, we have a whole new emergent property, in which transient concepts can be sent as stimuli from one brain to another, via words and syntax. Some of those concepts will become new, permanent concepts. Others may persist just long enough to allow groups to coordinate actions, socialize, or merely have a nice chat about last night’s basketball game. But the end result is a whole new level of emergent behavior that only humans (and perhaps a couple of other species) possess.

Those last tiny steps of evolution are interesting. If I’m right, being human is possible only because we can make a lot of distinct noises, which has led to an explosion in the number of concepts we can handle, which has further driven the expansion of the cortex. If you could give other animals the ability to make more noises (say, by grafting vocoders into their brains at or near birth), you might discover that the differences between humans and animals really was more one of degree than of kind. Perhaps words and syntax are merely an outgrowth of the need to handle more and more concepts. That might make for a future where the definition of humanity might have to be broadened considerably.

UPDATE 9/19/12:  Just fixed some formatting.

Tuesday, March 23, 2010

Nuclear Rocketry, Anyone?

One of the deal-breakers with fission-based rocketry was the need to cool the reactor with the propellant fluid, which, first, made the whole scheme subject to the fundamental Carnot limitations of heat engines and, second, put huge stresses on the reactor itself, since it has to withstand the vibration generated by the working fluid flowing through it.

This approach is an attempt to build a "dusty plasma" reactor, where the fission products themselves can either become the reaction mass for the rocket, or can be decelerated in an electric field to directly generate electricity for some kind of ion propulsion. Using the fission products as reaction mass could yield a specific impulse of about 1,000,000 seconds (that's about a factor of 100 better than the best ion engines, BTW).

On the downside, this rocket works by emitting nuclear waste at 3-4% of the speed of light. This qualifies it as the second-dirtiest rocket ever envisioned. (Don't forget Project Orion!)

Friday, January 8, 2010

Progress

January 7, 1610:



January 7, 2010:



I want to live forever, because I want to see what happens next.

Monday, December 14, 2009

Political Science

Another Climategate post, indirectly. I keep wondering what it is about the current AGW narrative that bothers me so much. I bristle at bald statements that "the science is settled", but not so much at the arrogance of the statement as the fact that there's something qualitatively fishy about it. I don't have any problem with statements like, "the science surrounding the theory of evolution is settled." So what's the difference?

For some reason, this Ezra Klein post on excess deaths from lack of health insurance triggered a possible answer. In it, we are informed:
By now, you're probably used to hearing about the $900 billion health-care bill. But what about the 150,000-life health-care bill?

Oddly, that label hasn't made its way into the conversation. But it is, if anything, a conservative estimate. The Institute of Medicine developed a detailed methodology for projecting the lives lost due to lack of insurance. The original paper estimated that 18,000 lives were lost in 2000, and the Urban Institute updated that analysis with data for 2006, yielding an estimate of 22,000 lives. As for 150,000, well, that's almost certainly too low. That's just the 2006 number across 10 years, which is the time frame we generally use for health care, with a third of the lives saved lopped off, as we're not going to cover all of the uninsured. But since the population of the uninsured grows every year, and so does the death toll, it would surely be higher. So call it the 150,000-plus-life health-care plan.

Now, I'm sure that the folks at the Institute of Medicine think they are doing science, and I'm pretty sure that they're right. But they're not really doing clean, falsifiable, Popperesque science, are they? They're building a model. The model produced some conclusions, but the conclusions are ultimately not falsifiable. It is impossible to tell whether 18,000 lives were lost in 2000 from lack of insurance, because it's impossible to build a model where 18,000 lives weren't lost because everybody had insurance.

With climate research, we also have models, but the models are even more sketchy. Instead, we have lots and lots of measurements with very little predictive theory to accompany them. We have thermometric data from the last 150 years, and we have whole bunches of proxy data from the last couple of thousand years, which may or may not correlate with actual temperatures. Once again, this may be wonderful work, but it's not exactly falsifiable, is it? Nobody's going to construct a time machine any time soon so that we can go back and measure the temperature and turn the various proxy hypotheses into hard theories. This is all correlation, not theory.

Mind you, I'm not saying that we should stop trying to produce good translations between proxy data and inferred temperature. Rather, we should just be aware of the limitations of doing so.

I have the same problems with epidemiological studies. Designing studies, sampling them, and observing statistical correlations is very important and contributes enormously to clinical knowledge. But it doesn't really tell you why a statistical correlation exists. That can only be done with a set of falsifiable hypotheses. When you base policy on statistical correlations instead of biological theory, you're probably doing better than you would with superstition, but you're running a pretty big risk that the causation you infer from the correlation might be wrong.

So a lot of this class of science is running a bit open-loop. We should always be skeptical of observation without explanation.

Which brings us back to Climategate or, more accurately, to the set of statements that can be made about the world climate, based either on the data available, or on the current set of climate theories:
  1. Thermometric observation shows that the global climate has warmed over the past 150 years. (Very likely true.)
  2. Measured increases in global climate are strongly correlated with CO2 emissions. (True.)
  3. Human activity, which can be proven to cause the increased CO2 emissions, is causing the global climate to warm. (Based on a simple deduction from 1 and 2, very likely true.)
  4. Current warming is unprecedented. (False if the theories on the correlation of proxy data with actual global temperature are incorrect. Since those theories can't currently be falsified, this can't be presumed to be true. Indeed, the whole issue behind the "hide the decline" scandal is that the decline may in fact falsify some of the proxy theories.)
  5. Without aggressive reduction in CO2 emissions, global warming will accelerate to cause significant environmental and economic damage. (Predicted only by model. Can't yet be falsified.)
  6. Aggressive reduction in CO2 emissions will slow the rate of global warming. (Can't yet be falsified.)
So here's where things start to get nasty: In the absence of adequately tested theories, which, while not yet falsified, are yet to be subject to any tests capable of falsifying them, climate scientists and their fellow-traveler policymakers are merely pounding the table. The consensus is, indeed, that these models are correct, but the consensus is operating without the benefit of the full, closed-loop testing cycle that we usually feel is important for scientific theory to be robust. This takes things partially out of the realm of science and deeper into the realm of politics.

Let's make sure that we distinguish between the two.

Wednesday, December 2, 2009

How to Keep Scientists From Becoming Politicians

From Willis Eschenbach's chronicle of his FOI request to CRU, we find the following email from Ben Santer to Tom Wigley et al. buried close to the bottom of this voluminous exchange:
My personal opinion is that both FOI requests (1) and (2) are intrusive and unreasonable. Steven McIntyre provides absolutely no scientific justification or explanation for such requests. I believe that McIntyre is pursuing a calculated strategy to divert my attention and focus away from research. As the recent experiences of Mike Mann and Phil Jones have shown, this request is the thin edge of wedge. It will be followed by further requests for computer programs, additional material and explanations, etc., etc.

Quite frankly, Tom, having spent nearly 10 months of my life addressing the serious scientific flaws in the Douglass et al. IJoC paper, I am unwilling to waste more of my time fulfilling the intrusive and frivolous requests of Steven McIntyre. The supreme irony is that Mr. McIntyre has focused his attention on our IJoC paper rather than the Douglass et al. IJoC paper which we criticized. As you know, Douglass et al. relied on a seriously flawed statistical test, and reached incorrect conclusions on the basis of that flawed test.

I believe that our community should no longer tolerate the behavior of Mr. McIntyre and his cronies. McIntyre has no interest in improving our scientific understanding of the nature and causes of climate change. He has no interest in rational scientific discourse. He deals in the currency of threats and intimidation. We should be able to conduct our scientific research without constant fear of an “audit” by Steven McIntyre; without having to weigh every word we write in every email we send to our scientific colleagues.

In my opinion, Steven McIntyre is the self-appointed Joe McCarthy of climate science. I am unwilling to submit to this McCarthy-style investigation of my scientific research. As you know, I have refused to send McIntyre the “derived” model data he requests, since all of the primary model data necessary to replicate our results are freely available to him. I will continue to refuse such data requests in the future. Nor will I provide McIntyre with computer programs, email correspondence, etc. I feel very strongly about these issues. We should not be coerced by the scientific equivalent of a playground bully.
Well, yeah, there's a certain amount of whining here, but there's also an extremely good point: Do we really want a particular interest group to be able to "paper" a science project into submission? There has to be a point at which repeated FOI requests can be ajudged so intrusive, or so trivial, that the scientist has the right to ignore them and get back to work.

We're used to these kinds of tactics in the political arena, and we tolerate them as a necessary evil. However, scientists need the ability to concentrate on their research without continuously having to fight off frivolous legal actions.

Of course, the big problem here is that CRU was undeniably keeping sources, data, and reduction methodology much more opaque than was proper. They could have staved off a huge amount of FOI paperwork simply by doing a reasonable job of archiving and publishing their data. They were slobs, and then they got up on their high horse when some of their opponents accused them of being slobs.

Seems like we need some modification to the peer-review process. There's no reason in this day and age that a team can't submit a package of raw data, reductions, and code along with their paper. If the peers think that this information isn't sufficiently transparent, it should be grounds for sending the paper back to the drawing board. Of course, this doesn't solve the problem of picking a representative set of peers.

Wednesday, November 25, 2009

And Today's Word Is...

kludge or kluge (klo̵̅o̅j)
noun
  1. a piece of computer hardware or software, or a computer system, that is clumsily designed or improvised from mismatched parts
  2. any poorly designed device or system
I've been watching the Climategate saga with a certain amount of amusement. I have to confess to a certain amount of schadenfreude on this whole thing. It's not that I don't think that anthropogenic global warming isn't real, and it's not even that I don't think that it's a cause for a certain amount of concern. But it always warms the cockles of my heart to see any group whose fundamental identity is based on being a bunch of self-righteous, holier-than-thou--worse, smarter-than-thou--scolds get their comeuppance.

But there is a real lesson in this for both scientists and non-scientists alike, and today I'd like to concentrate on the psychology of computer simulation.

From CBS's Declan McCullagh, who seems to have a much stronger tolerance for wading through the HARRY_READ_ME.txt file than I do, we learn:
In addition to e-mail messages, the roughly 3,600 leaked documents posted on sites including Wikileaks.org and EastAngliaEmails.com include computer code and a description of how an unfortunate programmer named "Harry" -- possibly the CRU's Ian "Harry" Harris -- was tasked with resuscitating and updating a key temperature database that proved to be problematic. Some excerpts from what appear to be his notes, emphasis added:
I am seriously worried that our flagship gridded data product is produced by Delaunay triangulation - apparently linear as well. As far as I can see, this renders the station counts totally meaningless. It also means that we cannot say exactly how the gridded data is arrived at from a statistical perspective - since we're using an off-the-shelf product that isn't documented sufficiently to say that. Why this wasn't coded up in Fortran I don't know - time pressures perhaps? Was too much effort expended on homogenisation, that there wasn't enough time to write a gridding procedure? Of course, it's too late for me to fix it too. Meh.

I am very sorry to report that the rest of the databases seem to be in nearly as poor a state as Australia was. There are hundreds if not thousands of pairs of dummy stations, one with no WMO and one with, usually overlapping and with the same station name and very similar coordinates. I know it could be old and new stations, but why such large overlaps if that's the case? Aarrggghhh! There truly is no end in sight... So, we can have a proper result, but only by including a load of garbage!

One thing that's unsettling is that many of the assigned WMo codes for Canadian stations do not return any hits with a web search. Usually the country's met office, or at least the Weather Underground, show up – but for these stations, nothing at all. Makes me wonder if these are long-discontinued, or were even invented somewhere other than Canada!

Knowing how long it takes to debug this suite - the experiment endeth here. The option (like all the anomdtb options) is totally undocumented so we'll never know what we lost. 22. Right, time to stop pussyfooting around the niceties of Tim's labyrinthine software suites - let's have a go at producing CRU TS 3.0! since failing to do that will be the definitive failure of the entire project.

Ulp! I am seriously close to giving up, again. The history of this is so complex that I can't get far enough into it before by head hurts and I have to stop. Each parameter has a tortuous history of manual and semi-automated interventions that I simply cannot just go back to early versions and run the update prog. I could be throwing away all kinds of corrections - to lat/lons, to WMOs (yes!), and more. So what the hell can I do about all these duplicate stations?...

As the leaked messages, and especially the HARRY_READ_ME.txt file, found their way around technical circles, two things happened: first, programmers unaffiliated with East Anglia started taking a close look at the quality of the CRU's code, and second, they began to feel sympathetic for anyone who had to spend three years (including working weekends) trying to make sense of code that appeared to be undocumented and buggy, while representing the core of CRU's climate model.

One programmer highlighted the error of relying on computer code that, if it generates an error message, continues as if nothing untoward ever occurred. Another debugged the code by pointing out why the output of a calculation that should always generate a positive number was incorrectly generating a negative one. A third concluded: "I feel for this guy. He's obviously spent years trying to get data from undocumented and completely messy sources."

Programmer-written comments inserted into CRU's Fortran code have drawn fire as well. The file briffa_sep98_d.pro says: "Apply a VERY ARTIFICAL correction for decline!!" and "APPLY ARTIFICIAL CORRECTION." Another, quantify_tsdcal.pro, says: "Low pass filtering at century and longer time scales never gets rid of the trend - so eventually I start to scale down the 120-yr low pass time series to mimic the effect of removing/adding longer time scales!"
Disclaimer: I am not a scientific modeler, nor do I play one on TV. However, I have cobbled together the odd simulation to explain various software behaviors, and I've done the occasional spreadsheet to help me understand various physical processes. In my experience, the basic methodology for producing such a model goes something like this:
  1. Write the model.
  2. Run it.
  3. Stare uncomprehendingly at the results, trying to figure out why they bear no relationship to what you perceive reality to be.
  4. Debug it and modify it.
  5. Until it looks sorta-kinda right, go to step 2.
  6. Once you believe it's getting close, start tweaking the various constants you defined for your model in an effort to get it in closer and closer agreement with whatever your observed data set is.
  7. Run it.
  8. If it doesn't agree with your data set, go to step 6.
  9. Hopefully gain some insight into what you were modeling.
  10. Breathe a sigh of relief that it's finally over.
  11. (and this is the most important step of all) Forget all about how you constructed the model as quickly as possible.
My experience is that as soon as you have the model debugged, you tend to treat its results as gospel. You rely much too heavily on the model for any future inferences that you make about the system.

This is, in my experience, an essential part of the psychology of computer geeks. Computer programming is an exercise in abstraction: you break a problem down into more basic parts that you think you understand. Once you get the behavior you understand from the underlying parts, you can forget about them and concentrate on the behavior generated when you hook those parts together, and so on, until you've created the whole system. It takes a certain amount of discipline to remember that you programmed the basic parts on a day when you had just had a fight with your family, or were interrupted halfway through a key chunk of code, or were sick. They aren't necessarily correct.

I'm sure that the good folks at CRU were conscientious in verifying their models to the best of their ability. I am also sure that they were not software engineers, and our friend Harry's notes make it crystal-clear that he was dealing with a bag of poorly matched components produced by people that probably knew a lot about thermodynamics but not so much about object-oriented design (or even structured programming), to say nothing of rigorous source-code control. It's no wonder that they promptly forgot everything about their models as soon as they got them working.

Why is this important? Several reasons:
  • When a model isn't understandable, it isn't capable of being critiqued. Criticism is the foundation of all scientific inquiry.

  • In my experience, lack of elegance comes from lack of understanding of the underlying problem. You write bad code when you're blundering about. Blundering is all well and good--it's another of the unspoken foundations of scientific inquiry--but it's not so good when your results are being handed over to the UN as a basis for policy recommendations.

  • Bad code implies that you have no way of quantifying how sensitive your model is to its data. We know that a non-linear system like the atmosphere is incredibly sensitive to initial conditions (cf. the "butterfly effect"). My guess is that CRU not only doesn't know how noisy its measurements are, it doesn't know how much variations in those measurements affect the output.

  • There is absolutely no way that you can make cogent engineering recommendations on how to modify atmospheric behavior when you don't understand your model.
Let me harp on this last point a bit more. Climate science has come a long way, and it's been able to generate some results to which we all ought to pay attention. However, there is nothing like a reliable theory of the atmosphere. We can barely reproduce historical climate behavior, to say nothing of predicting future behavior with any accuracy. The big lesson from Climategate is that, while it's a great achievement to be able to tweak a model until it fits your known data sets (and I'll leave the simply despicable behavior with regard to the acquisition, maintenance, manipulation, and obfuscation of those data sets to those with a greater store of moral outrage than I), it's quite another thing to have a model that's so well understood that a set of geo-engineering principles drops out of it.

And make no mistake: What we're embarking upon is a feat of geo-engineering. When we endeavor to reduce emissions, we're basically modifying the forcing functions on the atmosphere. (It's entirely possible that there's something that we don't understand that will cause non-linear behavior to emerge when the second derivative of the historical CO2 level goes strongly negative.)

Engineering has consequences, and it's really nice to understand them with with extremely well-understood science. This is how we avoid producing the atmospheric equivalent of Galloping Gertie.

Friday, September 4, 2009

What Can You Say to a Creationist?

Numerous comments about Sean Carroll's decision to sever his association with bloggingheads.tv, over their posting of a couple of diavlogs in which creationists and intelligent design proponents were invited to participate.

Here are some of Carroll's objections:

...It’s too easy to guess at what someone else is thinking, then argue against that, rather than work to understand where they are coming from. I tried to lay out my own thinking in the Grid of Disputation post. Namely: if BH.tv has something unique and special going for it, it’s the idea that it’s not just a shouting match, or mindless entertainment. It’s a place we can go to hear people with very different perspectives talk about issues about which they may strongly disagree, but with a presumption that both people are worth listening to. If the issue at hand is one with which I’m sufficiently familiar, I can judge for myself whether I think the speakers are respectable; but if it’s not, I have to go by my experience with other dialogues on the site.

What I objected to about the creationists was that they were not worthy opponents with whom I disagree; they’re just crackpots. Go to a biology conference, read a biology journal, spend time in a biology department; nobody is arguing about the possibility that an ill-specified supernatural “designer” is interfering at whim with the course of evolution. It’s not a serious idea. It may be out there in the public sphere as an idea that garners attention — but, as we all know, that holds true for all sorts of non-serious ideas. If I’m going to spend an hour of my life listening to two people have a discussion with each other, I want some confidence that they’re both serious people. Likewise, if I’m going to spend my own time and lend my own credibility to such an enterprise, I want to believe that serious discussions between respectable interlocutors are what the site is all about.


Some time back I was surprised to discover that I am a rabid anti-creationist. I had a discussion with my brother-in-law about the "teach the controversy" doctrine and wound up foaming at the mouth, more than a little bit. This seems to be one of those things where I would think that I'd be fairly tolerant of harmless error, but I really don't think that it is harmless. Creationism actively encourages kids to think unscientifically, which will turn them away from scientific or technical careers. It contributes to bad public policy (cf. stem cell research bans). And, by being so relentlessly political, it corrodes the foundations of secular government.

So I am somewhat sympathetic to Carroll's distaste at being associated with a site that has any tolerance for airing these kinds of ideas. Best not to give them any oxygen, right? By engaging them or debating them, you only legitimize their ideas, no?

The problem with this line of reasoning is that creationism is already legitimate. Take a look at this incredibly distressing poll from a few years ago. When you have roughly half of the country, in all demographics and age groups, believing that "God created man in his present form," the legitimacy cat is out of the bag and has been drinking from your toilet for some time.

Now, it is almost useless to debate creationism with creationists. You're not going to change their minds, and it's unlikely that pure reason will change the minds of the creationism-believing chunks of the viewing audience. Per Shaw, "never wrestle with a pig. You both get dirty, and the pig likes it."

If you can't debate 'em, what's a scientific body to do? The answer, I think, has a lot more to do with talking points than it does with winning debates. To discredit creationism, you need to get the media to pay attention. The media only pay attention to things that are so artfully crafted that people enjoy watching them enough to watch commercials at the same time. That's a job for PR folks, not scientists, not even debaters. But the scientists have to show up, or all the pretty words that the PR folks provide them will come to naught.

And that's the problem with the Carroll approach: it fails to appreciate that creationism is not a scientific issue but rather a political one. And debate and reason have a fairly small place in the toolkit required to affect attitudinal change on political topics.

One of the larger chunks of that toolkit is consistent, long-term, willingness to engage on the issue. That means that you have to respect the consequences of your opponents' opinions, even if you don't respect the position itself. You have to show up, over and over and over.

So Carroll's decision to take his bat and go home is an incredibly bad one. He has telegraphed an unwillingness to engage, to say nothing of leaving the impression that the issue is so trivial as to be beneath his notice. That's a big-time win for the creationists, when they can drive a rational human being off of a site that is largely a boon to other rational human beings.

As for BH.tv, here's what they can do to atone: Let's see a discussion, by two reputable evolutionary biologists, on the best way to combat creationism. Those talking points have to come from somewhere, don't they?

Thursday, November 13, 2008

Earth, Say Hi to Fomalhaut B

The first images of an extraterrestrial planet have been obtained.
The achievement, the result of years of effort on improved observational techniques and better data analysis, presages more such discoveries, the experts said, and will open the door to new investigations and discoveries of what planets are and how they came to be formed.
This is a big deal.

When you can image a planet, you can get its spectrum. One day, not too far in the future, we will obtain the spectrum of a planet and there will be free oxygen lines in it. How different will the world be when we know that there is life on another planet, circling another star? Will we feel compelled to send probes there, irrespective of the cost? Or will this just become yet another datum in the panoply of wonders that is our modern world.

The economy sucks. We're embroiled in a low-intensity world war. Our politics is about to undergo the biggest upheaval since 1981, maybe since 1932. But we can still do... this.

Tuesday, September 16, 2008

ScienceDebate 2008

Here are a set of questions to both candidates on matters relating to science and technology, along with the candidates' answers, side-by-side. Haven't read the whole thing yet, but worth plowing through.

Tuesday, September 9, 2008

What's Happened to the Press

From Ezra:
I think one aspect of the modern press that doesn't get enough attention -- either among folks in the media or folks critiquing it -- is the transition from the fundamental scarcity being information to information being in abundance and the fundamental scarcity being mediation. For instance, the attitude on display in this Marc Ambinder post is fully understandable if you take a newspaperman's attitude towards the whole thing. If everyone got a newspaper once a day, and there were eight political stories, and all of them were different each day, and one of them had pointed out that Palin actually did support the Bridge to Nowhere, then the press would indeed have done its job. The job was to report the story, and they reported it.

But cable news and blogs and radio sort of changed all that and now there's too much information, and so consumers largely rely on the press to arrange that information into some sort of coherent story that will allow them to understand the election. And the press assumed that role -- they didn't create some new institution, or demand that the cable channels be credentialed differently and understood as "political entertainment."

They fill this new role through the methods storytellers have always used to tell stories: the repetition of certain key themes and characters, which creates continuity between one day's events and the next and helps the audience understand which parts to pay attention to. It's sort of like a TV show: If Friends had had an episode where Ross and Rachel hooked up, but never mentioned it again, that would've been weird, but their tryst wouldn't have been a big part of the story. Since they mentioned it all the time, and came back to it, and fit future events into that context, it was a big story. Similarly, if the press reports something and never mentions it again, the public knows to forget it. It's not important. If they mention it constantly -- "I voted for the $87 billion before I voted against it" -- they know it is important. The job of the media, in other words, is now to also emphasize the right parts of the story.
He's right about the transition between scarce information and scarce mediation. The problem is that there's little difference between mediation and commentary, and, worse, between commentary and advocacy.

So the press has a pretty common business problem: the product that they're selling has become commoditized. As with other industries, the way they've chosen to add value to the commodity product is to bundle it with a service. Unfortunately, they've positioned the bundle as, "Buy our information and we'll do the thinking for you." That's terrific in Ezra's world, because there are all sorts of things where he thinks that elite thought is properly substituted for popular thought. (See any of his zillion posts on healthcare.)

In certain instances, this may be correct, but the fundamental problem of such a substitution is that it chokes off the "wisdom of crowds," which generates emergent behavior out of a chaotic sea of opinions. In this way, Ezra's model of the press has the same weaknesses that I've talked about previously. When polarization occurs with efficient information flows, rapid dissemination of information allows groups to form and harden positions so rapidly that there isn't enough time for emergent behavior to generate novel views or solutions of the raw informational events.

Ezra has identified a systemic problem. He thinks that the solution is obvious and harmless. I agree that he's framed the issue in a way where there is at least one viable, profitable solution. While I'm pretty sure that that's fine ultimately to restore the press to financial health, I'm also pretty sure that it isn't enough to restore the public to electoral health.

Tuesday, September 2, 2008

Climate Change Debate

I recently ran across this excellent debate on climate change, seeded with a nice essay by Jim Manzi. (H/T Will Wilkinson.) Despite the violent disagreements among some of the participants, please note that there is a genuine attempt to reach common ground on a whole host of issues. This is not only how climate change policy will eventually be formulated, it's how energy policy in general can move forward.

Highly recommended.

Tuesday, August 26, 2008

Reinventing the Sacred

In last month's Scientific American Michael Shermer had an piece on Stuart Kauffman's Reinventing the Sacred. Here's Kauffman explaining the central thesis:



For all you folks trying to reconcile evolution with a transcendental Creator, here's a way in, other than the silliness of Intelligent Design. Kauffman points out that there's plenty of room for God or any other spiritual force you'd like in the mysteries of emergent and/or self-organizing behavior. This is no more provable or disprovable than I.D. but it does have the nice property that it doesn't need to discredit evolution to exist as an hypothesis.

Monday, July 7, 2008

Your Brain On Graph Theory

Using diffusion imaging, a group led by Indiana University has completed a connectivity map of the brain. They then applied all kinds of fun graph-theoretic operations on the data set. (Here's a paper from a few years ago (PDF), which in turn references a set of matlab functions that allow the dataset to be browsed. Can't seem to find the new research on the site for the lead researcher, Olaf Sporns.)

We've known for a long time that the cerebral cortex organizes itself into various regions and that those regions project forward and backward to each other, as well as to other non-cortical structures. But determining those projections isn't easy, as they're buried in a confusing tangle of white matter. Functional MRI studies could tell what regions were active during what activities, and gross dissection could pick out some of the obvious projections, but diffusion imaging, which can detect the drift of water molecules along axons, was needed to make sense of the subtler projections in the white matter. This appears to be the most comprehensive mapping done so far.

Top-line discovery: There's a core set of regions that seem to be connected to everything:
The most highly connected node, which Sporns dubbed the core, is located at the back of the head, in parts of the brain known as the posterior medial and parietal cerebral cortex. The node lies on the shortest path between many different parts of the neural network. "It's highly connected amongst itself, but also highly central with respect to the rest of the brain," says Sporns. "Network studies in other fields, from the Internet to protein interaction networks, suggest that these kinds of highly connected nodes tend to be very important for determining what the network does as a whole."

Previous functional brain-imaging studies have also highlighted this region: it's one of the most metabolically active parts of the brain, particularly when people are cognitively at rest, meaning that they are awake and alert but not engaging in any particular task. "People refer to this as the resting state, daydreaming, or self-referential processing," says Sporns. As part of the new study, Sporns and his colleagues also used functional magnetic resonance imaging to measure blood flow to different parts of the brain. They found that it correlated with the level of white-matter connectivity in the individual subjects.
So we now have a decent model for a cortical column. We're developing a connectivity map of the cortex. Presumably, we'll also have a complete map of how the cortex maps to other structures in the brain. At some point, this all becomes simulatable. (We're not quite there on the computer hardware front, but we'll get there.) From there, we'll finally be able to extract enough information from those simulation to make some inferences on how intelligent, even conscious, processing occurs. After that, we're into the realm of engineering, and the world will be a very different place.

Thursday, July 3, 2008

Blog Readers and Their Political Leanings

A pretty big study here, and summary stuff over at Crooked Timber. I'll be looking for evidence that communications speed is enhancing self-selection.

Wednesday, June 11, 2008

I'm Glad They're Not Hemorrh-Like Objects

The IAU, in its infinite wisdom, has decided that spherical, trans-Neptunian objects that can't clear debris from their own orbits should be called--wait for it--"plutoids".

Note that this definition doesn't include Ceres, which appears now to be an object without a classification. Maybe it's a ceroid.

Don't you love it when politics and science get in bed and wind up with mutant offspring?

A Plane That Can Stay Up For Five Years

DARPA is looking for something that can stay up for five years, fly at 60,000 to 90,000 feet, and carry a payload of 450 kg.

Sunday, June 8, 2008

Synapses Have Evolved a Lot

The manifest of proteins associated with neural synapses has continued to evolve and become more complex, according to this study.
"Our simple view that 'more nerves' is sufficient to explain 'more brain power' is simply not supported by our study," explained Professor Seth Grant, Head of the Genes to Cognition Programme at the Wellcome Trust Sanger Institute and leader of the project. "Although many studies have looked at the number of neurons, none has looked at the molecular composition of neuron connections. We found dramatic differences in the numbers of proteins in the neuron connections between different species".

"We studied around 600 proteins that are found in mammalian synapses and were surprised to find that only 50 percent of these are also found in invertebrate synapses, and about 25 percent are in single-cell animals, which obviously don't have a brain."
I'm trying to figue out this maps into TheRadicalModerate's Overly Broad Theory of Human Cognition, which contains (but is not limited to) the following tenets:
  • Cortex uses the same neural algorithms to learn and store patterns, pretty much everywhere.


  • The cortex processes patterns derived from somewhere between 50 and 100 sensory "inputs".

    Vaguely pertinent aside: Yes, we have a lot more than five senses. Sensory organs usually do more than one thing, and it's entirely reasonable to assume that each separate thing they do results in different neural inputs. On top of that, you get all sorts of funny chemical signals from the body that also act as sensory information.

    If you take all of that into account, an incomplete list of human senses might be: Visual edge detection, visual motion, color, binocular discrimination, pure tones, auditory transients, overt smells (many), pheromone "smells" (many undiscovered), sweet, sour, bitter, salty, umami, balance (from semicircular canals), balance (from toe position and pressure), pressure, temperature, hair follicle bending, skin friction, various kinds of pain, proprioception (i.e., the ability to sense body position), a variety of visceral senses (hunger, satiety, gastic distress, bowel sense, circulatory sense, and so on), and I'm not even going to attempt to go through all the hormonal signals, many of which act as both inputs and outputs. But I've managed to list 26 separate "senses" without trying very hard.


  • The neural processing for these inputs is widely varied and hard to deduce, but it's safe to say that all of these input systems have evolved to process signals so as to produce the most diverse set of patterns possible to the cortex.


  • Cortical regions receiving projections from input sources automatically learn to extract information from the input patterns, with no inherited magic required.


  • But projections from one cortical region to another are inherited, and determine the ultimate success of the mind that emerges from a particular brain.


  • I suspect that there is a much wider variety of neural "outputs" then one might suspect, as well, but I have put much thought into them yet.

Note that, if cortex is the same everywhere and that there's a nice, simple, genetic mechanism for producing a fairly varied set of projections, you've got a recipe for very rapid evolution of cognition. You can pretty much grow more and more cortex, subject to the ability of the body to feed and cool it, but that cortex doesn't do much until it's wired to some other chunk of cortex, or to an input or output region, in such a way that it doesn't drive the organism insane. But if the genetic mechanism to produce projections is fairly variable, you can still grow useful, non-insane cortex pretty quickly, at least in evolutionary terms. (See this post for random thoughts on what this might tell us about autism.)

It's possible that the variety of proteins expressed in synapses has much more to do with various forms of signal processing and motor control than it does with cortex, but that's no better than a guess.

Why is this finding important? If you buy this model and then want to produce computing machinery that might do similar things, you'd be tempted to use a fixed, fairly simple model for the behavior of cortical columns, then find nifty ways to wire up oddly processed signals to artifically designed "cortical regions", which in turn project to other regions, to see whether you can get something like intelligent behavior out of the system. If cortical processing actually turns out to be extremely complex and variable, that model starts to fall apart.