the evolution of identity and modularity in nature...

32
The Evolution of Identity and Modularity in Nature and Computation Lee Spector Cognitive Science Hampshire College Tuesday, April 16, 13

Upload: others

Post on 18-Mar-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

The Evolution ofIdentity and Modularity

in Nature and ComputationLee Spector

Cognitive ScienceHampshire College

Tuesday, April 16, 13

Page 2: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Overview

• Modularity

• Identity

• Evolving computer programs

• Evolving modular programs

• Implications

Tuesday, April 16, 13

Page 3: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Modularity is Everywhere

Tuesday, April 16, 13

Page 4: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

http://equitygreen.typepad.com/blog/2007/08/hybrid-seattle-.html#more

Tuesday, April 16, 13

Page 5: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

http://www.flickrfotos.com/modular-44-plastic-coffee-table-design/

Tuesday, April 16, 13

Page 6: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

http://talkinterior.com/interior-design-vita-minimalist-modular-home/

Tuesday, April 16, 13

Page 9: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

http://www.synthtopia.com/content/2007/04/04/moog-55-modular-synthesizer/

Tuesday, April 16, 13

Page 10: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

http://mappery.com/map-of/Tokyo-Metro-Map

Tuesday, April 16, 13

Page 11: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Modularity in Software

• Pervasive and widely acknowledged to be essential

• Modules may be functions, procedures, methods, classes, data structures, interfaces, etc.

• Modularity measures include coupling, cohesion, encapsulation, composability, etc.

Tuesday, April 16, 13

Page 12: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

http://en.wikipedia.org/wiki/File:Sa-fern.jpg

Tuesday, April 16, 13

Page 13: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

http://a-z-animals.com/animals/centipede/

Tuesday, April 16, 13

Page 14: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Cognitive Science• Long history of modularity theories: Gall, ...

Simon, ... Fodor, ... Cermak and Craik, ... Gardner, ... Jackendoff, ... Grafman, ...

• Simon’s “nearly decomposable systems”

• Fodor’s features: domain specific, mandatory, fast, encapsulated, fixed architecture, characteristic patterns of ontogeny and failure

• Central vs. input systems

• Modest vs. massive

Tuesday, April 16, 13

Page 15: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Tuesday, April 16, 13

Page 16: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Questions

• Why are modules everywhere?

• What are they good for?

• Where do they come from?

• What conditions permit or facilitate their emergence?

Tuesday, April 16, 13

Page 17: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Identity

• How are modules recognized by other components of a system?

• Where do module identities come from?

• How can module identity co-evolve with modular architecture?

Tuesday, April 16, 13

Page 18: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Holland’s Tags

• Initially arbitrary identifiers that come to have meaning over time

• Appear to be present in some form in many different kinds of complex adaptive systems

• Examples range from immune systems to armies on a battlefield

• A general tool for the support of emergent complexity

Tuesday, April 16, 13

Page 19: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Evolution of Altruism

• Puzzles/challenges/results since Darwin

• Explanations of altruism toward:

• Kin

• Reciprocating partners

• Agents with good reputations

Tuesday, April 16, 13

Page 20: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Tag-Based Altruism

• Individuals have tags and tag-difference tolerances

• Donate when ∆tags ≤ tolerance

• Riolo et al. (Nature, 2001) showed that tag-based altruism can evolve; Roberts & Sherratt (Nature, 2002) claimed it would not evolve under more realistic conditions

Tuesday, April 16, 13

Page 21: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Spector, L., and Klein, J. Genetic stability and territorial structure facilitate the evolution of tag-mediated altruism. In Artificial Life.

Tuesday, April 16, 13

Page 22: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Evolutionary Computation

Tuesday, April 16, 13

Page 23: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Genetic Programming

• Evolutionary computing to produce executable computer programs.

• Programs are tested by executing them.

Tuesday, April 16, 13

Page 24: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Evolving Modular ProgramsWith “automatically defined functions”

• All programs in the population have the same, pre-specified architecture

• Genetic operators respect that architecture

• Complicated, brittle, limited...

• Architecture-altering operations: more so

Tuesday, April 16, 13

Page 25: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Evolving Modular ProgramsWith “execution stack manipulation”

• Code queued for execution is stored on an “execution stack”

• Allow programs to duplicate and manipulate code that on the stack

• Simple types and uses of modules can be evolved easily

• Does not scale well to large/complex systems

Tuesday, April 16, 13

Page 26: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

• Include instructions that tag code (modules)

• Include instructions that recall and execute modules by closest matching tag

• If a single module has been tagged then all tag references will recall modules

• The number of tagged modules can grow incrementally over evolutionary time

Evolving Modular ProgramsWith tags

Tuesday, April 16, 13

Page 27: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Dirt-Sensing, Obstacle-Avoiding Robot Problem

>

Tuesday, April 16, 13

Page 28: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

DSOAR Instructions

Tuesday, April 16, 13

Page 29: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

DSOAR Effort

8x4 8x6 8x8 8x10 8x12Problem Size

0

2x106

4x106

6x106

8x106

1x107

1.2x107

1.4x107

1.6x107

Com

puta

tiona

l Effo

rt

TagExec

Tuesday, April 16, 13

Page 30: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Evolved DSOAR Architecture (in one environment)

Module0

Module1

3 Module2

1

Module41

Module32 5

Module7

2 2 3

1

Module8

3

2 4

3 8

Module5

3 9

Module6

1 5

Tuesday, April 16, 13

Page 31: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Evolved DSOAR Architecture (in another environment)

Module0

Module2

1

Module9

1

Module10

1

Module11

1

Module121

Module32 8

Module13

1 8

Module14

2 6

Module4

2 7

2 6

Module5

3 8

1 1

1 2

Tuesday, April 16, 13

Page 32: The Evolution of Identity and Modularity in Nature …faculty.hampshire.edu/.../identity-modularity-for-class.pdfDSOAR Effort 8x4 8x6 8x8 8x10 8x12 Problem Size 0 2x106 4x106 6x106

Conclusions

• Tags provide an effective mechanism for the evolution of modular programs that solve difficult problems

• Tags may provide or explain mechanisms that support the evolution of modularity in a range of other systems, both natural and artificial

Tuesday, April 16, 13