A Compositional Kernel Model for Feature Learning