Thought this was an interesting tidbit:
Scientists have proven that despite the dramatic metamorphosis that caterpillars go through, they retain memories from their caterpillar lives.
Yup. Even though as butterflies and moths, their body transforms, the brain and nervous system are basically liquefied and rebuilt, their sensory capacity alters, and their lifestyle and diet changes utterly, they still remember their previous lives.
In the experiment, scientists taught a group of caterpillars to associate a particular smell with a mild shock. The caterpillars learned in time to avoid that smell.
Just goes to show: never underestimate your critters.
http://www.sciencedaily.com/releases/2008/03/080304200858.htm