Balancing generality and specialization for machine learning in the post-ISA era