On the use of examples in learning

Once in a while in a discussion on education or science, the topic of the perceived opposition of theory and practice comes up. It is usually raised by one party with a strong view on either a theory- or an application focus, with the goal of discrediting the other viewpoint: “This is just theory (and thus worthless), because what we need is to make it run”. In a classroom setting, you sometimes hear it from students complaining about too much abstract knowledge and too less examples.

The same argument is also used the other way round. I came to the conclusion that both is shortsighted thinking, robbing the holder of such a viewpoint from the very benefit the other view can grant him or her. Let me explain this using the example of the classroom setting above, and using an analogy from machine learning:

In a supervised classification setting in machine learning, you provide an algorithm with samples of possible input data, together with the expected output per data point (a “class label”). The goal of the machine learning algorithm is to come up with an internal model (also called a “theory”) that generalizes beyond the concrete input-output tuples it has seen, to previously unseen data. In fact, the only way such a model can ever be useful is if it can generalize:

Suppose you want to build a classifier that takes pictures of cats and dogs as input, and learns to tell these two classes apart. Even if you have collected the vast amount of one million pictures of cats and one million pictures of dogs, you are not impressed if the learned model works well on these two million training cases. You want it to succeed on the newly taken picture of your friend’s cat.

To ensure that this generalization happens, in machine learning we use a second data set beyond the two million pictures in the abovementioned training set: after finishing the training of our model, we provide it with a test set of examples of cat and dog images that the algorithm has never seen before, and measure its classification accuracy on it. This gives us insight into how well the learned model (theory) is applicable in practice.

Back to the classroom. No student is interested in examples per se. Rather, each student is interested in applicable knowledge that helps him or her to solve problems of some practical relevance. And for knowledge to be applicable to unseen situations (i.e., to generalize well), it has to reside in one’s brain as abstract knowledge: knowledge that is independent of any concrete constraints to be transferable to a newly arising task. (Yes, examples are also transferable by means of transduction, but humans by far more often and also better use the principle of deduction to apply knowledge to new examples.)

So what, then, is the use of examples in learning? The same as in machine learning: they serve as a means for the student to check if the internalized abstract knowledge works well on unseen examples – i.e., if it has been understood correctly. This is a very important function – but playing off theory and examples against each other is a little bit like wagging the dog.

(And yes, of course learning can also happen by going through quite an amount of examples and abstract them down to a theory on your own. That is what is done in the inductive machine learning case above, and this is how humans learn most things in life. But like inductive ML only reached impressive results in the big data era of plenty of available examples, so does inductive human learning take years. Usually we try to shortcut these in education.)

Written on April 3, 2017 (last modified: April 3, 2017)
comments powered by Disqus