Introduction

Choosing between two goods entails computing and comparing their subjective values. Evidence from lesions and neurophysiology indicates that these mental operations engage the orbitofrontal cortex (OFC)1,2,3. Experiments in which rhesus monkeys chose between different juices identified three groups of neurons in this area. Offer value cells encode the values of individual goods and are thought to provide the primary input to the decision. Conversely, chosen juice cells and chosen value cells represent the binary choice outcome and the value of the chosen good4, 5. The present study focuses on offer value cells.

Previous work indicated that these neurons undergo range adaptation. In any behavioral context, their firing rate is a linear function of the offered values; their tuning slope is inversely proportional to the range of values available in that context6,7,8. Prima facie, range adaptation seems to ensure an efficient neuronal representation. However, it was shown that uncorrected adaptation in offer value cells would result in arbitrary choice biases9—a problem conceptually analogous to the “coding catastrophe” discussed for sensory systems10,11,12. Experimental evidence presented in this study indicates that, in fact, changing the range of offer values does not affect economic preferences. In other words, range adaptation is corrected within the decision circuit to avoid choice biases. This observation raises a fundamental question: If neuronal adaptation is indeed corrected within the decision circuit, is neuronal adaptation at all beneficial to the organism? Addressing this question requires a theory of optimal coding.

Following the seminal work of Barlow13, optimal coding has been a frequent area of research in sensory systems. A cornerstone concept is that sensory neurons are optimally tuned for perception if they transmit maximal information about the stimuli13,14,15. In any behavioral context, such optimality is achieved if tuning curves match the cumulative distribution function of the stimuli14. Importantly, neurons in many sensory regions adapt optimally to the current behavioral context16,17,18,19,20,21,22, while tuning functions in other sensory regions seem optimized for the distribution of natural stimuli16, 23, 24. Because they constitute the input layer of the decision circuit, offer value cells are in some ways analogous to sensory cells. One might thus wonder whether their tuning functions match the cumulative distribution function of the offered values. Experimental evidence presented here indicates that this is not the case. More specifically, we show that the tuning functions of offer value cells are quasi-linear and not correlated with the cumulative distribution function of offered values (or its average across sessions). Thus the coding of offer values in OFC, while context-adapting, is not optimal in the sense of information transmission.

In this article, we introduce a new theory of optimal coding for economic decisions. In essence, we propose that offer value neurons are optimally tuned for economic decisions if they ensure maximal expected payoff. In this framework, we present a series of theoretical and experimental results. Behavioral and neuronal data were collected in two experiments in which monkeys chose between different juices offered in variable amounts. First, assuming linear tuning functions, we demonstrate that range adaptation, corrected to avoid choice biases, ensures maximal expected payoff. Second, confirming theoretical predictions, we show that expected payoff and value range are inversely related in the experiments. Third, relaxing the assumption of linearity, we demonstrate that optimal response functions in our experiments were in fact non-linear. Hence, linearity is a rigid property of value coding not subject to contextual adaptation. Fourth, we show that the benefit afforded by range adaptation outweighs the cost imposed by functional rigidity. In other words, quasi-linear but range-adapting tuning functions are sufficient to ensure close-to-optimal choice behavior. Taken together, these results shed new light on the nature of value coding and the role played by neuronal adaptation in economic decisions.

Results

Relative value, choice variability and expected payoff

In Exp. 1, monkeys chose between two juices (A and B, with A preferred) offered in variable amounts (Fig. 1a, b). The range of quantities offered for each juice remained fixed within a session, while the quantity offered on any given trial varied pseudo-randomly. Monkeys’ choices generally presented a quality–quantity trade-off. If the two juices were offered in equal amounts, the animal would generally choose A (by definition). However, if sufficiently large quantities of juice B were offered against one drop of juice A, the animal would choose B. The “choice pattern” was defined as the percentage of trials in which the animal chose juice B as a function of the offer type. In each session, the choice pattern was fitted with a sigmoid function, and the flex of the sigmoid provided a measure for the relative value of the two juices, referred to as ρ (see Methods). The relative value allows one to express quantities of the two juices on a common value scale. In one representative session, we measured ρ = 4.1 (Fig. 1b).

Fig. 1
figure 1

Quasi-linear coding of offer values, individual responses. a. Task design (see Methods). b. Example of choice pattern. The x-axis represents different offer types, ranked by the ratio q B :q A . Black dots represent the percent of “choice B” trials. c. Example offer value A response. Black dots represent the choice pattern. The histogram illustrates the number of trials presented for each offer type. Red symbols represent firing rates±SEM (diamonds and squares for “choice A” and “choice B”, respectively). The y-axis on the left refers to firing rates. The y-axis on the right refers both to the number of trials (histogram) and to the choice pattern (black symbols). d. Comparing firing rates and ntrialsCDF. Same response as in c. The x-axis represents normalized quantity levels of juice A. The histogram illustrates the percent of trials for each quantity level. This session included 247 trials, and juice A was offered at quantity levels 0 (39 trials, 16%), 1 (169 trials, 68%), 2 (19 trials, 8%), and 3 (20 trials, 8%). Note that low quantity levels were over-represented. Blue circles represent the cumulative distribution function for the number of trials (ntrialsCDF). The y-axis on the right refers both to the number of trials (histogram) and to ntrialsCDF (blue circles). Red circles represent firing rates. Here each neuronal data point is an average across all the trials with given quantity level (not across a single trial type). The y-axis on the left refers to normalized firing rates. Limits on the y-axes were set such that the same line (black) represents the best linear fit for firing rates and for ntrialsCDF. (Because all measures are normalized, this is the identity line.) e. Curvature of firing rates and ntrialsCDF. Same data points as in d. Continuous and dotted lines are the result of the quadratic and cubic fit, respectively. f–h. Example offer value B response

Choice patterns often presented some variability. For example, consider in Fig. 1b offers 6B:1A. In most trials, the animal chose juice B, consistent with the fact that the value of 6B was higher than the value of 1A. However, in some trials, the animal chose the option with the lower value. Similarly, in some trials, the animal chose 3B over 1A. Intuitively, choice variability is high when the sigmoid is shallow. Thus in each session, the steepness of the fitted sigmoid, referred to as η, quantified the (inverse of) choice variability (see Methods).

In any given trial, we define the payoff as the value chosen by the animal. Thus given a set of offers and a sigmoid function, the expected payoff is equal to the chosen value averaged across trials. Importantly, the expected payoff is inversely related to choice variability, and thus directly related to the steepness of the sigmoid. When the sigmoid is steeper, choice variability is lower, and the expected payoff is higher; when the sigmoid is shallower, choice variability is higher, and the expected payoff is lower. Notably, the relative value of two juices is entirely subjective. In contrast, a key aspect of the expected payoff is objective: given a set of offers, a relative value and two sigmoid functions, the steeper sigmoid yields higher expected payoff.

Quasi-linear coding of offer values

