The origins and evolution of higher cognitive functions, including complex forms of learning, attention and executive functions, are unknown. A potential mechanism driving the evolution of vertebrate cognition early in the vertebrate lineage (550 million years ago) was genome duplication and subsequent diversification of postsynaptic genes. Here we report, to our knowledge, the first genetic analysis of a vertebrate gene family in cognitive functions measured using computerized touchscreens. Comparison of mice carrying mutations in each of the four Dlg paralogs showed that simple associative learning required Dlg4, whereas Dlg2 and Dlg3 diversified to have opposing functions in complex cognitive processes. Exploiting the translational utility of touchscreens in humans and mice, testing Dlg2 mutations in both species showed that Dlg2's role in complex learning, cognitive flexibility and attention has been highly conserved over 100 million years. Dlg-family mutations underlie psychiatric disorders, suggesting that genome evolution expanded the complexity of vertebrate cognition at the cost of susceptibility to mental illness.
