Machine Learning: Connectionist

Slides:



Advertisements
Similar presentations
Artificial Intelligence 12. Two Layer ANNs
Advertisements

1 Machine Learning: Connectionist Introduction 11.1Foundations of Connectionist Networks 11.2Perceptron Learning 11.3Backpropagation Learning 11.4.
Learning in Neural and Belief Networks - Feed Forward Neural Network 2001 년 3 월 28 일 안순길.
Introduction to Neural Networks Computing
Neural Network I Week 7 1. Team Homework Assignment #9 Read pp. 327 – 334 and the Week 7 slide. Design a neural network for XOR (Exclusive OR) Explore.
Biological and Artificial Neurons Michael J. Watts
Artificial Neural Networks - Introduction -
Artificial Intelligence (CS 461D)
Simple Neural Nets For Pattern Classification
1 Chapter 11 Neural Networks. 2 Chapter 11 Contents (1) l Biological Neurons l Artificial Neurons l Perceptrons l Multilayer Neural Networks l Backpropagation.
Connectionist Modeling Some material taken from cspeech.ucd.ie/~connectionism and Rich & Knight, 1991.
1 Chapter 20 Section Slide Set 1 Prologue to neural networks: the neurons in the human brain Additional sources used in preparing the slides: Various.
How does the mind process all the information it receives?
Data Mining with Neural Networks (HK: Chapter 7.5)
1 Machine Learning: Connectionist Introduction 11.1Foundations of Connectionist Networks 11.2Perceptron Learning 11.3Backpropagation Learning 11.4.
Neural Networks. Background - Neural Networks can be : Biological - Biological models Artificial - Artificial models - Desire to produce artificial systems.
Traffic Sign Recognition Using Artificial Neural Network Radi Bekker
Neurons, Neural Networks, and Learning 1. Human brain contains a massively interconnected net of (10 billion) neurons (cortical cells) Biological.
Artificial Intelligence Lecture No. 28 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Presentation on Neural Networks.. Basics Of Neural Networks Neural networks refers to a connectionist model that simulates the biophysical information.
Artificial Neural Nets and AI Connectionism Sub symbolic reasoning.
Neural Networks Ellen Walker Hiram College. Connectionist Architectures Characterized by (Rich & Knight) –Large number of very simple neuron-like processing.
Machine Learning Dr. Shazzad Hosain Department of EECS North South Universtiy
1 Machine Learning The Perceptron. 2 Heuristic Search Knowledge Based Systems (KBS) Genetic Algorithms (GAs)
Presented by Scott Lichtor An Introduction to Neural Networks.
1 Chapter 20 Section Slide Set 2 Perceptron examples Additional sources used in preparing the slides: Nils J. Nilsson’s book: Artificial Intelligence:
Artificial Neural Networks. The Brain How do brains work? How do human brains differ from that of other animals? Can we base models of artificial intelligence.
1 Chapter 11 Neural Networks. 2 Chapter 11 Contents (1) l Biological Neurons l Artificial Neurons l Perceptrons l Multilayer Neural Networks l Backpropagation.
Introduction to Artificial Intelligence (G51IAI) Dr Rong Qu Neural Networks.
CS 478 – Tools for Machine Learning and Data Mining Perceptron.
Neural Network Basics Anns are analytical systems that address problems whose solutions have not been explicitly formulated Structure in which multiple.
Neural Networks Teacher: Elena Marchiori R4.47 Assistant: Kees Jong S2.22
Artificial Neural Networks Chapter 4 Perceptron Gradient Descent Multilayer Networks Backpropagation Algorithm 1.
Image Source: ww.physiol.ucl.ac.uk/fedwards/ ca1%20neuron.jpg
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
Neural Networks. Background - Neural Networks can be : Biological - Biological models Artificial - Artificial models - Desire to produce artificial systems.
CSC321: Neural Networks Lecture 1: What are neural networks? Geoffrey Hinton
Where are we? What’s left? HW 7 due on Wednesday Finish learning this week. Exam #4 next Monday Final Exam is a take-home handed out next Friday in class.
1 Azhari, Dr Computer Science UGM. Human brain is a densely interconnected network of approximately neurons, each connected to, on average, 10 4.
Computational Intelligence Semester 2 Neural Networks Lecture 2 out of 4.
Neural networks.
Supervised Learning in ANNs
Fall 2004 Perceptron CS478 - Machine Learning.
Learning with Perceptrons and Neural Networks
Artificial Intelligence (CS 370D)
Artificial neural networks:
Other Classification Models: Neural Network
Real Neurons Cell structures Cell body Dendrites Axon
What is an ANN ? The inventor of the first neuro computer, Dr. Robert defines a neural network as,A human brain like system consisting of a large number.
with Daniel L. Silver, Ph.D. Christian Frey, BBA April 11-12, 2017
Machine Learning. Support Vector Machines A Support Vector Machine (SVM) can be imagined as a surface that creates a boundary between points of data.
Data Mining with Neural Networks (HK: Chapter 7.5)
OVERVIEW OF BIOLOGICAL NEURONS
CSE (c) S. Tanimoto, 2004 Neural Networks
Perceptron as one Type of Linear Discriminants
Machine Learning. Support Vector Machines A Support Vector Machine (SVM) can be imagined as a surface that creates a boundary between points of data.
Machine Learning. Support Vector Machines A Support Vector Machine (SVM) can be imagined as a surface that creates a boundary between points of data.
Artificial Intelligence Lecture No. 28
Capabilities of Threshold Neurons
CSE (c) S. Tanimoto, 2001 Neural Networks
Artificial Intelligence 12. Two Layer ANNs
CS 621 Artificial Intelligence Lecture /10/05 Prof
Computer Vision Lecture 19: Object Recognition III
CSE (c) S. Tanimoto, 2007 Neural Nets
Introduction to Neural Network
David Kauchak CS158 – Spring 2019