While animals performed the task, we recorded the activity of individual neurons in the central OFC. Firing rates were analyzed in multiple time windows. In each session, an “offer type” was defined by a pair of offers (e.g., [1A:3B]); a “trial type” was defined by an offer type and a choice (e.g., [1A:3B, B]); a “neuronal response” was defined as the activity of one cell in one time window as a function of the trial type. Earlier work showed that different responses encoded variables offer value, chosen value and chosen juice4, 5. Unless otherwise indicated, the present analyses focus on offer value responses.

Previous studies failed to emphasize that the tuning of offer value cells was quasi-linear even though the distribution of values was highly non-uniform. To illustrate this point, we identified for each offer value response the quantity levels for the corresponding juice, and we calculated the number of trials in which each quantity level had been presented to the animal within the session. For example, Fig. 1c illustrates one offer value A response. In this session, juice A was offered in quantity levels (number of trials): 0 (39), 1 (169), 2 (19), and 3 (20). For each set of trials, we computed the mean firing rate of the cell. In addition, we computed the cumulative distribution function for the number of trials (ntrialsCDF) as a function of the quantity level. By analogy with sensory systems14, neurons encoding ntrialsCDF would provide maximal information about the offer values. Firing rates and ntrialsCDF were highly correlated: for both of them, a linear regression on the quantity level provided a reasonably good fit (Fig. 1d). However, the non-uniform distribution of offer values induced a curvature in ntrialsCDF. Similarly, each neuronal response taken alone always presented some curvature. To assess whether and how the curvature in neuronal responses was related to the curvature in ntrialsCDF, we normalized both firing rates and ntrialsCDF (see Methods). We thus fit each set of data points with a 2D polynomial, which provided a coefficient for the quadratic term (β2). Separately, we fit each set of data points with a 3D polynomial, which provided a coefficient for the cubic term (β3; Fig. 1e; see also Fig. 1f–h).

Because lower offer values were over-represented in the experiments, we generally measured β2, ntrialsCDF<0 and β3, ntrialsCDF>0. In contrast, β2, firing rate, and β3, firing rate varied broadly across the population, and their distributions were fairly symmetric around zero (Fig. 2a, b). In other words, neuronal response functions were, on average, quasi-linear. These results held true for individual monkeys, in each time window, and independently of the sign of the encoding (Supplementary Fig. 1). Similar results were also obtained for chosen value responses (Supplementary Fig. 2).

Fig. 2
figure 2

Quasi-linear coding of offer values, population analysis (N=447). a Quadratic term. Each data point in the scatter plot represents one response. The x-axis and y-axis represent β2, firing rate and β2, ntrials CDF, respectively. The dotted line represents the identity line, and the responses illustrated in Fig. 1 are highlighted. The histogram recapitulates the distribution for β2, firing rate. Since low offer values were always over-represented in the experiments, generally β2, ntrials CDF < 0. In contrast, measures for β2, firing rate were broadly scattered above and below zero (see histogram). b Cubic term. Same conventions as in a. Generally, β3, ntrials CDF > 0. In contrast, measures for β3, firing rate were broadly scattered above and below zero. Notably, on average across the population, measures for β2, firing rate were close to, but significantly above zero (mean(β2, firing rate) = 0.28; p < 10-6, t-test). Conversely, measures for β3, firing rate were close to, but significantly below zero (mean(β3, firing rate) = −1.42; p < 10−12, t-test). In both cases, the deviance from zero measured for β•, firing rate was in the direction opposite to that observed for the corresponding β•, ntrials CDF, indicating that tuning functions did not match ntrialsCDF averaged across sessions. We return to these deviances later in the article

Range adaptation is corrected within the decision circuit

As previously shown, offer value cells undergo range adaptation (Supplementary Fig. 3a–c)6. Linear tuning implies that any given value interval is allotted the same activity interval in the neuronal representation. Range adaptation ensures that the full activity range is always available to represent the range of values offered in the current context. Thus range adaptation seems to provide an efficient representation for offer values. However, range adaptation also poses a computational puzzle9 illustrated in Fig. 3a, b. In essence, current models assume that binary economic decisions are made by comparing the firing rates of two neuronal populations encoding the subjective values of the offered goods25,26,27,28,29. If so, by varying the ranges of the two offers one could impose any indifference point (an arbitrary choice bias).

Fig. 3
figure 3

Range adaptation is corrected within the decision circuit. a, b Uncorrected range adaptation would induce arbitrary choice biases. Panel a shows the schematic response functions of two neurons encoding the offer value A (left) and the offer value B (right). Panel b shows the resulting choice patterns under the assumption that decisions are made by comparing the firing rates of these two cells. We consider choices in two conditions, with the range ΔA = [0 2] kept constant. When ΔB = [0 5], the firing rate elicited by offer 1 A is between that elicited by offers 2B and 3B (ρ = 2.5). When ΔB = [0 10], offer value B cells adapt to the new value range. Now offer 1 A elicits the same firing rate as offer 5B (ρ = 5). Thus if range adaptation is not corrected, changing either value range induces a choice bias. Importantly, this issue would vanish if both neurons adapted to the same value range. However, experimental evidence indicated that each population of offer value cells adapts to its own value range 9. c Relative values measured in Exp.2. The two panels refer to the two animals. In each panel, the axes represent the relative value measured when Q A /Q B  = X (x-axis) and that measured when Q A /Q B  = 2X (y-axis). Each data point represents data from one session, and different symbols indicate different protocols (see legend). If decisions were made by comparing uncorrected firing rates, data points would lie along the red dotted line. In contrast, data points lie along the black dotted line (identity line). In other words, the relative values measured in the two trial blocks were generally very similar, indicating that range adaptation was corrected within the decision circuit. Panels a and b are reproduced from9

Exp.2 was conducted to test this prediction in controlled conditions. In each session, monkeys chose between two juices. Trials were divided in two blocks. Across blocks, we either halved or doubled the range of one of the two juices (2 × 2 design). For each trial block, Q A and Q B indicate the maximum quantities of juices A and B offered, respectively. Thus independently of other factors, the ratio Q A /Q B changed by a factor of two between blocks (Q A /Q B  = X or 2X). The experimental design controlled for juice-specific satiety and other possible sources of choice bias (see Methods).

We collected behavioral data in 220 sessions. In each session and each trial block, we measured the relative value of the juices. We then compared the measures obtained in the two trial blocks. According to the argument in Fig. 3a, b, the relative value measured when Q A /Q B  = X should be roughly twice that measured when Q A /Q B  = 2X. Contrary to this prediction, the relative values measured in the two trial blocks were generally similar (Fig. 3c). Pooling all sessions, the ratio of relative values measured for the two trial blocks was statistically indistinguishable from 1 (mean ratio = 1.006; p = 0.81, Wilcoxon signed rank test) and significantly below 2 (p < 10−37, Wilcoxon signed rank test). These results held true for each animal.

Range adaptation maximizes the expected payoff

