Top Banner
CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550
26

CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Dec 23, 2015

Download

Documents

Joleen Phillips
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

CYC: The Common Sense Knowledge Base

By: Jeremy BermanAlok Sahgal

Dr. Reed CSC 550

Page 2: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Intro

• History

• What is Cyc?

• How does it work?

• Applications– OpenCyc– CycSecure

Page 3: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

History of CYC

• Douglas B. Lenat and MCC (1984)

• GOFAI at a massive scale

• Construct “Common Sense” knowledge– 3 million rules of thumb (2002)– 300,000 terms

Page 4: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

The First 10 Years

• Initial Goals (1984)– representation language– Interface for browsing and editing– "cadre of lightly trained knowledge enterers"

could easily use – hooks to other AI programs.

• Midpoint Report (1990)– CycL developed

Page 5: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Current State

• Now, anyone can be knowledge-enterer

• Web allows acceleration of knowledge entry

• Lenat claims human-level capacity in 5 years

Page 6: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

How CYC Works

Knowledge Server• Knowledge Base• Inference Engine• CycL• Cyc-NL• Semantic

Integration Bus

Page 7: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Knowledge Base

• Contains facts about everyday life (common sense)

• Terms written in CycL

• Assertions about terms– Entered by humans– Created by Cyc

• Microtheories

Page 8: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Inference Engine

• General logical deduction

• Best-first search

• Due to size, ordinary expert system methods of accessing data do not work.

• Cyc team developed new methods of retrieving data (secret)

Page 9: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

CycL

• CycL– Cyc representation language – variation of first-order predicate calculus

Page 10: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

CycL

• Constant - #$OrganicStuff 

• NAT - (#$FruitFn #$AppleTree)

• Variable - – (#$colorOfObject #$Grass ?someColor)

• Expression – – (#$colorOfObject #$Grass #$Green)

Page 11: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

CycL• Assertions “Animals sleep at home.” (ForAll ?x (ForAll ?S (ForAll ?PLACE(implies (and(isa ?x Animal)(isa ?S SleepingEvent)(performer ?S ?x)(location ?S ?PLACE))(home ?x ?PLACE)))))

if x is an animal and the performer of a sleeping eventthen the place where that event takes place is the home of x.

Page 12: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Cyc-NL• Used to translate between English and CycL

The man saw the light with the telescope.

{:SENTENCE {:NP {:DETP {#$Determiner [the]}} {:N-BAR {#$SimpleNoun [man]}}} {:VP {#$Verb [saw]} {:NP {:DETP {#$Determiner [the]}} {:N-BAR {#$SimpleNoun [light]}} {:PP {#$Preposition [with]} {:NP {:DETP {#$Determiner [the]}} {:N-BAR {#$SimpleNoun [telescope]}}}}}}}}

Page 13: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Cyc-NL

Fred saw the plane flying over Zurich.

Fred saw the mountains flying over Zurich.

• Cyc “knows” that:– planes fly.– people fly in planes.– mountains do not fly.– Zurich is a city.

Page 14: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Semantic Integration Bus

• Makes data from a variety of sources usable to the Inference Engine.

Page 15: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Applications

OpenCyc

• Uses

• Goals of Project

• Demonstration

CycSecure

Page 16: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

OpenCyc Uses

Allows user to create applications that access and use data in CycKB

Starting point for:– Speech understanding

– Database integration

– Email prioritizing

– Game engines

– Letting people develop their own “worlds”

Page 17: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

OpenCyc

Goals of Project

• Growth of Knowledge Base

• Establish CycKB as the standard for:– knowledge representation/management– database integration – intelligent software applications

Page 18: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

OpenCyc

Goals cont.

• Raise awareness for symbolic knowledge

• Help to combine symbolic systems with emergent ones (neural nets, genetic algorithms, etc)

Page 19: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

OpenCyc

Demonstration

http://www.opencyc.org/images/opencyc-kb-browser.gif

Page 20: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

CycSecure

• Automated network auditing service that simulates network attacks

• First real commercial application

• Complements other network security apps

Page 21: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Anatomy Of CycSecure

• Network Configuration Simulator – Inputs the data for security assessment

• CycSecure Knowledge Base – Contains knowledge of vulnerabilities and

patterns of attacks

• AttackPlan Analyzer – Simulates a planned attack

Page 22: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

How CycSecure Works

• Uses virtual network from NCS

• Finds vulnerabilities of network security

• DoD’s Information Assurance Vulnerability Assessment

Page 23: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

More about CycSecure

• Evolved Scanner

• Costs

• Still in beta-testing

Page 24: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Future of Cyc

• Online brokering of goods and services

• "Smart" interfaces

• Advancement gaming AI

• Improved speech recognition

• Sophisticated user modeling

• Local consistency

Page 25: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

Conclusion

• KB is already enormous and broad

• Large corporate support

• Largest GOFAI attempt

Page 26: CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.

References

• www.cyc.com

• www.opencyc.org

• Anthes, Gary H. Computerizing Common Sense, Computerworld

April 8, 2002.