CO Games Development 2 Week 22 Machine Learning
EE 193/Comp 150 Computing with Biological Parts
Presentation transcript:

Machine Learning: Connectionist 11 Machine Learning: Connectionist 11.0 Introduction 11.1 Foundations of Connectionist Networks 11.2 Perceptron Learning 11.3 Backpropagation Learning 11.4 Competitive Learning 11.5 Hebbian Coincidence Learning 11.6 Attractor Networks or “Memories” 11.7 Epilogue and References 11.8 Exercises Additional sources used in preparing the slides: Various sites that explain how a neuron works Robert Wilensky’s slides: http://www.cs.berkeley.edu/~wilensky/cs188 Russell and Norvig’s AI book (2003)

Chapter Objectives Learn about the neurons in the human brain single neuron systems (perceptrons) neural networks

Inspiration: The human brain We seem to learn facts and get better at doing things without having to run a separate “learning procedure.” It is desirable to integrate learning more with doing.

Understanding the brain (1) “ Because we do not understand the brain very well we are constantly tempted to use the latest technology as a model for trying to understand it. In my childhood we were always assured that the brain was a telephone switchboard. (“What else could it be?”) I was amused to see that Sherrington, the great British neuroscientist, thought that the brain worked like a telegraph system. Freud often compared the brain ot hydraulic and electro-magnetic systems. Leibniz compared it to a mill, and I am told that some of the ancient Greeks thought the brain functions like a catapult. At present, obviously, the metaphor is the digital computer.” -- John R. Searle (Prof. of Philosophy at UC, Berkeley)

Understanding the brain (2) “ The brain is a tissue. It is a complicated, intricately woven tissue, like nothing else we know of in the universe, but it is composed of cells, as any tissue is. They are, to be sure, highly specialized cells, but they function according to the laws that govern any other cells. Their electrical and chemical signals can be detected, recorded and interpreted and their chemicals can be identified, the connections that constitute the brain’s woven feltwork can be mapped. In short, the brain can be studied, just as the kidney can. -- David H. Hubel (1981 Nobel Prize Winner)

