24Presynaptic plasticity is known to modulate the strength of synaptic transmission. 25However, it remains unknown whether regulation in presynaptic neurons alters the 26 directionality -positive or negative-of postsynaptic responses. We report here that the 27 C. elegans homologs of MAST kinase, Stomatin and Diacylglycerol kinase act in a 28 thermosensory neuron to elicit in its postsynaptic neuron an excitatory or inhibitory 29 response that correlates with the valence of thermal stimuli. By monitoring neural 30 activity of the valence-coding interneuron in freely behaving animals, we show that 31 the alteration between excitatory and inhibitory responses of the interneuron is 32 mediated by controlling the balance of two opposing signals released from the 33 presynaptic neuron. These alternative transmissions further generate opposing 34 behavioral outputs necessary for the navigation on thermal gradients. Our findings 35 reveal the previously unrecognized capability of presynaptic regulation to evoke 36 bidirectional postsynaptic responses and suggest a molecular mechanism of 37 determining stimulus valence. 38 4 neural circuit that promotes or inhibits feeding behaviors. 54Contrary to these developmentally programmed, stereotyped behaviors, the 55 valence associated with certain sensory stimuli can vary depending on the past experience, 56 the current environmental context and the stimulus intensity 9 . For example, olfactory 57 preferences to the same odorants can differ depending on the odorant concentration 10 . 58Studies of worms, flies and mammals suggested a common feature of neural mechanism 59 underlying the change in these odorant valences, wherein different concentrations of the 60 same odorants recruit distinct sets of olfactory neurons and consequently change the 61 perception of the same odorants [11][12][13] . However, the extent to which the brain utilizes 62 different encoding strategies for alternating stimulus valence remains largely unexplored. In 63 particular, the molecular and circuit mechanisms underlying the perception of altering 64 valence for other sensory modalities are not yet understood. 65The compact nervous system of C. elegans consisting of only 302 neurons 66 provides an excellent opportunity to explore these questions 14 . C. elegans exhibits 67 thermotaxis behavior 15 , in which the valence of thermal information varies depending on 68 5 the past experience, current temperature environment and feeding states. Specifically, the 69 temperature preference of C. elegans is plastic and determined by the cultivation 70 temperature, in which animals that are cultivated at a constant temperature with food 71 migrate toward that cultivation temperature on a thermal gradient without food 15 . When 72 animals were placed at the temperature below the cultivation temperature they migrate up 73 the thermal gradient, while above the cultivation temperature they move down the gradient, 74indicating that the valence associated with thermal stimuli alternates in opposing manners 75 dependin...