A collaboration between SISSA and the University of Pennsylvania indicates the existence of an efficient process of sensory coding in rats, suggesting a general principle for optimal use of computational resources. The study, published in eLife, paves the way for an understanding of the underlying neuronal mechanisms behind this efficiency and for the development of artificial intelligence systems based on similar principles.