Biology The brain doesn’t seem to have a CPU. Instead, it’s got lots of simple, parallel, asynchronous units, called neurons. Every neuron is a single cell that has a number of relatively short fibers, called dendrites, and one long fiber, called an axon. The end of the axon branches out into more short fibers Each fiber “connects” to the dendrites and cell bodies of other neurons The “connection” is actually a short gap, called a synapse Axons are transmitters, dendrites are receivers

Neuron

How neurons work The fibers of surrounding neurons emit chemicals (neurotransmitters) that move across the synapse and change the electrical potential of the cell body Sometimes the action across the synapse increases the potential, and sometimes it decreases it. If the potential reaches a certain threshold, an electrical pulse, or action potential, will travel down the axon, eventually reaching all the branches, causing them to release their neurotransmitters. And so on ...

How neurons work (cont’d)

How neurons change There are changes to neurons that are presumed to reflect or enable learning: The synaptic connections exhibit plasticity. In other words, the degree to which a neuron will react to a stimulus across a particular synapse is subject to long-term change over time (long-term potentiation). Neurons also will create new connections to other neurons. Other changes in structure also seem to occur, some less well understood than others.

Neurons as devices How many neurons are there in the human brain? - around 1012 (with, perhaps, 1014 or so synapses) Neurons are slow devices. - Tens of milliseconds to do something. - Feldman translates this into the “100 step program constraint”: Most of the AI tasks we want to do take people less than a second. So any brain “program” can’t be longer than 100 neural “instructions.” No particular unit seems to be important. - Destroying any one brain cell has little effect on overall processing.

How do neurons do it? Basically, all the billions of neurons in the brain are active at once. - So, this is truly massive parallelism. But, probably not the kind of parallelism that we are used to in conventional Computer Science. - Sending messages (i.e., patterns that encode information) is probably too slow to work. - So information is probably encoded some other way, e.g., by the connections themselves.

AI / Cognitive Science Implication Explain cognition by richly connected networks transmitting simple signals. Sometimes called - connectionist computing (by Jerry Feldman) - Parallel Distributed Processing (PDP) (by Rumelhart, McClelland, and Hinton) - neural networks (NN) - artificial neural networks (ANN) (emphasizing that the relation to biology is generally rather tenuous)

From a neuron to a perceptron All connectionist models use a similar model of a neuron There is a collection of units each of which has a number of weighted inputs from other units inputs represent the degree to which the other unit is firing weights represent how much the units wants to listen to other units a threshold that the sum of the weighted inputs are compared against the threshold has to be crossed for the unit to do something (“fire”) a single output to another bunch of units what the unit decided to do, given all the inputs and its threshold

A unit (perceptron) w1 x1 x2 w2 w3 x3 O=f(y) . y=wixi wn xn xi are inputs wi are weights wn is usually set for the threshold with xn =-1 (bias) y is the weighted sum of inputs including the threshold (activation level) o is the output. The output is computed using a function that determines how far the perceptron’s activation level is below or above 0

Notes The perceptrons are continuously active - Actually, real neurons fire all the time; what changes is the rate of firing, from a few to a few hundred impulses a second The weights of the perceptrons are not fixed - Indeed, learning in a NN system is basically a matter of changing weights

Interesting questions for NNs How do we wire up a network of perceptrons? - i.e., what “architecture” do we use? How does the network represent knowledge? - i.e., what do the nodes mean? How do we set the weights? - i.e., how does learning take place?

The simplest architecture: a single perceptron x1 w1 x2 w2 o x3 w3 . y=wixi wn xn A perceptron computes o = f (X . W), where y=X.W = w1 * x1 + w2 * x2 + … + wn * -1, and f(x) = 1 if y > 0 and 0 otherwise A perceptron can act as a logic gate interpreting 1 as true and -1 (or 0) as false

