Acetate supplementation restores cognitive deficits caused by ARID1A haploinsufficiency in excitatory neurons. Here, ARID1A is linked to cognition.