A sparse regression approach to modeling the relation between galaxy stellar masses and their host halos