The generative principle and the problem of learning transfer