evolving neural network architectures in a computational ecology

54
Evolving Neural Network Architectures in a Computational Ecology Larry Yaeger Professor of Informatics, Indiana University Distinguished Scientist, Apple Computer Networks and Complex Systems Indiana University 18 October 2004

Upload: eytan

Post on 12-Jan-2016

44 views

Category:

Documents


0 download

DESCRIPTION

Evolving Neural Network Architectures in a Computational Ecology. Larry Yaeger Professor of Informatics, Indiana University Distinguished Scientist, Apple Computer Networks and Complex Systems Indiana University 18 October 2004. Wiring Diagram + Learning = Brain Maps. Motor Cortex Map. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Evolving Neural Network Architectures in a Computational Ecology

Evolving Neural Network Architectures in a

Computational Ecology

Larry Yaeger

Professor of Informatics, Indiana UniversityDistinguished Scientist, Apple Computer

Networks and Complex SystemsIndiana University18 October 2004

Page 2: Evolving Neural Network Architectures in a Computational Ecology

Wiring Diagram + Learning= Brain Maps

Page 3: Evolving Neural Network Architectures in a Computational Ecology

Motor Cortex Map

Page 4: Evolving Neural Network Architectures in a Computational Ecology

Motor Cortex Homunculus

Page 5: Evolving Neural Network Architectures in a Computational Ecology

Plasticity in Function

Mriganka Sur, et alScience 1988, Nature 2000

Orientation maps:

Page 6: Evolving Neural Network Architectures in a Computational Ecology

Plasticity in Wiring

Mriganka Sur, et al Nature 2000

Patterns of long-range horizontal connections in V1, normal A1, and rewired A1:

Page 7: Evolving Neural Network Architectures in a Computational Ecology

Wiring Diagram Matters• Relative consistency of brain maps across large

populations• Lesion/aphasia studies demonstrate very specific,

limited effects• Moderate stroke damage to occipital lobe can

induce Charcot-Wilbrand syndrome (loss of dreams)

• Scarcity of tissue in localized portion of visual system (parietooccipital/intraparietal sulcus) is method of action for gene disorder, Williams Syndrome (lack of depth perception, inability to assemble parts into wholes)

Page 8: Evolving Neural Network Architectures in a Computational Ecology

Real & Artificial Brain Maps

Monkey Cortex, Blasdel and Salama Simulated Cortex, Ralph Linsker

Distribution of orientation-selective cells in visual cortex

Page 9: Evolving Neural Network Architectures in a Computational Ecology

Neuronal Cooperation

John Pearson, Gerald Edelman

Page 10: Evolving Neural Network Architectures in a Computational Ecology

Neuronal Competition

John Pearson, Gerald Edelman

Page 11: Evolving Neural Network Architectures in a Computational Ecology

The Story So Far…

• Brain maps are good• Brain maps are derived from

• General purpose learning mechanism• Suitable wiring diagram

• Artificial neural networks capture key features of biological neural networks using• Hebbian learning• Suitable wiring diagram

Page 12: Evolving Neural Network Architectures in a Computational Ecology

How to Proceed?

• Design a suitable neural architecture• Simple architectures are easy, but are limited to

