Latent Multitask Architecture Learning