Exp. 2 indicated that range adaptation is corrected within the decision circuit. We previously proposed a possible scheme for this correction. In essence, choice biases are avoided if the synaptic efficacies between offer value cells and downstream neuronal populations are rescaled by the value ranges9, 29. However, if this correction occurs, it is reasonable to question whether range adaptation benefits the decision process at all. The central result of this study is that range adaptation in offer value cells maximizes the expected payoff even if adaptation is corrected within the decision circuit. The theoretical argument is summarized here and detailed in the Supplementary Note, where we provide mathematical proofs.

Consider the general problem of choices between two goods, A and B. We indicate the quantities of A and B offered on a particular trial with q A and q B . Across trials, q A varies in the range [0, Q A ], while q B varies in the range [0, Q B ]. We assume linear indifference curves (Fig. 4a) and indicate the relative value with ρ. Choices can be described by a sigmoid surface (Fig. 4b). For each pair of offers, one of the two options provides a higher payoff, but in some trials the animal fails to choose that option (choice variability). Intuitively, this may happen because the neural decision circuit has a finite number of neurons, limited firing rates, trial-by-trial variability in the activity of each cell, and non-zero noise correlations.

Fig. 4
figure 4

Possible adaptation scenarios. a Indifference line. We indicate with q A and q B the quantities of good A and good B, respectively. Across trials, q A varies in the range [0, Q A ], while q B varies in the range [0, Q B ]. In the plane defined by q A and q B , we define the “indifference curve” as the set of offers for which the animal splits decisions equally between the two goods. We assume that the indifference curve is a straight line on this plane. Thus the relative value between the two goods, referred to as ρ, is defined by the slope of the indifference line (slope = 1/ρ). b Choice pattern. Given offers of goods A and B, a choice pattern can be represented as a sigmoid surface, in which the z-axis represents the likelihood of choosing good B. For each pair of offers, one of the two options provides a higher payoff, depending on whether it is above or below the indifference line. However, unless the sigmoid is a step function, in some trials the animal fails to choose that option (choice variability). Given a set of offers and a relative value, the expected payoff is an increasing function of the sigmoid steepness. c. Adaptation scenarios. In this cartoon, offer values in the current context vary in the range [0 10]. The light line represents a hypothetical scenario in which there is no range adaptation (see Results). The darker lines represent the scenarios with partial and complete range adaptation

Figure 4c illustrates the issue of interest. We assume that neuronal response functions are linear. Actual neurons always have a baseline firing rate (corresponding to a zero offer), but we assume that this activity does not contribute to the decision. Thus we focus on baseline-subtracted response functions. Let us consider a hypothetical scenario in which there is no adaptation. If so, neurons would have fixed tuning, corresponding to a linear response function defined on a very large value range. In contexts where the encoded good varies on a smaller range, neuronal firing rates would span only a subset of their potential activity range. In contrast, if neurons undergo complete range adaptation, firing rates span the full activity range in each behavioral context.

To understand how range adaptation in offer value cells affects the expected payoff, it is necessary to consider a specific decision model. That is, the question must be addressed under some hypothesis of how the activity of offer value cells is transformed into a decision. We examined the linear decision model30, 31 formulated as follows:

$$\begin{array}{ccccc} D = X^A - X^B \hfill \\ X^g = K_g \mathop {\sum}\nolimits_i {w_i^gr_i^g} \quad \quad \quad g = A,B\quad i = 1 \ldots n\end{array}$$
(1)

where \(r_i^g\) is the firing rate of an offer value g cell, \(w_i^g\) are decision weights, n is the number of cells associated with each juice, and \(K_g\) is the synaptic efficacy of offer value g cells onto downstream populations. Conditions D > 0 and D < 0 correspond to choices of goods A and B, respectively.

We model the firing rates of offer value cells as Poisson variables and we approximate noise correlations with their mean long-distance component30. In accord with experimental measures, we set the noise correlation to \(\xi = 0.01\) for pairs of neurons associated with the same good, and to zero for pairs of neurons associated with different goods30. Importantly, \(\xi\) does not depend on firing rates (Supplementary Fig. 4). We thus compute the probability of choosing juice A given offers \(q = (q_A,q_B)\), tuning slopes \(t = (t_A,t_B)\) and synaptic efficacies \(K = (K_A,K_B)\):

$${{P\left( {ch = A\left| {q,t,K} \right.} \right) = \Pr \left( {Z \ge - \frac{{K_A q_A t_A - K_B q_B t_B}}{{\sqrt {\chi \left( {K_A^2 q_A t_A + K_B^2 q_B t_B} \right)} }}\left| {Z\sim N(0,1)} \right.} \right)}}$$
(2)

where \(N(0,1)\) is the standard normal distribution and \(\chi = \xi {\rm{/}}4\).

Eq. 2 allows one to calculate the expected payoff. Indicating with \(\bar \nu\) the maximum possible firing rate, we demonstrate that the expected payoff is maximal when \(t_g = \bar \nu / Q_g\). This condition corresponds to complete range adaptation (Fig. 4c). In the symmetric case, defined by ρQ A =Q B (equal value ranges), the expected payoff is maximal when \(K_A{\rm{/}}K_B = 1\) and there is no choice bias. In the general, asymmetric case (unequal value ranges), the expected payoff is maximal when \(K_A{\rm{/}}K_B \approx \rho Q_A{\rm{/}}Q_B\). In this condition, there is a small choice bias that favors the larger value range and depends on χ.

Eq. 2 expresses the sigmoid surface describing choices. By computing the slope of this surface on the indifference line, we show that under optimal coding the steepness of the sigmoid is inversely related to the value ranges (Supplementary Note, Eq. 28).

Relation between choice variability and value range

The previous section summarizes a theory of optimal coding of offer values for economic decisions. The main prediction for linear response functions is that the slope of the encoding should be inversely proportional to the value range, as is indeed observed in the experiments (range adaptation; Supplementary Fig. 3d, e). The theory also makes another testable prediction. Consider experiments in which monkeys choose between two juices and value ranges vary from session to session. The sigmoid steepness should decrease as a function of the value ranges. To test this prediction, we examined 164 sessions from Exp.1. For each session, we computed the geometric mean value range Δ≡(ρ Q A Q B )1/2, and we obtained a measure for the sigmoid steepness (η) from the sigmoid fit. We thus examined the relation between η and Δ.

Figure 5a, b illustrates the fitted sigmoid obtained for each experimental session in our data set, separately for monkeys V and L. For each animal, sigmoid functions were aligned at the flex and ranked according to Δ. Notably, sigmoid functions with small Δ were generally steeper (large η), while sigmoid functions with large Δ were generally shallower (small η). In other words, there was a negative correlation between η and Δ. This correlation, summarized in a scatter plot (Fig. 6), was statistically significant in each animal (monkey V: corr coef = −0.41, p < 0.0005; monkey L: corr coef = −0.26, p < 0.02). Control analyses confirmed that this result was not due to differences between juice pairings (Supplementary Fig. 5) or to fluctuations in the relative value (Supplementary Fig. 6). Similar results were also obtained for data from Exp.2 (Supplementary Fig. 7).

