Latent feature sharing: an adaptive approach to linear decomposition models