Logical function and 1.5 -1 x+y-1.5 x  y 1 x 1 y x y x+y-1.5 output 1 0.5 -0.5 -1.5

Logical function or 0.5 -1 x+y-0.5 x V y 1 x 1 y x y x+y-0.5 output 1 1.5 0.5 -0.5

Logical function not -0.5 -1 0.5 - x ¬x -1 x x 0.5 - x output 1 -0.5 0.5

Training perceptrons We can train perceptrons to compute the function of our choice The procedure Start with a perceptron with any values for the weights (usually 0) Feed the input, let the perceptron compute the answer If the answer is right, do nothing If the answer is wrong, then modify the weights by adding or subtracting the input vector (perhaps scaled down) Iterate over all the input vectors, repeating as necessary, until the perceptron learns what we want

Training perceptrons: the intuition If the unit should have gone on, but didn’t, increase the influence of the inputs that are on: - adding the input (or fraction thereof) to the weights will do so; If it should have been off, but was on, decrease influence of the units that are on: - subtracting the input from the weights does this

Example: teaching the logical or function Want to learn this: Bias x y output -1 1 Initially the weights are all 0, i.e., the weight vector is (0 0 0). The next step is to cycle through the inputs and change the weights as necessary. (see the handouts)

The general procedure Start with a perceptron with any values for the weights (usually 0) Feed the input, let the perceptron compute the answer If the answer is right, do nothing If the answer is wrong, then modify the weights by adding or subtracting the input vector wi = c (d - f) xi Iterate over all the input vectors, repeating as necessary, until the perceptron learns what we want (i.e., the weight vector converges)

More on wi = c (d - f) xi c is the learning constant d is the desired output f is the actual output (d - f ) is either 0 (correct), or (1 - 0)= 1, or (0 - 1) = -1. The net effect is: When the actual output is 0 and should be 1, increment the weights on the i-th line by cxi. When the actual output is 1 and should be 0, decrement the weights on the i-th line by cxi.

A data set for perceptron classification X Y Output 1.0 1 9.4 6.4 2.5 2.1 8.0 7.7 0.5 2.2 7.9 8.4 7.0 2.8 0.8 1.2 3.0 7.8 6.1

A two-dimensional plot of the data points

The good news The weight vector converges to (-6.0 -1.3 -0.25) after 5 iterations. The equation of the line found is -1.3 * x1 + -0.25 * x2 + -6.0 = 0 The Y intercept is 24.0, the X intercept is 4.6.

The bad news: the exclusive-or problem No straight line in two-dimensions can separate the (0, 1) and (1, 0) data points from (0, 0) and (1, 1). A single perceptron can only learn linearly separable data sets.

The solution: multi-layered NNs

The adjustment for wki depends on the total contribution of node i to the error at the output

Algorithms See the handouts for PERCEPTRON-LEARNING algorithm, and BACK-PROPOGATION-LEARNING algorithm

Comments on neural networks Parallelism in AI is not new. - spreading activation, etc. Neural models for AI is not new. - Indeed, is as old as AI, some subdisciplines such as computer vision, have continuously thought this way. Much neural network works makes biologically implausible assumptions about how neurons work - backpropagation is biologically implausible. - “neurally inspired computing” rather than “brain science.”

Comments on neural networks (cont’d) None of the neural network models distinguish humans from dogs from dolphins from flatworms. - Whatever distinguishes “higher” cognitive capacities (language, reasoning) may not be apparent at this level of analysis. Relation between NN and “symbolic AI”? - Some claim NN models don’t have symbols and representations. - Others think of NNs as simply being an “implementation-level” theory. - NNs started out as a branch of statistical pattern classification, and is headed back that way.

Nevertheless NNs give us important insights into how to think about cognition NNs have been used in solving lots of problems learning how to pronounce words from spelling (NETtalk, Sejnowski and Rosenberg, 1987) Controlling kilns (Ciftci, 2001)