Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Clojure and AI

Clojure and AI

Slides to the "Clojure and AI" talk on :clojureD 2018.

Michael Pershyn

February 24, 2018
Tweet

More Decks by Michael Pershyn

Other Decks in Programming

Transcript

  1. 2 • What is AI • AI Today • Brief

    history of AI and LISP • Paradigms of AI • Deep Learning Frameworks Landscape • Clojure and Symbolic AI • Clojure and Connectionist AI • Future Agenda
  2. 4 The defnition of AI is changing. Whenever we solve

    the problem, we don't call it AI anymore.
  3. 6

  4. 7 „A computer would deserve to be called intelligent if

    it could deceive a human into believing that it was human.“
  5. 9

  6. 10 AI is ... • Intelligence, demonstrated by machines –

    Ability to learn, reason, solve problems, percieve and understand language • Area of computer science that emphasizes the creation of intelligent machines that work and react like humans *AI is frequently used to describe things that haven‘t been done yet
  7. 13 11 May 1997 First computer program to defeat a

    world champion in a match under tournament regulations (3½–2½) https://en.wikipedia.org/wiki/Deep_Blue_versus_Garry_Kasparov
  8. 16 2014 Turing Test Passed (33% counts?) 'Eugene Goostman' simulates

    a 13 year old boy and 10 out of 30 judges were convinced he is a human https://en.wikipedia.org/wiki/Eugene_Goostman
  9. 18 9–15 March 2016 AlphaGo won the match in a

    game with Lee Sedol, 18-time world champion. (4-1) https://en.wikipedia.org/wiki/AlphaGo_versus_Lee_Sedol
  10. 24 Other advancements • 2014 Facebook research published an article

    where it claims that its DeepFace face recognition system identifes faces with accuracy of 97.35% • Libratus (by Carnegie Mellon) won against four top players at no-limit Texas hold 'em (2017) • OpenAI defeats top players in Dota 2 tournament (2017) • Alibaba language processing AI outscores top humans at a Stanford University reading and comprehension test, scoring 82.44 against 82.304 on a set of 100,000 questions (2018)
  11. 25

  12. 27

  13. 29 Notable LISP Features • Conditionals • Function type &

    recursion • Symbols • Garbage collection • Syntax uniformity • Extensible • Rapid prototyping
  14. 31 Paradigms of AI Paradigm Inspired by Symbolic Logic and

    Linguistic Connectionist Neuroscience Evolutionist Evolutionary Biology Statistical Probability, Statistics and Combinatorics
  15. 33 Typical AI Areas for Computing with Symbols • computer

    algebra & theorem proving • planning systems • diagnosis • knowledge representation and reasoning • logic • languages • machine translation • expert systems • ...
  16. 35 Notable AI Systems Developed in LISP • Macsyma -

    frst large computer algebra system (still in use). • ACL2 - theorem prover, e.g. used by AMD (last release in 2017) • DART - logistics planner. Used during the frst Gulf war by the US military. – This Lisp application alone is said to have paid back for all US investments in AI research at that time. • SPIKE - the planning and scheduling application for the Hubble Space Telescope. Also used by several other large telescopes. • Dendral, CADUCEUS, MYCIN and others...
  17. 36 Connectionist Approach • Inspired by neuroscience • Non-symbolic knowledge

    representation • Learning capability • Parallel computation
  18. 37

  19. 40

  20. 41 Deep learning frameworks (2018-02) github.com stats Forks Open issues

    Contributors last commit tensorfow/tensorfow 58367 1195 1338 today BVLC/cafe 13968 590 260 7 days ago keras-team/keras 9365 1032 624 2 days ago apache/incubator-mxnet 4817 761 485 1 day ago deeplearning4j/deeplearning4j 4021 604 139 today Microsoft/CNTK 3668 399 169 3 days ago Theano/Theano 2394 527 328 3 days ago torch/torch7 2244 210 133 5 month ago tfearn/tfearn 1792 470 110 8 days ago chainer/chainer 923 124 155 today karpathy/convnetjs 1749 37 15 14 month ago Lasagne/Lasagne 914 112 62 2 month ago NervanaSystems/neon 767 60 78 10 days ago mila-udem/blocks 325 178 48 7 month ago autumnai/leaf 262 27 14 1 month ago thinktopic/cortex (clojure) 85 28 26 1 month ago hswick/jutsu.ai (clojure) 4 3 3 11 days ago bpiel/guildsman (clojure) 3 0 1 3 days ago
  21. 44 Expert Systems in Clojure – Clara Rules • Friendly

    and readable DSL to specify rules. • Designed to be interoperable with Java • https://github.com/cerner/clara-rules
  22. 45 core.logic • Takes features from Prolog to do Logic

    Programming in Clojure • Logic Programming Paradigm – declaring logic variables – defning constraints on them – having a logic engine fgure out what values of the variables satisfy the constraints
  23. 46 Symbolic AI in Clojure • Symbolic pattern matcher –

    functions and macros to iterate patterns over collections of data – defne methods which specialise on patterns – and various other features – https://github.com/cognesence/matcher • Breadth-frst search mechanism for applying simple STRIPS-style operators – https://github.com/cognesence/ops-search • Convert free text to the set of rules – cognesence importing a library called lkit, WIP
  24. 49 3 approaches to DL in Clojure • Call the

    deeplearning4j • Call the TensorFlow • Use native clojure (cortex)
  25. 50 hswick/jutsu.ai • Eclipse Deeplearning4j – for Java and Scala.

    – Integrated with Hadoop and Spark • Wrapper – Declarative, manageable – Good alternative to java interop • https://github.com/hswick/jutsu.ai • https://deeplearning4j.org/clojure
  26. 52 bpiel/guildsman • Implementing the API – Clojure, C++ •

    WIP, contributors welcome • https://github.com/bpiel/guildsman
  27. 54 thinktopic/cortex • Specialized graph framework for machine learning in

    Clojure • Tries to provide the least amount of cognitive overhead for devs • Components – cortex – compute, gpu-compute – cafe, keras • https://github.com/thinktopic/cortex
  28. 60 OgmaNeo (Feynman Machine) • Hierarchical sequence prediction – video

    prediction – anomaly detection – sequence and grammar prediction – … stay tuned • Article – Feynman Machine: The Universal Dynamical Systems Computer – Eric Laukien, Richard Crowder, Fergal Byrne – https://arxiv.org/abs/1609.03971 https://aaai.org/ocs/index.php/SSS/SSS17/paper/viewFile/15362/14605
  29. 64

  30. 65

  31. 66 Hype inevitably leads to a sense of disappointment when

    big breakthroughs don’t happen, causing overvalued startups to fail and investment to dry up.