Rapid adaptation for deep neural networks through multi-task learning