62
Connectionism

Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Embed Size (px)

Citation preview

Page 1: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Connectionism

Page 2: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

ASSOCIATIONISM

Page 3: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Associationism

David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes.

Page 4: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Associationism

“There is a secret tie or union among particular ideas, which causes the mind to conjoin them more frequently together, and makes the one, upon its appearance, introduce the other.”

Page 5: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Three Principles

1. Resemblance 2. Contiguity in space and time3. Cause and effect

Page 6: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Constant Conjunction

Page 7: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Constant Conjunction

Page 8: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Constant Conjunction

Causal Association

Page 9: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Vivacity

Hume thought different ideas you had had different levels of “vivacity” – how clear or lively they are.

(Compare seeing an elephant to remembering an elephant.)

Page 10: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Belief

To believe an idea was for that idea to be very vivacious.

Importantly, causal association is vivacity preserving. If you believe the cause, then you believe its effect.

Page 11: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Constant Conjunction

Page 12: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Constant Conjunction

Page 13: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Hume’s Non-Rational Mind

Hume thus had a model of mental processes that was non-rational.

Associative principles aren’t truth-preserving; they are vivacity preserving. (Hume thought this was a positive feature, because he thought that you could not rationally justify causal reasoning.)

Page 14: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Classical Conditioning

And as we saw before, the associationist paradigm continued into psychology after it became a science.

Page 15: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes
Page 16: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Connectionism

Connectionism is the “new” associationism.

Page 17: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

CONNECTIONISM

Page 18: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Names

• Connectionist Network• Artificial Neural Network• Parallel Distributed Processors

Page 19: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes
Page 20: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes
Page 21: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

High

Middle

Low

Mine

Rock

Page 22: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

3

1

9

Mine

Rock

Page 23: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

3

1

9

Mine

Rock

Connection

Page 24: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Weights

Each connection has its own weight between -1 and 1.

The weights correspond to how much of each node’s “message” is passed on.

In this example, if the weight is +0.5, then the Low node passes on 3 x 0.5 = 1.5.

Page 25: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

3

1

9

Mine

Rock

0.51 -0.5

Page 26: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

3

1

9

Mine

Rock

0.51 -0.5

-2

Page 27: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

3

1

9

Mine

Rock

f(-2)

Page 28: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Activation Function

Each non-input node has an activation function. This tells it how active to be, given the sum of its inputs.

Often the activation functions are just on/ off:f(x) = 1, if x > 0; otherwise f(x) = 0

Page 29: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

3

1

9

Mine

Rock

0

1

2

-1

Page 30: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

3

1

9

1

0

0

1

2

-1

Page 31: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Training a Connectionist Network

STEP 1: Assign weights to the connections at random.

Page 32: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Training a Connectionist Network

STEP 2: Gather a very large number of categorization tasks to which you know the answer. For example, a large number of echoes where you know whether they are from rocks or from mines. This is the “training set.”

Page 33: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Training a Connectionist Network

STEP 3: Randomly select one echo from the training set. Give it to the network.

Page 34: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Back Propagation

STEP 4: If the network gets the answer right, do nothing.

If it gets the answer wrong, find all the connections that supported the wrong answer and adjust them down slightly. Find all the ones that supported the right answer and adjust them up slightly.

Page 35: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Repeat!

STEP 5: Repeat the testing-and-adjusting thousands of times. Now you have a trained network.

Page 36: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Important Properties of Connectionist Networks

1. Connectionist networks can learn.

(If they have access to thousands of right answers, and someone is around to adjust the weights of their connections. As soon as they stop being “trained” they never learn a new thing again.)

Page 37: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Learning

If we suppose that networks train themselves (and no one knows how this could happen), learning is still a problem:

The system, though it can learn, can’t remember. In altering its connections, it alters the traces of its former experiences.

Page 38: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Parallel Processing

2. Connectionist networks process in parallel.

Serial computation:

Page 39: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Parallel Processing