Fig. 5
figure 5

Relation between sigmoid steepness and value range. a Monkey V (73 sessions). For each session, the sigmoid fit provided measures for ρ and η (Eq. 6), and we computed the geometric mean value range Δ. In this plot, different sigmoid functions are aligned at the flex (x-axis) and ranked based on Δ, from top (small Δ) to bottom (large Δ). For each sigmoid, the thick colored line (blue-green) depicts the result of the fit in a standard interval [−2 2]. The thin black line highlights the range of values actually used in the corresponding session. Different shades of color (from blue to green) indicate the ordinal ranking of sessions according to Δ. Notably, sigmoid functions at the bottom of the figure (larger Δ) were shallower (lower η). b Monkey L (91 sessions). Same format as in a

Fig. 6
figure 6

Relation between sigmoid steepness and value range, scatter plots. a, b. Panels a and b refer to monkey V (73 sessions) and monkey L (91 sessions), respectively. In each panel, the x-axis represents the geometric mean value range Δ ≡ (ρ Q A Q B )1/2, the y-axis represents the steepness of the sigmoid (η) and each data point represents one session. In both animals, the two measures were significantly and negatively correlated. In each panel, the black line represents the result of Deming’s regression (see Methods)

Neuronal responses are functionally rigid

We have shown that range adaptation maximizes the expected payoff under the assumption of linear response functions. Next we address a closely related question, namely whether (or in what sense) linear response functions are optimal in the first place. In the visual system, optimal coding is achieved if tuning functions match the cumulative distribution of the encoded stimuli14, 19. In the valuation system, the equivalent condition would occur if offer value responses matched the cumulative distribution of offered values. We already showed that this is not the case (Fig. 2). In retrospect, this finding is not surprising because a subject performing economic decisions is best served by response functions that maximize the expected payoff, which do not necessarily maximize information transmission. Thus what is the optimal response function for offer value cells?

The answer to this question depends on the joint distribution of offers and on the relative value of the two goods. For example, consider the case in which an animal chooses between goods A and B and ρ = 2. Good A is always offered in quantity 1, while good B is offered in quantities between 0 and 5 (Fig. 7a). We consider offer value B cells and we indicate with r B their firing rate. It is easy to see that the payoff is maximal if r B (x) = 0 when x < 2, r B (2) = 0.5, and r B (x) = 1 when x > 2, where x are quantities of juice B offered. Hence, the optimal response function is a step function with the step located at x = 2. Next consider the case in which quantities of both goods vary between 0 and 5, at least one of the two goods is always offered in quantity 1, and ρ = 2 (Fig. 7b). Again, the optimal response function for offer value B cells is r B (x) = 0 when x < 2, r B (2) = 0.5, and r B (x) = 1 when x > 2. For offer value A cells, the optimal response function is r A (0) = 0, r A (1) = 0.5, and r A (x) = 1 when x > 1. Thus for both goods, the optimal response function is a step function. Analogously, if offer types are the same but ρ = 3 (Fig. 7c), the optimal response function for offer value B cells is a step function with the step located at x = 3.

Fig. 7
figure 7

Optimal response functions. a One good offered in fixed quantity (ρ = 2). Gray dots represent offer types presented in the session and the dotted line represents the indifference line. Good A is always offered in quantity 1 while good B varies in the range [0 5]. Optimal response functions are shown in the lower panels. b Idealized experimental session (ρ = 2). For each good, quantities vary in the range [0 5], but in each offer type at least one good is offered in quantity 1. Lower panels show the optimal response functions (ORF, step functions). c Idealized experimental session (ρ = 3). d Optimal mean response functions. The histogram represents the distribution of ρ/Q B , where ρ is the relative value and Q B is the maximum quantity of juice B offered. Lower panels show the mean optimal response functions, mean(ORF). For offer value B, the response function is computed as the cumulative distribution function for ρ/Q B . e Idealized session with uniform distribution and equal value ranges (a.u.). Lower panels show the corresponding optimal response functions (ORFuniform). Note that the curvature of ORFuniform is in the same direction as that observed on average in the neuronal population (Fig. 2a, histogram)

The scenarios depicted in Fig. 7b, c are similar to those occurring in Exp.1. Indeed our sessions always included forced choices for both juices. Furthermore, in 96% (200 out of 208) of our sessions, when both juices were offered, at least one of them was offered in quantity 1 (Supplementary Fig. 8). Thus in Exp.1, optimal response functions for offer value cells would have been step functions, not linear functions. Our neuronal data clearly belied this prediction (Fig. 2). In other words, our results indicate that the functional form of offer value cells did not adapt to maximize the payoff in each session. To further examine this point, we ran two additional analyses.

First, we entertained the hypothesis that the functional form of offer value cells might adapt on a longer time scale, over many sessions. However, we found that the mean optimal response function was a fairly sharp sigmoid (Fig. 7d), contrary to our observations (Fig. 2). Second and most important, we recognized that neuronal responses examined in Fig. 2 were originally identified through a variable selection analysis that only considered linear response functions4 (see Methods). This effectively imposed a bias in favor of linearity. To eliminate this bias, we repeated the variable selection procedures including in the analysis all the variables discussed in this study. These included the cumulative distribution function of offer values (ntrialsCDF), the optimal responses in each session (step functions) and the mean optimal response function across sessions (Methods). The results confirmed previous findings: variables offer value, chosen value and chosen juice still provided the highest explanatory power. In particular, the explanatory power of linear offer value variables was significantly higher than that of each of the new variables (Supplementary Table 1).

In the final analysis of this section, we considered whether the response functions observed experimentally would maximize the expected payoff for other possible joint distributions of offers. To do so, we generalized the theory of optimal coding by relaxing the assumption of linear response functions (Supplementary Note, Section 6). One interesting candidate was the symmetric uniform distribution (Fig. 7e). We calculated the optimal response functions given this distribution (ORFuniform) and we found that they are quasi-linear and slightly convex (Fig. 7e). Notably, this non-linearity is in the same direction observed in Fig. 2a (histogram). We then repeated the variable selection analysis including variables based on ORFuniform. Interestingly, neuronal responses best explained by ORFuniform variables were more numerous than those best explained by linear offer value variables (Fig. 8). As in previous studies4, we used two procedures for variable selection, namely stepwise and best-subset (Methods). Both procedures identified variables offer A ORFuniform, offer B ORFuniform, chosen value and chosen juice as providing the maximum explanatory power (Fig. 9). However, a post-hoc analysis indicated that the explanatory power of ORFuniform variables was statistically indistinguishable from that of linear offer value variables (Supplementary Table 2).

Fig. 8
figure 8

