Compact task representation as a normative model for higher-order brain activity