simple (but robust) behaviors- W. Grey Walter’s Turtles- First few Valentino Braitenberg Vehicles (#1-3, of 14)

• Complex architectures are much more difficult!- We know a lot about neural anatomy- There’s a lot more we don’t know- It is being tried – Steve Grand’s Lucy

Page 13: Evolving Neural Network Architectures in a Computational Ecology

How to Proceed?

• Evolve a suitable neural architecture• It ought to work

- Valentino Braitenberg’s Vehicles (#4 and higher)

• We know it works- Genetic Algorithms (computational realm)- Natural Selection (biological realm)

Page 14: Evolving Neural Network Architectures in a Computational Ecology

Evolution is a Tautology

• That which survives, persists.• That which reproduces, increases its numbers.• Things change.

• Any little niche…

Page 15: Evolving Neural Network Architectures in a Computational Ecology

Neural Architectures for Controlling Behavior using Vision

Move

Turn

Eat

Mate

Fight

etc.

Page 16: Evolving Neural Network Architectures in a Computational Ecology
Page 17: Evolving Neural Network Architectures in a Computational Ecology

PolyworldPolyworld

Page 18: Evolving Neural Network Architectures in a Computational Ecology

What Polyworld Is• An electronic primordial soup experiment

• Why do we get science, instead of ratatouille?- Right ingredients in the right pot under the right

conditions

• An attempt to approach artificial intelligence the way natural intelligence emerged:• Through the evolution of nervous systems in an

ecology• An opportunity to work our way up through the

intelligence spectrum• Tool for evolutionary biology, behavioral ecology,

cognitive science

Page 19: Evolving Neural Network Architectures in a Computational Ecology

What Polyworld Is Not• Fully open ended

• Even natural evolution is limited by physics (and previous successes)

• Accurate model of microbiology• Accurate model of any particular ecology

• Though it is possible to model specific ecologies• Accurate model of any particular organism’s brain

• Though many neural models are possible• A strong model of ontogeny

Page 20: Evolving Neural Network Architectures in a Computational Ecology

What is Mind?• Hydraulics (Descartes)• Marionettes (ancient Greeks)• Pulleys and gears (Industrial Revolution)• Telephone switchboard (1930’s)• Boolean logic (1940’s)• Digital computer (1960’s)• Hologram (1970’s)• Neural Networks (1980’s - ?)

• Studying what mind is (the brain)instead of what mind is like

Page 21: Evolving Neural Network Architectures in a Computational Ecology

Polyworld Overview• Computational ecology• Organisms have genetic structure and evolve over

time• Organisms have simulated physiologies and

metabolisms• Organisms have neural network “brains”

• Arbitrary, evolved neural architectures• Hebbian learning at synapses

• Organisms perceive their environment through vision• Organisms’ primitive behaviors are neurally controlled• Fitness is determined by Natural Selection alone

• Bootstrap “online GA” if required

Page 22: Evolving Neural Network Architectures in a Computational Ecology

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 23: Evolving Neural Network Architectures in a Computational Ecology

Genetics: Physiology Genes• Size• Strength• Maximum speed

• Mutation rate• Number of crossover points• Lifespan

• Fraction of energy to offspring

• ID (mapped to body’s green color component)

Page 24: Evolving Neural Network Architectures in a Computational Ecology

Genetics: Neurophysiology Genes• # of neurons for red component of vision• # of neurons for green component of vision• # of neurons for blue component of vision

• # of internal neuronal groups

• # of excitatory neurons per group• # of inhibitory neurons per group• Initial bias of neurons per group• Bias learning rate per group

• Connection density per pair of groups & types• Topological distortion per pair of groups & types• Learning rate per pair of groups & types

Page 25: Evolving Neural Network Architectures in a Computational Ecology

Physiology and Metabolism

• Energy is expended by behavior & neural activity• Size and strength affect behavioral energy costs

(and energy costs to opponent when attacking)• Neural complexity affects mental energy costs• Size affects maximum energy capacity• Energy is replenished by eating food

(or other organisms)• Health energy is distinct from Food-Value energy• Body is scaled by size and maximum speed

Page 26: Evolving Neural Network Architectures in a Computational Ecology

Perception: Neural System Inputs

• Vision• Internal energy store• Random noise

Page 27: Evolving Neural Network Architectures in a Computational Ecology

Behavior: Neural System Outputs• Primitive behaviors controlled by single neuron

• “Volition” is level of activation of relevant neuron

• Move• Turn• Eat• Mate (mapped to body’s blue color component)• Fight (mapped to body’s red color component)• Light• Focus

Page 28: Evolving Neural Network Architectures in a Computational Ecology

Behavior Sample: Eating

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 29: Evolving Neural Network Architectures in a Computational Ecology

Behavior Sample: Killing & Eating

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 30: Evolving Neural Network Architectures in a Computational Ecology

Behavior Sample: Mating

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 31: Evolving Neural Network Architectures in a Computational Ecology

Behavior Sample: Lighting

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 32: Evolving Neural Network Architectures in a Computational Ecology

Neural System: Internal Units

• No prescribed function• Neurons• Synaptic connections

Page 33: Evolving Neural Network Architectures in a Computational Ecology

Evolving Neural Architectures

Page 34: Evolving Neural Network Architectures in a Computational Ecology

Neural System:Learning and Dynamics

• Simple summing and squashing neuron model

• xi = ∑ ajt sij

t

j

• ait+1 = 1 / (1 + e-xi)

• Hebbian learning

• sijt+1 = sij

t + ckl (ai

t+1 - 0.5) (ajt - 0.5)

ηη

sijt = synaptic efficacy from neuron j to neuron i at time t

ait = neuronal activation of neuron i at time t

ckl = learning rate for connection of type c (e-e, e-i, i-e,

or i-i) from cluster l to cluster k

ηη

Page 35: Evolving Neural Network Architectures in a Computational Ecology

QuickTime™ and aVideo decompressor

are needed to see this picture.

Emergent Species: “Joggers”

Page 36: Evolving Neural Network Architectures in a Computational Ecology

Emergent Species:“Indolent Cannibals”

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 37: Evolving Neural Network Architectures in a Computational Ecology

Emergent Species: “Edge-runners”

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 38: Evolving Neural Network Architectures in a Computational Ecology

Emergent Species: “Dervishes”

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 39: Evolving Neural Network Architectures in a Computational Ecology

Emergent Behavior:Visual Response

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 40: Evolving Neural Network Architectures in a Computational Ecology

Emergent Behavior:Fleeing Attack

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 41: Evolving Neural Network Architectures in a Computational Ecology

Emergent Behaviors:Foraging, Grazing, Swarming

QuickTime™ and aVideo decompressor

are needed to see this picture.

Page 42: Evolving Neural Network Architectures in a Computational Ecology

A Few Observations

• Evolution of higher-order, ethological-level behaviors observed

• Selection for use of vision observed• This approach to evolution of neural architectures

generates a broad range of network designs

Page 43: Evolving Neural Network Architectures in a Computational Ecology

Is It Alive? Ask Farmer & Belin…

• “Life is a pattern in spacetime, rather than a specific material object.”

• “Self-reproduction.”• “Information storage of a self-representation.”• “A metabolism.”• “Functional interactions with the environment.”• “Interdependence of parts.”• “Stability under perturbations.”• “The ability to evolve.”

Page 44: Evolving Neural Network Architectures in a Computational Ecology

Information Is What Matters• "Life is a pattern in spacetime, rather than a

specific material object.” - Farmer & Belin (ALife II, 1990)

• Schrödinger speaks of life being characterized by and feeding on “negative entropy” (What Is Life? 1944)

• Von Neumann describes brain activity in terms of information flow (The Computer and the Brain, Silliman Lectures, 1958)

• Informational functionalism• It’s the process, not the substrate• What can information theory tell us about living,

intelligent processes…

Page 45: Evolving Neural Network Architectures in a Computational Ecology

Mutual Information

Information and Complexity• Chris Langton’s “lambda” parameter (ALife II)

• Complexity = length of transients• = # rules leading to nonquiescent state / #

rules

I

II

IV

III

Wolfram's CA classes:

I = Fixed II = PeriodicIII = Chaotic IV = Complex

0.0 1.0Low

High

Complexity

c

LambdaNormalized Entropy

• Crutchfield: Similar results measuring complexity of finite state machines needed to recognize binary strings

Page 46: Evolving Neural Network Architectures in a Computational Ecology

Quantifying Life and Intelligence• Measure state and compute complexity• What complexity?

• Mutual Information• Adami’s “physical” complexity• Gell-Mann & Lloyd’s “effective” complexity

• What state?• Chemical composition• Electrical charge• Aspects of behavior or structure• Neuronal states

• Other issues• Scale, normalization, sparse data

Page 47: Evolving Neural Network Architectures in a Computational Ecology

Future Directions• Compute and record measure(s) of complexity• Use best complexity measure(s) as fitness function

• More environmental interaction• Pick up and put down pieces of food• Pick up and put down pieces of barrier

• More complex environment• More control over food growth patterns

• Additional senses• More complex, temporal (evolved?) neural models

Page 48: Evolving Neural Network Architectures in a Computational Ecology

Future Directions• Behavioral Ecology benchmarks

• Optimal foraging• Patch depletion (Marginal Value Theorem)• Patch selection (profitability vs. predation risk)• Vancouver whale populations

• Evolutionary Biology problems• Speciation = ƒ (population isolation)• Altruism = ƒ (genetic similarity)

• Classical conditioning, intelligence assessment experiments

Page 49: Evolving Neural Network Architectures in a Computational Ecology

Future Directions

• Source code is available• Original SGI version at ftp.apple.com in

/research/neural/polyworld• New Mac/Windows/X11 version coming soon,

based on Qt <http://www.trolltech.com>

• Paper and other materials at <http://pobox.com/~larryy>

Page 50: Evolving Neural Network Architectures in a Computational Ecology

Evolving Neural Network Architectures in a

Computational Ecology

Larry Yaeger

mailto: [email protected]://pobox.com/~larryy

Networks and Complex SystemsIndiana University18 October 2004

Page 51: Evolving Neural Network Architectures in a Computational Ecology

But It Can't Be Done!

• "If an elderly but distinguished scientist says that something is possible he is almost certainly right, but if he says that it is impossible he is very probably wrong." - Arthur C. Clarke

• Humans are a perfect example of mind embedded in matter; there is no point arguing about whether it is possible to embed mind in matter.

• The Earth is flat and at the center of the universe...

Page 52: Evolving Neural Network Architectures in a Computational Ecology

But Gödel Said So...

• No he didn't.• Every consistent formalisation of number theory is

incomplete.• It is a huge leap to "AI is impossible".• Indeed, the fact that human brains are capable of

both expressing arithmetical relationships and contemplating "I am lying" bodes well for machine minds.

• The (formal) consistency of the human mind has most definitely not been proven.

Page 53: Evolving Neural Network Architectures in a Computational Ecology

Quantum Effects Required for Unpredictability

• With just three variables, Lorenz demonstrated chaotic, unpredictable systems.

• Even the 102 neurons and 103 synapses of Polyworld's organisms should provide adequate complexity.

Page 54: Evolving Neural Network Architectures in a Computational Ecology

Man Cannot Design Human Minds

• Even Gödel acknowledged that human-level minds might be evolved in machines.