Natural representation of composite data with replicated autoencoders