Population analysis of neuronal responses. Each neuronal response that passed an ANOVA criterion was regressed against each variable. If the regression slope differed significantly from zero, the variable was said to explain the response (see Methods). a Explained responses. Rows and columns represent time windows and variables, respectively. In each location, the number indicates the number of responses explained by the corresponding variable. For example, in the post-offer time window, the variable offer A (linear response function) explained 78 responses. The same numbers are also represented in grayscale. Each response could be explained by more than one variable. Thus each response might contribute to multiple bins in this panel. b Best fit. In each location, the number indicates the number of responses for which the corresponding variable provided the best fit (highest R 2). For example, in the post-offer time window, offer A (linear response function) provided the best fit for 7 responses. The same numbers are also represented in grayscale. In this panel, each neuronal response contributes at most to one bin. Qualitatively, the dominant variables appear to be offer A ORFuniform, offer B ORFuniform, chosen value and chosen juice. Indeed the variable selection procedures identified these variables as the ones with the highest explanatory power (Fig. 9)

Fig. 9
figure 9

Variable selection analysis. a Stepwise selection. The top panel is as in Fig. 8b. At each iteration, the variable providing the maximum number of best fits in a time window was selected and indicated with a * in the figure. All the responses explained by the selected variable were removed from the pool and the procedure was repeated on the residual data set. Selected variables whose marginal explanatory power was <5% were eliminated (Methods) and indicated with a • in the figure. In the first four iterations, the procedure selected variables chosen juice, chosen value, offer A ORFuniform and offer B ORFuniform, and no other variables were selected in subsequent iterations. b Percent of explained responses. The y-axis represents the percentage of responses explained at the end of each iteration. The total number of task-related responses (1378) corresponds to 100%. The number of responses explained by at least one of the variables included in the analysis (1245/1378=90%) is indicated with a dotted line

In conclusion, the variable selection analyses confirmed that offer value responses were quasi-linear and thus suboptimal given the joint distributions of offers in our experiments. Furthermore, offer value responses were indistinguishable from optimal responses functions calculated assuming a uniform joint distribution of offers. We elaborate on the significance of this finding in the Discussion.

Cost of functional rigidity and benefit of range adaptation

The tuning of offer value cells is functionally rigid (quasi-linear) but parametrically plastic (range adapting with optimal gain). In terms of the expected payoff, functional rigidity ultimately imposes some cost, while range adaptation ultimately yields some benefit. We sought to quantify these two terms in our experiments.

For each session of Exp.1, we focused on strictly binary choices (i.e., we excluded forced choices). On the basis of the relative value of the juices (ρ), we computed for each trial the chosen value (i.e., the payoff) and the max value, defined as the higher of the two values offered in that trial. We also defined the chosen valuechance as the chosen value expected if the animal chose randomly between the two offers. Hence, chosen valuechance = (offer value A+offer value B)/2. For each session we defined the fractional lost value (FLV) as:

$${\rm{FLV}} = {\rm{fractional}}\,{\rm{lost}}\,{\rm{value}} = \frac{{\left\langle {{\rm{max}}\,{\rm{value - chosen}}\,{\rm{value}}} \right\rangle }}{{\left\langle {{\rm{max}}\,{\rm{value - chosen}}\,{\rm{value}}_{{\rm{chance}}}} \right\rangle }}$$
(3)

where brackets indicate an average across trials. Under normal circumstances, FLV varies between 0 and 1. Specifically, FLV = 0 if the animal always chooses the higher value (chosen value = max value) and FLV = 1 if the animal always chooses randomly (chosen value = chosen valuechance). Thus FLV quantifies the fraction of value lost to choice variability. For each session, we also computed the percent error, defined as the percent of trials in which the animal chose the lower value. We examined these metrics across sessions.

The percent error varied substantially from session to session, between 0 and 23% (Fig. 10a). On average across sessions, mean(percent error)=8.7%. The FLV also varied substantially across sessions, between 0 and 0.24 (Fig. 10b). On average across sessions, mean(FLV)=0.05. Importantly, this estimate provides an upper bound for the value lost by the animal due to suboptimal tuning functions, because other factors might also contribute to choice variability. Hence, the cost of functional rigidity in the coding of offer values may be quantified as ≤ 0.05.

Fig. 10
figure 10

Analysis of fractional lost value. a Distribution of percent errors across sessions. On average across sessions, mean(percent errors)=8.7%. b Distribution of fractional lost value across sessions. On average across sessions, mean(FLV) = 0.054. c Expected vs. actual fractional lost value. Each data point represents one session. The expected fractional lost value (EFLV; y-axis) was almost identical to the fractional lost value (FLV; x-axis). On average across sessions, mean(EFLV) = 0.055. d Effects of decreasing the steepness of the sigmoid. The range on the x-axis is realistic for our experiments. The blue line is obtained with the mean sigmoid steepness measured in Exp.1 (mean(η)). The red and yellow lines were obtained by dividing mean(η) by 2 and 10, respectively

Because we cannot observe decisions in the absence of neuronal adaptation, quantifying the benefits of range adaptation requires a simulation. We proceeded as follows. For each session and for each trial, the sigmoid fit provided the probability that the animal would choose juice B (P ch=B ; see Eq. 5) or juice A (P ch=A =1−P ch=B ). Thus in each trial the expected chosen value (i.e., the expected payoff) was:

$${\rm{E}}\left( {{\rm{chosen}}\,{\rm{value}}} \right){\rm{ = }}P_{ch = A} \, {\rm{offer}}\,{\rm{value}}\,{\rm{A + }}P_{ch = B} \, {\rm{offer}}\,{\rm{value}}\,{\rm{B}}$$
(4)

For each session, we computed the expected fractional lost value (EFLV) by substituting the E(chosen value) for the chosen value in Eq. 3. Importantly, we verified that EFLV provided a good estimate for the actual FLV (Fig. 10c).

To address the question of interest, we reasoned along the lines of Fig. 4c, where the absence of adaptation is approximated with a scenario in which neurons adapt to a very large value range. We already showed that increasing the value range decreases the sigmoid steepness (Fig. 6). Thus we examined how reducing the sigmoid steepness would affect the EFLV. We found that the effects were large. For example, when we halved the sigmoid steepness (ηη/2), we obtained mean(EFLV) = 0.15; when we divided the sigmoid steepness by ten (η → η/10), we obtained mean(EFLV)=0.55 (Fig. 10d). Hence, the benefit of range adaptation, while difficult to quantify exactly, is clearly very high.

To summarize, the benefit of range adaptation outweighs the cost of functional rigidity. Our analyses suggest that a quasi-linear but range-adapting coding of offer values is sufficient to ensure close-to-optimal choice behavior.

Discussion

Sensory neurons are optimally tuned for perception if they transmit maximal information about the stimuli. In contrast, offer value neurons are optimally tuned for economic decisions if they ensure maximal expected payoff. In this framework, we examined the activity of offer value cells in OFC. These neurons are believed to provide the primary input for economic decisions. We showed that their tuning is functionally rigid (linear responses) but parametrically plastic (range adaptation with optimal gain). We also showed that range adaptation is corrected within the decision circuit to avoid arbitrary choice biases. Critically, range adaptation ensures optimal tuning even considering this correction. Confirming theoretical predictions, we showed that choice variability is directly related to the range of values offered in any behavioral context. Finally, we showed that the benefit of range adaptation outweighs the cost of functional rigidity. Importantly, our theoretical results were derived using a linear decision model (Eq. 1)30, 31. Future work should extend this analysis to other decision models25, 27, 29.

