69
Artificial general intelligence (AGI) “building thinking machines” © 2007 General Intelligence Research Group

Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Embed Size (px)

Citation preview

Page 1: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Artificial general intelligence(AGI)

“building thinking machines”

© 2007 General Intelligence Research Group

Page 2: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

AGI vs “narrow” AI

• examples of narrow AI:– face recognition– spam filtering– data mining– Google

Page 3: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Common objections

• intelligence is not well-defined• it’s too hard• computing power is not there yet• no unifying theory of AI• we don’t understand the brain• etc…

All this is bull shit!

Page 4: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

AI pioneers• Alan Turing (1912-1954)• John von Neumann (1903-1957)

Page 5: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

John McCarthy (1927-) Marvin Minsky (1927-)

Page 6: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Implications of AGI

• complete automation• ethical issues• “Technological Singularity”

Vernor Vinge (1944-)Ray Kurzweil (1948-)

Page 7: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Representative AGI projects

Page 8: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Cyc

• most-funded AI project in history ($10s of millions)• based on predicate logic• complete ontology• millions of facts, concepts

Doug Lenat (1950-)

Page 9: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Soar• Allen Newell (1927-1992) John E Laird

• based on production rules & rete algorithm• learning – “chunking”

Page 10: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Novamente• Ben Goertzel (1966-)• probabilistic logic based on

“uncertain probabilities”• graph-based

knowledge representation• genetic algorithms

for learning• robot living in virtual reality• 2007 book:

Artificial General Intelligence

Page 11: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

NARS• Non-Axiomatic Reasoning System• Pei Wang• can learn from experience• work with insufficient

knowledge and resources• unified cognition:

reasoning, learning,planning, etc…

• 2006 book:Rigid Flexibility

Page 12: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

SNePS

• Semantic Network Processing System• Stuart C Shapiro• extends first-order logic• belief revision /

assumption-basedtruth maintenance

• natural languageunderstanding

Page 13: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

AIXI

• Marcus Hutter• highly abstract• based on Kolmogorov

complexity theory• KC is incomputable• learning may take

forever!

Page 14: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Polyscheme

• Nick Cassimatis• integrates multiple methods

of representation, reasoning,and problem-solving

• procedural substrate• not “one model”

Page 15: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

CAM-brain

• Hugo de Garis (1947-)• neural network• evolvable hardware• cellular automata• currently at

Wuhan University

Page 16: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

SAIL• John Weng neural network-based• navigates and learns from environment

autonomously

Page 17: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Jeff Hawkins (1957-)

• inventor of “Palm Pilot”• founded Redwood

Neuroscience Institute• 2005 book:

On Intelligence• HTM (Hierarchical

Temporal Memory)• neurally-inspired

Page 18: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Brain-inspired

AI

visual cortex

Page 19: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Wiring of 6-layer cortex

Page 20: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Neurally-inspired AI

• feedforward neural network• Jeff Hawkins’ approach• problem:

invariant recognition:translation,rotation,scaling

Page 21: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Statistical learning

• takes place in a vector space• requires many examples• target = manifold• difficult to learn

concepts withvariableseg:On(apple,table),On(car,road), etc…

Page 22: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

“Spatial” pattern recognition

ANN,SVM,PCA,Clustering,etc…

Page 23: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Logic-based vision

• visual features logical representation

Page 24: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Logical-vision exampleQuadrilateral() :-∃e1:edge

e∃ 2:edgee∃ 3:edgee∃ 4:edgev∃ 1:vertexv∃ 2:vertexv∃ 3:vertexv∃ 4:vertex

Connects(e1,v1,v2) ^Connects(e2,v2,v3) ^Connects(e3,v3,v4) ^Connects(e4,v4,v1)

Page 25: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

“Syntactic” pattern recognition

predicate logic formula: featurei relation1(feature1, feature2, …) ^

relation2(feature3, feature4, …) ^…

Spatial interpretation?

Page 26: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Logic-based AI

Avoid reinventing the wheel!

Page 27: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Logic-based AI

• first-order predicate logic (Prolog)• common objections:

“brittle”“rigid”“binary” “not numerical”“just a theorem prover”

• probabilistic / fuzzy logic• non-deductive mechanisms

eg: abduction, induction

