The Philosophy Behind AI: Five Old Questions an Engineer Must Answer
A model passes every test you give it. Then it goes into the field, makes a mistake no test predicted, and nobody on the team can say why. The questions philosophers asked about machines and minds long ago are now engineering questions, and each one has a cost when it is answered badly. #ArtificialIntelligence #Philosophy #Ethics #Engineering
“The question of whether Machines Can Think is about as relevant as the question of whether Submarines Can Swim.”
Edsger W. Dijkstra, The threats to computing science (EWD898), 1984
Dijkstra’s point was not that the question is silly. It was that the useful question is a different one: what does the machine do, and can you depend on it? Every section below comes back to that.
1. Behaviour is all you can test
In 1950 Alan Turing proposed the imitation game (now called the Turing test) in his paper Computing Machinery and Intelligence. If a person talking to a machine cannot tell it from a person, he said, we have no better reason to deny that it thinks than we have for other people.
Turing chose behaviour because behaviour is the only thing you can observe. An engineer is in the same position. You cannot open a trained model and read what it “knows”. You can only give it inputs and look at what comes out.
What this means for you: your tests are your definition of “it works”. A test set is a claim about the world the system will meet. If the field contains cases the test set does not (night shifts, a new supplier’s parts, a sensor that drifts), the tests say nothing about them. Write down what the tests cover, and what they do not, before anyone signs.
2. The right output is not the same as understanding
In 1980 John Searle described the Chinese Room. A person who reads no Chinese sits in a room with a rule book. Notes in Chinese come in; the person follows the rules and passes the correct replies out. To people outside, the room understands Chinese. Inside, nothing does.
Philosophers still argue about what the room shows about minds. For an engineer the lesson is narrower and very practical: a system can give the right answer for the wrong reason.
A study from 2016 shows it clearly. Researchers trained an image classifier to tell wolves from huskies, using wolf photos that mostly had snow behind them. It scored well. When they checked what it looked at, it was detecting the snow, not the animal. On the test set it was right. In the field it would call a husky on snow a wolf, and a wolf on grass a dog.
What this means for you: test the reason, not only the result. Try inputs that are unlike the training data. Change one thing at a time (the background, the lighting, the units) and see whether the answer changes when it should not.
Watch: the same questions, in one talk
3. Hard for people is not hard for machines
Hans Moravec noted in 1988 that it is fairly easy to make computers perform like adults on tests of intelligence or at playing chess, and very hard to give them the perception and movement skills of a one year old. This is known as Moravec’s paradox.
The things people find hard (long calculations, recalling every clause of a standard) are often easy for a machine. The things people find easy (reading a dirty gauge in poor light, noticing that a pump “sounds wrong”, picking up a part that is not quite where it should be) are often hard.
What this means for you: do not judge how hard a task is for a machine by how hard it is for a person. Before you promise to automate a job, list the small perception and handling steps inside it. Those are usually where the project gets stuck.
4. When a measure becomes a target
Charles Goodhart, an economist, observed in 1975 that a measure used for control stops behaving as it did. Marilyn Strathern later put it in the form most people know: when a measure becomes a target, it ceases to be a good measure.
Machine learning is optimisation, so it meets this problem directly. Train a system to maximise a score, and it will find ways to raise the score that you did not intend. In a well known example from AI safety research, a cleaning robot rewarded for “no mess seen” could earn its reward by covering the mess or looking away from it. A model ranked by a public benchmark gets tuned to that benchmark until the ranking says little about real use.
What this means for you: keep the number you optimise separate from the number you judge by. Check results against an outcome nobody trained on: the repair that did not happen, the complaint that did not come, the energy that was not used.
5. A machine cannot sign
The old debate asks whose values a system should follow. Each school of ethics asks a different question of a system you ship:
| School | The question it asks of your system |
|---|---|
| Consequences (utilitarianism) | Across everyone it affects, does it do more good than harm, including the people who never see it? |
| Duties and rights (deontology) | Are there things it must never do, whatever the score says? Are those written down as hard limits? |
| Character (virtue ethics) | Would a careful, honest engineer be content to put their name to how it behaves? |
| What works (pragmatism) | Do we watch it in use, and change it when the evidence says it is wrong? |
None of these settles every case, and they do not need to. Used together they are a checklist. But there is one point every school agrees on: a machine cannot be held responsible. When an automated decision closes a valve, refuses a loan or passes a weld, a person answers for it. Decide who that person is before the system goes live, and make sure they can see why it decided as it did.
Five questions before you trust a model
- What do the tests cover, and what part of the real world do they leave out?
- Have we checked why it is right, not only that it is right?
- Which small perception or handling steps does the job contain, and has the machine shown it can do them?
- Is the number we optimise different from the number we judge by?
- Who signs for its decisions, and can that person see the reasons?
If you cannot answer one of these, that is the next piece of work, and it matters more than another point of accuracy.
Going further
The habits behind these questions (estimating, separating correlation from cause, noticing your own biases) are taught step by step in Critical Thinking for Engineers, with exercises you can do in an afternoon.
Sources named in this post: A. M. Turing, Computing Machinery and Intelligence, Mind, 1950. J. R. Searle, Minds, Brains, and Programs, Behavioral and Brain Sciences, 1980. H. Moravec, Mind Children, Harvard University Press, 1988. C. Goodhart, Problems of Monetary Management: the U.K. Experience, 1975. M. Strathern, ‘Improving ratings’: audit in the British University system, European Review, 1997. M. T. Ribeiro, S. Singh and C. Guestrin, “Why Should I Trust You?”: Explaining the Predictions of Any Classifier, KDD 2016 (the wolf and husky example).
Where next
Discussion
No comments yet. Ask a question, share a result from your own build, or suggest a clearer way to explain it.
Join the discussion. Anyone can read. To comment, reply or mark a comment helpful, sign in with your SiliconWit account.