On average, offer value responses presented a small but significant departure from linearity (Fig. 2). Their convexity closely resembled that predicted for optimal response functions under a uniform joint distribution (Fig. 7e), although in a direct comparison the explanatory power of ORFuniform functions was not significantly higher than that of strictly linear functions. Thus future work should address this point and consider other joint distributions that might explain neuronal responses in OFC. Nonetheless, the quasi-linear nature of value coding in OFC is noteworthy. We previously showed that the activity of neurons associated with one good does not depend on the identity or value of the other good offered in the same trial32. With respect to range adaptation, we also showed that each neuron adapts to its own value range, independently of the range of values offered for the other good9. One implication of linear responses (or optimal response functions under a symmetric uniform distribution) is that the activity of neurons associated with one particular good does not depend on the distribution of values offered for the other good, or on the relative value of the two goods. Thus quasi-linearity can be seen as yet another way in which neurons associated with one particular good are blind to every aspect of the other good. This blindness, termed menu invariance, guarantees preference transitivity33, 34, which is a fundamental trait of economic behavior. It is tempting to speculate that quasi-linear coding might have been selected in the course of evolution because it facilitates transitive choices.

Adaptive coding has been observed in numerous brain regions that represent value-related variables including the amygdala35, anterior cingulate cortex36, and dopamine cells37,38,39. Independently of the specific contribution of each area to behavior, adaptation necessarily poses computational challenges analogous to the coding catastrophe discussed in sensory systems9,10,11. In essence, uncorrected adaptation makes firing rates intrinsically ambiguous. Thus neuronal adaptation at any processing stage must be corrected at later stages40 or ultimately results in impaired behavioral performance12, 41. With respect to offer value cells in OFC, we previously proposed that choice biases potentially introduced by range adaptation are corrected in the synapses between these neurons and downstream populations9, 29. The theory of optimal coding developed here makes this same prediction, which should be tested in future experiments. Interestingly, framing42, 43 and anchoring44 effects documented in behavioral economics qualitatively resemble adaptation-driven choice biases, although they are quantitatively more modest. In principle, these effects could be explained if synaptic rescaling trailed neuronal range adaptation. Similar mechanisms have been hypothesized in the visual system to explain illusions and aftereffects11, 12.

The rationale for this study rests on the assumption that offer value cells in OFC provide the primary input for the neural circuit that generates economic decisions. Support for this assumption comes from lesion studies45,46,47, from the joint analysis of choice probability and noise correlation30 and from the relation between choice variability and value range shown here. Indeed, current neuro-computational models of economic decisions embrace this view26, 29, 48,49,50,51. However, causal links between the activity of offer value cells and the decision have not yet been demonstrated with the gold-standard approach of biasing choices using electrical or optical stimulation. Future work should fill this important gap.

Methods

Experimental procedures

All experimental procedures conformed to the NIH Guide for the Care and Use of Laboratory Animals and were approved by the Institutional Animal Care and Use Committees at Harvard University (Exp.1) and Washington University in St Louis (Exp.2). No subject randomization or blinding during data analysis was used.

The procedures for Exp.1 have been described previously4. Briefly, one male (V, 9.5 kg) and one female (L, 6.5 kg) rhesus monkey participated in the experiment. Animals sat in an electrically insulated enclosure with the head restrained, and a computer monitor was placed in front of them at 57 cm distance. In each session, the monkey chose between two juices, labeled A and B, with A preferred. At the beginning of each trial, the animal fixated a center position on the monitor (Fig. 1a). After 0.5 s, two sets of colored squares appeared on the two sides of the center fixation. The two sets of squares represented the two offers, with the color associated with a particular juice type and the number of squares indicating the juice quantity. The animal maintained center fixation for a randomly variable delay (1–2 s), at the end of which the center fixation point was extinguished (go signal). The animal revealed its choice by making a saccade towards one of two targets located by the offers, and maintained peripheral fixation for an additional 0.75 s before the chosen juice was delivered. While animals performed in the task, we recorded the activity of individual neurons from the central OFC (see below). The range of quantities offered for each juice remained fixed within a session, while the quantity offered on any given trial varied pseudo-randomly. Across sessions, we used various juice pairs and various quantity ranges for the two juices. The minimum quantity was always zero drops (forced choice for the other juice), while the maximum quantity varied from session to session between 2 and 10 drops.

In Exp.2, animals performed essentially the same task, except that sessions were divided into two blocks of trials. One male (B, 9.0 kg) and one female (L, 6.5 kg) rhesus monkey participated in the experiment. The task was controlled through custom-written software based on Matlab (MathWorks)52, 53 and gaze direction was monitored with an infrared video camera (Eyelink, SR research). The trial structure was the same as Exp.1, except that the initial fixation lasted 1.5 s. Each session included two trial blocks. The minimum offered quantity for each juice was always set to zero (forced choice for the other juice). The maximum quantity (and thus the range) varied from session to session and from block to block. In the second block, we either halved or doubled the range for one juice (A or B) while keeping the other range unchanged. This procedure resulted in a 2×2 design. Each block included 110–260 trials. In each block, an “offer type” was defined by a pair of offers (e.g., [1A:3B]); a “trial type” was defined by an offer type and a choice (e.g., [1A:3B, B]). The relative value of the two juices was computed from the indifference point (see below).

In principle, changes in relative value could arise from factors other than the value range. Exp.2 was designed to minimize three potential sources of choice bias. First, in previous work, we often noted that the relative value of any two juices tends to increase over the course of each day, presumably because animals become less thirsty. To deconfound changes in relative value due to changes in value range from this effect, we alternated sessions in which we increased or decreased the range of either juice A or juice B. The number of sessions for each of the 4 possible combinations was not-predetermined with a statistical method but was comparable (ΔA→2ΔA, 61 sessions; ΔB→2ΔB, 62 sessions; 2ΔA→ΔA, 49 sessions; 2ΔB→ΔB, 48 sessions). Second, within each trial block, monkeys might experience juice-specific satiety or diminishing marginal returns. Thus to isolate the behavioral effects of manipulating the value range, we ensured that in both trial blocks the animal drank the same relative amounts of the two juices. For example, if the animal drank juice A and juice B in quantity ratio 3:2 in the first block, we kept the same ratio 3:2 in the second block (see below). Third, we previously found that, all other things equal, monkeys tend to choose on any given trial the same juice they chose in the previous trial (choice hysteresis)5. If the relative number of trials in which the animal chooses a particular juice varies from one block to the other, choice hysteresis could introduce a systematic bias. To avoid this confound, we ensured that the relative number of choices was the same in the two trial blocks.

