Full text
OPTIMAL DECISION MAKING FOR TEMPORALLY EXTENDED ACTIONS Roberto Medina Dissertation presented to obtain the Ph.D degree in Neuroscience Instituto de Tecnologia Química e Biológica António Xavier | Universidade Nova de Lisboa Oeiras, November, 2019
OPTIMAL DECISION MAKING FOR TEMPORALLY EXENDED ACTIONS Roberto Medina Dissertation presented to obtain the Ph.D degree in Neuroscience Instituto de Tecnologia Química e Biológica António Xavier | Universidade Nova de Lisboa Research work coordinated by: Oeiras, November, 2019 Supervisor: Alfonso Renart PhD
Aknowledgements: In first place I would like to acknowledge and thank Dr. Alfonso Renart for providing an environment for scientific questioning that nourished my mind and resulted in an investigation beyond anything I had previously envisioned. I would also like to thank my thesis committee, Dr. Leopoldo Petreanu and Dr. Joe Paton, the members of the jury, my collaborators who exponentially potentiated this work, Dr. Gautam Agarwal, Dr. Jose L. Pardo-Vazquez, Juan Castineiras, Miguel Bengala, and Dr. Zach Mainen, Dr. Fatima Husain for believing in me and setting me on this path, my dear friends John Connor and Rami Abuhabsah for graciously letting me crash in their living room at the humble start of my scientific journey, Dr. Luis Moreira for listening and giving me feedback on this work to exhaustion, Dr. Gonçalo Lopes for Bonsai and teaching me how to measure behavior, my lab, my INDP 2011 classmates, and a special thank you to my partner and office neighbor Dr. Simone Lackner for innumerable scientific discussions, her feedback and encouragement at any and all times, and ultimately helping me mature as a scientist. Obrigado. iii
For Nidia, Kimberly, Tony, Gloria and Roberto. iv
Abstract: The application of the scientific method to the study of behavior has gone beyond the realm of philosophy and psychology, requiring modern neuroscientists to understand neurobiology, statistics, and even computer science. Neurobiology explains that neural systems in all animals, including humans, were evolved to meet specific environmental demands in order for the organism to survive, mate, and produce viable offspring. However, the complexity of studying behavior in natural environments has forced neuroscientists to construct reduced artificial environments where human and non-human animals alike can be trained to respond to calibrated stimuli. For example, a conventional approach to investigate thresholds for discrimination of 2 distinct stimuli has been to ask subjects to press one of two buttons according to the identity of the presented stimulus. In order to study the process of committing to a choice from online behavior, in this thesis we expand the standard 2-choice psychophysical task, replacing the traditional two response buttons by an arena that must be traversed in order to reach one of two distally separated targets. This modification and the use of time-varying stimuli to signal the correct target allowed us to observe that difficult choices can elicit complex choice trajectories that meander between the two targets in a stimulus correlated manner. We show that this behavior is also performed by a reinforcement learning agent that moves in order to maximize long term rewards while considering movement and time constraints. The agent estimates what she believes to be the correct target by accumulating stimulus evidence, and subtracts from the associated reward for answering correctly a cost for moving and a cost for waiting. The resulting cost function eventually commits the agent to a target, with the peculiar behavior that, when time allows, the agent changes her direction as her belief crosses belief thresholds. We also that show that these bounds on the agent’s beliefs explicitly depend on the movement and time costs. We interpret the choice trajectories displayed by the human and the model to be sequences of hesitant choices (crossing soft or reversible decision bounds) in the process of committing to a final choice (crossing a hard or irreversible decision bound). v
Resumo: Para estudar o processo de compromisso com uma escolha, nesta tese, expandimos a tarefa psicofísica convencional de 2 opções, substituindo os dois botões de resposta tradicionais por uma arena que deve ser percorrida para alcançar um dos dois objetivos distalmente separados. Essa modificação e o uso de estímulos que variam no tempo para sinalizar o objetivo correto nos permitiram observar que escolhas difíceis podem desencadear trajetórias complexas de escolha que serpenteiam entre os dois objetivos de maneira correlacionada ao estímulo. Mostramos que esse comportamento também é realizado por um agente simulado que aprende por reforço, que se move para maximizar recompensas de longo prazo, considerando as restrições de movimento e tempo. A agente calcula o que ela acredita ser a meta correta, acumulando evidências de estímulo e subtrai da recompensa associada por responder corretamente um custo de deslocamento no espaço e um custo de espera. A função de custo resultante acaba comprometendo o agente com um objetivo, com o comportamento peculiar de que, quando o tempo permitir, o agente muda de direção à medida que sua crença cruza os limites da crença. Também mostramos que esses limites ás crenças do agente dependem explicitamente dos custos de movimento e tempo. Interpretamos as trajetórias de escolha exibidas pelo humano e o modelo como sequências de escolhas hesitantes (cruzando limites de decisão reversíveis) no processo de se comprometer com uma escolha final (cruzando um limite de decisão irreversível). vi
Author contributions: I also start this thesis by acknowledging the collaborators that took part in different phases of this project, and some of the people that took the time to discuss my work in depth. All of this work was done under the guidance and supervision of Alfonso Renart. •Chapter 2: Experiment 1 data was collected and analyzed by me with the guidance of Jose L. Pardo-Vazquez and Alfonso Renart. For experiment 2, we thank Gautam Agarwal for his contribution in providing an innovative approach to analyzing our data and for discussions, and Jose L. Pardo-Vazquez and Zach Mainen for discussions. •Chapter 3: Chapter 3 was analyzed by me with the guidance of Alfonso Renart. We would like to thank Gautam Agarwal for providing the first normative model of our task, to Juan Castineiras for his derivation of an analytical equation for the Bayesian belief propagation driving reward expectation in the model, and Zach Mainen for discussions. A special thank you to Miguel Bengala for revising and re-plotting all the figures for the chapter under Juan Castineira’s and my supervision. •Chapter 4: Chapter 4 was analyzed by me with the guidance of Alfonso Renart. Miguel Bengala adapted the commitment analysis for the RL agent and flat action bounds agent. We would like to thank Gautam Agarwal, Juan Castiñeiras, Miguel Bengala, and Zach Mainen for discussions. •Chapter 5: I would like to thank Alfonso Renart, Gautam Agarwal, Juan Castiñeiras, Miguel Bengala, and Zach Mainen for discussions. This work was funded by a scholarship from the Fundação para a Ciência e a Tecnologia of the Portuguese ministry of education and science (SFRH / BD / 51896 / 2012), and by the Champalimaud Foundation. vii
viii
Table of contents Table of contents xi List of Figures xxxiii 1 Introduction: Decision making in the brain of embodied agents 1 1.1 Philosophy and the study of behavior ............. 2 1.1.1 Philosophy of mind ................... 3 1.2 Psychophysics: Relating sensation to physical stimuli .... 4 1.2.1 Perceptual decision making .............. 5 1.3 Models of decision making ................... 6 1.3.1 Cognitive models of choice behavior .......... 6 1.3.2 Evidence of computational models in the brain .... 7 1.3.3 Embodied models of decision making ......... 7 1.4 Online readouts of behavior .................. 8 1.5 Normative models of decision making ............. 9 1.6 Commitment .......................... 10 1.7 Aim of the thesis ........................ 10 2 Online measures of behavior during a decision making task 17 2.1 Abstract ............................. 18 2.2 Introduction ........................... 19 2.3 Methods of Experiment 1 ................... 20 2.3.1 Subjects ......................... 20 2.3.2 Sound Stimulus ..................... 21 2.3.3 Online measures of behavior .............. 27 2.3.4 Syncing sounds to other sensors ............ 27 ix
2.14 Reaction time as a function of the long-term mean of the stimulus (left) and the experienced mean of the stimulus (right) for each subject per row. Blue circles show data, red lines linear fits with significant absolute mean ILD coefficient, and blue lines linear fits that don’t have a significant absolute mean ILD coefficient. The plots on the right column show a significant linear decrease in reaction time with increasing absolute experienced mean trial ILD (decreasing difficulty) for all subjects. The decrease in reaction time with decreasing absolute long-term mean of the stimulus is also significant for 3 of the 4 subjects. ....................... 40 2.15 Experiment 2 trajectories from each subject’s last 150 trials. Each row is one subject. Left 2 columns show the x-axis in time. Right 2 columns show the trajectories in xy. ...... 41 2.16 Clustering of experiment 2 subject 4 data into stereotyped vs hesitant trajectories using k-means with 2 clusters on the trajectory parameters (movement start time, trajectory length, trajectory speed, and acceleration). Note all left ending trajectories were flipped to end on the right prior to clustering for ease of visualization. Left panel shows the trajectories in time, center panel shows them in the xy coordinates of the arena, and the right panel shows the resulting clusters in Length (top) and Speed (bottom) vs Movement Time . . . . 42 2.17 We observed more hesitant trajectories for experiment 2 (right panel) than for experiment 1 (left panel). Color code of legend identifies each subject. ..................... 43 2.18 For all subjects we observed a significant increase in trial trajectory length with decreasing absolute mean ILD values (increasing difficulty). Blue circles show data, red lines show linear fits with significant coefficient for the independent variable. 43 xvi
2.19 Trajectory length analysis for correct and incorrect trials separately. The increase in trajectory length with increasing trial difficulty is significant for subject 1 and subject 3 for both correct and incorrect trials, while subject 2 shows it only for correct trials and subject 4 has a significant effect only for incorrect trials. The results of this analysis are inconclusive regarding confidence effects. Blue circles show data, red (blue) lines show linear fits with significant (not significant) coefficient for the independent variable. ............ 45 2.20 Schematic of training a decoder to predict the moment-to- moment stimulus from a window of eye and hand data. For each stimulus segment to be predicted a window of 500 milliseconds of eye and hand data, which moves forward with the evolving stimulus. Top panel shows the target variable (stimulus), and the corresponding predictor windows (Hand and Eye) for time-step 1. Bottom panel shows the same variables for time-step 2. ......................... 47 2.21 Regularized (ridge) linear regression of the moment-to-moment stimulus onto the eye and hand data for all subjects. Regularized (ridge) linear regression of the moment-to-moment stimulus onto the eye and hand data was performed, using for each stimulus segment to be predicted a window of 500 milliseconds of eye and hand data, which moves forward with the evolving stimulus. Post-stimulus kernel refers to the prediction coefficient (β) of each sample in each window of hand and eye data. For each plot, the top panel shows the prediction coefficients kernel fit on 60 percent of the data (training set) for the hand data and the bottom panel eye data. The hand and eye data were z-scored prior to fitting the model. . 49 2.22 Reconstructed stimuli vs. actual stimuli sampled from the test set, not used during training. The title for each plot shows the correlation between the two time-series. Legend: Blue line shows the stimulus, and red line the reconstruction from arm and eye data. ..................... 50 xvii
2.23 Histograms of the correlation between actual and reconstructed stimuli for all subjects for the test-set. A p-value was calculated for each mean correlation coefficient by shuffling the varying part of the actual stimuli in order to create a distribution of surrogate mean correlations to the reconstructions. Mean correlation for all subjects, except subject 2, was greater than zero and significant. Subject 2 (top right) has the lowest mean correlation, which is also not significant. This is to be expected from her rather ballistic trajectories, faster reaction times, and prediction coefficients kernel which cuts off after 400 milliseconds into the stimulus. .............. 51 3.1 Belief transition probabilities after 5 samples of stimulus (left) and after 15 samples (right). Since the values of belief and probabilities are discrete and not equally spaced, the "squares" in the plot were scaled to approximately represent the correct distances in belief space. (the lack of the symmetry that should exist around 0.5 on both axis is a result of approximating). Colorbar shows the probability p(g’|g). ....... 71 3.2 New stimulus based on a binomial distribution of ILDs. Black dots represent the stimulus. The green line is an optimal agent’s belief that it is experiencing a right-sided stimulus, p(π≥0.5), given the evidence until that time. Different difficulties can be created by changing the probability, π, of the stimulus being on the right, where πvalues less (greater) than 0.5 have a left (right) bias. The green line represents the belief resulting from perfect observations (noiseless) and the dashed grey lines correspond to the belief of 5 different trials with the same stimulus, but with noisy observations (stimulus can be "flipped" with probability α= 0.2). After noticing that both easy (top) and a hard (bottom) stimuli can be generated with the same sampling probability of being right (0.6), we decided to sample stimuli for the model from this distribution and its left counterpart. .................... 72 xviii
3.3 Reaction times of a normative model of the standard 2AFC task with our stimulus. Top panel: Stronger biases to the left (right) are represented by more negative (positive) values on the horizontal axis. Bottom panel: left and right trials are collapsed by taking the absolute value of the difference of the number of right (NR) and left (NL) counts relative to the total number of counts), the stimulus strength (3.23). Colorbar represents the conditional probability of the reaction times given a certain stimulus strength. Black dots represent the mean reaction time for each bin of stimulus strength. Red line is the linear regression of Reaction time onto the stimulus strength. ............................. 75 3.4 Reaction time as a function of the absolute experienced stimulus strength. Colorbar represents the conditional probability of the reaction times given a certain experienced stimulus strength. Black dots represent the mean reaction time for each bin of experienced stimulus strength. Red line is the linear regression of Reaction time onto the experienced stimulus strength. ............................. 76 3.5 Normative behavior for a single press 2AFC task (arena size 3, meaning left, right and wait states). Left panel: Reaction times increase as the cost of time is decreased (equivalent to increasing the time limit), error bars denote standard deviations. Right panel: Psychometric curves sharpen with decreased cost of time. On both panels, the legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible). The right panel legend additionally shows the slope parameter for the psychometric curve for each Time Cost. . 76 3.6 Proportion of correct responses increases with decreasing time cost (increasing time limit) whether performance is quantified as a function of the long term mean of the stimulus, p (left panel), or as a function of the experienced stimulus (right panel). On both panels, the legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible). 77 xix
3.7 Value as a function of the agent’s belief. To the left, a slice at t=1 s is shown, representing the values of waiting (black), choosing left (red) or choosing right (blue) for all possible beliefs. To the right, the value function is shown for all times, with larger dots representing the intersection at each time of the curves of waiting with the ones of moving left (large red dots) and the curves of waiting with the ones of moving right (large blue dots). These points correspond to the decision boundaries, where the agent should move left (right) if belief is smaller (bigger), than the one of the decision boundary. Large green dots correspond to the intersection of the value curves for moving left and moving right. ........... 78 3.8 Time evolution of decision boundaries in belief space for different time limits. The decision boundaries collapse in time. The distance between the bounds widens as the cost of time is decreased (time limit, y, is increased). Each pair of mirrored lines represents the threshold or decision bound that the agent’s belief must cross at each time in order to make a choice for a particular time limit imposed by a cost for time passing. The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible). ......... 79 3.9 Left panel: Number of presses as a function of stimulus strength, for an arena width of 17. The colour scale represents the number of counts and is logarithmic. Black dots represent the mean number of presses for each bin of stimulus strength. Red line is the linear regression of Number of Presses onto Stimulus Strength. Right panel: Reaction times as a function of stimulus strength for an arena width of 17. The colour scale represents the conditional probability of the reaction times given a certain stimulus strength. Black dots represent the mean reaction time for each bin of stimulus strength. Red line is the linear regression of Reaction time onto Stimulus Strength. ............................. 80 xx
3.10 Normative agent trajectories for an arena of width 17, backpropagation from 14 seconds, unit cost per action 0.01 with stimulus noise α= 0.2for an easy (left) and a hard (right) trial. Black dots on the borders of each plot show the stimulus, and thin red line the corresponding Bayesian belief. A thick red (blue) line on the left (right) plot shows the decision trajectory of the agent for one presentation of that stimulus. 81 3.11 Value function for all times and for current positions (a)x=-4, (b)x=0, (c)x=4, for an arena width of 17, cost of movement 0.01, cost of time 0.018 and back-propagation from 14 seconds. Small red, blue and black dots represent the values of moving left, moving right and waiting at the current position, respectively. The larger dots represent the intersection at each time of the curves of waiting with the ones of moving left (large red dots) and the curves waiting with the ones of moving right (large blue dots). Large green dots correspond to the intersection of the curves of moving left and moving right. When the agent’s belief hits the left (right) bound at the initial position, x = 0, she moves to x = -1 (x=1). Note the value of waiting at x = -4 (x = 4) marked by the green dots is closer to the red (blue) dots denoting the left (right) bound. .............................. 83 3.12 Trajectories for 5 repetitions of an easy stimulus and the resulting beliefs (left panels) and trajectories (right panels). Easy stimuli result in identical trajectories for both noiseless (top) and noisy (bottom) integration. Black dots on the borders of each plot show the stimulus. On the left plots, dashed colored lines show the Bayesian beliefs for repeated presentations of the stimulus. Thick colored lines on the right side plot shows the decision trajectories of the agent elicited by the beliefs on the left plots. .................. 84 xxi
3.13 Trajectories for 5 repetitions of a hard stimulus and the resulting beliefs (left panels) and trajectories (right panels). For noiseless integration trajectories are identical (top), however with noisy integration (bottom panels) some variability in the output trajectory is introduced the more variable the early part of the stimulus. Black dots on the borders of each plot show the stimulus. On the left plots, dashed colored lines show the Bayesian beliefs for repeated presentations of the stimulus. Thick colored lines on the right side plot shows the decision trajectories of the agent elicited by the beliefs on the left plots. Trajectories remain strikingly qualitatively similar. 85 3.14 Normative agent trajectories for an arena of width 17, time limit 4, unit cost per action 0.01 with stimulus noise α= 0.2 for 5 repeats of an easy stimulus (left) and a hard stimulus (right).The red thin lines represent the evolution of belief in the different trials, while blue lines of varying markers denote trajectories that end in the right (figure top) side. Red color likewise denotes trajectories that ended on the left. . . . . . 86 3.15 Psychometric curves for different costs of time/time limits. The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible), and the slope parameter for the psychometric curve for each time limit. ........ 87 3.16 Proportion of correct responses as a function of the time cost. In the left panel, the accuracy of responses is evaluated according to the whole stimulus, while in the right panel it is evaluated according to the section of the stimulus experienced by the agent until the moment of their final choice. The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible). .................. 87 3.17 Signatures of the behaviour of the embodied agent for fixed arena width of 17 and α= 0.2and varying time costs/limits. Error bars show standard deviations. The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible) ............................. 88 xxii
3.18 The left (right) panel shows the action bounds to move one step left or right for all times at position x = -1 (x = 1). Color code denotes the bounds for different time limits, for an arena of size x = 17 and stimulus noise parameter α= 0.2. As the time limit increases, the bounds get wider. Note that for all time limits, the beliefs necessary to move left (right) indicated by the bottom (top) bound are closer (further) to a fully ambiguous belief of 0.5. Previous movements to the left (right) of the center of the arena makes the left (right) actions more valuable, resulting in a positive feedback loop that biases and eventually commits the agent to the left (right). The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible) ................... 89 3.19 Psychometric curves for a disembodied agent (left panel) vs an embodied agent (right panel) for the same costs of time (time limits y). The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible), and the slope parameter for the psychometric curve for each time limit. 90 3.20 Performance for our task going from the standard single press 2AFC task (x3) to two press (x5) and larger arenas. Small embodied arenas have similar performance as the standard 2AFC task, with perhaps a small improvement for size (x7) and (x9) but for larger arenas performance drops sharply. The legend shows the arena width, and the slope parameter for the psychometric curve for each width. .............. 91 3.21 Proportion of correct responses as a function of the arena width with a fixed time limit of 4 (time cost = 0.018). In the left panel, the accuracy of responses is evaluated according to the whole stimulus, while in the right panel it is evaluated according to the section of the stimulus experienced by the agent until the moment of their final choice. For both panels, the legend shows the arena width. ............... 91 xxiii
3.22 Signatures of the behavior of the embodied agents from (Figure 3.20) for fixed time limit of 14 and α= 0.2and varying arena widths. Error bars show standard deviations. For all panels, the legend shows the arena width. ........... 92 3.23 The left (right) panel shows the action bounds to move one step left or right for all times at position x = -1 (x = 1). Color code denotes the bounds for different arena widths, for fixed time limit 14 and stimulus noise parameter α= 0.2. As the arena width increases, the bounds collapse earlier while maintaining their width. Note that as observed in (Figure 3.18), for all time limits, the beliefs necessary to move left (right) indicated by the bottom (top) bound are closer (further) to a fully ambiguous belief of 0.5. Previous movements to the left (right) of the center of the arena makes the left (right) actions more valuable, resulting in a positive feedback loop that biases and eventually commits the agent to the left (right). For all panels, the legend shows the arena width. ......... 93 3.24 Signatures of the behavior for a range of arena widths, time limits, and noise parameter α= 0.2. The color code is in the scale of each plot’s y-limits. .................. 95 4.1 Fixed duration 2AFC experiments. We tested 6 naive subjects (all different from the main experiment subjects), with only the hard conditions, p = 0.6 (Right Stimulus) and p = 0.4 (Left Stimulus), at different fixed durations of 1, 2, 3, 4, 5, 7, 9 , and 12 seconds in separate session blocks of 40 trials per duration with a break in between. As expected, as subjects were allowed to experience shorter stimuli their accuracy decreased ............................ 109 4.2 This is a schematic of the expected reward, which grows in time as subjects accumulate more evidence and increase their probability of answering correctly (top), a constant time cost which results in a linearly accumulating point reduction (middle), and the addition of these two quantities resulting in the expected value for completing the task as a function of time (bottom). ............................ 110 xxiv
4.3 Stimulus Repeats. Top panel: Each column shows a unique leftward stimulus and 8 responses from each subject. Each row shows a different subject. Bottom panel: Mirrored rightward stimuli. Black dots on each plot denote the stimulus. Blue (red) colored trajectories end on the right (left). . . . . 111 4.4 Scored Points (top row), Percentage correct (middle row), and Reaction times (bottom row) are plotted against session number for all subjects in order to investigate whether any linear trends exist, which would suggest learning is still ongoing. No such trends can be detected at a significance of α= 0.5, suggesting performance is stable across sessions. Error bars show standard deviations. ...................... 112 4.5 Psychometric curves for 4 subjects evaluating performance according to the long-term mean of the stimulus. Thin black lines show performance for each of the 10 sessions of 72 trials, thick red lines show average psychometric over all 720 trials for each subject. Red to blue graded circles show session performance for 6 difficulty conditions. ............ 113 4.6 Average psychometric curve for 4 subjects evaluating performance according to the long-term mean of the stimulus. Thin black lines show performance for each subject over 720 trials, thick red lines shows the mean for all subjects. Red to blue graded circles show session performance for 6 difficulty conditions. .............................. 114 4.7 Psychometric performance as a function of the difficulty of the experienced stimulus 3.23 for all 4 subjects. For each plot, thin gray lines show each session’s psychometric, and the thick red line shows the psychometric for all 720 trials. . 115 4.8 Average psychometric curve for 4 subjects evaluating performance according to the mean of the experienced the stimulus. Thin black lines show performance for each subject over 720 trials, thick red lines shows the mean for all subjects. Red to blue graded circles show session performance for 6 difficulty conditions. ............................ 116 xxv
4.32 P(L,W,R|E) at different locations and time intervals in the arena for 30k simulated trials of an agent with wide flat action bounds that do not change in space nor time. For each row, the leftmost (rightmost) plots represent the leftmost (rightmost) spaces in the arena, and the center plot is the center of the arena. Time is split from 0 to 2 seconds (top row), 2 to 4 seconds (middle row), and 4 to 7 seconds (bottom row). At each time step, we count the number of times the subject waited, moved left, or moved right within the next 0.25 seconds, given how much evidence the subject has experienced. Evidence is defined as 3.3.4.3 over the last N samples, excluding the latest M to account for the delay between experiencing a stimulus and making a deliberate press. Results are shown for N = 4 and M = 0, since the agent has perfect memory. We set a window of 4 samples to match the window used for the subjects, however setting N to the maximum value of 28 does not qualitatively change the plots. We simulated 30,000 trials with bound height comparable to the bounds observed by the optimal agent of (Figure 4.31) at the 3rd time-step in the center of the arena. .................... 143 xxxii
4.33 P(L,W,R|E) at different locations and time intervals in the arena for 30k simulated trials of an agent with narrow flat action bounds that do not change in space nor time. For each row, the leftmost (rightmost) plots represent the leftmost (rightmost) spaces in the arena, and the center plot is the center of the arena. Time is split from 0 to 2 seconds (top row), 2 to 4 seconds (middle row), and 4 to 7 seconds (bottom row). At each time step, we count the number of times the subject waited, moved left, or moved right within the next 0.25 seconds, given how much evidence the subject has experienced. Evidence is defined as 3.3.4.3 over the last N samples, excluding the latest M to account for the delay between experiencing a stimulus and making a deliberate press. Results are shown for N = 4 and M = 0, since the agent has perfect memory. We set a window of 4 samples to match the window used for the subjects, however setting N to the maximum value of 28 does not qualitatively change the plots. We simulated 30,000 trials with bound height comparable to the bounds observed by the optimal agent of (Figure 4.31) at the 18th time-step in the center of the arena. ........... 144 xxxiii
xxxiv
Chapter 1 Introduction: Decision making in the brain of embodied agents HIGHLIGHTS •In this first chapter we do a literature review concerning the study of behavior, and introduce the field of psychophysics. •We review the literature on role of the brain in mediating perception and decision-making behavior. •We present a summary on the use of computational models in the field of decision making. •We introduce the literature on models of embodied decision making and begin to argue that studying the motor component of a decision might lead to more accurate models of the types of problems facing animals making naturalistic choices. •We motivate the need for a novel task to study online behavior during the decision period, and summarize the literature on the topic. •We outline the aims of this thesis and provide a summary of each chapter. 1
1 Introduction: Decision making in the brain of embodied agents Contents 1.1 Philosophy and the study of behavior How should we behave? Some of the most inquisitive minds throughout history have attempted to ground their philosophical inquiries into human behavior on pure fictions, such as the presumed desires of one or many Gods. Such fictions remained unchallenged until the invention of scientific thinking, which provides a method for testing hypotheses. Major discoveries achieved through scientific thinking have compelled modern philosophers to integrate into their theories of behavior knowledge from various fields such as logic, sociology, and more recently evolutionary biology and neurobiology. Scientific thinking is rooted in a tradition of skepticism owing greatly to Socrates and his student Plato, founder of the Academy of Athens in ca. 387 BC. Plato lectured on the nature and purpose of all things, including man, relying on an ideal heavenly construct where the perfect Forms of all things exist. According to Plato, these perfect Forms project their perfect qualities to imperfect images or shadows that compose the reality we live in. Every man is an imperfect physical shadow which borrows his qualities from the perfect qualities of the true, perfect man that exist as an idea in the realm of Forms. Our senses are able to directly experience only the imperfect shadow reality, but inferences about the perfect Forms can be made by studying the qualities of the imperfect world through repeated sensory observations and philosophical inquiry. However wrong Plato’s premises about the realm of Forms were, his conclusions on the importance of repeated sampling and philosophical reasoning changed the course of history. Plato’s students included Aristotle, who - among many other seminal achievements - described a general framework for constructing logical arguments. The remarkable feat of Aristotle’s logical argument is that if one’s premises are right, and deduction is applied thereafter, one should arrive at true conclusions every time. Aristotle’s famous argument, “Socrates is a man. All men are mortal. Therefore, Socrates is mortal” demonstrates the basic form of what he called a “perfect” syllogism, because no further premises are needed in order to make the conclusion follow the premise. This systematic mode of logical inference On Hesitation and Commitment 2
1 Introduction: Decision making in the brain of embodied agents eventually evolved into our modern recipe for rejecting false hypotheses in order to discovery the truth, the scientific method [Garvey, 2012]. 1.1.1 Philosophy of mind In the first half of the 15th century, René Descartes wrote his Meditations on First Philosophy, in which he remarks that that nearly everything he believes has come to him from his senses. However, soon after this assertion comes his most famous phrase, “Having thought carefully about it, and having scrupulously examined everything, one must then, in conclusion, take as assured that the proposition, I am, I exist, is necessarily true, every time I express it or conceive it in my mind” [Descartes, 1998] in which Descartes discards the senses on account that they sometimes deceive us, for example when we dream and sense things that are not real. Descartes’ Meditations did much more than proving his own existence, or at least the existence of his thoughts, his proposition that all knowledge enters the brain through the senses set the stage for empirically based knowledge. Unlike Plato’s perfect Forms, the senses can be investigated through empirical observation. Since Descartes, other philosophers like Voltaire, Locke and Hume have given the senses and the perceptions and the subjective experiences they convey a center stage in their attempts to provide a foundation of knowledge. David Hume in fact boiled down the very identify of a person to perception alone when he wrote, “For my part, when I enter most intimately into what I call myself, I always stumble on some particular perception or other, of heat or cold, light or shade, love or hatred, pain or pleasure. I never catch myself at any time without a perception, and never can observe anything but the perception” [Hume, 1817]. He concludes that any idea of a self is a philosophical delusion. Rather than make a case for or against David Hume’s views on perception as the centerpiece of reality, this thesis assumes the importance of studying sensory perceptions, and focuses in particular on the investigation of decisions made upon them. On Hesitation and Commitment 3
1 Introduction: Decision making in the brain of embodied agents 1.2 Psychophysics: Relating sensation to physical stimuli Studies on the human mind continued to take the form of philosophy, attempting to tackle consciousness and the fabric of reality itself long after Hume. An argument could be made that all of that philosophy and even modern science doesn’t have much to add to Hume’s description of consciousness as sequences of perceptions. However, a major breakthrough in the study of behavior and the mind itself occurred when rather than describing qualitatively exactly what consciousness is, and attempting to apply logic to those descriptions, the field of psychophysics began to quantitatively relate the subjective experience of a sensation to the physical stimulus that cause it. The earliest examples of this type of study date back to Ernst Heinrich Weber’s 1830s experiments on sensation and touch [Weber, 1834]. Weber was able to compute the minimum change in stimulus intensity between two distinct stimuli required to elicit two physically discernible percepts (the just noticeable difference, jnd). Weber’s results inspired Gustav Theodor Fechner to develop new methods to measure the jnd across several modalities, resulting in what he called the Weber-Fechner law, “In order that the intensity of a sensation may increase in arithmetical progression, the stimulus must increase in geometrical progression” [Fechner, 2007]. This relationship can be written mathematically as, S = K / ln I, where I is the intensity of the sensation, S is the strength of the stimulus and K is a constant that depends on the type and sensory modality of the stimulus. The Fechner- Weber law provides near perfect approximations of the relationship between stimulus and sensation, with a few exceptions, most notably when stimulus energy is so small that it is at the threshold of being consciously experienced. Fechner’s Element de Psychophysik was published in 1860, marking the birth of the new field of psychophysics [Fechner, 2007]. A key concept in psychophysics is in fact that of a sensory threshold. A sensory threshold is defined as the “smallest amount of stimulus energy required to produce a sensation” [Gescheider et al., 1997]. In general, an organism’s sensitivity to external stimuli varies slightly from moment to moment, but experimenters are able to accurately estimate the absolute sensory threshold by averaging repeated measurements of the threshold value [Gescheider et al., 1997]. On Hesitation and Commitment 4
1 Introduction: Decision making in the brain of embodied agents 1.2.1 Perceptual decision making The logarithmic mental line described by the Fechner-Weber law manifests itself in a subject’s probability of response curve to different stimulus intensities, which goes from 0.5 probability of detection for below threshold stimulus values, and grows logarithmically in probability until saturating at 1 for high enough stimulus intensities. Such a quantification of choice behavior is called a psychometric curve, and it is generally observed to have a sigmoidal shape. The 1940s and 50s saw the rise of the a new revolution in behavior research led by a group of individuals that called themselves behaviorists. Ever since, a large focus of study for behaviorists has been describing the shape of these sigmoids to different stimuli across all sensory modalities, as well as the effect of stimulus perturbations on the parameters of the sigmoid. The advances in technology made possible by electricity allowed behavior researchers to present stimuli and record data with unprecedented accuracy. Today, modern technology allows neuroscientists to compute a psychometric curve for neuronal responses, the neurometric curve. A major milestone for psychophysics and the study of perceptual decisions was accomplished by perhaps the most renown behaviorist, B.F. Skinner. During his graduate studies, B.F. Skinner created the operant conditioning chamber to electronically present and control stimuli such as light flashes or speaker produced sounds. Similarly, subject responses are electronically measured and recorded, creating an objective record of the outcome of an experiment. This apparatus is now commonly known as the Skinner box. Skinner published his findings in 1938, revolutionizing the study of behavior [Skinner, 1938]. Neuroscientists and behavioral economists today continue to make great use of the Skinner box in order to obtain the precise timing of electronically measured choices. A Skinner box with two response levers or buttons has been a favorite tool to measure and describe human and animal psychophysical responses. The simple experimental design makes it possible to link choice behavior, for example reaction time distributions and psychometric curves, to formal mathematical models of the underlying cognitive operation required to complete the task. On Hesitation and Commitment 5
1 Introduction: Decision making in the brain of embodied agents 1.3 Models of decision making 1.3.1 Cognitive models of choice behavior The data generated during a standard two choice task allows researchers to create descriptive models of the decision making process. These models can express the computation supporting the decision in terms of stimulus signal and noise at the level of the sensory organs and neural decision centers. The drift diffusion model (DDM) is perhaps the most common of such theoretical approaches to the problem of deciding among two choices based on uncertain evidence [Ratcliff, 1978,Ratcliff, 1985,Ratcliff, 2002]. One of the remarkable feats of a standard drift diffusion model is its ability to make predictions about the psychometric curve of a subject by using only the reaction time data to fit the model and vice-versa [Ratcliff, 2002]. Drift diffusion is a name applied to a family of models that describes the deliberation in choice behavior as a “Drunken” random walk taken by a particle to one of two choice boundaries. The mean direction of the particle is a parameter that depends on the strength of the stimulus, and random perturbations to the mean walk are caused by a parameter(s) that captures noise in the sensory observations, noise in the processing of these observations at the decision centers in the brain, or both. The drift diffusion family of models has been found to find equivalent solutions to the sequential probability ratio test [Wald and Wolfowitz, 1948], which aims to provide sequential hypothesis testing [Stone, 1960,Ratcliff et al., 2016]. While the technique was developed for engineering and manufacturing applications, this method has been applied to describe the stopping criterion for human decision processes as early as 1960 [Stone, 1960]. The recent availability of cheap and fast computers to fit the model parameters has popularized the use of drift diffusion models in the field of decision making to for example, characterize stopping criterion (e.g. reaction time and accuracy) [Ratcliff, 1985]. The drift diffusion model has also been used to explain valued based choices [Milosavljevic et al., 2010], and other neural processes such as memory [Ratcliff, 1978]. A recent study modeling normative solutions to the standard 2AFC decision task found that the optimal trade-off between certainty against the cost of time computed using the partially observable Markov decision process framework is equivalent to drift diffusion with time collapsing bounds [Drugowitsch et al., 2012]. That study ex- On Hesitation and Commitment 6
1 Introduction: Decision making in the brain of embodied agents tended the classic SPRT result to cases where the reliability of the evidence (what we call ’difficulty’) is unknown to the agent [Drugowitsch et al., 2012]. 1.3.2 Evidence of computational models in the brain The big unanswered question until the beginning of this century was whether and how the components of behavior captured by the drift diffusion framework are reflected in the firing rates of neurons in the brain. In order to experimentally address this question, it became necessary to record neural activity while an animal performed a decision task. A pioneer study managed to obtain single cell recordings from the lateral intraparietal cortex of behaving rhesus monkeys. It was found that choice movements were only initiated if neural activity reached a certain threshold, and that stochastic variability in the rate at which neuronal activity grew to that threshold resulted in the distribution of behavioral reaction times [Hanes and Schall, 1996]. Shadlen and colleagues (e.g. [Gold and Shadlen, 2001,Mazurek et al., 2003]) have made significant efforts to advance both experimental and theoretical research regarding evidence accumulation processes in the brain. Recent work by Carlos Brody’s group has also observed evidence accumulation recording from neurons in posterior parietal cortex and FOF from rats performing a perceptual decision-making task [Hanks et al., 2015]. Although these findings are consistent with models of evidence accumulation, there are competing views, for example, one which argues that the increasing firing rates observed in the monkey and rat brains reflect an urgency signal rather than evidence accumulation [Cisek et al., 2009]. 1.3.3 Embodied models of decision making The models described above can be considered “cognitive” models since they are only concerned with the final outcome of the task, assuming that the execution of a response movement is handled by downstream motor centers that are independent from and do not affect the computations at the decision centers. While such models manage to capture the psychometric curve and response time distributions of human and animal subjects, the assumption of independence between the decision and motor centers is made out the necessity to simplify the computational problem rather than a belief that this is how biological organisms arrive at naturalistic choices. More On Hesitation and Commitment 7
1 Bibliography [Gold and Shadlen, 2001] Gold, J. I. and Shadlen, M. N. (2001). Neural computations that underlie decisions about sensory stimuli. (Cited on page 7.) [Hanes and Schall, 1996] Hanes, D. P. and Schall, J. D. (1996). Neural control of voluntary movement initiation. Science. (Cited on page 7.) [Hanks et al., 2015] Hanks, T. D., Kopec, C. D., Brunton, B. W., Duan, C. A., Erlich, J. C., and Brody, C. D. (2015). Distinct relationships of parietal and prefrontal cortices to evidence accumulation. Nature. (Cited on pages 7,152, and 155.) [Hume, 1817] Hume, D. (1817). A treatise of human nature: being. An attempt to introduce the experimental method of reasoning into moral subjects. (Cited on page 3.) [Martinez-Hernandez et al., 2015] Martinez-Hernandez, U., Lepora, N. F., and Prescott, T. J. (2015). Active haptic shape recognition by intrinsic motivation with a robot hand. In IEEE World Haptics Conference, WHC 2015. (Cited on page 8.) [Mazurek et al., 2003] Mazurek, M. E., Roitman, J. D., Ditterich, J., and Shadlen, M. N. (2003). A Role for Neural Integrators in Perceptual Decision Making. (Cited on page 7.) [Milosavljevic et al., 2010] Milosavljevic, M., Malmaud, J., Huth, A., Koch, C., and Rangel, A. (2010). The Drift Diffusion Model can account for the accuracy and reaction time of value-based choices under high and low time pressure. Judgment and Decision Making. (Cited on page 6.) [Moreno-Bote, 2010] Moreno-Bote, R. (2010). Decision confidence and uncertainty in diffusion models with partially correlated neuronal integrators. (Cited on pages 9,59,60, and 153.) [Ratcliff, 1978] Ratcliff, R. (1978). A theory of memory retrieval. Psychological Review. (Cited on pages 6and 97.) [Ratcliff, 1985] Ratcliff, R. (1985). Theoretical Interpretations of the Speed and Accuracy of Positive and Negative Responses. Psychological Review. (Cited on page 6.) On Hesitation and Commitment 14
1 Bibliography [Ratcliff, 2002] Ratcliff, R. (2002). A diffusion model account of response time and accuracy in a brightness discrimination task: Fitting real data and failing to fit fake but plausible data. Psychonomic Bulletin and Review. (Cited on page 6.) [Ratcliff et al., 2016] Ratcliff, R., Smith, P. L., Brown, S. D., and McKoon, G. (2016). Diffusion Decision Model: Current Issues and History. Trends in cognitive sciences, 20(4):260–281. (Cited on pages 6and 59.) [Resulaj et al., 2009] Resulaj, A., Kiani, R., Wolpert, D. M., and Shadlen, M. N. (2009). Changes of mind in decision-making. Nature. (Cited on pages 8,9,51,52,145,151, and 152.) [Selen et al., 2012] Selen, L. P., Shadlen, M. N., and Wolpert, D. M. (2012). Deliberation in the motor system: Reflex gains track evolving evidence leading to a decision. Journal of Neuroscience. (Cited on pages 9,20,27, 34,52,145, and 151.) [Skinner, 1938] Skinner, B. F. (1938). The Behaviour of Organisms. American Psycologist. (Cited on page 5.) [Spivey et al., 2005] Spivey, M. J., Grosjean, M., and Knoblich, G. (2005). Continuous attraction toward phonological competitors. Proceedings of the National Academy of Sciences of the United States of America. (Cited on pages 8,20,27,34,51,52,145,151, and 152.) [Stone, 1960] Stone, M. (1960). Models for choice-reaction time. Psychometrika. (Cited on pages 6and 59.) [Thura et al., 2012] Thura, D., Beauregard-Racine, J., Fradet, C. W., and Cisek, P. (2012). Decision making by urgency gating: Theory and experimental support. Journal of Neurophysiology. (Cited on page 8.) [Wald and Wolfowitz, 1948] Wald, A. and Wolfowitz, J. (1948). Optimum Character of the Sequential Probability Ratio Test. Ann. Math. Statist., 19(3):326–339. (Cited on pages 6and 59.) [Weber, 1834] Weber, E. H. (1834). De Pulsu, resorptione, auditu et tactu. Annotationes anatomicae et physiologicae ... (Cited on page 4.) On Hesitation and Commitment 15
1 Bibliography On Hesitation and Commitment 16
Chapter 2 Online measures of behavior during a decision making task HIGHLIGHTS •In this chapter we describe a novel psychophysics task in order to measure behavior during the deliberation period of a binary choice task. •Hesitant trajectories can be observed in a small fraction of the trials in Experiment 1. On average the length of the trajectories increases with increasing stimulus difficulty. •In order to capture more hesitant trajectories per session, Experiment 2 imposes a time limit to initiate movements from the start of the stimulus. •In Experiment 2, trajectory length increases significantly with increasing stimulus difficulty for all subjects. No consistent difference can be seen for correct vs. incorrect trials across subjects. •It is possible to reconstruct the noisy stimulus from linear combinations of eye and hand trajectories. This shows that the online trajectories hold information about temporal features of the stimulus. 17
2 Online measures of behavior during a decision making task Contents 2.1 Abstract ........................ 18 2.2 Introduction ..................... 19 2.3 Methods of Experiment 1 ............. 20 2.4 Results of Experiment 1 .............. 29 2.5 Discussion of Experiment 1 ............ 33 2.6 Motivation for Experiment 2 ........... 34 2.7 Methods of Experiment 2 ............. 35 2.8 Results of Experiment 2 .............. 38 2.9 Discussion ....................... 51 2.10 Acknowledgments .................. 54 2.1 Abstract The behavioral evidence typically used to infer the mechanisms underlying decision making processes consist of reaction time (RT) and choice, which reflect only the final output of the decision, and is therefore only indirectly informative on the decision process itself. In order to gain more direct access to the decision process from behavior, we set-up an auditory two-alternative forced choice task (2AFC) perceptual decision-making task with two online behavioral read-outs: motor output and pupil size. Changes in pupil size have been associated with altered vigilance [Rajkowski et al., 1994]. For example in one study using chair-restrained, unanesthetized cynomolgus monkeys, pupil dilation was correlated to locus coeruleus neuronal activity, which was higher during behavioral agitation than during goal-directed task behavior [Rajkowski et al., 1994]. In addition to these changes in tonic activity, LC neurons were also phasically responsive to certain sensory stimuli. It may be more correct to think about pupil measures as physiology rather than behavior. In the task, human subjects have to decide whether the overall lateralization of a time-varying white-noise stimulus is left or right. Lateralization is controlled using the interaural level difference (ILD) of the stimulus, delivered through headphones. The instantaneous ILD is chosen On Hesitation and Commitment 18
2 Online measures of behavior during a decision making task with a given probability every 25 ms from a set of ILD values, and the overall difficulty is controlled by rigidly moving this probability function. Subjects report their choices by moving a joystick-controlled dot in a computer screen to either of two lateral locations and are free to move the joystick throughout the stimulus presentation. Pupil size is monitored through the experiment. Stable psychometric functions confirm that the subjects can reliably perform this task. A small fraction of subject responses (15 %) elicited during the presentation of difficult stimuli are not direct to either target, but rather wiggling between the two targets down the middle. We think subjects’ hesitation in the deliberation period is coupled to the stimulus, and therefore to the underlying decision making process, but more data was needed for meaningful analysis. In a second experiment we managed to increase the number of hesitant trajectories displayed by subjects by introducing time pressure on movement onset. Analysis of these trajectories allowed us to establish a correlation between online behavior and the stochastic stimulus. 2.2 Introduction The study of human and animal choice behavior has traditionally been restricted to laboratory preparations such as the two-alternative forced choice task (2AFC). In a typical 2AFC task, two stimuli are presented successively or side-by-side, and subjects are asked to choose and report one of the two options contingent on their percept of some stimulus feature (e.g. presence, amount, identity), or simply based on their preference for one option, by pressing one of two levers. The two options can be presented simultaneously or in two sequential intervals. The studies on perceptual reports of a stimulus feature belong to the subfield of perceptual decision making, while choices of preference fall under the umbrella of value-based decision making. While we focus on the perceptual decision making literature, significant cross-talk between the subfields means that the state-of-the art techniques are not exclusive to either field. The 2AFC task is said to be unbiased by subjective internal criteria unrelated to the task at hand [Pelli and Farell, 1996]. However, the study of choice in maximally reduced laboratory settings has also precluded these studies from learning about the decision process while the decision is ongoing. For example, Spivey and colleagues showed compelling evidence for continuous uptake of sensory input and dynamic compe- On Hesitation and Commitment 19
2 Online measures of behavior during a decision making task tition between simultaneously active representations in the performance of a spoken-language task by recording the streaming x, y coordinates of continuous goal-directed hand movement [Spivey et al., 2005]. In that speech recognition study, two pictures appeared on the top left and top right of a computer screen, and subjects were required to make a reach movement from to bottom of the screen towards the correct picture, via computer mouse, according to the word spoken over headphones. Spivey observed that the movement trajectories revealed whether the two choices are phonetic competitors or not, for example candy vs candle compete, and candy vs horse do not compete. We wanted to conduct psychophysical experiments in this fashion, but using perceptual stimuli such as the noisy stimulus utilized by Shadlen and colleagues in [Selen et al., 2012]. We favored such a stimulus because we though that observing changes in behavior as a function of changes in the stimulus parameters would allow us to understand something about the cognitive process in between. Shadlen and colleagues were able to model and predict the changes of mind by extending their bounded accumulation of evidence model to one with two bounds. However, in order to fit their model to human data, the experimenters constrained the evidence accumulation to immediately after the initiation of the reach movement. They extinguished the stimulus as soon as subjects began their choice trajectory. However, we are interested in monitoring behavior while the stimulus is ongoing. Unlike [Selen et al., 2012], we conduct our study in the auditory domain given the relative ease of producing calibrated sounds. 2.3 Methods of Experiment 1 2.3.1 Subjects Two naive subjects learned to discriminate the stochastic sound stimulus, and by their 3rd session produced reasonable psychometric curves. The subject performed 720 and 1080 trials across 8 and 12 sessions respectively. Two subjects were discarded for having too extreme biases during the calibration routine (a simpler version of this experiment with a single ILD white noise burst per trial). On Hesitation and Commitment 20
2 Online measures of behavior during a decision making task 2.3.2 Sound Stimulus Below we describe the construction of an auditory stimuli created from sequences of white noise biased to the left or to the right. Our first attempt at creating such stochastic sequences of a controlled stimulus was only used in Experiment 1, but we do not show that data since were more successful in capturing movement during the decision period using the second stimulus. The second stimulus is also stochastically sampled from a biased ILD distribution, but it moves slower through the subject’s sound space, this is accomplished by constraining the maximum ILD difference from one sample to the next using Markov Chains. We only show the analysis of Experiment 1 for the second stimulus, and this second stimulus was the only one used in Experiment 2. In chapter 3 we replace the stimulus by much simpler sequences of white noise, where each individual chunk of stimulus is a fully lateralized burst with a binomial probability of being to the left or to the right. We induce the percept of a lateral sound by manipulating the difference in the intensity of sound arriving at each ear, the interaural level difference (ILD), which is a major cue assisting sound localization in mammals. We play gaussian noise to both ears while keeping the average binaural sound pressure level (SPL) constant, and apply some ILD to the baseline noise from a finite set of possible ILDs every few milliseconds. By controlling the probability of drawing each ILD, we create stimuli with different levels of average lateralization for which the subject must indicate which side was on average “louder.” We present sounds over calibrated headphones (Sennheiser HD 280 Pro) using an internal sound card (Asus Xonar Essence ST). In order to make our stimuli salient but comfortable to listen to during extensive testing, we fixed the binaural level at 50 dB SPL. Our experience is that a 3 dB ILD is necessary to attain 90% performance in naive subjects, and invariable perfect performance is attained with sounds lateralized to either side by 6 dB ILD. To reduce the ambiguity of our time-varying stimulus, we decided to use sounds lateralized by more than 4 dB to either side. Our time-varying stimulus is constructed with the repertoire of ILDs [ -12 -8 -4 0 4 8 12 ] dB, where negative values indicate lateralization to the left and positive values indicate lateralization to the right. We keep the 0 dB ILD in the repertoire as the sole noise factor. In order to avoid sound artifacts caused by changing the sound pressure level produced by our headphones too quickly, we draw On Hesitation and Commitment 21
2 Online measures of behavior during a decision making task and apply a new ILD every 25 ms, with a 5% cosine ramp-up and a 5% ramp-down. This results in noise segments that remain constant for 22.5 ms before smoothly changing to a new ILD, unless the new value drawn is the same as the previous in which case the constant period is longer as the figure of the first stimulus we used shows below. We build time-varying stimuli with 8 second duration out of 320 such 25ms segments. Subjects were scored and received visual and auditory feedback of correct and error responses. For the purpose of this feedback, a stimulus was considered as Left or Right according to the mean of the stimulus a subject experienced until reporting her choice, at which time the stimulus was extinguished. On Hesitation and Commitment 22
2 Online measures of behavior during a decision making task Figure 2.1: We use the interaural level difference (ILD) to create sounds that give the percept of lateralization (left or right). By changing the ILD every 25 milliseconds with controlled probabilities, we create sounds that change their lateralization in time, but are overall louder to one side. The time-varying stimulus envelope is pointwise multiplied by white noise. Top panel: 6 rows of probabilities of sampling from the ILD repertoire determine the mean laterality of the stimulus. Bottom panel: Sampling a sequence of ILDs for medium left difficulty in order to create the stimulus envelope, which is convoluted with white noise in order to produce the stimulus sound waves for each channel. Finally, to mitigate the effects of stimulus onset and offset on the auditory pathways similar to that of the unwanted auditory artifacts discussed above, we have added 150 ms of non-time-varying cosine ramp-up and rampdown (see image below). This raises a concern that any auditory deficits to either side could result in biasing the percept of the stimulus towards the opposite side. Subjects for which the point of subjective indifference for sounds with a static ILD is not near 0 dB may decide which side the average lateralization of the entire stimulus favors based on the ramps rather than the time-varying stimulus we are interested in. This is the first motive we have for conducting a pre-testing calibration on each subject to deter- On Hesitation and Commitment 23
2 Online measures of behavior during a decision making task Figure 2.6: Response Times for subject 1 (left) and subject 2 (right). ILD Conditions is defined as the bin centers of the histogram of experienced ILDs with 6 equal bin sizes used to compute the psychometric curves of 2.5. The exact values of ILD conditions can vary between the subjects. Response times appear to decrease as the ILD conditions become easier (darker colors), however, the trend is only significant for subject 1’s left sided responses. Error bars show standard deviations. 2.4.3 Choice Trajectory Analysis Next, we analyze the online behavior of the subjects. Choice trajectories for this experiment were mainly movements direct to the target of choice. However, on a small fraction of the more difficult trials, more complex trajectories going down the middle and changing direction could be observed. On Hesitation and Commitment 30
2 Online measures of behavior during a decision making task Figure 2.7: Choice trajectories for subject 1 (top) and subject 2 (bottom). Red shifted colors indicate responses to a left biased stimulus while Blue denotes responses to a right biased stimulus, with lighter colors indicating higher difficulty. One way to summarize this phenomenology is by the length of the choice trajectory for each trial, defined as the cumulative sum of the displacement across the x axis only. When we plot trajectory length as a function of the absolute ILD (collapsing left and right trials), a significant linear decrease of trajectory length with increasing average ILD values across the trial can be observed. On Hesitation and Commitment 31
2 Online measures of behavior during a decision making task Figure 2.8: Choice trajectory vs stimulus strength (absolute average ILD across the trial) for subject 1 (left) and subject 2 (right). Blue circles are data. Red line shows linear fit with negative weights for both subjects indicating that the Trajectory Length decreases with increasing mean absolute ILD (decreasing difficulty), p<0.001. We investigate this effect further by analyzing correct and incorrect choice trials separately. This analysis reveals that the linear decrease in trajectory length with decreasing trial difficulty is significant for correct trials, but not for incorrect trials for both subjects. On Hesitation and Commitment 32
2 Online measures of behavior during a decision making task Figure 2.9: Choice trajectory vs stimulus strength (absolute average ILD across the trial) for subject 1 (left) and subject 2 (right). Blue circles are data. For correct trials (left plots), Red line shows linear fit with negative weights for both subjects indicating that the Trajectory Length decreases with increasing mean absolute ILD (decreasing difficulty), p<0.001. For incorrect trials (right plots), Blue line shows linear fit with negative weights for both subjects indicating that the Trajectory Length decreases with increasing mean absolute ILD (decreasing difficulty), Not Significant. 2.5 Discussion of Experiment 1 This first experiment showed us that it is possible to extend the standard two-choice task to obtain behavior during the deliberation period by incorporating a spatial component. Stable psychometric curves across several sessions and the pattern of increased reaction times with increasing trial difficulty are important, since they tell us that final choice behavior in this On Hesitation and Commitment 33
2 Online measures of behavior during a decision making task task resembles that of the standard task. This is meaningful since it enables proper statistical analysis of the data, and because any insights we draw are best interpreted in light of classical and modern psychophysics research. Although previous studies had already incorporated such a spatial component to the binary choice task [Spivey et al., 2005,Selen et al., 2012], and stochastic time-varying stimuli [Nienborg and Cumming, 2007], to our knowledge this is the first time that a stochastic time-varying stimulus was presented while subject behavior was densely measured. To the bare eye, the most salient feature of our data is perhaps the occurrence of hesitant choice trajectories elicited during some hard trials. This phenomenology finds a natural summary statistic in the length of the choice trajectory. The fact that trajectory length was only significantly correlated to the overall mean of the stimulus for correct trials might be a hint that our online measures of behavior hold information about the subject’s confidence that they are making the right choice. Different patterns of behavior for correct vs incorrect trials have been linked to confidence by previous studies [Zariwala et al., 2013], but this has typically been studied from reaction times, which decrease as stimulus difficulty decreases for correct trials whereas incorrect trials have the opposite profile. However, a separate analysis of reaction times for correct vs incorrect trials did not reveal this effect for our task (this negative result is not shown). Although these initial results were exciting to us, we found that the number of complex trajectories per subject were too few for more meaningful analysis, motivating us to tweak the task such that more complex trajectories could be observed (Figure 2.17). Our follow up experiment is detailed next. 2.6 Motivation for Experiment 2 While we managed to create a decision making task in the auditory domain in which behavior could be tracked beyond accuracy and reaction time during the discrimination period, the number of hesitant decision trajectories were too few for meaningful analysis. We wanted to observe more trajectories of this type, since we thought they might reflect online information about the state of the subject’s decision. We suspected that a sense of urgency to move would be needed to match a subject’s movements with the faster time-scale of the stimulus and the subject’s moment-to-moment be- On Hesitation and Commitment 34
2 Online measures of behavior during a decision making task liefs about it. We thus decided to add the constraint that subjects should initiate their choice trajectories within 500 milliseconds of the start of the stimulus, else the trial was aborted. This modification resulted in a much higher number of hesitant trajectories per session for Experiment 2 relative to Experiment 1. The new data allowed us to statistically explore the relationship between the time varying stimulus and the online movements. We found that linear combinations of eye and hand signals allow the reconstruction of the temporal structure of the stimulus. Understanding how this coupling arises required a more theoretical approach, the topic of Chapter 3, which in itself led to further change the task described in Chapter 4. 2.7 Methods of Experiment 2 2.7.1 Subjects Subjects received 3 training sessions prior to entering the experiment. A total of 5 naive subjects were considered for this experiment, but 1 subject was excluded because he failed to achieve a 70 percent correct performance by the 3rd session, all other 4 subjects went onto the experiment. All subjects performed 1080 trials across 12 sessions (3 sessions per day with a small break in between). Psychometric curves constructed from these 12 sessions are shown for all subject in the results section. 2.7.2 Task Experiment 2 had two modifications relative to Experiment 1. First, in order to increase the dynamic range or the arena, subjects now had to move their arm forward (y-direction of arena). We thought requiring reach-like movements to complete the task could lead to higher chances of engaging the motor system during the task. Second, in order to impose a sense of urgency, subjects were instructed to begin moving within 500 milliseconds of the start of the sound. Failure to move within 500 milliseconds resulted in an annoying buzzing sound and the screen markers flashing red. Subjects were free to take as long as 8 seconds (the maximum stimulus duration) to report their final choice. On Hesitation and Commitment 35
2 Online measures of behavior during a decision making task Subject initiates trial with button press Subject centers the pointer Sound starts after random delay Sound ends at response time Experiment 2 0.5 s Figure 2.10: Schematic of temporal sequence of events in the task. 2.7.3 Stimulus The stimulus is as the colored stimulus described in Experiment 1 2.3, but with one small change. The steady-state distribution from which sounds were sampled was changed to a uniform distribution of ILDs from -6dB to +6dB, which was shifted by 0.5, 2, or 4 dB to negative values to induce a left bias and to positive values to induce right bias. This modification resulted in qualitatively similar sounds as before, but the sampled ILD distribution converges to the theoretical mean of the stimulus slightly faster. Subjects were scored and received feedback according to the mean of the stimulus they experienced until reporting their choice, at which time the stimulus was extinguished. An example of an easy left trial with this slightly modified stimulus is shown. The figure shows a distribution shifted by -3 dB, however in the experiment the distribution was shifted by -4dB to make the stimulus even easier. On Hesitation and Commitment 36
2 Online measures of behavior during a decision making task Figure 2.11: Top left: Sample easy left stimulus. Bottom Left: Uniform steady state distribution the stimulus is sampled from. Top right: Left channel white noise stimulus. Bottom right: Right channel white noise stimulus. On Hesitation and Commitment 37
2 Online measures of behavior during a decision making task 2.8 Results of Experiment 2 2.8.1 Accuracy -6 -4 -2 0 2 4 6 Average ILD (dB) 0 0.25 0.5 0.75 1 Proportion Left s1-Performance fitted curve -6 -4 -2 0 2 4 6 8 Average ILD (dB) 0 0.25 0.5 0.75 1 Proportion Left s2-Performance fitted curve -8 -6 -4 -2 0 2 4 6 Average ILD (dB) 0 0.25 0.5 0.75 1 Proportion Left s3-Performance fitted curve -5 -4 -3 -2 -1 0 1 2 3 4 5 Average ILD (dB) 0 0.25 0.5 0.75 1 Proportion Left s4-Performance fitted curve Figure 2.12: Psychometric curve for all subjects computed from 1080 trials posttraining. Colored dots denote the mean proportion of left responses for a particular mean ILD value across all sessions. Error bars show standard deviations computed across 12 sessions. On Hesitation and Commitment 38
2 Online measures of behavior during a decision making task 1 2 3 4 5 6 7 8 9 10 11 12 -5 0 5 Sig.Bias (dB) Bias Training Bias 1 2 3 4 5 6 7 8 9 10 11 12 0 5 d' 1 2 3 4 5 6 7 8 9 10 11 12 Session # 0.6 0.8 1 % Correct 1 2 3 4 5 6 7 8 9 10 11 12 -5 0 5 Sig.Bias (dB) Bias Training Bias 1 2 3 4 5 6 7 8 9 10 11 12 0 5 d' 1 2 3 4 5 6 7 8 9 10 11 12 Session # 0.6 0.8 1 % Correct 1 2 3 4 5 6 7 8 9 10 11 12 -5 0 5 Sig.Bias (dB) Bias Training Bias 1 2 3 4 5 6 7 8 9 10 11 12 0 5 d' 1 2 3 4 5 6 7 8 9 10 11 12 Session # 0.6 0.8 1 % Correct 1 2 3 4 5 6 7 8 9 10 11 12 -5 0 5 Sig.Bias (dB) Bias Training Bias 1 2 3 4 5 6 7 8 9 10 11 12 0 5 d' 1 2 3 4 5 6 7 8 9 10 11 12 Session # 0.6 0.8 1 % Correct Figure 2.13: Four panels with 3 rows each show the performance of each subject across sessions. Psychometric curve bias (top), d’ (middle) and accuracy (bottom) shows performance remained relatively stable across sessions and days. For the d’ plots, the horizontal line marks d’=1. For the Percent Correct plots, the horizontal line marks 70 percent accuracy. Note that subjects 1 and 2 never fall below these performance thresholds, while subjects 3 and 4 were below only 2 and 1 sessions respectively. 2.8.2 Reaction Time Forcing subjects to start moving within the first half second caused subjects to have a sense of urgency that was not present in the first experiment, reflected in longer Reaction Times (RT), the time when the trajectory ends. When we analyze RT as a function of the actual experienced stimulus, a significant decrease in RT with increasing bias of the stimulus can be observed for all subjects. Red (blue) traces show leftward (rightward) stimuli, with lighter colors showing easier trials. On Hesitation and Commitment 39
2 Online measures of behavior during a decision making task behavior. Regularized (ridge) linear regression of the moment-to-moment stimulus onto the eye and hand data was performed, using for each stimulus segment to be predicted a window of 500 milliseconds of eye and hand data, which moves forward with the evolving stimulus. Ridge regularization was applied due to the co-linearity problem arising from correlations in the eye and hand data. Ridge regression minimizes squared error while regularizing the norm of the weights by parameter λ: ˆ β= arg min βX i (βTxi−yi)2+λβ2.(2.1) Training and testing was performed using the ’hold-out’ method, using 60 percent of the clean data to train the model and obtain a prediction coefficient kernel for each subject. The linear kernels were then used to reconstruct the stimulus from the remaining 40 percent of eye and hand data never seen by the model, and the correlation between the resulting test set reconstructions and the actual stimuli was computed. The regularization coefficient was visually chosen to maximize the mean correlation between reconstructed and actual stimuli for each subject’s test set. This method only produced reasonable kernels and predictions restricting it to the difficult trials (experienced trial mean ILD < 0.1 dB). A schematic of how each linear decoder (one per time-step) is trained with a window of eye and hand data is shown below. On Hesitation and Commitment 46
2 Online measures of behavior during a decision making task Figure 2.20: Schematic of training a decoder to predict the moment-to-moment stimulus from a window of eye and hand data. For each stimulus segment to be predicted a window of 500 milliseconds of eye and hand data, which moves forward with the evolving stimulus. Top panel shows the target variable (stimulus), and the corresponding predictor windows (Hand and Eye) for time-step 1. Bottom panel shows the same variables for time-step 2. The resulting kernels for all subjects are show in (Figure 2.21). In each panel the top half of the plot, each slice of time shows the linear weight On Hesitation and Commitment 47
2 Online measures of behavior during a decision making task of each point in a window of the next 500 milliseconds of hand data - at the bottom half the corresponding linear weight of windows of eye data - for predicting the instantaneous ILD value at each time following the onset of each stimulus sample. In subjects 1, 3, and 4, prior to the 700 ms time following stimulus onset, patches of negative (blue) can be observed below patches of positive (red) weights can be seen, especially in the hand kernels (top). This means that hand movements are not equally informative about the stimulus ILD at different times, and is evidence that subjects are not integrating information equally across time in order to guide their hand movements. Furthermore, the temporal resolution of the stimulus allows us to see that for the hard trials considered in the analysis, hand position is on average negatively correlated with ILD value for 100-300 milliseconds and then correlates positively for the next 100-300 ms. This suggests that subjects are listening for sweeps in the stimulus from one side to the other prior to moving their hand in the direction of the sweep. Alternatively, this pattern might be a result of the changes of direction, presumably following sequences of changes of mind we observe in the response trajectories. In either case, this is empirical evidence that subjects are tracking the stimulus with their hands and eyes. The coefficients for eye data tend to be weaker, and are more difficult to interpret, but similar but smaller patches as we observed for the hand kernels appear to be present in the eye kernels too. In (Figure 2.22) we show a few samples of the reconstructed stimuli, including both good and poor reconstructions. We then show histograms of the correlation between the actual stimuli and the linear reconstructions in hold-out test data (Figure 2.23). We think the fact that the mean correlation of these reconstructions to the true stimulus is greater than zero (p<0.001) is meaningful, because it shows that even this very limited model can, to some degree, accurately encode and decode the stimulus. The only subject for which the analysis is not significant is subject 2, which is also the subject for which the stimulus kernel becomes uninformative earliest (by 500 ms vs 700 ms for the other subjects). Qualitatively, subject 2 appears to have the most direct to target trajectories and rarely shows more than one change of mind (Figure 2.15). This qualitative observation is consistent with the conclusions we reached that this subject is not tracking the stimulus, per the more quantitative kernel and reconstruction analysis. On Hesitation and Commitment 48
2 Online measures of behavior during a decision making task Figure 2.21: Regularized (ridge) linear regression of the moment-to-moment stimulus onto the eye and hand data for all subjects. Regularized (ridge) linear regression of the moment-to-moment stimulus onto the eye and hand data was performed, using for each stimulus segment to be predicted a window of 500 milliseconds of eye and hand data, which moves forward with the evolving stimulus. Post-stimulus kernel refers to the prediction coefficient (β) of each sample in each window of hand and eye data. For each plot, the top panel shows the prediction coefficients kernel fit on 60 percent of the data (training set) for the hand data and the bottom panel eye data. The hand and eye data were z-scored prior to fitting the model. On Hesitation and Commitment 49
2 Online measures of behavior during a decision making task Figure 2.22: Reconstructed stimuli vs. actual stimuli sampled from the test set, not used during training. The title for each plot shows the correlation between the two time-series. Legend: Blue line shows the stimulus, and red line the reconstruction from arm and eye data. On Hesitation and Commitment 50
2 Online measures of behavior during a decision making task Figure 2.23: Histograms of the correlation between actual and reconstructed stimuli for all subjects for the test-set. A p-value was calculated for each mean correlation coefficient by shuffling the varying part of the actual stimuli in order to create a distribution of surrogate mean correlations to the reconstructions. Mean correlation for all subjects, except subject 2, was greater than zero and significant. Subject 2 (top right) has the lowest mean correlation, which is also not significant. This is to be expected from her rather ballistic trajectories, faster reaction times, and prediction coefficients kernel which cuts off after 400 milliseconds into the stimulus. 2.9 Discussion Previous studies managed to obtain online readouts of behavior during the execution of a 2AFC task, for example using a computer mouse [Spivey et al., 2005] or a haptic joystick like controller [Resulaj et al., 2009]. In both of these studies, hard trials elicited complex decision trajectories. One study described these complex decision trajectories as ’in-between’ [Spivey et al., 2005], and the other as changes of mind [Resulaj et al., 2009]. The authors of On Hesitation and Commitment 51
2 Online measures of behavior during a decision making task changes of mind in decision making could be predicted using the bounded accumulation of evidence diffusion model. We were inspired by these studies, and wanted to extend the methodology to investigate further the relationship of online movements during the task and the stimulus. The hard stimuli used for the discrimination task in [Spivey et al., 2005] were phonological competitors such as ’candle’ and ’candy’ (vs ’dolphin’ for an easier discrimination), which are not suitable for studying the evolution in time of the mental processes we are interested in. Statistically constructed stimuli such as the one used in [Nienborg and Cumming, 2007,Resulaj et al., 2009] is more suitable for our purposes, but in those studies they extinguish the stimulus at movement initiation. Later work by Shadlen’s group established a correlation between the online stimulus and motor signals recorded prior to the movement initiation [Selen et al., 2012]. We managed to obtain online motor responses during the accumulation period in our first experiment, but this behavior was only observed in a fraction of the more difficult trials. Our second experiment had the explicit goal of increasing the number of hesitant trajectories performed by the subjects in our novel binary choice task. In experiment 1, we thought that subjects were waiting too long to begin moving, allowing for their decision to evolve to a fully committed choice by the time most actions were initiated. In experiment 2, imposing a cut-off time of 500 milliseconds to begin movements was enough to double the number of hesitant trajectories observed per session. However, this constrain also resulted in shorter reaction times and thus less time for the subjects to experience and report on the stimulus. Our novel task allowed us to quantitatively assess the degree to which online behavior encodes information about an ongoing binary discrimination. Like Spivey [Spivey et al., 2005], we believe our online readouts to be empirical evidence for continuous uptake of sensory input and dynamic competition between simultaneously active representations (of speech lexicons in their study, of left and right ILDs or responses in our case). However, the controlled time-varying nature of our stimulus allowed us go one step further in our analysis and quantitatively estimate the amount of information about the stimulus that is encoded in the online behavioral readouts. We found that linear combinations of eye and hand data can be used to reconstruct the online stimulus. The predictive power of our model, demonstrated through cross-validated reconstructions in (Figure 2.23), serves as validation while its simplicity facilitates the interpretation of precise stimulus driven events that can be seen in the kernels. For example, On Hesitation and Commitment 52
2 Online measures of behavior during a decision making task we interpret the sharp drop in the prediction coefficient kernels around 700 ms for subjects 1, 3, and 4 (Figure 2.21) as a switch in subject behavior from seemingly tracking the stimulus to ignoring it as they commit to a choice. The patches of negative (blue) transitioning sharply to positive (red) prediction weights in the hand kernels show that subjects are utilizing stimulus information to guide their hand movements differently across time, however, it is hard to distinguish whether these patterns are due to some heuristic being applied by subject to process the stimulus, such as detection of sweeps from one side to the other, or are instead due to changes of mind. We initially thought that the transition from seemingly tracking the stimulus to ignoring it (Figure 2.21) was a result of a non-linearity in the processing of the stimulus, reflecting the categorical nature of committing to a choice. However, the data did not allow us to exclude the hypothesis that the non-linearity could arise from the motor component to the task (e.g. the need to control an arm). As we tried to formalize our description of subject behavior in this task, the question ’Why are subjects behaving in this manner in our task’ turned into ’How should subjects behave in this task?’ In order to answer this question, we built normative models for our task by expanding upon a normative model of the standard two choice task [Drugowitsch et al., 2012]. The original framework models an optimal agent’s urgency to act by subtracting a cost for time passing from the agent’s notion of long-term rewards in the task. Our framework generalizes the model to embodied settings requiring an agent to move an arm or navigate an environment, and is the subject of the next chapter. Ultimately, we learned that time urgency was a necessary component in order to observe the uncommitted behavior we were interested in studying, and it became clear that we needed to be able to control the subjects’ urgency in the task. This led to the implementation of a point system for the task of Chapter 4 that tries to link the explicit rewards and cost for time passing of the models of chapter 3 to monetary compensation for the subjects of the experiments of Chapter 4. In experiment 3, the subjects receive visual feedback regarding expected rewards and points lost due to the passage of time during the execution of the task, and summary of the accumulated totals between trials. The difficulty of analyzing subject behavior in terms of the experienced stimulus (Figure 2.21) forced us to rethink the stimulus as well. The fast features of the stimulus are not clearly translating to behavior, with longer sequences of stimuli (patches of blue or red) to one single side appear to be what guides subject behavior. On Hesitation and Commitment 53
2 Online measures of behavior during a decision making task The regions of positive and negative weighs patterned after each other might suggest that subjects are also tuning to sweeps from one side to the other in the stimulus. We wanted to have a simpler time-varying stimulus for the next round of experiments. We were inspired by an auditory task that used sequences of binary (left or right) clicks in order to study decision making in rats and humans [Brunton et al., 2013]. In the [Brunton et al., 2013] study, auditory clicks are generated from independent Poisson processes, and the Poisson click rates are constant for the duration of each trial. The difference in click rates sets task difficulty. We instead use a constant click-rate (4 Hz) and modulate a single probability of a click occurring on the left or the right, and that sing probability controls task difficulty. 2.10 Acknowledgments Experiment 1 data was collected and analyzed by me with the guidance of Jose L. Pardo-Vazquez and Alfonso Renart. For experiment 2, we thank Gautam Agarwal for his contribution in providing an innovative approach to analyzing our data and for discussions, and Jose L. Pardo-Vazquez and Zach Mainen for discussions. On Hesitation and Commitment 54
Bibliography [Boyd et al., 2004] Boyd, S., Diaconis, P., and Xiao, L. (2004). Fastest mixing Markov chain on a graph. SIAM Review. (Cited on page 24.) [Brunton et al., 2013] Brunton, B. W., Botvinick, M. M., and Brody, C. D. (2013). Rats and humans can optimally accumulate evidence for decisionmaking. Science (New York, N.Y.), 340(6128):95–98. (Cited on pages 54 and 145.) [Drugowitsch et al., 2012] Drugowitsch, J., Moreno-Bote, R. N., Churchland, A. K., Shadlen, M. N., and Pouget, A. (2012). The cost of accumulating evidence in perceptual decision making. Journal of Neuroscience. (Cited on pages 6,7,9,53,58,59,60,62,65,66,74,76,78,97,98,106, 153, and 154.) [Kassner et al., 2014] Kassner, M., Patera, W., and Bulling, A. (2014). Pupil: An open source platform for pervasive eye tracking and mobile gaze-based interaction. In UbiComp 2014 - Adjunct Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing. (Cited on page 27.) [Lopes et al., 2015] Lopes, G., Bonacchi, N., Frazão, J., Neto, J. P., Atallah, B. V., Soares, S., Moreira, L., Matias, S., Itskov, P. M., Correia, P. A., Medina, R. E., Calcaterra, L., Dreosti, E., Paton, J. J., and Kampff, A. R. (2015). Bonsai: An event-based framework for processing and controlling data streams. Frontiers in Neuroinformatics. (Cited on page 27.) [Nienborg and Cumming, 2007] Nienborg, H. and Cumming, B. G. (2007). Psychophysically measured task strategy for disparity discrimination is reflected in V2 neurons. Nature Neuroscience. (Cited on pages 34,52, and 145.) 55
3 Optimal decision making model for temporally extended actions an arena. By varying the arena size and the cost of time (aching to the arena length), we can study the behavior of an optimal agent in response to changes in the shape of the environment. We think that this consideration of geometric costs constitutes a contribution to the study of decision making by showing how these models are capable of solving more naturalistic choices. The advantage of these models are that in addition to giving a prediction that could be used to validate against data, they also provide an explanation for their behavior. 3.3.3 Bellman equation for embodied 2AFC task The principle of optimality breaks down complex optimization problems into sequences of simpler problems. This principle is abstracted by the Bellman equation into a recursive relationship that writes the value of a state at a certain point in time in terms of the rewards making from some initial choices and the value of the future states that result from those initial choices. The following is a description and implementation of how to write the Bellman equation for a reinforcement learning (RL) agent, which discriminates a stream of stochastic evidence, and chooses one of two spatially distinct targets depending on the average sign of the stimulus. The agent moves in a manner that maximizes rewards for correct answers in light of costs for time passing and moving in the arena. Although the decision is binary and categorical, we consider space as an additional constraint, explicitly modeling graded degrees of freedom as an attempt to represent an agent physically moving in an arena. In the first iterations of our model, we simplified movement costs by penalizing the velocity of changes in position. Although the model produced hesitant decision trajectories, the model’s trajectories were rather blocky or squared looking rather than the smooth curved trajectories observed in the subjects. Rather than complicating the model to produce smooth trajectories, we realized that further simplifying it to consider the same 3 choices at each time step, left, right, and waiting, would highlight the geometric aspect of having to traverse some distance, rather than the physical cost of doing it. We generalize the POMDP framework from [Drugowitsch et al., 2012] to include a unit cost per movement, and limit actions to one movement per time step. Choosing correctly results in a reward, Rll, for leftward stimuli and, Rrr, for rightward stimuli. Incorrect responses, Rlr and Rrl, are typically assigned negative values (punishment) On Hesitation and Commitment 62
3 Optimal decision making model for temporally extended actions or zero value (no reward). Drugowitsch and colleagues describe the value function of an agent that trades off certainty about the stimulus for earlier (potential) reward given that there is a cost for the passage of time in the task. He solves the Bellman equation with this value function to estimate the long-term estimates of reward minus cost for each possible next action. The output of this algorithm is a look-up table of next best action (the one with highest value) for each time and belief in the standard 2AFC task. The outcome is an agent that trades off speed for accuracy, similar to animals and humans performing this task. The bellman equation for the standard 2AFC task is below: With t=time, and g=belief, V alue(t, g) = maxActions{Expected V alue(t+δt, g, action)}= Action Expected V alue max{ Right , gRrr + (1 −g)Rlr, Left , (1 −g)Rll +gRlr, Wait , hV(t+δt, g(t+δt),|g, t)ig(t+δt)−ctδt },(3.1) where g(t+δt)∈(0,1),is the agent’s belief or confidence that the stimulus favors the right side (g−→ 1) or the left side (g−→ 0), and ct is the cost per unit time δt. The agent computes the expected value of each state by summing the products of the value of rewards reachable from her current state, and the probability of collecting those rewards from that state. Considering only the case when wrong trials are unrewarded (Rlr =Rrl = 0), the value function becomes V alue(t, g) = maxActions{Expected V alue(t+δt, g, action)}= Action Expected V alue max{ Right , gRrr, Left , (1 −g)Rll , Wait , hV(t+δt, g(t+δt))|g, t)ig(t+δt)−ctδt }.(3.2) We generalize this equation to an embodied task where the agent must navigate towards one of two targets on a 2D grid (XY ) in order to collect On Hesitation and Commitment 63
3 Optimal decision making model for temporally extended actions rewards. At each time step, the agent moves to position (x’,y’)∈XY as to maximize her value function, which now includes an additional cost for moving. We originally incorporated a cost proportional to the squared magnitude of the agent’s instantaneous velocity to reach position (x’, y’) in order to model experiment 2. However, in our final task we automatically displace the agent (or subject cursor) in the y direction at constant velocity towards a ceiling that corresponds to the time-limit in the task, and allow the agent to answer at any time by reaching the lateral walls of the arena. The y position when the agent reaches either side has a 1-to-1 correspondence to the reward minus time cost for that trial. This modification was made in order to make the cost in time more explicit, and simplify the control of the cursor, which now consists of discrete steps to the left or to the right. Explicitly, the goal of the task is to maximize the number of points, obtainable by reaching the right (left) boundary for positive (negative) values of stimulus bias µas early as possible. At each time-step δt, the agent chooses how many steps to move, paying a cost cx per unit x displaced. The agent can move to the Left or Right terminal states (the arena boundaries), remain at the same xposition (wait), or move to a different xposition. Each move x−→ x0occurs over time step δt. Waiting and moving to non-terminal xpositions results in the agent experiencing one more stimulus sample, being automatically displaced by 1 unit in y, and paying the corresponding time cost ctδt. The rewritten Bellman equation is as follows: With t=time , g=belief , δx =x displacement, cx = movement cost, Cδt = time cost TR = right terminal state, and TL = left terminal state (T=terminal), V alue(t, g, xt, yt) = maxActions{ExpectedV alue(t+δt, g, xt, yt, xt+δt, yt+δt)}= Action Expected V alue max{ xt−→ xT R,gRrr −cxδx, xt−→ xT L,(1-g)Rll −cxδx, xt−→ xt+δt ∀xt+δt /∈xT,hV(t+δt, g(t+δt), xt+δt, yt+δt|g, t)ig(t+δt) - ctδt−cxδx }(3.3) With On Hesitation and Commitment 64
3 Optimal decision making model for temporally extended actions hV(t+δt, g(t+δt), xt+δt, yt+δt|g, t)ig(t+δt)= Rg(t+δt)p(g(t+δt|g, t))V(t+δt, g(t+δt), xt+δt, yt+δt) obtained by integrating the product of the analytical solution to the belief transition probability, p(g(t+δt|g, t)), described below and V(t+δt, g(t+δt), xt+δt, yt+δt)obtained by iterative back-propagation of the value function, assumed to equal gR at the terminal state V(T, g)for a T long enough that the agent must by then be sure of her belief on the stimulus. 3.3.4 Belief Transition Probabilities In the Drugowitsch and colleagues framework, the stimulus is brownian noise, meaning "it is momentarily gaussian distributed δx(t)∼N(µδt, δtσ2) for a small period of time δt , with mean µδt and variance δtσ2, where |µ|is the stimulus strength, and µ≥0, µ ≤0correspond to rightward and leftward favoring stimuli respectively. This evidence corresponds to a drift diffusion model dx/dt =µ+η(t)with drift rate µand noise η(t)∼ N(0, σ2)and x(t)describes the trajectory of a drifting/diffusing particle," [Drugowitsch et al., 2012]. In order to make sense of sensory evidence, the disembodied agent generates a posterior belief (g)on µgiven available evidence δs1:t,up until time t, which is the product of her prior about the stimulus s=N(µ, σ2)with the likelihood of experiencing a stream of evidence QnN(δsn|µδt, δtσ2). This results in the following belief transition probability function: On Hesitation and Commitment 65
3 Optimal decision making model for temporally extended actions p(g(t+δt)|g(t), t) = 1/qδteff exp( [Φ−1(g(t+δt))]2/2−(Φ−1(g(t+δt)) −q(1 + δteff )Φ−1(g(t)))2/2δteff )[Drugowitsch et al., 2012] We decided to simplify the stimulus in order to reduce subjective ambiguity regarding the importance of each stimulus sample. A stimulus that can only be clearly to the left or clearly to the right for any given sample puts the focus in estimating the long-term proportion of right to left samples, and should result in easier to interpret behavior. The basic behavior of the[Drugowitsch et al., 2012] model for the standard 2AFC task is also true when we use our new stimulus, namely that psychometric functions become sharper (improved performance) and reaction times increase as the cost per time passing is lowered. We detail the new stimulus and how to turn it into an optimal belief using Bayesian inference before presenting our modeling results. 3.3.4.1 New Stimulus We created a simpler stimulus by sampling each momentary evidence from a binomial distribution (rather than Gaussian distribution for the classical random dot visual stimulus assumed in [Drugowitsch et al., 2012], or the uniform distribution for experiment 2), such that for any one δt, the stimulus is completely lateralized to one side. The task remains to estimate the mean bias. The new stimulus consist on a sequence of sound presentations or "bursts" of 100 milliseconds duration, each burst fully to the right or to left (|ILD| = 6dB). The time between the onset of one sound presentation and the next is τ= 250 ms. The full sequence is 7 seconds long, which means there are 28 total bursts. The sequence is chosen so it contains more bursts to one side than the other, in one of three different fixed proportions. Leaving costs aside, the task that the subjects need to solve consists in determining which is the side that is represented more. But because the subjects are penalized in time, they can only experience a random sample of the full sequence before committing to a decision. Therefore, the optimal solution involves inferring the probability πof the right being the more represented side. The inference problem can be idealized as the subjects experiencing Bernoulli samples of the probability πequal to the fixed proportion of right versus left in the sequence. In other words, it is equivalent to the problem On Hesitation and Commitment 66
3 Optimal decision making model for temporally extended actions of inferring the probability of a Binomial distribution with a limited number of samples from it. At any given time t, let us define ¯n(t)as the total number of sound presentations up until that time. Because the interval between bursts is regular, ¯n(t)and tplay a completely equivalent role. We define ¯r(t)and ¯ l(t) as the number of sound presentations to the right and to the left up until time trespectively. They satisfy ¯n= ¯r+¯ l(in general we will omit the time dependence). Let us define the number of perceived observations to the right as r(t) and to the left as l(t), both real numbers in general. Now let us assume two situations. 3.3.4.2 Noiseless counting In this scenario, the subject is able to count perfectly ¯rand ¯ l, and therefore r(t) = ¯r(t)and l(t) = ¯ l(t). They are integers that are incremented by 1or 0after each observation. Because we are trying to infer the probability of Binomial distribution, the posterior probability is going to be a Beta distribution. Therefore is convenient to define the prior as a Beta distribution too: p(π) = 1 B(α, β)πα−1(1 −π)β−1(3.4) Where the beta function B(α, β)is defined as B(α, β) = Z1 0πα−1(1 −π)β−1dπ =Γ(α)Γ(β) Γ(α+β)(3.5) The parameters α, β ∈Rcontrol the shape of the distribution. From now on we will choose α=β= 1, which gives rise to a uniform prior distribution. Under these conditions, the posterior distribution of πgiven the observations becomes: p(π|r, l) = 1 B(r+ 1, l + 1) πr(1 −π)l(3.6) The belief, i.e. the probability of πbeing greater or equal than 0.5is g(r, l) = 1 B(r+ 1, l + 1) Z1 0.5πr(1 −π)ldπ = 1 −I0.5(r+ 1, l + 1) (3.7) On Hesitation and Commitment 67
3 Optimal decision making model for temporally extended actions Where Ix(a, b)is the regularized incomplete Beta function. The probability of r0(t+τ), i.e. the number of right observations after the next sound presentation is p(r0(t+τ)|r(t), l(t)) = Z1 0p(π|r, l)[πδ(r0−r−1) + (1 −π)δ(r0−r)]dπ =r+ 1 n+ 2δ(r0−r−1) + l+ 1 n+ 2δ(r0−r−1) (3.8) Therefore the belief transition probability g0(r0, l0)is found applying the mapping in (3.7) p(g0(r0, l0)|g(r, l)) = r+ 1 n+ 2δ(g0−g(r+ 1, l)) + l+ 1 n+ 2δ(g0−g(r, l + 1)) (3.9) 3.3.4.3 Noisy Observations The inference model above depends only on the probability of a right stimulus, π, on the counts experienced to the right so far, and the total counts. As is typical in decision making research, we are interested in modeling uncertainty in the inference of the bias of the stimulus. To this end, we introduce "noisy" observations, which can be flipped relatively to the stimulus with a certain probability α. This noise represents a type of sensory noise, since each stimulus sample can be occasionally counted to the wrong side. Although we take great care that each stimulus sample is clearly lateralized to one side, subjects failed to discriminate difficult stimuli perfectly, even when listening duration was extended to 12 seconds in a binary choice version of the task. In fact, performance saturated at around 80 percent for 10 second stimuli. This suggest that such sensory noise, or alternatively noise in the integration of stimuli is present in the subjects performing this task ??. We only simulate the sensory noise since this was more straight forward to derive Bayesian equations for. The noise could be inferred for the super subject shown by the red trace in ??, by fitting the model such that it matches the performance of the average subject for varying listening duration in the binary choice configuration. With enough sessions per subject, this parameter could be fitted for each subject. Other ways to introduce behavioral variability that were not explored include a soft-max transformation of the expected reward into action. Our choice of sensory noise results in the following discrete posterior distribution: On Hesitation and Commitment 68
3 Optimal decision making model for temporally extended actions p(π|n, r) = 1 B(1 −α;r+ 1, n −r+ 1) −B(α;r+ 1, n −r+ 1)q(π)r(1−q(π))n−r (3.10) where n is the total number of observations and ris the number of observations to the right, q=α+π(1 −2α)(the "effective" probability of a right observation) and B(z;a, b)is the incomplete beta function. This leads to a belief and belief transition probability: g(n, r) = I1−α(r+ 1, n −r+ 1) −I0.5(r+ 1, n −r+ 1) I1−α(r+ 1, n −r+ 1) −Iα(r+ 1, n −r+ 1) (3.11) p(r0(t+τ)|n(t),r(t))=B(r0+1,n+1−r0+1) B(r+1,n−r+1) I1−α(r0+1,n+1−r0+1)−Iα(r0+1,n+1−r0+1) I1−α(r+1,n−r+1)−Iα(r+1,n−r+1) (3.12) where Ix(z, w)is the regularised incomplete beta function and B(a, b)is the beta function. The full derivation of this formula can be seen below: The probability of an observation o1(o1= 0 left observation, o1= 0 right observation) given a certain value of πis: p(o1|π) = π(1 −α) + (1 −π)αif o1= 1 (1 −π)(1 −α) + πα if o1= 0 =α+π(1 −2α)if o1= 1 1−(α+π(1 −2α)if o1= 0 =qo1(1 −q)1−o1 (3.13) where: q:= α+π(1 −2α) For two observations o1and o2, we obtain: p(o1, o2|q(π)) = [qo1(1 −q)1−o1][qo2(1 −q)1−o2] = qPioi(1 −q)2−Pioi(3.14) Generalizing for n observations: p(o1, o2, ..., on|q(π)) = qr(1 −q)n−r(3.15) r:= X i oi p(o1, o2, ..., on|π)=(α+π(1 −2α))r(1 −α−π(1 −2α))n−r(3.16) In order to calculate the posterior distribution we need to compute the integral: On Hesitation and Commitment 69
3 Optimal decision making model for temporally extended actions Z1 0 p(o1, o2, ..., on|π)p(π)dπ =Z1 0 (α+π(1 −2α))r(1 −α−π(1 −2α))n−rp(π)dπ (3.17) Using uniform distribution for p(π)and substitution q=α+π(1 −2α): Z1 0 p(o1, o2, ..., on|π)p(π)dπ =Z1−α α qr(1 −q)n−rdq =B(1 −α;r+ 1, n −r+ 1) −B(α;r+ 1, n −r+ 1) (3.18) where B(z;a, b)is the incomplete beta function. p(π|o1, o2, ..., on) = 1 B(1 −α;r+ 1, n −r+ 1) −B(α;r+ 1, n −r+ 1) q(π)r(1 −q(π))n−r(3.19) The belief of the bias being to the right results from integrating the posterior for all the probabilities πthat favor more right observations than left: g(n, r) = Z1 0.5 1 B(1 −α;r+ 1, n −r+ 1) −B(α;r+ 1, n −r+ 1) (α+π(1 −2α))r(1 −α−π(1 −2α))n−rdπ = =1 B(1 −α;r+ 1, n −r+ 1) −B(α;r+ 1, n −r+ 1) Z1−α 0.5 qr(1 −q)n−rdq =B(1 −α;r+ 1, n −r+ 1) −B(0.5; r+ 1, n −r+ 1) B(1 −α;r+ 1, n −r+ 1) −B(α;r+ 1, n −r+ 1) =I1−α(r+ 1, n −r+ 1) −I0.5(r+ 1, n −r+ 1) I1−α(r+ 1, n −r+ 1) −Iα(r+ 1, n −r+ 1) (3.20) where Ix(z, w)is the regularised incomplete beta function. Finally, the belief transition probability is therefore: p(r0(t+τ)|n(t), r(t)) = R1 0p(q(π)|n, r)·q(π)dπ if r0=r+ 1 R1 0p(q(π)|n, r)·(1 −q(π))dπ if r0=r =Z1−α α p(q|n, r)·qr0−r(1 −q)1−r0+rdq =1 B(1 −α;r+ 1, n −r+ 1) −B(α;r+ 1, n −r+ 1) Z1−α α qr0 (1 −q)n+1−r0 dq =B(1 −α;r0+ 1, n + 1 −r0+ 1) −B(α;r0+ 1, n + 1 −r0+ 1) B(1 −α;r+ 1, n −r+ 1) −B(α;r+ 1, n −r+ 1) =B(r0+ 1, n + 1 −r0+ 1) B(r+ 1, n −r+ 1) I1−α(r0+ 1, n + 1 −r0+ 1) −Iα(r0+ 1, n + 1 −r0+ 1) I1−α(r+ 1, n −r+ 1) −Iα(r+ 1, n −r+ 1) (3.21) The belief transition probabilities after sampling 5 stimuli compared to after sampling 15 stimuli are shown below: On Hesitation and Commitment 70
3 Optimal decision making model for temporally extended actions p(g'|g) n=5 0.09 0.2 0.39 0.61 0.8 0.91 g 0.06 0.14 0.29 0.5 0.71 0.86 0.94 g' 0 0.1 0.2 0.3 0.4 0.5 0.6 p(g'|g) n=15 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 g 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 g' 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 Figure 3.1: Belief transition probabilities after 5 samples of stimulus (left) and after 15 samples (right). Since the values of belief and probabilities are discrete and not equally spaced, the "squares" in the plot were scaled to approximately represent the correct distances in belief space. (the lack of the symmetry that should exist around 0.5 on both axis is a result of approximating). Colorbar shows the probability p(g’|g). On Hesitation and Commitment 71
3 Optimal decision making model for temporally extended actions Figure 3.7: Value as a function of the agent’s belief. To the left, a slice at t=1 s is shown, representing the values of waiting (black), choosing left (red) or choosing right (blue) for all possible beliefs. To the right, the value function is shown for all times, with larger dots representing the intersection at each time of the curves of waiting with the ones of moving left (large red dots) and the curves of waiting with the ones of moving right (large blue dots). These points correspond to the decision boundaries, where the agent should move left (right) if belief is smaller (bigger), than the one of the decision boundary. Large green dots correspond to the intersection of the value curves for moving left and moving right. These bounds determine the choices for a given stimulus belief, such that an agent with zero noise in the integration of the stimulus will always have the same beliefs for repeats of the stimulus, and thus always make the same choice. However, variance in responses to a fixed stimulus is introduced by the noise parameter α. As previously described [Drugowitsch et al., 2012], decision boundaries on the agent’s belief collapse later as the cost of time decreases (time limit, y, increases), which increases reaction times and improves performance. On Hesitation and Commitment 78
3 Optimal decision making model for temporally extended actions 0 5 10 Time (s) y64 y32 y16 y8 y4 y2 y1 Figure 3.8: Time evolution of decision boundaries in belief space for different time limits. The decision boundaries collapse in time. The distance between the bounds widens as the cost of time is decreased (time limit, y, is increased). Each pair of mirrored lines represents the threshold or decision bound that the agent’s belief must cross at each time in order to make a choice for a particular time limit imposed by a cost for time passing. The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible). 3.4.2 Normative model of our embodied 2AFC task, fixing arena width and time limit parameters We next characterize the behavior of a normative agent that must make several moves in order to report a choice, and then show what happens to the bounds as we move from the disembodied task to the embodied task. As before, we first show behavior for a fixed time limit of 4, and then for a range of time costs as before, except now the number of presses necessary to reach either side is fixed at 8 (arena size = 2*8 (sides) + 1 (center) = 17). Left and right stimuli have been collapsed using (3.23) so that higher values mean easier stimuli. As with the disembodied agent from Figure 4.2, reaction times decrease as the difficulty of the stimulus decreases (higher absolute mean ILD). As the difficulty of the stimulus increases, the agent also uses a significantly higher number of presses to report its choice. On Hesitation and Commitment 79
3 Optimal decision making model for temporally extended actions Time Limit = 4 0.1 0.2 0.3 0.4 0.5 0.6 0.7 |(NR-NL)/(NR+NL)| 8 10 12 14 16 18 20 22 Number of Presses 10 -1 10 0 10 1 10 2 10 3 Counts = -0.28p=0.0086 Time Limit = 4 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 |(NR-NL)/(NR+NL)| 3 4 5 6 7 8 9 10 11 12 13 Reaction Time (s) 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 Conditional probability = -3.99p=0 Figure 3.9: Left panel: Number of presses as a function of stimulus strength, for an arena width of 17. The colour scale represents the number of counts and is logarithmic. Black dots represent the mean number of presses for each bin of stimulus strength. Red line is the linear regression of Number of Presses onto Stimulus Strength. Right panel: Reaction times as a function of stimulus strength for an arena width of 17. The colour scale represents the conditional probability of the reaction times given a certain stimulus strength. Black dots represent the mean reaction time for each bin of stimulus strength. Red line is the linear regression of Reaction time onto Stimulus Strength. While the decrease in mean RT appears to be more robust (larger coefficient), there is a significant dependence of the total number or presses on the difficulty of the task. It is clear from the figure that the easiest stimuli get resolved with the minimum number of presses, whereas harder stimuli can elicit more than twice that. Remarkably for our investigation, the raw agent behavior in the arena for easy versus a harder stimulus can be qualitatively similar to the phenomenology we observed in experiments 1 and 2. On Hesitation and Commitment 80
3 Optimal decision making model for temporally extended actions 0 5 10 Time (s) -5 0 5 x 0 0.2 0.4 0.6 0.8 1 Belief (NR-NL)/(NR+NL): -0.53571 0 5 10 Time (s) -5 0 5 x 0 0.2 0.4 0.6 0.8 1 Belief (NR-NL)/(NR+NL): 0 Figure 3.10: Normative agent trajectories for an arena of width 17, backpropagation from 14 seconds, unit cost per action 0.01 with stimulus noise α= 0.2 for an easy (left) and a hard (right) trial. Black dots on the borders of each plot show the stimulus, and thin red line the corresponding Bayesian belief. A thick red (blue) line on the left (right) plot shows the decision trajectory of the agent for one presentation of that stimulus. 3.4.3 Decision bounds for the embodied normative agent reflect the agent’s commitment to a choice We begin by showing the action value intersections defining the decision bounds for the disembodied agent of (Figure 3.7), but for the embodied agent with arena width x17. The embodied action bounds to move one step to the right or left from x = 0 are more narrow relative to the disembodied decision bounds to choose left or right, however, whereas the disembodied agent reports her final choice after taking one action to either side, the embodied agent encounters another decision bound. These new decision bounds have the interesting property that the mid-point belief g = 0.5 is closer to the bound on the side of the direction that the agent moved. That is, it takes less extreme values of belief to the left (right) to make an action to the left (right) for an agent that is on the left (right) side of the arena. The bounds change with the agent’s position, making the left (right) actions more valuable as the agent moves left (right), resulting in a positive feedback loop that eventually commits the agent to choose left (right) when the value of the waiting state no longer surpasses that of either bound. This occurs when the left and right bound touch or collapse. At this time, the agent is forced to commit to whatever side she is closest too. The collapse of On Hesitation and Commitment 81
3 Optimal decision making model for temporally extended actions the bounds can be seen in the figure below, at the time-step where only a green dot but no red or blue dots (the bounds) are present anymore. The time step immediately before that is last step at which the agent still has time to make it to either side before her points run out. We call this final set of bounds denoting non-reversible actions, hard bounds, and they have the same categorical nature of the disembodied bounds that commits agents to their choices. In contrast, bounds encountered before this time step, at which the agent can still delay her final choice to either side by one more time-step, we call soft bounds. The difference between soft and hard bounds is by definition, since the bounds are derived directly from the values of each potential action (left, right, wait). Crossing a soft bound in general leads the agent to encounter a new set of bounds, however, the hard bound is the bound collapse, which is the moment for which there remains only sufficient time to reach the closest target. For an agent in the center, the hard bound collapses at 0.5, so the agent will immediately begin to move to the side that her belief favors. Although it is difficult to conceive an analysis that finds these bounds from behavior rather than action values, the consequence of the hard bounds is an agent that at some point must commit to one side or the other. This inspired the final analysis of the thesis, where we quantify probabilities of moving left, waiting, or moving right as a function of the stimulus evidence, for different times and locations in the arena 4.31. On Hesitation and Commitment 82
3 Optimal decision making model for temporally extended actions 0.2 0 0.4 0.6 5 Value t (s) 0.8 10 x = -4 g 1 0.8 0.6 15 0.4 0.2 0 0.2 0 0.4 0.6 5 t (s) 0.8 10 x = 0 g 1 0.8 0.6 15 0.4 0.2 0 0.2 0 0.4 0.6 5 t (s) 0.8 10 x = 4 g 1 0.8 0.6 15 0.4 0.2 0 Figure 3.11: Value function for all times and for current positions (a)x=-4, (b)x=0, (c)x=4, for an arena width of 17, cost of movement 0.01, cost of time 0.018 and back-propagation from 14 seconds. Small red, blue and black dots represent the values of moving left, moving right and waiting at the current position, respectively. The larger dots represent the intersection at each time of the curves of waiting with the ones of moving left (large red dots) and the curves waiting with the ones of moving right (large blue dots). Large green dots correspond to the intersection of the curves of moving left and moving right. When the agent’s belief hits the left (right) bound at the initial position, x = 0, she moves to x = -1 (x=1). Note the value of waiting at x = -4 (x = 4) marked by the green dots is closer to the red (blue) dots denoting the left (right) bound. 3.4.4 Reliability: Trajectories for repeated presentations of the same stimulus The trajectories of the agent are fully determined by the bounds and her beliefs. This means that for noise-less inference on the integrated stimulus (α= 0), repeating the same stimulus results in the exact same trajectory output by the model. However, noise in the memory of the integrator causes slight differences in the beliefs of the agent, causing slight differences in the output trajectories when beliefs are allowed to vary with αon a trial by trial basis. This results in qualitatively similar trajectories for repeated presentations of the exact same stimulus. Below we show the responses to repeated presentations of easy stimuli (Figure 3.12) and for hard stimuli (Figure 3.13) with and without noise. On Hesitation and Commitment 83
3 Optimal decision making model for temporally extended actions 0 5 10 Time (s) -1 -0.5 0 0.5 1 Stimulus 0 0.2 0.4 0.6 0.8 1 Belief 0 5 10 Time (s) -5 0 5 x 0 0.2 0.4 0.6 0.8 1 0 5 10 Time (s) -1 -0.5 0 0.5 1 Stimulus 0 0.2 0.4 0.6 0.8 1 Belief 0 5 10 Time (s) -5 0 5 x 0 0.2 0.4 0.6 0.8 1 Figure 3.12: Trajectories for 5 repetitions of an easy stimulus and the resulting beliefs (left panels) and trajectories (right panels). Easy stimuli result in identical trajectories for both noiseless (top) and noisy (bottom) integration. Black dots on the borders of each plot show the stimulus. On the left plots, dashed colored lines show the Bayesian beliefs for repeated presentations of the stimulus. Thick colored lines on the right side plot shows the decision trajectories of the agent elicited by the beliefs on the left plots. On Hesitation and Commitment 84
3 Optimal decision making model for temporally extended actions 0 5 10 Time (s) -1 -0.5 0 0.5 1 Stimulus 0 0.2 0.4 0.6 0.8 1 Belief 0 5 10 Time (s) -5 0 5 x 0 0.2 0.4 0.6 0.8 1 0 5 10 Time (s) -1 -0.5 0 0.5 1 Stimulus 0 0.2 0.4 0.6 0.8 1 Belief 0 5 10 Time (s) -5 0 5 x 0 0.2 0.4 0.6 0.8 1 Figure 3.13: Trajectories for 5 repetitions of a hard stimulus and the resulting beliefs (left panels) and trajectories (right panels). For noiseless integration trajectories are identical (top), however with noisy integration (bottom panels) some variability in the output trajectory is introduced the more variable the early part of the stimulus. Black dots on the borders of each plot show the stimulus. On the left plots, dashed colored lines show the Bayesian beliefs for repeated presentations of the stimulus. Thick colored lines on the right side plot shows the decision trajectories of the agent elicited by the beliefs on the left plots. Trajectories remain strikingly qualitatively similar. The beliefs and trajectories are shown together for repeats of a stimulus on a single plot below. On Hesitation and Commitment 85
3 Optimal decision making model for temporally extended actions Figure 3.14: Normative agent trajectories for an arena of width 17, time limit 4, unit cost per action 0.01 with stimulus noise α= 0.2for 5 repeats of an easy stimulus (left) and a hard stimulus (right).The red thin lines represent the evolution of belief in the different trials, while blue lines of varying markers denote trajectories that end in the right (figure top) side. Red color likewise denotes trajectories that ended on the left. 3.4.5 Varying Time Cost with Fixed Arena Width For a fixed arena width of 17, the influence of varying costs of time was tested. Reaction times are not as useful to describe the behavior of embodied agents, as they are not revealing of the performance of the agent or the shape of her choice trajectories. We define hesitation as the number of presses used by the agent divided by the minimum number of presses required to report a choice, and found this to be a better indicator of the complexity of the decision trajectories. We also define other observable signatures of the behavior such as start-time (the time at which the first move is made) and of Post-start waits (the number of times that the agent waits instead of moving after her first move). All of these quantities appear to change monotonically as time cost is increased, except for Post-start waiting, which is small for small time costs (large arenas), then increases as time cost is increased (arena size decreased), and then decreases for very large time costs (very small arenas) (Figure 3.17). This non-monoticity is the first indication that in the model, hesitation or related behaviors might be only observed for very particular regimes of cost. This will become clearer in the analysis by arena width (Figure 3.22). On Hesitation and Commitment 86
3 Optimal decision making model for temporally extended actions -1 -0.5 0 0.5 1 (NR-NL)/(NR+NL) 0 0.2 0.4 0.6 0.8 1 Proportion Left Arena Width = 17 y64 = -8.25 y32 = -8.17 y16 = -7.93 y8 = -7.52 y4 = -6.6 y2 = -4.85 y1 = -3.5 Figure 3.15: Psychometric curves for different costs of time/time limits. The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible), and the slope parameter for the psychometric curve for each time limit. 0 0.05 Time Cost 0 0.2 0.4 0.6 0.8 1 % Correct %Correct (p) y64 y32 y16 y8 y4 y2 y1 0 0.05 Time Cost 0 0.2 0.4 0.6 0.8 1 %Correct (Experienced) y64 y32 y16 y8 y4 y2 y1 Figure 3.16: Proportion of correct responses as a function of the time cost. In the left panel, the accuracy of responses is evaluated according to the whole stimulus, while in the right panel it is evaluated according to the section of the stimulus experienced by the agent until the moment of their final choice. The legend shows the Time Cost converted to the equivalent time limit y (which is proportional to the time at which a positive score is no longer possible). On Hesitation and Commitment 87
3 Optimal decision making model for temporally extended actions times (Figure 3.23). Finally, (Figure 3.12 and 3.13) showed that the agent’s actions are deterministic at each position and time in the arena with respect to fixed beliefs, but noise in the beliefs introduces variability in behavior. 3.4.8 Embodied normative agent behavior for varying arena widths and varying time limit parameters We next confirm that the results described in (Figure 3.22) generalize to other time limits. In general, as the time limit (y) increases we also observe increasing start times and the percentage of correct responses increases as well. This behavior is similar to that of the disembodied agent. Our novel finding is that small arenas allow the agent to delay her choice by moving to non-terminal states in addition to waiting. The hesitation behavior characterized by Number of presses / required presses is strongest for small arena widths and time limits. In our human experiments conducted in parallel with this work, pilot trials were used to decide on a time limit y of 7 seconds and arena width x17. This arena size is part of the maximum Hesitation region in the model. As arena sizes grow sufficiently large, hesitation behavior and Post-Start waiting disappear, Start times drop to δt and performance drops to chance level for all time limits simulated. On Hesitation and Commitment 94
3 Optimal decision making model for temporally extended actions 1 1.05 1.1 0.06 1.15 N presses/Required 100 1.2 0.04 Time Cost 80 1.25 Arena Width 1.3 60 0.02 40 20 0 0.5 20 0.6 40 %Correct 0.7 Arena Width 0.06 60 0.8 Time Cost 0.04 80 0.02 100 0 0 0.5 1 0.06 Post Start Wait 1.5 0.04 Time Cost 0.02 100 Arena Width 80 60 040 20 2 4 6 8 100 10 Reaction Time 12 14 80 60 Arena Width 0 40 0.02 Time Cost 20 0.04 0.06 20 40 Arena Width 60 80 0 0 Time Cost 2 100 0.02 4 0.04 0.06 Start 6 8 10 Figure 3.24: Signatures of the behavior for a range of arena widths, time limits, and noise parameter α= 0.2. The color code is in the scale of each plot’s y-limits. On Hesitation and Commitment 95
3 Optimal decision making model for temporally extended actions While the effects of increasing arena width (X) at fixed cost of time (T) and the effects of increasing T at fixed arena width appear equivalent at the level of the psychometric (decreased performance), these two parameters have differential effects at the level of the decision bounds, which ultimately determine behavior. Although it may be possible mathematically relate one summary statistic of behavior such as percentage of correct responses to some relation between X and T, in general X and T have different effects across different signatures of behavior. Interestingly, the signatures of behavior we think of as being most indicative of a lack of commitment to an initial choice (Hesitation = N presses/Required and Post-start waiting) are non-monotonic. The justification for the trends of both signatures of behavior should be the same, but they present different shapes of curves (post-start waiting increases faster as time pressure increases from low values than hesitation). This is due to the costs of movement, which justify that the agent, when time pressured not to do only direct trajectories, should prioritize waiting rather than moving hesitantly to avoid the costs of movement. The low values of hesitation and post-start waiting for both small arenas in T and X can be explained by the fact that, when the time pressure is very low or the arena is small enough, it is optimal to perform only direct trajectories when certain, rather than hesitating. When time pressure increases (either by increasing T or X), the agent has now to start moving earlier and, when presented with contradictory evidence, either hesitating or waiting (thus increasing these signatures). At some point (which is different for waiting and hesitation for reasons explained above), the agent is so time pressured and/or the arena is so large, that she has to move directly and as soon as possible to the terminal points, therefore decreasing hesitation or post-start waiting. 3.4.9 Discussion The major phenomenology observed in our experiments is that difficult trials elicit long decision trajectories (Figure 2.9 and 2.18), and that these trajectories appear to be time locked to the stimulus as seen in our analysis of Experiment 2 (Figure 2.21). Although this result suggests that the shape of the trajectories may contain information about an evolving decision variable during the trial, that analysis fails to incorporate how subjects’ instantaneous movements are affected by their intended target, as well as their past On Hesitation and Commitment 96
3 Optimal decision making model for temporally extended actions movements. To overcome this limitation we adopted a normative framework in which trajectories are considered optimal solutions to the problem of moving in a 2D environment towards one of two possible target locations. In each trial, a noisy time-varying sensory stream indicates which of the two locations will be rewarded, thus biasing the agent’s trajectory. The optimization problem includes not only the reward associated with finding the correct location on each trial, but also costs associated with movement and time. We implemented this model by generalizing a similar approach used investigate the cost of time during evidence accumulation in a disembodied setting [Drugowitsch et al., 2012]. We tackle this reinforcement learning problem by numerically solving a Bellman equation in a state-space defined by time (within a trial), the agent’s instantaneous belief about the correct choice, and its physical parameters. A major difference between the model and subject behavior in all of our experiments is that the model’s actions are time locked to the stimulus, whereas the humans are free to move at any time, and successive moves are only constrained by the subject’s own speed. We also implemented a model with the freedom to make several moves per time-step, but went forward with the simpler model without the extra refractory period parameter. This model’s behavior was conceptually very similar to our first velocity constrained model attempting to simulate the arm based task. We observe regimes of cost parameters for which the optimal agent loosely tracks the stimulus (Figure 3.10). Our agent moves when her beliefs cross action thresholds (Figure 3.11), not unlike the bounds of the drift diffusion framework [Ratcliff, 1978], but in our framework new bounds on belief are encountered at each time and space in the task. The agent will move left (right) exactly one grid over to that side if her belief on the stimulus has crossed the left (right) decision bound, otherwise she will wait at her current spot. This model allows us to understand the actions of the agent in terms of their values to the agent. The agent is always comparing the long-term value of acting anytime later in the trial with the values of her immediate options available. This type of normative framework has been proposed before to explain down the middle reach trajectories [Haith et al., 2015]. In that work, the authors provide experimental and theoretical evidence that intermediate movements do not result from involuntary averaging between parallel motor plans, but instead are the result of an optimal calculation involving cognitive and motor constraints [Haith et al., 2015]. Their experiment is a go-before you know task, where reaction times are pushed to be very small On Hesitation and Commitment 97
3 Optimal decision making model for temporally extended actions by placing explicit timing constraints similar to those we used in Experiment 2. Haith studied the effect of the distance between the targets on the trajectory decisions, and found that the incidence of intermediate movements depends on the target jump amplitude, with bigger amplitudes resulting in fewer intermediate amplitudes [Haith et al., 2015]. Another recent study similarly used a normative model of an embodied tasks in order to argue that intermediate movements result from purposeful planning which flexibly selects a single motor plan to maximize task success [Wong and Haith, 2017]. The effect of motor effort on changes of mind had been previously investigated by Burk [Burk et al., 2014]. The same group also recently used dynamic programming to model the change of mind and double change of mind phenomenology [Van Den Berg et al., 2016]. This last effort concludes rational decision makers adjust the bounds for the second decision of a double-decision task if there is a cost associated with the passage of time [Van Den Berg et al., 2016]. We too investigate a motor component to decision making using normative models, however our focus in on the geometric aspect is more similar to the work of [Haith et al., 2015]. However, as previously done by Drugowitsch and colleagues [Drugowitsch et al., 2012], we also investigate the effect of time systematically. Our focus on time and the sequential nature of behavior perhaps makes our study closest to the study of Vanden Berg [Van Den Berg et al., 2016]. With our model we described the effect of the time cost (Figure 3.18) and arena width (Figure 3.23) on the decision bounds at each time step of a multi-step decision, and ultimately the resulting behavior for a wide range of time-cost and arena sizes (Figure 3.24), while a controlled stochastic stimulus is presented through the entire duration of each trial. Our study combines elements from both of [Haith et al., 2015] and [Van Den Berg et al., 2016], providing a unified framework for the study of choice behavior in 2D embodied settings. Although a link to confidence has been made between the optimal model’s beliefs and embodied actions, we do not explore confidence in our model. One of the most important aspects of the problem we studied is that it requires precise fine-tuning of the task conditions. This is evidenced by the difficulty in capturing hesitant behavior in experiment 1. The modeling work allows us to see that hesitation only occurs between the two asymptotic behaviors of the arenas (wide or long). The extreme shaped arenas don’t give rise to hesitation and interesting trajectories, it is only in the intermediate regime where -for a given cost of time - the agent needs to start early, but still On Hesitation and Commitment 98
3 Optimal decision making model for temporally extended actions has enough room to change if her early choice was premature, one observes patterned trajectories. In the model, hesitation is greatest for arena widths between 10 and 20. This can be observed in the top right panel of (Figure 3.22) and in the top left panel of (Figure 3.24). We think these figures explain the phenomenon we have been studying in our psychophysical work. In experiment 1, lack of time pressure for the time-scale of the stimulus we used resulted in little hesitation. In experiment 2, we increased the number of hesitant trajectories by imposing time pressure at start times. We use the simplified model to learn the ideal range to observe hesitant behavior, and used these observations to guide pilot experiments for this new task described in Chapter 4. Anecdotally, as in the model no large differences in the pattern of presses were seen in the arenas that had 7, 8, or 9 in human subjects. However, subjects didn’t hesitate much for smaller arenas (e.g. 3 steps to each side) whereas the agent shows hesitation even for the smallest arenas. Model fitting was not an explicit goal of this analysis. Our initial goal was showing that such optimal consideration of space, in addition to temporal, constraints could generate in-between trajectories, in order to explore the range or parameters and inform the design of the final subject task. Model fitting might still be performed in the future either in the described model or in a non-dynamic programming version of the normative agent. Other more complex models were explored, but abandoned early as the idea of sequences of button presses was adopted. In the following chapter, we adapt our decision making task to be consistent with the rules of the environment of our embodied agent, using the arena sizes that maximize hesitant behavior in the model to guide the design of the subject task. 3.5 Acknowledgments Chapter 3 was analyzed by me with the guidance of Alfonso Renart. We would like to thank Gautam Agarwal for providing the first normative model of our task, to Juan Castineiras for his derivation of an analytical equation for the Bayesian belief propagation driving reward expectation in the model, and Zach Mainen for discussions. A special thank you to Miguel Bengala for revising and re-plotting all the figures for the chapter under Juan Castineira’s and my supervision. On Hesitation and Commitment 99
3 Optimal decision making model for temporally extended actions On Hesitation and Commitment 100
Bibliography [Burk et al., 2014] Burk, D., Ingram, J., Franklin, D., Shadlen, M., and Wolpert, D. (2014). Motor Effort Alters Changes of Mind in Sensorimotor Decision Making. PloS one, 9:e92681. (Cited on pages 98,152, and 155.) [DeepMind, 2019] DeepMind (2019). AlphaStar: Mastering the Real-Time Strategy Game StarCraft II. (Cited on page 59.) [Drugowitsch et al., 2011] Drugowitsch, J., Moreno-Bote, R., and Pouget, A. (2011). Optimal decision bounds for probabilistic population codes and time varying evidence. Nature Precedings. (Cited on pages 9and 59.) [Drugowitsch et al., 2012] Drugowitsch, J., Moreno-Bote, R. N., Churchland, A. K., Shadlen, M. N., and Pouget, A. (2012). The cost of accumulating evidence in perceptual decision making. Journal of Neuroscience. (Cited on pages 6,7,9,53,58,59,60,62,65,66,74,76,78,97,98,106, 153, and 154.) [Google, 2015] Google (2015). AlphaGo | DeepMind. (Cited on page 59.) [Haith et al., 2015] Haith, A. M., Huberdeau, D. M., and Krakauer, J. W. (2015). Hedging Your Bets: Intermediate Movements as Optimal Behavior in the Context of an Incomplete Decision. PLoS Computational Biology. (Cited on pages 97,98,145,146, and 152.) [Huang and Rao, 2013] Huang, Y. and Rao, R. P. (2013). Reward Optimization in the Primate Brain: A Probabilistic Model of Decision Making under Uncertainty. PLoS ONE. (Cited on pages 59,60, and 61.) [Moreno-Bote, 2010] Moreno-Bote, R. (2010). Decision confidence and uncertainty in diffusion models with partially correlated neuronal integrators. (Cited on pages 9,59,60, and 153.) 101
3 Bibliography [Rao, 2010] Rao, R. (2010). Decision Making Under Uncertainty: A Neural Model Based on Partially Observable Markov Decision Processes. Frontiers in Computational Neuroscience, 4:146. (Cited on pages 59,60, and 61.) [Ratcliff, 1978] Ratcliff, R. (1978). A theory of memory retrieval. Psychological Review. (Cited on pages 6and 97.) [Ratcliff et al., 2016] Ratcliff, R., Smith, P. L., Brown, S. D., and McKoon, G. (2016). Diffusion Decision Model: Current Issues and History. Trends in cognitive sciences, 20(4):260–281. (Cited on pages 6and 59.) [Silver et al., 2018] Silver, D., Hubert, T., Schrittwieser, J., Antonoglou, I., Lai, M., Guez, A., Lanctot, M., Sifre, L., Kumaran, D., Graepel, T., Lillicrap, T., Simonyan, K., and Hassabis, D. (2018). A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science. (Cited on page 59.) [Silver et al., 2017] Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A., Chen, Y., Lillicrap, T., Hui, F., Sifre, L., Van Den Driessche, G., Graepel, T., and Hassabis, D. (2017). Mastering the game of Go without human knowledge. Nature. (Cited on page 59.) [Stone, 1960] Stone, M. (1960). Models for choice-reaction time. Psychometrika. (Cited on pages 6and 59.) [Sutton and Barto, 2018] Sutton, R. and Barto, A. (2018). Reinforcment Learning. MIT Press. (Cited on pages 58 and 153.) [Van Den Berg et al., 2016] Van Den Berg, R., Anandalingam, K., Zylberberg, A., Kiani, R., Shadlen, M. N., and Wolpert, D. M. (2016). A common mechanism underlies changes of mind about decisions and confidence. eLife. (Cited on pages 98,152, and 155.) [Wald and Wolfowitz, 1948] Wald, A. and Wolfowitz, J. (1948). Optimum Character of the Sequential Probability Ratio Test. Ann. Math. Statist., 19(3):326–339. (Cited on pages 6and 59.) On Hesitation and Commitment 102
3 Bibliography [Wong and Haith, 2017] Wong, A. L. and Haith, A. M. (2017). Motor planning flexibly optimizes performance under uncertainty about task goals. Nature Communications. (Cited on pages 98 and 145.) On Hesitation and Commitment 103
4 A sequential decision making task for studying temporally extended actions 0 2 4 6 0 0.5 1 p(C) Expected Reward 0 2 4 6 -1 -0.5 0 Points Accumulated Time Cost 0 2 4 6 Time (s) 0 0.5 1 Points Expected Value Figure 4.2: This is a schematic of the expected reward, which grows in time as subjects accumulate more evidence and increase their probability of answering correctly (top), a constant time cost which results in a linearly accumulating point reduction (middle), and the addition of these two quantities resulting in the expected value for completing the task as a function of time (bottom). 4.3.5 Subjects and Experimental Procedure A total of 4 subjects completed the entire experiment, following 1 training session. In order to assess the reliability of the responses to a specific stimilus, we repeated stimuli in a random way to ensure subjects didn’t realized they were listening to the same stimulus. Each week subjects were asked to complete 5 sessions (one per day) of 72 trials each. Each session consisted of 18 unique stimuli (9 unique stimuli to the right were created and then flipped to make the left stimuli), and each was repeated 4 times per session in a random order. Subjects completed 10 sessions across 2 weeks, and the exact stimuli and order or week 1 were repeated on week 2, by setting a unique random seed for each day of the week. Subjects were explicitly asked at the end of the entire experiment if they noticed the repeats, and none reported having noticed. In total, each particular stimulus was experienced 8 times per subject. This resulted in 90 unique sequences (45 to the right mirrored for the left conditions, with 8 repetitions per sequence), totalling 720 trials per subject. Sample responses for 4 subjects and all repeats of On Hesitation and Commitment 110
4 A sequential decision making task for studying temporally extended actions some sample stimuli are shown in (Figure 4.3). 0 2 4 6 -5 0 5 Position S1, %C = 1, Easy L 0 2 4 6 -5 0 5 Position S2, %C = 1, Easy L 0 2 4 6 -5 0 5 Position S3, %C = 1, Easy L 0 2 4 6 Time (s) -5 0 5 Position S4, %C = 1, Easy L 0 2 4 6 -5 0 5 S1, %C = 0.75, Hard L 0 2 4 6 -5 0 5 S2, %C = 1, Hard L 0 2 4 6 -5 0 5 S3, %C = 1, Hard L 0 2 4 6 Time (s) -5 0 5 S4, %C = 0.875, Hard L 0246 -5 0 5 S1, %C = 1, Medium L 0246 -5 0 5 S2, %C = 1, Medium L 0246 -5 0 5 S3, %C = 0.375, Medium L 0246 Time (s) -5 0 5 S4, %C = 0.75, Medium L 0246 -5 0 5 S1, %C = 0.25, Medium R 0246 -5 0 5 S2, %C = 1, Medium R 0246 -5 0 5 S3, %C = 0.75, Medium R 0246 Time (s) -5 0 5 S4, %C = 0.625, Medium R 0 2 4 6 -5 0 5 S1, %C = 0.5, Hard R 0 2 4 6 -5 0 5 S2, %C = 0.75, Hard R 0 2 4 6 -5 0 5 S3, %C = 0.875, Hard R 0 2 4 6 Time (s) -5 0 5 S4, %C = 0.75, Hard R 0 2 4 6 -5 0 5 S1, %C = 0.875, Hard L 0 2 4 6 -5 0 5 S2, %C = 0.625, Hard L 0 2 4 6 -5 0 5 S3, %C = 0.875, Hard L 0 2 4 6 Time (s) -5 0 5 S4, %C = 0.875, Hard L 0246 -5 0 5 S1, %C = 0.625, Medium L 0246 -5 0 5 S2, %C = 0.25, Medium L 0246 -5 0 5 S3, %C = 0.75, Medium L 0246 Time (s) -5 0 5 S4, %C = 0.125, Medium L 0246 -5 0 5 S1, %C = 1, Medium R 0246 -5 0 5 S2, %C = 0.5, Medium R 0246 -5 0 5 S3, %C = 0.625, Medium R 0246 Time (s) -5 0 5 S4, %C = 0.625, Medium R 0 2 4 6 -5 0 5 S1, %C = 0.625, Hard R 0 2 4 6 -5 0 5 S2, %C = 0.875, Hard R 0 2 4 6 -5 0 5 S3, %C = 0.5, Hard R 0 2 4 6 Time (s) -5 0 5 S4, %C = 0.875, Hard R 0 2 4 6 -5 0 5 Position S1, %C = 0.875, Easy R 0 2 4 6 -5 0 5 Position S2, %C = 1, Easy R 0 2 4 6 -5 0 5 Position S3, %C = 1, Easy R 0 2 4 6 Time (s) -5 0 5 Position S4, %C = 1, Easy R Figure 4.3: Stimulus Repeats. Top panel: Each column shows a unique leftward stimulus and 8 responses from each subject. Each row shows a different subject. Bottom panel: Mirrored rightward stimuli. Black dots on each plot denote the stimulus. Blue (red) colored trajectories end on the right (left). On Hesitation and Commitment 111
4 A sequential decision making task for studying temporally extended actions 4.4 Results 4.4.1 Task Stability Percentage correct, Scored Points, and Reaction times do not trend across sessions, suggesting performance is stable across sessions for all 4 subjects. 1 2 3 4 5 6 7 8 9 10 Session 0 500 1000 1500 2000 2500 3000 3500 4000 4500 Scored Points p value = 0.58011 1 2 3 4 5 6 7 8 9 10 Session 0 500 1000 1500 2000 2500 3000 3500 4000 4500 Scored Points p value = 0.71105 1 2 3 4 5 6 7 8 9 10 Session 0 500 1000 1500 2000 2500 3000 3500 4000 4500 Scored Points p value = 0.86364 1 2 3 4 5 6 7 8 9 10 Session 0 500 1000 1500 2000 2500 3000 3500 4000 4500 Scored Points p value = 0.56038 1 2 3 4 5 6 7 8 9 10 Session 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 Percent Correct p value = 0.55538 1 2 3 4 5 6 7 8 9 10 Session 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 Percent Correct p value = 0.52253 1 2 3 4 5 6 7 8 9 10 Session 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 Percent Correct p value = 0.87278 1 2 3 4 5 6 7 8 9 10 Session 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 Percent Correct p value = 0.39919 0 2 4 6 8 10 12 Session 1 1.5 2 2.5 3 3.5 4 4.5 Mean Reaction Time p value = 0.082133 0 2 4 6 8 10 12 Session 1 1.5 2 2.5 3 3.5 4 4.5 Mean Reaction Time p value = 0.77098 0 2 4 6 8 10 12 Session 1 1.5 2 2.5 3 3.5 4 4.5 Mean Reaction Time p value = 0.93857 0 2 4 6 8 10 12 Session 1 1.5 2 2.5 3 3.5 4 4.5 Mean Reaction Time p value = 0.73831 Figure 4.4: Scored Points (top row), Percentage correct (middle row), and Reaction times (bottom row) are plotted against session number for all subjects in order to investigate whether any linear trends exist, which would suggest learning is still ongoing. No such trends can be detected at a significance of α= 0.5, suggesting performance is stable across sessions. Error bars show standard deviations. 4.4.2 Accuracy Psychometric curves for 4 subjects are shown below, defining conditions according to the long-term mean of the stimulus. On Hesitation and Commitment 112
4 A sequential decision making task for studying temporally extended actions -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 (NR-NL)/(NR+NL) 0 0.25 0.5 0.75 1 Proportion Left Performance by long-term stimulus mean Mean, slope =7.9122 bias =-0.018982 Session -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 (NR-NL)/(NR+NL) 0 0.25 0.5 0.75 1 Proportion Left Performance by long-term stimulus mean Mean, slope =5.9492 bias =-0.0037603 Session -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 (NR-NL)/(NR+NL) 0 0.25 0.5 0.75 1 Proportion Left Performance by long-term stimulus mean Mean, slope =8.1757 bias =-0.06059 Session -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 (NR-NL)/(NR+NL) 0 0.25 0.5 0.75 1 Proportion Left Performance by long-term stimulus mean Mean, slope =6.5057 bias =0.016939 Session Figure 4.5: Psychometric curves for 4 subjects evaluating performance according to the long-term mean of the stimulus. Thin black lines show performance for each of the 10 sessions of 72 trials, thick red lines show average psychometric over all 720 trials for each subject. Red to blue graded circles show session performance for 6 difficulty conditions. On Hesitation and Commitment 113
4 A sequential decision making task for studying temporally extended actions -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 (NR-NL)/(NR+NL) 0 0.25 0.5 0.75 1 Proportion Left Performance by experienced stimulus mean Mean, slope =4.75 bias =-0.02 Session Figure 4.8: Average psychometric curve for 4 subjects evaluating performance according to the mean of the experienced the stimulus. Thin black lines show performance for each subject over 720 trials, thick red lines shows the mean for all subjects. Red to blue graded circles show session performance for 6 difficulty conditions. 4.4.3 Reaction Times Reaction times for 4 subjects increase as a function of the difficulty of the experienced stimulus. On Hesitation and Commitment 116
4 A sequential decision making task for studying temporally extended actions Reaction Time vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 1.5 2 2.5 3 3.5 4 4.5 5 5.5 Reaction Time (s) 0 5 10 15 20 25 30 35 40 Counts - = -1.76p<0.001 Reaction Time vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 1.5 2 2.5 3 3.5 4 4.5 5 5.5 Reaction Time (s) 0 10 20 30 40 50 60 70 Counts - = -1.85p<0.001 Reaction Time vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 1.5 2 2.5 3 3.5 4 4.5 5 5.5 Reaction Time (s) 0 5 10 15 20 25 30 35 40 45 Counts - = -1.39p<0.001 Reaction Time vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 2 2.5 3 3.5 4 4.5 5 5.5 Reaction Time (s) 0 5 10 15 20 25 30 35 40 45 50 55 Counts - = -0.93p<0.001 Figure 4.9: Reaction times for 4 subjects decrease as the mean of the experienced stimulus increases (task becomes easier) (3.23). Black dots show mean reaction times for each difficulty bin, red line shows the linear fit of RT onto stimulus difficulty, and the color bar the counts of RT for each bin. In order to compute the mean reaction time vs stimulus difficulty we collapse all subject reaction time data without normalization. The choice of not normalizing is due to the similarity in shape and magnitude of the reaction time distributions across subjects, On Hesitation and Commitment 117
4 A sequential decision making task for studying temporally extended actions Reaction Time vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 1.5 2 2.5 3 3.5 4 4.5 5 5.5 Reaction Time (s) 0 20 40 60 80 100 120 140 160 Counts - = -1.51p<0.001 Figure 4.10: Reaction times decrease as the mean of the experienced stimulus increases (task becomes easier) (3.23). 2280 trials collapsed across all 4 subjects. Black dots show mean reaction times for each difficulty bin, red line shows the linear fit of RT onto stimulus difficulty, and the color bar the counts of RT for each bin. 4.4.4 Trajectory Analysis 4.4.4.1 Trajectory Length The main feature observed throughout our experiments is that the decision trajectory length increases as the stimulus becomes hard, and the model predicts that we should continue to observe this behavior with discrete button press input to the task - for a range of time costs. In our new task, the number of presses increases as a function of the difficulty of the experienced stimulus for all 4 subjects (Figure 4.11). We used 7 seconds and an arena of width x17, parameters that were in the region of maximum Hesitation for the model and worked well in pilot experiments. On Hesitation and Commitment 118
4 A sequential decision making task for studying temporally extended actions Trajectory Length vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 8 10 12 14 16 18 20 22 24 26 28 Number of Presses 0 20 40 60 80 100 120 140 Counts - = -2.59p<0.001 Trajectory Length vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 8 10 12 14 16 18 20 22 24 26 28 30 Number of Presses 0 20 40 60 80 100 120 Counts - = -3.83p<0.001 Trajectory Length vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 10 15 20 25 30 Number of Presses 0 20 40 60 80 100 Counts - = -4.71p<0.001 Trajectory Length vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 8 10 12 14 16 18 20 22 24 26 Number of Presses 0 20 40 60 80 100 120 Counts - = -1.23p<0.05 Figure 4.11: The number of presses across all 4 subjects increases with increasing difficulty of the experienced stimulus (3.23 −→ 0). Black dots show mean Number of Presses for each difficulty bin, red line shows the linear fit of Number of Presses onto stimulus difficulty, and the color bar the counts of Number of Presses for each bin. On Hesitation and Commitment 119
4 A sequential decision making task for studying temporally extended actions Trajectory Length vs Experienced Difficulty 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 |(NR-NL)/(NR+NL)| 10 15 20 25 30 Number of Presses 0 50 100 150 200 250 300 350 400 450 Counts - = -3.04p<0.001 Figure 4.12: Number of presses increase with increasing difficulty of the experienced stimulus (3.23 −→ 0). 2280 trials collapsed across all 4 subjects. Black dots show mean Number of Presses for each difficulty bin, red line shows the linear fit of Number of Presses onto stimulus difficulty, and the color bar the counts of Number of Presses for each bin. 4.4.4.2 Inter-press Interval Reliability We observed that across subjects, the dristribution of inter-press-intervals (IPI) was very similar, and peak IPIs were almost overlaping. On Hesitation and Commitment 120