Recent human studies suggest that genetic polymorphisms allow an individual to maintain optimal cognitive functioning during sleep deprivation. If such polymorphisms were not associated with additional costs, selective pressures would allow these alleles to spread through the population such that an evolutionary alternative to sleep would emerge. To determine whether there are indeed costs associated with resiliency to sleep loss, we challenged natural allelic variants of the foraging gene (for) with either sleep deprivation or starvation. Flies with high levels of Protein Kinase G (PKG) (for R ) do not display deficits in short-term memory following 12 h of sleep deprivation. However, short-term memory is significantly disrupted when for R flies are starved overnight. In contrast, flies with low levels of PKG (for s , for s2 ) show substantial deficits in short-term memory following sleep deprivation but retain their ability to learn after 12 h of starvation. We found that for R phenotypes could be largely recapitulated in for s flies by selectively increasing the level of PKG in the α/β lobes of the mushroom bodies, a structure known to regulate both sleep and memory. Together, these data indicate that whereas the expression of for may appear to provide resilience in one environmental context, it may confer an unexpected vulnerability in other situations. Understanding how these tradeoffs confer resilience or vulnerability to specific environmental challenges may provide additional clues as to why an evolutionary alternative to sleep has not emerged.A lthough sleep is a behavioral state that is conserved across a diverse range of species, the biological functions of sleep remain unknown. Sleep deprivation (SD) has been shown to negatively impact cognition, but individual responses to sleep loss can vary significantly within a population (1). Recent studies suggest that a portion of this variability may be influenced by genetic factors (2). For example, polymorphisms for PERIOD 3 (PER3), a circadian clock gene, can predict the magnitude of cognitive impairment and sleep homeostasis in response to a night of SD in humans (2). Although these genetic contributions may attenuate impairments following SD, the tradeoffs associated with resistance to sleep loss remain unknown. Presumably, the potential costs must be substantial. Thus, it is likely that the price of protection from sleep loss that can be conferred by allelic variation in one environment may induce a cost when manifested in a different environment. To date, putative costs of resiliency to sleep loss have not been identified in humans or any model organism.foraging (for), which codes for Protein Kinase G (PKG), is maintained in wild-type populations as a genetic polymorphism that results in either higher or lower levels of PKG activity (3). The allele associated with higher levels of PKG ("rover"; for R ) results in larvae with longer foraging trails between food patches, whereas the allele associated with lower levels of PKG ("sitter"; for s ) results i...