The relative number of choices and the relative amount drunk by the animal for each juice were controlled by adjusting the frequency with which each offer type was presented. Specifically, offers were presented pseudo-randomly in mini-blocks of 20–30 trials. To fine-tune the balance between juice A and B, we kept track of the monkey’s choices online. If the choice ratio or the relative amount of juice changed in the second block, the imbalance was corrected by adding forced choices of one of the two juices.

Analysis of behavioral data

Monkeys’ choices generally presented a quality-quantity trade-off. If the two juices were offered in equal amounts, the animal would generally choose juice A (by definition). However, if sufficiently large quantities of juice B were offered against one drop of juice A, the animal would choose B. Choices were analyzed separately in each session (Exp.1) or in each trial block (Exp.2). The “choice pattern” was defined as the percentage of trials in which the animal chose juice B as a function of the log quantity ratio log(q B /q A ), where q A and q B indicate the quantities of juices A and B. Each choice pattern was fitted with a sigmoid function:

$$\begin{array}{*{20}{l}} {P_{ch = B}} = {\mathop {\int}\limits_{ - \infty }^X {N(0,1)\,\mathrm{d}\it t} } \hfill \\ {\quad X} = {a_0 + a_1{\rm{log}}(q_B/q_A)} \hfill \end{array}$$
(5)

where P ch=B is the probability of choosing juice B and \(N(0,1)\) is the standard normal distribution. The fit was done with Matlab function glmfit and link=probit. From the fitted parameters a 0 and a 1 we defined the relative value ρ and the steepness of the sigmoid η as follows:

$$\begin{array}{*{20}{l}} {\rho = {\rm{exp}} \left( { - a_0{\rm{/}}a_1} \right)} \hfill \\ {\eta = a_1} \hfill \end{array}$$
(6)

Given a set of offers, the expected payoff is directly related to η. In some simulations (Fig. 10), we reduced the sigmoid steepness (e.g., a 1  → a 1 /10) while keeping the relative value constant (a 0 /a 1  → a 0 /a 1 ).

Exp.1 included 208 sessions. However, in some cases the choice patterns were saturated (i.e., the animal did not split decisions for any offer type, a situation referred to as “perfect separation”). In these cases, the sigmoid fit did not provide a reliable measure for η. Thus the analysis shown in Fig. 5 and Fig. 6 included only sessions for which choice patterns were not saturated (164 sessions).

In Exp.1, the minimum quantity offered for each juice was always 0, and we indicate maximum quantities with Q A and Q B . We usually set Q A and Q B to approximately satisfy ρ Q A  = Q B (symmetric condition). However, this relation did not hold strictly, partly because the relative value ρ was determined by the animal and fluctuated from session to session. Thus to test a theoretical prediction on choice variability and value range, we computed the geometric mean value range Δ ≡ (ρ Q A Q B )1/2 and we examined the relation between η and Δ. Since errors of measure affected both measures, standard regressions could not be used. We thus used Deming’s regressions54. Variance ratios \(\lambda\) were computed through error propagation as follows:

$$\lambda = \frac{{{\rm{var}} \left( \eta \right)}}{{{\rm{var}} \left( {\left( {\rho Q_AQ_B} \right)^{1/2}} \right)}} = \frac{{\left( {\delta \eta } \right)^2}}{{Q_AQ_B \left( {\delta \left( {\rho ^{1/2}} \right)} \right)^2}} = \frac{{4a_1^4 \left( {\delta a_1} \right)^2}}{{\rho Q_AQ_B \left( {a_0\delta a_1 - a_1\delta a_0} \right)^2}}$$
(7)

where \(\delta \rho\), \(\delta \eta\), \(\delta a_0\), and \(\delta a_1\) are errors on the respective measures, and \(\delta a_0\) and \(\delta a_1\) are obtained as standard errors from the logistic regressions.

The relation between η and Δ was also analyzed using alternative definitions for Δ including the simple mean Δ≡(ρ Q A +Q B )/2 and the log geometric mean Δ ≡ log(ρ Q A Q B )/2, adjusting variance ratios accordingly. All variants of the analysis provided very similar results.

One concern was whether the relation between choice variability and value range (Fig. 6) was direct or reflected some other dependency. We considered two issues. First, Fig. 6 includes sessions with different juice pairs, with different typical values of ρ. In principle, choice variability could vary from juice pair to juice pair in a way that induces the relation observed in Fig. 6. Second, for any given juice pair, value range (Δ), relative value (ρ) and sigmoid steepness (η) are all inter-related by definition (Eq. 6) and because value ranges were often chosen non independently of ρ (in many sessions we set Q A =3 and chose Q B such that Q B ρ Q A ). Thus the relation between η and Δ (Fig. 6) might simply reflect fluctuations in ρ. To address these concerns, we divided sessions in different sets based on the animal and on the juice pair. We considered only sets with ≥ 5 sessions, and our data included 12 such sets (6 from each monkey). We then analyzed each set of sessions separately. First, we verified that the relation between Δ and η held true for individual juice pairs (Supplementary Fig. 5). Second, to assess whether this relation simply reflected fluctuations in ρ, we used multilinear regression. For each set, we regressed η on ρ and then on Δ in a stepwise way. The coefficient obtained from the second regression (β η ) essentially quantified the correlation between η and Δ not explained by fluctuations of ρ.

Analysis of neuronal data

Neuronal data were collected in Exp.1. The data set included 931 cells from central OFC (area 13). The number of cells recorded was not pre-determined using statistical methods. Firing rates were analyzed in seven time windows aligned with different behavioral events (offer, go, juice). A “neuronal response” was defined as the activity of one cell in one time window as a function of the trial type. Neuronal responses were computed by averaging firing rates across trials for each trial type.

In a previous study4, we conducted a series of analyses to identify the variables encoded in this area. First, we submitted each neuronal response to a 3-way ANOVA (factors: position x movement direction x offer type), and we imposed a significance threshold p < 0.001. In total, 505 (54%) neurons passed the criterion for factor offer type in at least one time window. Pooling neurons and time windows, 1379 neuronal responses passed the ANOVA criterion, and subsequent analyses were restricted to this data set. Second, we defined a large number of variables including variables related to individual juices (offer value A, offer value B, chosen value A, chosen value B), other value-related variables (chosen value, other value, value difference, value ratio, total value), number-related variables (chosen number, other number, and so on) and choice-related variables (chosen juice). We performed a linear regression of each response onto each variable. If the regression slope differed significantly from zero (p < 0.05), the variable was said to “explain” the response. Because variables were often correlated with each other, the same neuronal response was often explained by more than one variable. Thus for each response we also identified the variable that provided the best fit (i.e., the highest R 2). Third, we proceeded with a variable selection analysis to identify a small subset of variables that best explained the neuronal population. We adapted two methods originally developed for multi-linear regressions in the presence of multi-collinearity, namely stepwise and best-subset55, 56. In the stepwise method, we identified the variable and time window that provided the highest number of best fits, and removed from the data set all the responses explained by that variable. We then repeated the procedure until when the number of responses explained by additional variables was < 5%. While intuitive, the stepwise procedure did not guarantee optimality. In contrast, the best-subset procedure (an exhaustive procedure) guaranteed optimality. In this case, for n = 1, 2, 3,… we computed the number of responses and the total R2 explained by each subset of n variables. The best subset was identified as that which explained the highest number of responses or the maximum total R 2. In the original study, the stepwise and best-subset procedures identified the same 4 variables, namely offer value A, offer value B, chosen value and chosen juice. Fourth, we conducted a post-hoc analysis. While the explanatory power of variables included in the best subset was (by definition) higher than that of any other subset of variables, the procedure did not guarantee that this inequality was statistically significant. The post-hoc analysis addressed this issue by comparing the marginal explanatory power of each variable in the best subset with that of other, non-selected variables (binomial test). In the original study and subsequent work32, 57, 58, we found that the explanatory power of offer value A, offer value B, chosen value and chosen juice was statistically higher than that of any other variable.

