cap6938 neuroevolution and artificial embryogeny leaky integrator neurons and ctrnns

17
CAP6938 Neuroevolution and Artificial Embryogeny Leaky Integrator Neurons and CTRNNs Dr. Kenneth Stanley March 6, 2006

Upload: tyrone-bean

Post on 30-Dec-2015

44 views

Category:

Documents


1 download

DESCRIPTION

CAP6938 Neuroevolution and Artificial Embryogeny Leaky Integrator Neurons and CTRNNs. Dr. Kenneth Stanley March 6, 2006. Artificial Neurons are a Model. Standard activation model But a real neuron doesn’t have an activation level Real neurons fire in spike trains Spikes/second is a rate - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

CAP6938Neuroevolution and Artificial Embryogeny

Leaky Integrator Neurons and CTRNNs

Dr. Kenneth Stanley

March 6, 2006

Page 2: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Artificial Neurons are a Model

• Standard activation model

• But a real neuron doesn’t have an activation level– Real neurons fire in spike trains

– Spikes/second is a rate– Therefore, standard activation can be thought of as outputting a

firing rate at discrete timesteps (i.e. rate encoding)

n

iijij wxH

1

Wolfgang Maass, http://www.tu-graz.ac.at/igi/maass

Page 3: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

What is Lost in Rate Encoding?

• Timing information

• Synchronization

• Activity between discrete timesteps

<>                                                                                                                                        

30 Neurons Firing in a monkey’s striate cortexFrom Krüger and Aiple [Krüger and Aiple, 1988]. Reprinted from www.igi.tugraz.at/ maass/123/node2.html

Page 4: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Spikes Can Be Encoded Explicitly

• Leaky integrate and fire neurons• Encode each individual spike• Time is represented exactly• Each spike has an associated time• The timing of recent incoming spikes determines

whether a neuron will fire• Computationally expensive• Can we do almost as well without encoding

every single spike?

Page 5: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Yes: Leaky Integrator Neurons (CTRNNS; Continuous Time Recurrent Neural Networks)

• Idea: Calculate activation at discrete steps but describe rate of change on a continuous scale

• Instead of activating only based on input, include a temporal component of activation that controls the rate at which activation goes up or down

• Then the neuron can react to changes in a temporal manner, like spikes

Page 6: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Activation Rate Builds and Decays

• Incoming activation causes the output level to climb over time

• We can sample the rate at any discrete granularity desired

• A view is created of temporal dynamics without full spike-event simulation

ActivationLevel(i.e. spike rate)

time

Input to neuron

Output over time

Page 7: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

What is Leaking In a Leaky Integrator?

• The neuron loses potential at a defined rate• Each neuron leaks at its own constant rate• Each neuron integrates at the same constant

rate as well

ActivationLevel(i.e. spike rate)

time

Leaking activation level (membrane potential)

Page 8: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Leaky Integrator Equations

• Expressing rate of change of activation level:

• Apply Euler Integration to derive discrete-time equivalent

• Expressing current activation in terms of activation on previous discrete timestep:

Leak

Real timeBetweensteps

Equations from: Blynel, J., and Floreano, D. (2002). Levels of dynamics neural controllers. In Proceedings of the Seventh International Behavior on From Animals to Animats, 272–281.

Page 9: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

What Can a CTRNN Do?

• With the right time constants for each neuron, complex temporal patterns can be generated

• That is, the time constants are a new parameter (inside nodes) that can evolve

• More powerful than a regular RNN

• Capable of generating complex tenporal patterns with no input and no clock

Page 10: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Pattern Generation for What?

• Walking gaits with no input!

Evolution of central pattern generators for bipedal walking in a real-time physics environment

T Reil, P Husbands - Evolutionary Computation, IEEE Transactions on, 2002

Page 11: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Reil and Husbands Went on to Found the Company NaturalMotion

Page 13: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Maybe Good for Other Things with Temporal Patterning

• Music?• Picture Drawing? (certain types of patterns)• Tasks that we typically do not conceive in

terms of patterns?• Learning tasks (better than a simple RNN?;

Blynel and Floreano 2002 paper)• Largely unexplored• How far away from the benefits of a true

spiking model?

Page 14: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Leaky NEAT

• There is a rough, largely untested leakyNEAT at the NEAT Users Group files section:– http://groups.yahoo.com/group/neat/files/ – Introduces a new activation function and new

time constant parameter in the nodes

• The topology of most CTRNNs in the past was determined completely by the researcher

Page 15: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Homework due 3/8/06 (see next slide)

Next Topic: Non-neural NEAT, Closing Remarks on Survey Portion of

Class • Complexification and protection of innovation in non-neural

structures• Example: Cellular Automata neighborhood functions• What have we learned, what is its significance, and where does the

field stand?

Read for 3/8/06: Mitchell Textbook pp. 44-55 (Evolving Cellular Automata) think about: How would NEAT apply to this task?

Page 16: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Homework Due 3/8/06Genetic operators all working: •Mating two genomes: mate_multipoint, mate_multipoint_avg, others

•Compatibility measuring: return distance of two genomes from each other based on coefficients in compatibility equation and historical markings

•Structural mutations: mutate_add_link, mutate_add_node, others

•Weight/parameter mutations: mutate_link_weights, mutating other parameters

•Special mutations: mutate_link_enable_toggle (toggle enable flag), etc.

•Special restrictions: control probability of certain types of mutations such as adding a recurrent connection vs. a feedforward connection

Turn in summary, code, and examples demonstrating that all functions work. Must include checks that phenotypes from genotypes that are new or altered are created properly and work.

Page 17: CAP6938 Neuroevolution and  Artificial Embryogeny Leaky Integrator Neurons and CTRNNs

Project Milestones (25% of grade)

• 2/6: Initial proposal and project description• 2/15: Domain and phenotype code and examples• 2/27: Genes and Genotype to Phenotype mapping • 3/8: Genetic operators all working• 3/27: Population level and main loop working• 4/10: Final project and presentation due (75% of grade)