Page 28: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Modules

• perception (eg vision)• pattern recognition• inference• natural language• learning• truth maintenance• planning

Page 29: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Architecture

Page 30: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Pattern recognition• “neural characteristics” “soft computing”• Prolog:

chair(X) :- leg1, leg2, leg3, leg4, seat, back, horizontal(seat), vertical(back),...

leg1

chair

leg2 leg3 leg4 … ...

fuzzy values

Page 31: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Pattern recognition– “chairs”

Page 32: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

more chairs

Page 33: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

still more chairs

Page 34: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Pattern recognition

• how humans recognize “concepts”?• [Michalski 1989] “2-tiered approach”

rule-based vs instance-based• Prolog:

chair :- chair1

chair :- chair2

chair :- chair3

...chair :- (rule for general chair)

Page 35: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Probabilistic logic• classical resolution [JA Robinson 1965]• Bayesian networks [eg Judea Pearl]

Page 36: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Resolution algorithm

• try to resolve formulas repeatedly until no more can be resolved

P V Q ~P V R

Q V R

Page 37: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Bayesian network

• propositional

Page 38: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

First-order Bayes net

BeltStatus(belt) RoomTemp(room)

EngineStatus(machine)

Page 39: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Bayesian vs classical logic

• Conditional Probability Table (CPT) classical

Bayesian (A ^ B)A B

C

A B CT T 1.0T F 0.0F T 0.0F F 0.0

A B CT T TT F FF T FF F F

Page 40: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

KBMC• Knowledge-Based Model Construction• [Wellman et al 1992]• generate Bayesian networks “on-the-fly” to

answer specific queries

KB

Page 41: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

KBMC example

Page 42: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

KBMC example

Page 43: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Belief bases vs belief sets

• belief set = Cn( belief base )

set of consequences• belief sets are too large to manipulate• for AGI, must use belief base

Page 44: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Fuzzy logic• “John’s girl friend is probably very pretty”

• fuzziness probability• Lotfi Zadeh (1921-)

1965 fuzzy sets1973 fuzzy logic

Page 45: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Confidence

• Example:A. 10 girls, 5 have long hairB. 1000 girls, 500 have long hair

p = 0.5but A and B are not the sameB has higher confidence

• used in Pei Wang’s NARS logic

Page 46: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Probabilistic-fuzzy inference

( P, C, Z )n ( P, C, Z ) x1 x2 . . .

Ps and Zs can be point-valued or interval-valued

probabilityconfidencefuzziness

Page 47: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Probability intervals

• Example:marry fool [p = 0.8]! marry loser [p = 0.7]

p( fool V loser ) =0.7 + 0.1 * p( marry ) [ 0.7, 0.8 ]

unknown

Page 48: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Conditional probability table (CPT)

• All permutations of fuzzy values

• Or, store in a“distribution-free”format?

a b Cz1 … (P1, C1, Z1)

z2 … (P2, C2, Z2)

z3 … (P3, C3, Z3)

z4 … (P4, C4, Z4)

… … …

Page 49: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

“Rules of thought”

• “If cats have claws,and Juney is a cat,then Juney has claws.”

• P,x,y P(x) ^ isa(y,x) P(y)• modus ponens: • syllogisms

Q Q P P,

Page 50: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

reasoning

deduction retroduction

induction abduction

Page 51: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Abduction

• “finding explanations”• eg glass is wet it was raining• algorithm:

reverse of deduction (eg resolution)• very high complexity

(within the arithmetical complexity class )0 2

Page 52: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Abduction algorithm

Page 53: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Induction vs abduction

• abduction: answer = ground literalseg “grass is wet” “it was raining”

• induction: answer = general formulaeeg daughter(X,Y) :- father(Y,X) ^ female(Y)

Page 54: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Induction• learning general patterns statistically• ILP (Inductive Logic Programming)[Stephen Muggleton]1990s

Page 55: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Induction example

Given data:

male(mary) = falsefemale(mary) = truemother(mary, louise) = truefather(mary, bob) = truedaughter(bob, mary) = true

daughter(X,Y) :- father(Y,X) ^ female(Y)

Page 56: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Natural language

• unifying framework• language = knowledge-based inference• [Jerry R Hobbs] “Abduction as Interpretation”

