Structured Output Regularization: a framework for few-shot transfer learning