Sample-efficient learning with self-supervision