eg “The Boston office called.”• “apple pie” “door knob” “street hawker”

• all we need is a lot of rules• can inductively learn the rules

Page 57: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Belief maintenance

• Truth Maintenance System (TMS)• belief revision• to attain “consistency”• avoid “cognitive dissonance”

Page 58: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Truth maintenance

justifications

Page 59: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Belief revision

• “Epistemic entrenchment” Belief Base• [Mary-Anne Williams

1995]

entrenchmentranking

Page 60: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

“Click” feeling

Perhaps an effect of successful inference, abduction, or belief revision?

Page 61: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Paraconsistency

• holding 2 contradictory beliefs in the knowledge base at the same time

Page 62: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Associative memory

• knowledge base = database• special indexing to allow associative recall• hard disk = long-term memory• RAM = working memory

Page 63: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Planning

Page 64: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Conclusions

• “neural” is problematic• “blank slate” is problematic• “logic-based” is very promising

Page 65: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Agendafor Logic-based AI

1. design probabilistic-fuzzy logic2. develop algorithms for:– abduction–belief maintenance

3. acquire common sense knowledge

Page 66: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

“Web 2.0”-style collaboration• branching• voting• commercial• problem: too few members

Page 67: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

Thank you

Page 68: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

• [Aliseda 2006] Abductive Reasoning: Logical Investigations into Discovery and Explanation. Synthese Library Series vol 330, Springer

• [Antoniou 1997] Nonmonotonic Reasoning, MIT Press• [Cussens 2001] Integrating probabilistic and logical reasoning. In David

Corfield and Jon Williamson eds Foundations of Bayesianism, volume 24 of Applied Logic Series, pages 241-260. Kluwer, Dordrecht

• [2000 Flach & Kakas eds] Induction and Abduction, Springer Applied Logic Series #18

• [Haddawy 1994] Generating Bayesian networks from probability logic knowledge, in Proceedings of the 10th conference on uncertainty in AI, 1994.

• [Hobbs 200?] Abduction as Interpretation• [Jaeger 1997] Relational Bayesian networks. In Proceedings of the 13th Annual

Conference on Uncertainty in AI (UAI-97), p266-273, San Francisco, CA, 1997, Morgan Kaufman Publishers

• [Kakas, Kowalski, Toni 1992] Abductive Logic Programming, Journal of Logic and Computation 2(6):719-770. http://citeseer.ist.psu.edu/kakas93abductive.html

• [Laskey 2006] MEBN: A logic for open-world probabilistic reasoning. GMU C4I Center Technical Report C4I-06-01. George Mason Univ, USA.

• [Milch & Russell 2007] First-Order Probabilistic Languages: Into the Unknown In ILP: Proceedings of the 16th International Conference on Inductive Logic Programming. Berlin: Springer

Page 69: Artificial general intelligence (AGI) building thinking machines © 2007 General Intelligence Research Group

• [Michalski 1989] Two-tiered concept meaning, inferential matching, and conceptual cohesiveness. In Vosniadou & Ortony eds, Similarity and analogical reasoning, p122-145. Cambridge University Press, New York.

• [Muggleton 1996] Stochastic logic programs. In de Raedt, ed, Advances in Inductive Logic Programming, p254-264, IOS Press 1996.

• [Ngo, Haddawy, & Helwig 1995] A theoretical framework for context-sensitive temporal probability model construction with application to plan projection. In Proceedings of the 11th Annual Conference on Uncertainty in Artificial Intelligence (UAI-95), p419-426, Montreal, Quebec, Canada.

• [Norvig & Russell 2003] Artificial Intelligence: A Modern Approach, Prentice Hall.

• [Poole 1993] Probabilistic horn abduction and Bayesian networks, Artificial Intelligence, 64(1), 81-129, 1993

• [Poole 2003] First-order probabilistic inference, Proc, IJCAI-03, Acapulco, August 2003, p985-991

• [Wellman, Breese, Goldman 1992] From knowledge bases to decision models. Knowledge Engineering Review 7(1): 35-52

• [Williams 1995] Changing nonmonotonic reasoning inference relations, in Proceedings of the second world conference on the fundamentals of AI, 469-482, Ankgor, Paris, 1995