The results of these analyses provided a classification for neuronal responses. Specifically, each neuronal response was assigned to the variable that explained the response and provided the highest R 2. Thus we identified 447 offer value, 370 chosen value, and 268 chosen juice responses. Subsequent analyses of the same data set demonstrated range adaptation6 and quantified noise correlations30.

Previous work suggested that the encoding of value in OFC was close to linear4, 6. In this study, we conducted more detailed analyses to quantify how neuronal responses departed from linearity. Furthermore, we compared the curvature measured in neuronal responses with that measured for the cumulative distribution of the encoded values. The cumulative distribution of encoded values was taken as a benchmark by analogy with sensory systems14, 19. For each offer value response, we identified the value levels present in the session (i.e., the unique values). We then calculated the corresponding number of trials, divided it by the total number of trials in the session, and computed the corresponding cumulative distribution function (ntrialsCDF). For each value level, we also averaged the firing rates obtained across trials. The range of offered values and the range of firing rates varied considerably from session to session and across the population (Supplementary Fig. 3). Thus to compare the results obtained for different responses, we normalized offer value levels, neuronal firing rates, and ntrialsCDF. Value levels were simply divided by the maximum value present in the session. For example, normalized values for juice B were defined as q B /Q B . For neuronal firing rates, we performed the linear regression y = a0 + a1 x, where x are normalized value levels. Firing rates were thus normalized with the transformation fr → (fr−a0)/a1. Similarly, for ntrialsCDF, we performed the linear regression y = b0 + b1 x, and we normalized them with the transformation ntrialsCDF → (ntrialsCDF−b0)/b1. Examples of normalized firing rates and normalized ntrialsCDF are illustrated in Fig. 1d, g. To estimate the overall curvature, we fit each normalized response function with a 2D polynomial and compared the quadratic coefficient (β2) with that obtained from fitting the corresponding normalized ntrialsCDF. To estimate the overall S shape, we fit the normalized response function with a 3D polynomial and compared the cubic coefficient (β3) with that obtained for the corresponding normalized ntrialsCDF. These measures were used for the population of offer value responses (Fig. 2). Separately, we repeated these analyses for the population of chosen value responses (Supplementary Fig. 2).

Theoretical considerations indicated that optimal response functions in our experiments would have been step functions (Fig. 7b, c), contrary to our observations. One concern was whether empirical response functions were optimal on average across sessions, if not for any particular session. Notably, the relative value ρ varied from session to session, largely because we used a variety of different juice pairs. Recent work indicates that the same neurons are associated with different juices in different sessions, with remapping dictated by the preference ranking58. In any given session, the optimal offer value B response function would have been a step function with step at x = ρ. However, since ρ varied from session to session, the resulting optimal response function would have been more gradually increasing. In fact, if the distribution of ρ/Q B across session had been uniform in the interval [0 1], the mean optimal response for offer value B neurons would have been linear. An important caveat is that the rationale that would justify linear offer value B responses did not hold for offer value A responses. In any case, we examined the distribution of ρ/Q B (Fig. 7d). For offer value B, the mean optimal response function was computed as the cumulative distribution function for ρ/Q B .

Importantly, the data sets included in Fig. 2 and Supplementary Fig. 3 were originally selected based on a procedures that only considered linear encoding of value4. To assess the functional form of neuronal responses without bias in favor of linearity, we repeated the variable selection procedures described above including in the analyses all the variables defined in this study. The variable selection analysis was still based on linear regressions. However, firing rates were regressed on several non-linear value variables (response functions). The analysis included linear response functions (offer A, offer B), cumulative distribution functions of offer values (offer A ntrialCDF, offer B ntrialCDF), variance-equalized versions of the cumulative distribution functions of offer values (offer A ntrial CDF VE, offer B ntrial CDF VE; see below), optimal response functions (offer A ORF, offer B ORF), mean optimal response functions across sessions (offer A mean(ORF), offer B mean(ORF)), and optimal response functions obtained under the assumption that the joint distribution of offer values is uniform and symmetric (offer A ORFuniform, offer B ORFuniform; see below). In addition, the analysis included chosen value, the cumulative distribution function for chosen values (chosen value ntrialCDF), a variance-equalized version of the cumulative distribution function for chosen values (chosen value ntrialCDF VE), and variables other value, value difference, value ratio, total value and chosen juice (20 variables total).

The last part of Supplementary Note generalizes the theory of optimal coding by relaxing the assumption of linear response functions. In principle, this allows one to compute the optimal response functions for any joint distribution of offers. Optimal response functions for the symmetric uniform distribution (ORFuniform) were computed numerically in Matlab.

We restricted the variable selection analysis to responses that passed the ANOVA criterion (N=1379, see above) and we regressed each neuronal response on each variable. For variance-equalized variables, we first computed the square root of the firing rates and then performed the linear regressions59, 60. For variable selection we used the two procedures described above, and we refer to previous work for additional details4. The best-subset method can be based either on the number of responses or on the total R2 explained by each subset. In previous studies, the two metrics provided similar results. Here we found that the results obtained based on the total R 2 were more robust, probably because the present analysis aimed at providing a better fit for the neuronal responses as opposed to explaining more responses. The best-subset procedures and post-hoc analyses were performed on collapsed variables4. The variable selection analyses were conducted twice. First, we included all the variables described above except those based on ORFuniform. In this case, linear response functions performed significantly better than all the other variables (Supplementary Table 1). Second, we added in the analysis the variables based on ORFuniform. In this case, the performance of ORFuniform variables was better than, but statistically indistinguishable from that of linear variables. It was significantly better than that of all the other variables (Supplementary Table 2). Both analyses are described in the Results. Figures 8 and 9 refer to the analysis that included all 20 variables.

Code availability

The code used for data analysis and simulations is available from the corresponding author upon reasonable request.

Data availability

The data that support the findings of this study are available from the corresponding author upon reasonable request.