A parallel computation might work like this: I want to solve a really complicated math problem, so I assign small parts of it to each student in class.

They work “in parallel” and together we solve the problem faster than one processor working serially.

Page 40: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Distributed Representations

3. Representations in connectionist networks are distributed.

Information about the ‘shape’ of the object (in sonar echoes) is encoded not in any one node or connection, but across all the nodes and connections.

Page 41: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Local Processing

4. Processing in a connectionist network is local.

There is no central processor controlling what happens in a connectionist network. The only thing that determines whether a node activates is its activation function and its inputs. There’s no program telling it what to do.

Page 42: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Graceful Degradation

5-6. Connectionist networks tolerate low-quality inputs, and can still work even as some of their parts begin to fail.

Since computing and representation are distributed throughout the network, even if part of it is destroyed or isn’t receiving input, the whole will still work pretty well.

Page 43: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

CONNECTIONISM AND THE BRAIN

Page 44: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes
Page 45: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Brain = Neural Network?

One of the main points of interest of connectionism is the idea that the human brain might be a connectionist network.

Page 46: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Neurons

A neuron receives inputs from a large number of other neurons, some of which “inhibit” it and others of which “excite” it. At a certain threshold, it fires.

Page 47: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Neurons

Neurons are hooked up ‘in parallel’: different chains of activation and inhibition can operate independently of one another.

Page 48: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Neurons

But is the brain really a neural network?

Page 49: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Spike Trains

Neurons fire in ‘spikes’ and many brain researchers think they communicate in the frequency of spikes over time. That’s not a part of connectionism.

Page 50: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Spike Trains

(Another hypothesis is that they communicate information by firing in the same patterns as other neurons.)

Page 51: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Back Propagation

There’s also no evidence of connectionist-style training. The brain has no (known) means of changing the connections between neurons that “contribute to the wrong answer.”

Page 52: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Close Enough

An alternate view might be that while brains aren’t neural networks, they are like neural networks.

Furthermore, they are more like neural networks than they are like universal computers because (so the argument goes) neural networks are good at what we’re good at and bad at what we’re bad at.

Page 53: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

PROBLEM CASES

Page 54: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Logic, Math

Universal computers can solve logic problems or math problems with very high accuracy, and with very few steps.

Neural networks need extensive training and a large number of nodes to achieve even moderate accuracy on such tasks.

Page 55: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Bechtel & Abrahamesen

Ravenscroft describes a case where Bechtel & Abrahamsen built a connectionist network that was supposed to tell whether an argument was valid or invalid (out of 12 possible argument forms). For instance, it might be given:

(P → Q), Q├ P

Page 56: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

The Logic Network

• After ½ million training sessions, it was 76% accurate.

• After 2.5 million training sessions, it was 84% accurate.

I’ve known students who were 99% accurate, for a larger range of problems, after a couple dozen examples.

Page 57: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Language

For the same reason, language poses a problem.

Human spoken languages have a similar structure to computer programming languages (that’s intentional).

So it’s very hard to get a connectionist network that can speak grammatically.

Page 58: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

IMPLEMENTATION

Page 59: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Simulation

Every universal computer can simulate every connectionist network.

In fact, almost no connectionist networks exist. When you read about researchers “designing” networks, they are virtually designing them in a universal computer. And when they “train” the networks, the computer trains them.

Page 60: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

Simulation

So the mind could be a universal computer that simulates a neural network.

But… that would be strange and wasteful. Why throw out all your computational power to simulate something weaker?

Page 61: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

A more interesting idea is that maybe the mind is a universal computer implemented by a connectionist network of neurons.

Most connectionist networks are not universal computers. But some are.

Page 62: Connectionism. ASSOCIATIONISM Associationism David Hume (1711-1776) was one of the first philosophers to develop a detailed theory of mental processes

1 1 11

f(x) = 1 if x ≥ 1, 0 otherwise

f(x) = 1 if x = 2, 0 otherwise