<title>Introduction</title> <p>Studies of the biological mechanisms of memory function utilize behavioral tasks that require use of memory systems for successful performance ##UREF##0##[1]##. These behavioral tasks are often designed to test one of many specific hypothesized memory systems ##UREF##0##[1]##–##UREF##1##[3]##. However, the mechanisms of memory function required for specific tasks often becomes the focus of debate, as there is no quantitative framework for describing the memory demands of individual behavioral tasks. Often memory tasks can be performed by more than one memory mechanism ##REF##17979198##[4]##. Even when it is clear what type of memory is required at one point in the task, there might be a different memory requirement at other times, or there might be a need for interaction of different memory systems.</p> <p>This paper presents mathematical procedures that can be used to evaluate the memory demands at specific decision points in specific memory tasks. The analyses are based around Markov decision processes (MDPs), which provide a framework for describing complex decision processes in behavior ##UREF##2##[5]##. By definition, each decision in a Markov decision process depends only upon the current state ##UREF##2##[5]##. Tasks that require memory can be written as partially-observable Markov decision processes (POMDPs; ##UREF##3##[6]##, ##UREF##4##[7]##). Agents can be trained to use memory mechanisms in a non-Markov decision process ##REF##17979198##[4]##, ##REF##16378516##[8]##–##UREF##5##[10]##, but a systematic mathematical process for analyzing the memory demands of a task has not been presented. Analyzing tasks written as POMDPs can help elucidate the memory mechanisms sufficient to solve each memory task, and could provide quantitative details of these memory processes. Analyses examining specific ambiguous observations allow consideration of a range of memory demands within a single task. Thus, analyses of tasks as POMDPs can help provide a quantitative behavioral stoichiometry of memory tasks, providing a solid framework for evaluating potential physiological mechanisms. Using these procedures, behavioral scientists can quantitatively define the type of memory and content of memory sufficient for making decisions at specific points within a behavioral task.</p> <p>Here we specifically address the use of working memory and episodic memory (and, briefly, time-varying contextual information) for performance of behavioral tasks. These terms have been defined in other research, but are used in a specific, task-independent manner in this paper. Here, working memory refers to active maintenance of information about prior observations, consistent with the use of the term in models and experimental data focused on persistent spiking activity during the delay period of a behavioral task ##REF##17979198##[4]##, ##REF##16378516##[8]##–##REF##8340815##[14]##. Episodic memory refers to storage of a sequence of observations that can be retrieved in response to a single initial cue (the most recent sequence beginning with the cue is retrieved). This operational definition proves useful in behavioral tasks ##REF##17979198##[4]##, ##REF##16263240##[15]##, but does not address all the components of the definition of episodic memory in humans ##REF##11752477##[16]##. For this reason we refer to this system as content-addressable sequential retrieval (CASR) instead of episodic memory. Finally, our consideration of context deals with systems that provide contextual information as a function of the agent's recent history.</p> <p>We analyze tasks from the points of view of these memory systems by using what we call disambiguation matrices. These matrices relate observations held in memory at a particular decision point in a task to the possible states the task might be in. When an observation in memory disambiguates a choice point, an agent can learn a policy that more closely reflects the underlying dynamics of the task at that point. By calculating these matrices for different memory systems, we show that tasks can be quantitatively analyzed in terms of which memory systems and which strategies using those systems are useful in performing them.</p> <p>The essence of these analyses is this: by the structure of the state space of a task as well as by the function of a particular memory system, at any choice point in a task there are only certain observations that can be provided by the memory system. When a choice point in fact corresponds to multiple distinct states (which the agent cannot distinguish between through sensory input alone), it can be that certain observations can only occur in memory when the agent is at certain of the distinct, but superficially indistinguishable states. In such a situation, the memory disambiguates the choice point, providing non-sensory information as to the agent's true state.</p> <p>For the working memory analyses, we can look backward in time from the choice point to see the recent observations that the agent may have held in working memory. From each of those observations we can look forward to see which choice point states are reachable. If it is only possible for the agent to have observation X in working memory when at choice point state 1, then if the agent has X in working memory, it must be in state 1. In the case of episodic memory, we look as far back in time from the choice point as is needed to find the last time the choice point occurred, then look forward to see, first, what observations can follow that past appearance and, second, which choice points are then reachable from those observations. The following analyses provide a way to answer these questions, using matrices as “bookkeeping” tools to keep track of which observations lead to which states.</p> <p>The analyses are done from the viewpoint of an omniscient observer who knows the complete description (in terms of a POMDP) of a behavioral task. The results of the analyses are thus primarily useful to those designing or simulating tasks or studying the use of memory systems. The analyses and results from them are less likely to be useful to agents actually performing any particular task, thus the present results are primarily useful as a theoretical tool for understanding and categorizing behavioral tasks.</p>
<title>Methods</title> <p>We will be dealing with a type of partially-observable Markov decision process. Let <italic>T</italic> be a POMDP describing the dynamics of a behavioral task. It is a tuple <italic>T</italic> = &lt;<italic>T<sub>S</sub></italic>, <italic>T<sub>O</sub></italic>, <italic>T<sub>A</sub></italic>, <italic>T<sub>P</sub></italic>, <italic>T<sub>R</sub></italic>&gt; of, respectively, a set of states, a set of observations, a set of actions, a set of transition probabilities, and a real-valued reward function.</p> <p>
<italic>T<sub>P</sub></italic> can be written as the set of probabilities <italic>T<sub>P</sub>(s,o,a,s′) = Pr(s<sub>t+1</sub> = s′, o<sub>t+1</sub> = o|a<sub>t</sub> = a, s<sub>t</sub> = s)</italic> which describes a new state <italic>s<sub>t+1</sub></italic> and observation <italic>o<sub>t+1</sub></italic> given a current state <italic>s<sub>t</sub></italic> and an action <italic>a<sub>t</sub></italic>. In a POMDP, it is assumed that the underlying dynamics of the environment are Markov but due to hidden variables or limitations in, for example, sensory capability, the agent is not aware of its complete state. Instead it must base its decisions on its current observation.</p> <p>Our analysis will be restricted to a subset of POMDPs that we call aliased MDPs (AMDPs). An AMDP is simply a POMDP where there exists some aliasing map <italic>A∶T<sub>S</sub>→T<sub>O</sub></italic> such that that <italic>T<sub>P</sub>(s,o,a,s′)</italic> is only nonzero for <italic>o</italic> = <italic>A(s)</italic> for all <italic>s,a,s′</italic>. That is, the transition probabilities are limited in that only a single observation can occur for any particular state (although many states may be aliased to the same observation). If <italic>A</italic> is one-to-one then the AMDP is an MDP. It is primarily for conceptual simplicity that we make this restriction. The analysis results hold when applied to POMDPs (simply by changing the definition of the aliasing map to be <italic>A∶T<sub>S</sub>→P(T<sub>O</sub>)</italic> where <italic>P(T<sub>O</sub>)</italic> is the set of all subsets of <italic>T<sub>O</sub></italic>).</p> <p>This aliasing function is intended to represent the fact that the dynamics of the world can be a function that depends on variables not directly observable by the agent (e.g. in a spatial alternation task, a hidden variable that affects the reward function is the spatial response the agent made on the previous trial). These variables can be included as part of the states <italic>T<sub>S</sub></italic> so that state transitions and the reward function depend on them, but they may be aliased out so that multiple states in <italic>T<sub>S</sub></italic> (e.g. with different values of the variables) are treated by the agent as a single observation.</p> <p>We will often be concerned with the image <italic>A(s)</italic> of a state <italic>s∈T<sub>S</sub></italic> (i.e. the observation corresponding to state <italic>s</italic>) and the preimage <italic>A<sup>−1</sup>(o)</italic> of an observation <italic>o∈T<sub>S</sub></italic> (i.e. the set of all states that the agent observes as <italic>o</italic>).</p> <p>The states <italic>T<sub>S</sub></italic> will be labeled using the Euclidean basis vectors <italic>e<sub>i</sub></italic> for <italic>1</italic>≤<italic>i</italic>≤<italic>|T<sub>S</sub>|</italic>. All elements of vector <italic>e<sub>i</sub></italic> are 0 except for the <italic>i</italic>
<sup>th</sup> which equals 1. For example, <italic>e<sub>2</sub> = (0 1 0 0 …)</italic>. We use these so that the states can be directly included in equations of matrices that refer to them. For most of the examples in this manuscript, the observations will be labeled as colors such as green or blue. Observations can also be associated with Euclidean basis vectors, and the aliasing map <italic>A</italic> has a natural extended interpretation as a <italic>|T<sub>O</sub>|</italic>-by-<italic>|T<sub>S</sub>|</italic> matrix mapping the state vectors to observation vectors. This aliasing matrix will be written A.</p> <p>An important distinction must be made between three similar concepts: state, observation, and what we will call policy-state. States and observations are elements drawn, respectively, from <italic>T<sub>S</sub></italic> and <italic>T<sub>O</sub></italic> and are part of the formal definition of a POMDP. We distinguish these from the policy-state of an agent, which refers to the specific information used to select an action when the agent is interacting with the environment (for instance, both the agent's current observation as well as any memory information available to it, ##REF##17979198##[4]##, ##REF##16378516##[8]##–##UREF##5##[10]##). Policy-states in this manuscript only come into play when considering how the agent can use disambiguation information provided by memory.</p> <p>Our primary concern in the following analyses are with the topology (or connectivity) of the state space of a task and not with the particular actions that carry the agent from state to state. Because of this, matters are simplified: ignoring the control aspect allows us to write the state space as a Markov chain ##UREF##7##[17]##, which we will call <italic>N</italic>. To do so, we construct <italic>N</italic> by assuming the agent always selects an action at random. The following common results on Markov chains will be used.</p> <p>Row <italic>r</italic> of <italic>N</italic>, <italic>N(r,·)</italic>, is a vector where entry/column <italic>c</italic> is the probability that the agent will move from state <italic>r</italic> to state <italic>c</italic> under one step of its random policy (the probabilities <italic>T<sub>P</sub>(r,o,a,c)</italic> averaged over all <italic>a∈T<sub>A</sub></italic> and <italic>o∈T<sub>O</sub></italic>). In ##SUPPL##0##Appendix S1## we show that the later analyses give equivalent results regardless of the way <italic>N</italic> is formed as long as each entry is some linear combination with nonzero coefficients of the transition probabilities. This means one could instead calculate <italic>N</italic> as the adjacency matrix of the state space graph, if that is more convenient.</p> <p>The element at row <italic>r</italic> and column <italic>c</italic> in the matrix <italic>N<sup>n</sup></italic>, similarly, gives the probability that the agent will be in state <italic>c</italic> after taking <italic>n</italic> random steps from state <italic>r</italic>.</p> <p>The direction of the transitions in the chain represented in <italic>N</italic> can all be time reversed by transposing <italic>N</italic> (and normalizing the row sums so that they remain probabilities):
</p> <p>Row <italic>r</italic> in <italic>N</italic> can be extracted by left multiplying <italic>N</italic> by a unit row vector <italic>e<sub>r</sub></italic> in which the <italic>r</italic>
<sup>th</sup> component equals 1 and all others equal 0.</p> <p>A state is called absorbing if the transitions leading out from it lead only back into itself. State <italic>r</italic> in <italic>N</italic> is absorbing if <italic>N(r,·) = e<sub>r</sub></italic>. Therefore, the chain <italic>N</italic> can be modified to set state <italic>r</italic> as absorbing by assigning <italic>N(r,·)←e<sub>r</sub></italic>.</p> <p>Our results involve disambiguation matrices. A disambiguation matrix <italic>D</italic> here is defined at an observation <italic>o</italic>. The columns of <italic>D</italic> each correspond to a state in <italic>A<sup>−1</sup>(o)</italic>. The rows of <italic>D</italic> each correspond to an observation the agent might have in memory (for instance held in working memory or retrieved in CASR memory). <italic>D</italic> expresses the probability that the agent might be in each state (column) given that a particular observation (row) is in memory. That is, <italic>D(r,c) = Pr(s<sub>t</sub> = s<sub>c</sub>|o<sub>m</sub> = o<sub>r</sub>)</italic> where <italic>s<sub>c</sub></italic> is the state corresponding to column <italic>c</italic>, <italic>o<sub>r</sub></italic> the observation corresponding to row <italic>r</italic>, <italic>s<sub>t</sub></italic> the agent's current state, and <italic>o<sub>m</sub></italic> the observation in memory (reflecting the observation observed at some earlier time). Of particular importance are rows where one or more the probabilities is 0, indicating that, when the row's corresponding observation is in memory, there is less uncertainty as to the current state.</p> <title>Tasks</title> <p>We will derive a simple structural analysis of behavioral tasks in terms of matrices calculated from AMDPs by considering a simplified alternation task. Further examples of the analysis are given for other simplified tasks before we finish by analyzing the tasks exactly as simulated in ##REF##17979198##[4]## and discussing the results. We also show how to extend the working memory analysis to the case of holding multiple items in working memory in two additional tasks.</p> <p>GNU Octave 3.0.0 scripts (MATLAB compatible) containing all of the analyzed AMDPs and analysis functions discussed in this manuscript are available upon request.</p> <title>Alternation</title> <p>From the agent's point of view, our simplified alternation task consists of 5 observations, as shown in ##FIG##0##Figure 1##. This is a greatly abstracted version of the spatial alternation task used in experiments ##REF##11055443##[18]##–##REF##17554771##[20]##. A trial consists of the agent passing from either red or blue observations through green to one of yellow or magenta, from which the agent is returned to red or blue, respectively. The agent receives a positive reward for alternately entering the yellow and magenta observations on each visit to green. Because the sign of the reward in going from, e.g., green to yellow does not depend on the agent's observation, but rather on its unobserved state, this chain is not an MDP, but it is expressible as an AMDP.</p> <p>We assume that the underlying AMDP is fully known for the purposes of this analysis. One possible AMDP describing the task with 8 states is shown in ##FIG##1##Figure 2##. States <italic>e<sub>3</sub></italic> and <italic>e<sub>7</sub></italic> (respectively <italic>e<sub>4</sub></italic> and <italic>e<sub>8</sub></italic>) are distinct only for clarity. The results of this analysis are unchanged if each pair is merged into a single state.</p> <title>Cued Alternation</title> <p>Cued alternation is a variation on the alternation task. The main difference is that there are two choice points in this task, green and cyan, one of which is selected randomly each trial. The agent is to learn two independent alternations. For instance, each time green is presented, the agent is to alternate its response, regardless of the responses made at any number of intermediate cyan observations. This task is demonstrated graphically in ##FIG##2##Figures 3## and ##FIG##3##4##.</p> <title>2-Back</title> <p>In the 2-back task (more generally the <italic>n</italic>-back task; ##REF##9121583##[21]##–##REF##11530838##[23]##), subjects are given a continuous stream of cues and must respond to a cue only when it matches the cue from two items earlier. The subjects must constantly update their working memory of the most recent cues, because memory of the cue from time <italic>t</italic>-2 is required to respond at time <italic>t</italic>, but memory of the cue from <italic>t</italic>−1 must be maintained in order to respond to the cue at time <italic>t</italic>+1. The version of this task that will be analyzed is somewhat simpler than most versions in that we use only four different cues in the sequence, although the analysis should not differ for a larger set of stimuli.</p> <title>1-2-AX</title> <p>The 1-2-AX task (##REF##16378516##[8]##, ##REF##18946523##[9]##; based on an earlier task from ##REF##2282338##[24]##) consists of a stream of the characters {1, 2, A, B, C, X, Y, Z}. For instance, the following stream might occur: 2-A-Z-B-Y-1-C-Z-B-Y-C-X-A-X-…. First a digit 1 or 2 is presented, then two, four, six, or eight letters are presented, one at a time, alternately drawn from the sets {A, B, C} and {X, Y, Z}. In this task, the agent is to make a response when a target sequence appears, where the target sequence depends on whether a 1 or a 2 most recently occurred in the string. If a 1 most recently occurred, the agent should respond to an X if immediately preceded by an A (e.g. the final symbol in the example string above). If the most recent digit was a 2, the agent should respond to a Y preceded by a B (e.g. the fifth symbol in the example above). The probability of a target sequence appearing as a letter pair in the sequence is 0.5, although the results of the analysis are independent of this probability.</p> <p>In this task, when observing an X or a Y, the agent must recall both which digit was most recently shown as well as the identity of the preceding symbol in order to act optimally.</p> <title>Other Tasks</title> <p>The six tasks simulated and fully described in ##REF##17979198##[4]## will also be analyzed: spatial alternation, tone-cued alternation, spatial sequence disambiguation, odor sequence disambiguation, non-matching to position, and non-matching to lever. The spatial and tone-cued alternation tasks are essentially identical to the simplified tasks described above, differing only in their greater number of ambiguous states and their longer side paths. The spatial sequence disambiguation task is similar to the sequence disambiguation task analyzed in ##SUPPL##1##Appendix S2## and involves two sequences of states with overlap in one or more ambiguous observations. In the odor sequence disambiguation task, the agent is presented with pairs of odors it can freely sample (sniff at) before selecting one as a response. There are two sequences of correct odors which overlap in the middle two odors. The choice point is the final pair of odors, where the agent must recall which sequence is being presented. Finally, in the non-match to position and non-match to lever tasks, the agent is first forced to enter one of two positions or press one of two levers. Then both positions or levers are made available and the agent is rewarded for selecting the position or lever that was not available during the first stage.</p>
<title>Results</title> <title>Working Memory Analysis</title> <p>By working memory ##UREF##8##[25]##, ##REF##7695894##[26]## we mean the capacity for the agent to hold onto an experienced observation over a number of steps (the definition used in the behavioral simulations in ##REF##17979198##[4]##, ##REF##16378516##[8]##–##UREF##5##[10]##). In this case, the agent's policy-state at time <italic>t</italic>, <italic>p<sub>t</sub></italic>, is a triple <italic>p<sub>t</sub> = (o<sub>t</sub>, o<sub>t−i</sub>, i)</italic> consisting of its current observation <italic>o<sub>t</sub></italic> and the observation <italic>o<sub>t−i</sub></italic> that was present when the agent last took its “hold in working memory” action, <italic>i</italic> steps earlier.</p> <p>An agent or animal that does not have access to the age of a memory (the number of steps it has been held in working memory) may not be able to fully take advantage of the disambiguation information that we will discuss in detail below. This information is not always required, however, as demonstrated by successful working memory simulations that have not included it ##REF##17979198##[4]##, ##REF##16378516##[8]##–##UREF##5##[10]##. We will return to this in the <xref ref-type="sec" rid="s4">Discussion</xref> section.</p> <title>Example: Alternation</title> <p>Consider the 8 state, 5 observation alternation task shown in ##FIG##0##Figures 1## and ##FIG##1##2##. The states in <italic>T<sub>S</sub></italic> are labeled with vector identifiers (<italic>e<sub>1</sub></italic>, <italic>e<sub>2</sub></italic>, etc.), and color-coded according to their identity in <italic>O</italic> (e.g. <italic>A(e<sub>2</sub>)</italic> = <italic>A(e<sub>6</sub>)</italic> = green). The goal of the task is for the agent to alternate its response on every visit to the choice point (green states). For example, it should always make a “right” response at <italic>e<sub>2</sub></italic> and a “left” response at <italic>e<sub>6</sub></italic>.</p> <p>It is clear that the resulting state and reward from taking a given action in state <italic>e<sub>2</sub></italic> are not the same as those when taking the same action in state <italic>e<sub>6</sub></italic>. When observing green, the agent cannot learn which is the optimal action to take. However, certain observations in the paths leading into green always predict the agent's current state. If the agent has held its previous observation in working memory, its policy-state will either be (green, red, 1) or (green, blue, 1). For instance, if the policy state is (green, red, 1), then the agent must be at <italic>e<sub>2</sub></italic>, as is clear in ##FIG##1##Figure 2##. Thus,
</p> <p>This is made most clear by explicitly listing the paths that can lead into a green state, shown in ##FIG##4##Figure 5##. We see that the agent has policy-states that indirectly come to represent the true underlying states, thus disambiguating an observation. When that happens, the Markov property of a particular aliased state is restored, as just demonstrated. In such a case, working memory allows the agent to learn a policy that more closely relates to the underlying MDP, at least at a single observation.</p> <p>This result is intuitively clear and, of course, can be determined simply by inspection of the state space for small tasks like the present example. Our goal in what follows is to formalize and automate the process of determining when an observation is disambiguated by working memory and then to extend this to the somewhat more complex case of CASR memory.</p> <p>In order to concisely express the disambiguation results from above, we write a disambiguation matrix <italic>W</italic> for the observation green. There will be one column in this matrix for each state aliased to green and one row for each observation that may be held in working memory from one step earlier. To specifically indicate that we are considering observations from one step into the past, we refer to the matrix as <italic>W<sub>1</sub>[green]</italic>. We can write the results above as
</p> <p>The first column corresponds to <italic>e<sub>2</sub></italic> and the second to <italic>e<sub>6</sub></italic>. The first row corresponds to red and the second row to blue. A nonzero entry in the row corresponding to observation <italic>o</italic> and the column corresponding to <italic>s</italic> indicates that the agent can be in state <italic>s</italic> given that <italic>o</italic> is in working memory from one step earlier. If the entry equals zero, the agent cannot be in <italic>s</italic> when <italic>o</italic> is in working memory from the previous step.</p> <p>We can derive this from the aliasing function <italic>A</italic> and the Markov chain <italic>N</italic> of this task, calculated as described in the <xref ref-type="sec" rid="s2">Methods</xref> (or by inspection of ##FIG##0##Figure 1##). <italic>N</italic> describes the potential transitions between states in the task.
</p> <p>From this we want to calculate <italic>W<sub>1</sub>[o]</italic> for some number of steps <italic>i</italic> and some observation <italic>o</italic>. The columns of <italic>W<sub>1</sub>[o]</italic> correspond to states <italic>A<sup>−1</sup>(o)</italic> (the states aliased to <italic>o</italic>). Each row corresponds to an observation that can occur <italic>i</italic> steps before <italic>o</italic>. Notice that in the present case, this matrix is a submatrix of <italic>N</italic>. Dropping all columns except the second and sixth (for states <italic>e<sub>2</sub></italic> and <italic>e<sub>6</sub></italic>), and all rows except <italic>e<sub>1</sub></italic> (red) and <italic>e<sub>5</sub></italic> (blue) gives <italic>W<sub>1</sub>[green]</italic> from above, as indicated by the bold elements in the matrix above.</p> <p>To automate the finding of these observations, we begin with a vector representation of the states aliased to <italic>o</italic>: , where the nonzero entries correspond to states aliased to <italic>o</italic>. Letting <italic>N<sub>rev</sub></italic> be the time reverse of <italic>N</italic>, we calculate the new vector , where the nonzero entries correspond to states exactly <italic>i</italic> steps before the states in <italic>A<sup>−1</sup>(o)</italic>.</p> <p>In the present example, <italic>v = (e<sub>2</sub>+e<sub>6</sub>)</italic>, andSo <italic>v′ = vN<sub>rev</sub> = (1 0 0 0 1 0 0 0)</italic>. We see that states <italic>e<sub>1</sub></italic> (red) and <italic>e<sub>5</sub></italic> (blue) precede green states. Thus the rows of <italic>W<sub>1</sub>[green]</italic> will correspond to red and blue.</p> <p>We form a matrix  to hold this intermediate computation and to group the states that can occur <italic>i</italic> steps before states <italic>A<sup>−1</sup>(o)</italic> by the observations they are aliased to. We can then left-multiply <italic>N</italic> by  to extract only the rows of interest. In the present example,  will have two rows: . If multiple states in <italic>v′</italic> were aliased to the same observation, the appropriate row in  would be the average of the state vectors (see <italic>W<sub>2</sub>[green]</italic> below). We write this formally by using the aliasing matrix A to transform state vectors to their corresponding observation vectors:  where <italic>Diag(v′)</italic> is a matrix that is all zeros, except along the diagonal where it has the elements of <italic>v′</italic>. Note that the rows of  need to be normalized after this step so that they remain probabilities and the rows that are all zeros can be dropped for conciseness.</p> <p>Similarly, we want to keep only the second and sixth columns. We do so by right-multiplying <italic>N</italic> by a matrix <italic>C</italic> with two columns, .</p> <p>Together, this yields
</p> <p>Thus, this mathematical process provides the disambiguation matrix discussed earlier. Notice that this disambiguation is policy independent. By the very structure of the task, working memory can always provide sufficient information to disambiguate the two aliased states, though a policy need not take advantage of this fact.</p> <p>We can similarly find <italic>W<sub>i</sub>[green]</italic> for other values of <italic>i</italic>:where the rows correspond to yellow and magenta. The rows of  are averages of vectors because, e.g., a yellow observation in working memory might have been either state <italic>e<sub>3</sub></italic> or <italic>e<sub>7</sub></italic> (##SUPPL##0##Appendix S1## shows that any linear combination with nonzero coefficients of the vectors produces equivalent results).
</p> <p>Calculating <italic>W<sub>i</sub>[green]</italic> for <italic>i</italic>&gt;3 shows that elements held in working memory for more than two steps in this task provide no disambiguation.</p> <p>Consider also .  corresponds to a single observation so  will be a single row. If <italic>C</italic> is a single column (i.e. the state is not aliased), then  so <italic>W<sub>0</sub> = 1</italic>. Otherwise <italic>W<sub>0</sub></italic> is a row vector with <italic>|A<sup>−1</sup>(green)|</italic> elements all equal to <italic>1/|A<sup>−1</sup>(green)|</italic>. For instance,
</p> <title>Example: Cued Alternation</title> <p>Next we examine a more complex task. This task, cued alternation, is a simplified version of the task initially described in ##REF##17979198##[4]##. The environment has 6 observations (shown in ##FIG##2##Figure 3##) with 32 total states (see ##FIG##3##Figure 4##).</p> <p>The goal of this task is for the agent to learn two concurrent alternations, alternating separately for green and cyan cues. For convenience we call the two actions “L” and “R”. There are essentially four “trial types” in the task. At any given time, the green cue might require the “L” action (for which there are two possibilities: one where the cyan cue requires the “L” action and another where cyan requires “R”) or green may require the “R” action (for which there are two other possibilities), see ##FIG##3##Figure 4##. We write the possibilities as, for example, (R,L), indicating green requiring “R” and cyan “L”.</p> <p>For the purposes of this example, we are interested in whether the agent can distinguish between green states requiring “L” vs. “R” responses (a similar analysis is possible for cyan states). Thus the agent, at a green state, should distinguish (L,R) from (R,R), but not from (L,L), which is behaviorally equivalent. We will see how this is taken into account when constructing the matrix <italic>C</italic> below.</p> <p>The transition matrix for this task is a pair of unwieldy 32-by-32 matrices that are not included here.</p> <p>For working memory held over one step, we again set  based on the states that transition into green states. As ##FIG##3##Figure 4## shows, there are four red and four blue states that transition into green. However, states <italic>e<sub>9</sub></italic> and <italic>e<sub>18</sub></italic> cannot be occupied except possibly on the first step of a task if the agent begins at them, because they have no incoming transitions.  reflects the states the agent may have just occupied, so in general the agent will not have been at <italic>e<sub>9</sub></italic> or <italic>e<sub>18</sub></italic> and so they will be omitted. Thus:
</p> <p>For the analysis of two steps while holding an observation in working memory, we have yellow and magenta rows:
</p> <p>
<italic>C</italic> is based on <italic>A<sup>−1</sup>(green)</italic>:However, recall that green states in (L,R) and (L,L) trials are considered equivalent (disambiguating them is task-irrelevant as mentioned earlier), as are (R,R) and (R,L). Since columns give the probabilities of being in the respective states, we can simply sum columns to lump states together. We use
</p> <p>From these we can find
</p> <p>Notice that the rows do not sum to 1 here. This occurs because, unlike in the previous example, green here is not a “bottleneck”; the agent may enter the cyan observation instead of green. Since we are currently only interested in the green states, we can simply normalize the row sums to more easily see the relative probabilities.
</p> <p>We see that <italic>W<sub>1</sub>[green]</italic> fails to fully disambiguate any state. <italic>W<sub>2</sub>[green]</italic> is halfway between perfect disambiguation and chance level. It is beyond the scope of this analysis to determine in detail what effect on behavior this imperfect disambiguation might produce. However, simulations of this task ##REF##17979198##[4]## did show that an agent with only working memory was able to maintain a level of performance intermediate between chance and perfect, correctly responding approximately 2/3 of the time as <italic>W<sub>1</sub>[green]</italic> would predict. This suggests that future work might further elucidate a more general connection between <italic>E<sub>i</sub></italic>, <italic>W<sub>i</sub></italic>, and performance level.</p> <p>
<italic>W<sub>1</sub>[green]</italic> for <italic>i</italic>&gt;2 also produce no disambiguation. We will see later that CASR memory, on the other hand, does provide disambiguation in this task.</p> <title>Working Memory Summary</title> <p>Given a matrix <italic>N</italic> describing the transitions available to the agent and an aliasing function <italic>A∶T<sub>O</sub>→T<sub>S</sub></italic>, we can ask if the structure of <italic>N</italic> and <italic>A</italic> allows working memory to disambiguate the different states mapping to some particular observation <italic>o∈T<sub>O</sub></italic>.</p> <p>The two steps as performed above are: 1. Find matrices  and <italic>C</italic>. 2. Find the product .</p> <p>First, letting , we calculate  and then , dropping the rows that equal zero and normalizing the other rows. There is one nonzero row in  for each observation found <italic>i</italic> steps before the starting states, averaged across each state in the preimage of the observations. There is one column in <italic>C</italic> for each state in <italic>A<sup>−1</sup>(o)</italic>. For simple tasks,  can be determined by inspection of the Markov chain by identifying the states from which <italic>o</italic> is reachable in <italic>i</italic> steps (i.e. it represents the states <italic>i</italic> steps backward from <italic>o</italic>).</p> <p>Optionally, at this point, the decision should be made regarding which state disambiguations are important and <italic>C</italic> altered appropriately by summing columns. Skipping this step considers all possible distinctions.</p> <p>Finally, the product  is the disambiguation matrix, which essentially is a submatrix of <italic>N<sup>i</sup></italic> where certain rows or columns may have been linearly combined.</p> <p>This submatrix summarizes the chain leading from states in , through <italic>i</italic> steps, up to the states aliased to the agent's current state <italic>C</italic>. So, if row <italic>r</italic> and column <italic>c</italic> of the matrix is 0, then the agent cannot arrive at state <italic>c</italic> if the agent's working memory contains <italic>r</italic> from <italic>i</italic> steps earlier.</p> <title>Content-Addressable, Sequential Retrieval Memory Analysis</title> <p>Episodic memory is a form of memory that, in humans, is described as long-lasting and allows a person to recall spescific autobiographical events ##REF##11752477##[16]##. Based on an earlier neural network model of the hippocampus in which episodic memories were retrieved on every time step ##REF##16263240##[15]##, an abstract model of episodic memory has been proposed and simulated in ##REF##17979198##[4]##. Here we refer to this as a content-addressable, sequential retrieval (CASR) memory system and assume it is ideal (noiseless and of infinite capacity), containing a copy of the agent's entire history of observations. This CASR memory system allows an agent to retrieve a sequence of observations from its history, beginning with the time at which the agent last visited its current observation (called the retrieval cue; although the analysis can be extended so that any observation can be used as a cue, to do so is outside the scope of the current paper and will be described in a later publication). In practice, this means that an agent can select different actions depending on the path it last followed after its previous visit to a state that looked like its current observation. The agent's policy-state with CASR memory is a triple <italic>p<sub>t</sub> = (o<sub>t</sub>, e, i)</italic> of its current observation and the observation it currently has in CASR memory (if any), as well as the number of time it has taken its “advance retrieval” action since it last cued CASR retrieval.</p> <p>An important aspect of this analysis as presented here is that only the agent's current observation can be used as a retrieval cue, as simulated previously ##REF##17979198##[4]##, ##REF##16263240##[15]##. It is straightforward but outside the scope of this manuscript to modify the following analysis so that any observation can be used as a retrieval cue.</p> <p>In many ways this analysis is similar to that for working memory. There is a symmetry in the two analyses shown in ##FIG##5##Figure 6##.</p> <p>We begin our consideration of CASR memory with a somewhat general discussion that will use the alternation task as an example (see ##FIG##1##Figure 2##). This will be followed by analysis of one more example tasks (see ##SUPPL##1##Appendix S2## in the supporting material for a third worked-out example).</p> <title>Example: Alternation</title> <p>In ##FIG##4##Figure 5## are shown all of the possible paths that can take the agent from one green state back to another (possibly the same) green state in the alternation task. These are the possible CASR memories the agent can replay from a green retrieval cue. There are only two unique CASR memories: (green→yellow→red→green) and (green→magenta→blue→green), and each corresponds to two different paths in the state space.</p> <p>While observing green, suppose the agent cues CASR memory. If the agent takes the “advance retrieval” action once, only a subset of observations in <italic>T<sub>O</sub></italic> can possibly be retrieved. These are the observations reachable in one step by actions leading out of states <italic>A<sup>−1</sup>(green) = {e<sub>2</sub>, e<sub>6</sub>}</italic>, which correspond to the non-zero entries in the vector resulting from the product <italic>(e<sub>2</sub>+e<sub>6</sub>)N</italic> (i.e. the sum of the second and sixth rows of <italic>N</italic>). As clear from ##FIG##1##Figure 2## or from <italic>N</italic> itself, this yields the four states {<italic>e<sub>3</sub></italic>, <italic>e<sub>4</sub></italic>, <italic>e<sub>7</sub></italic>, <italic>e<sub>8</sub></italic>}, aliased to observations yellow and magenta.</p> <p>We may ask if having experienced any one of these observations forces the agent's state to be either <italic>e<sub>2</sub></italic> or <italic>e<sub>6</sub></italic> on its next visit to a green state. More generally, let the agent be observing <italic>o∈T<sub>O</sub></italic>. By the structure of <italic>T</italic>, does knowing that the previous episode began with the sequence <italic>o→o<sub>a</sub>→o<sub>b</sub>…</italic> provide information as to which state the agent might be in?</p> <p>An easy way of determining this is to make a new Markov chain <italic>N<sub>abs</sub></italic> with both <italic>e<sub>2</sub></italic> and <italic>e<sub>6</sub></italic> (more generally, states <italic>A<sup>−1</sup>(o)</italic>) set as absorbing states and see if one, both, or neither of these two absorbing states are reachable from each state in the chain.
</p> <p>From this, we can use a straightforward tool in Markov chain theory, the absorption probability matrix <italic>B</italic>
##UREF##7##[17]##. <italic>B</italic> is the matrix where <italic>B(r,c)</italic> is the probability that the chain will absorb in <italic>c</italic> when starting from state <italic>r</italic>. To find <italic>B</italic>, the absorbing rows of <italic>N<sub>abs</sub></italic> are first discarded. The columns of the remaining rows are divided up into one matrix <italic>Q</italic> of columns corresponding to transient states and one matrix <italic>R</italic> of the absorbing state columns (not to be confused with the unrelated matrices  we use elsewhere). Then:
</p> <p>This is the absorption probabilities only for transient states. For our definition, the matrix <italic>B</italic> must then have the absorbing rows that were removed put back in place (restricted only to the columns used) so that all states are included.
</p> <p>Starting from each state, we see that the agent will eventually be found at either <italic>e<sub>2</sub></italic> or <italic>e<sub>6</sub></italic> and that this is deterministic in that, e.g., starting from one of the states <italic>{e<sub>1</sub>, e<sub>2</sub>, e<sub>3</sub>, e<sub>7</sub>}</italic> (rows 1–3 and 7 in <italic>B</italic>) will always result in the agent passing through <italic>e<sub>2</sub></italic> before <italic>e<sub>6</sub></italic>. Likewise, starting from one of <italic>{e<sub>4</sub>, e<sub>5</sub>, e<sub>6</sub>, e<sub>8</sub>}</italic> will result in the agent passing through <italic>e<sub>6</sub></italic> before <italic>e<sub>2</sub></italic>. Compare this result with ##FIG##4##Figure 5##.</p> <p>This nearly answers our question about the use of CASR memory in this task. The agent observes that it is in green and through its CASR memory actions can retrieve the prior episode which, let us say, begins <italic>green→yellow→…</italic> The states aliased to yellow that are immediately reachable from green are <italic>{e<sub>3</sub>, e<sub>7</sub>}</italic>. From <italic>B</italic> we see that <italic>e<sub>2</sub></italic> is the first state in <italic>A<sup>−1</sup>(green)</italic> reachable from both <italic>e<sub>3</sub></italic> and <italic>e<sub>7</sub></italic>. Thus: if the most recent pass through green was followed by yellow, the agent must currently be at <italic>e<sub>2</sub></italic> and cannot be at <italic>e<sub>6</sub></italic>. The opposite results follow if the prior episode began <italic>green→magenta→…</italic>, in which case the agent must be in <italic>e<sub>6</sub></italic> and not <italic>e<sub>2</sub></italic>. We see that CASR memory has fully disambiguated green.</p> <p>As in the working memory analysis, this result can be made clearer by examining only a submatrix of <italic>B</italic>, removing the information that is not of interest. Instead of calculating  using the states <italic>i</italic> steps before <italic>o</italic>, we calculate  with the states <italic>i</italic> steps after <italic>o</italic>. This is done by finding <italic>v′ = vN</italic> instead of <italic>v′ = vN<sub>rev</sub></italic>. Proceeding as before, we calculate the disambiguation matrix <italic>E<sub>1</sub>[green]</italic>:
</p> <p>The first and second rows correspond to yellow and magenta, respectively, and the columns correspond to states <italic>e<sub>2</sub></italic> and <italic>e<sub>6</sub></italic>.</p> <p>When calculating  for <italic>i</italic>&gt;1, a slight modification to the above is appropriate. The observations used in making  were based on the nonzero entries in <italic>vN</italic>, where <italic>v</italic> was the sum of the state vectors aliased to the agent's current observation. Though one might expect that  would be based on <italic>vN<sup>i</sup></italic>, in the present task this results in a repeating sequence of matrices . In this alternation task, the nonzero entries would correspond to the sequence of observations {yellow, magenta} for , {red, blue} for , {green} for , back to {yellow, magenta} for , and so forth, repeating forever. However, when CASR memory is cued by a green observation, the retrieved memory begins at the last visit to a green state and can continue only as far as the agent's subsequent visit to green (the present time). So, although <italic>vN<sup>i</sup></italic> gives the state occupancy probabilities after <italic>i</italic> steps, there may be states <italic>i</italic> steps away that are not actually retrievable. To prevent these from appearing in <italic>v′</italic>, <italic>vN</italic> is used to take the first step out of the retrieval cue states, but the remaining <italic>i</italic>−1 steps are taken in the chain <italic>N<sub>abs</sub></italic>, preventing retrieval past the current time. Combining these gives .</p> <title>Example: Cued Alternation</title> <p>We return again to the cued alternation task. Let us consider what information one step of CASR memory provides when used from a green state. We first find matrices <italic>R</italic> and <italic>C</italic>.</p> <p>
 here comes, as before, from the states immediately reachable from green states. Examining ##FIG##3##Figure 4## easily provides the information: there are four such yellow states and four such magenta states.
</p> <p>Here we will modify the matrix <italic>C</italic> used in the working memory analysis of cued alternation (because <italic>B</italic> has fewer columns than <italic>N</italic>, but we still want to combine the cue states into two columns):
</p> <p>As in the previous example, we set the green states absorbing to find <italic>N<sub>abs</sub></italic> from <italic>N</italic>, and then calculate <italic>E<sub>1</sub>[green]</italic>.
</p> <p>The rows observations are yellow and magenta, and the first column corresponds to states <italic>e<sub>3</sub></italic> and <italic>e<sub>11</sub></italic>, while the second column corresponds to states <italic>e<sub>19</sub></italic> and <italic>e<sub>27</sub></italic>.</p> <p>If we had not combined states in making <italic>C</italic>, we would have foundwhich expresses the same disambiguation information as <italic>E<sub>1</sub>[green]</italic>, but in a less clear manner.</p> <p>In this task we see that CASR memory for a green cue can disambiguate the agent's state along the green-relevant dimension, and the cyan cue can disambiguate the cyan-relevant dimension (which the reader may verify). So although perfect disambiguation is impossible (as demonstrated by <italic>E′</italic>), the disambiguation is sufficient for performing the task. It is simple to show that for cyan cues, the second letter in the pair can be disambiguated, but the first letter cannot. For example, (R,L) and (L,L) cannot be disambiguated, but they can be distinguished from (R,R) and (L,R).</p> <p>The same disambiguation occurs in <italic>E<sub>2</sub>[green]</italic>.</p> <title>CASR Memory Summary</title> <p>Given a matrix <italic>N</italic> describing the transitions available to the agent and an aliasing function <italic>A∶T<sub>O</sub>→T<sub>S</sub></italic>, we can ask if the structure of <italic>N</italic> and <italic>A</italic> allows CASR memory to disambiguate the different states mapping to some particular observation <italic>o∈T<sub>O</sub></italic>.</p> <p>The three steps as performed above are: 1. Find . 2. Calculate <italic>B</italic>. 3. Find the product .</p> <p>Letting , we calculate , where <italic>N<sub>abs</sub></italic> has states <italic>A<sup>−1</sup>(o)</italic> set as absorbing. Then . Each nonzero row in  corresponds to an observation found <italic>i</italic> steps from <italic>A<sup>−1</sup>(o)</italic>, and the value of each row (after normalization) is the average of the state vectors aliased to the corresponding observation.</p> <p>Next we find <italic>B</italic>. Using <italic>N<sub>abs</sub></italic> from the previous step, <italic>B</italic> is calculated using Equation (2) to identify which of the <italic>o</italic> states the agent will visit first when starting at each state in <italic>T<sub>S</sub></italic>.</p> <p>Finally, the product  is the disambiguation matrix. <italic>E<sub>i</sub>[o]</italic> summarizes the chain leading from states in , through arbitrarily many states, up to the states aliased to the agent's current state <italic>o</italic>.</p> <p>The examples used above had a small number of potential episodes that could easily be drawn. However, there could be infinitely many potential episodes and the results would still hold as long as some <italic>i</italic>
<sup>th</sup> observation always disambiguates the cue state (for an ideal CASR memory with infinite capacity), as suggested by ##FIG##5##Figure 6A##.</p> <p>This analysis can be extended to allow an arbitrary observation to be used as a retrieval cue. This results in a slightly different interpretation of the disambiguation matrix and introduces other small complexities that depend on the way in which the retrieval cue is selected. Because all of the tasks considered in this paper can be solved using only the agent's current observation as a retrieval cue, we do not consider this modification any further, but leave it for a future paper to examine in more detail.</p> <title>Full Tasks</title> <p>The analysis was performed on simplified tasks above to provide short examples, but it can also be performed on larger AMDPs. We used the algorithm described in ##SUPPL##2##Appendix S3## to form AMDPs of the tasks that were simulated in ##REF##17979198##[4]##: spatial alternation, tone-cued spatial alternation, spatial sequence disambiguation, odor sequence disambiguation, non-match to position, and non-match to lever.</p> <p>The implementation of spatial sequence disambiguation contained 18 states aliased to 11 observations. The observations were the agent's spatial coordinates; the states were its coordinates along with an indication of whether the agent should respond by going left or right. The observation of interest here was the choice point at coordinates “2,2”. At this state, matrices <italic>E<sub>3</sub>[2,2]</italic> and <italic>E<sub>4</sub>[2.2]</italic> were identity matrices, as were <italic>W<sub>3</sub>[2,2]</italic> and <italic>W<sub>4</sub>[2,2]</italic>. These matrices reflected the two states on the starting arm of this task: either having recently come from one or the other starting arm (with working memory) or memory of having recently entered one or the other starting arm (with CASR memory).</p> <p>Our implementation of the spatial alternation task ##REF##11055443##[18]##–##REF##17554771##[20]## contained 18 states aliased to 13 observations. The observations were the agent's spatial coordinates; the states were its coordinates along with an indication of whether the agent last went left or right. The observation of interest here was the choice point at coordinates “2,2”. At this state, the matrices <italic>E<sub>1</sub>[2,2]</italic> through <italic>E<sub>5</sub>[2,2]</italic> were identity matrices, as were matrices <italic>W<sub>3</sub>[2,2]</italic> through <italic>W<sub>7</sub>[2,2]</italic>. These both correspond to the 5 state long side arms of the maze. Memory of either having recently been in one (working memory) or recently entered one (CASR memory) and not in the corresponding state on the other arm provide information that allows the agent to perform alternation.</p> <p>Our implementation of the cued alternation task contained 72 states aliased to 14 observations. The observations were the agent's spatial coordinates and also, only at the choice point “2,2”, one of two cues, selected at random (thus there are actually two choice point states: one for each cue). The states were the agent's spatial coordinates, the most recent tone to have played, and the direction the agent should go on the subsequent presentation of each tone (for 5 state elements in total). The matrices <italic>E<sub>1</sub>[2,2,cue1]</italic> through <italic>E<sub>5</sub>[2,2,cue,1]</italic> were identity matrices (after summing appropriate columns, as in the earlier example). For no <italic>i</italic> was <italic>W<sub>i</sub>[2,2,cue1]</italic> was an identity matrix. Agreeing with the earlier example analysis, <italic>W<sub>3</sub>[2,2,cue1]</italic> through <italic>W<sub>5</sub>[2,2,cue1]</italic> were halfway between identity and chance level.</p> <p>The non-match to position task ##REF##17329440##[27]## comprised 28 states and 10 observations. States were made up of spatial coordinates and an indication of both the current task stage (sample versus test) and which response the agent should make at the choice point. The observations were spatial coordinates, except at the choice point “3,2” where the directions the agent could go were also observed (corresponding to one arm of the maze being blocked, forcing the agent to go the other way, or neither being blocked). The observation of interest was the choice point during the test stage of the task. In this case, the identity matrices were <italic>E<sub>6</sub>[3,2,LR]</italic> through <italic>E<sub>8</sub>[3,2,LR]</italic> and <italic>W<sub>4</sub>[3,2,LR]</italic> through <italic>W<sub>6</sub>[3,2,LR]</italic> (LR meaning that neither possible direction was blocked). These correspond to memory of the choice point and the reward arms during the sample stage.</p> <p>The non-match to lever task ##REF##8942961##[28]## was somewhat more complex than the previous three tasks. This task is made up of 30 states and 18 observations. The observation of interest is one of the two lever states. In the above tasks, the agent was constrained to keep moving forward and so the agent could not re-enter a state immediately after leaving it. In the non-match to lever task, the environment was rectangular so the agent could re-enter a state just after leaving it. Thus there are many more states that can immediately precede or follow a given state. Consider matrix <italic>W<sub>3</sub>[lever1]</italic> for this case (with row sums normalized):
</p> <p>Of the five states that can occur three steps before a choice point, three do not disambiguate (three locations in the space around the levers in the test stage), but two do disambiguate (the two levers from the sample stage). For larger values of <italic>i</italic>, <italic>W<sub>i</sub>[lever1]</italic> shows that, initially, some states continue to disambiguate the observation of interest, but the disambiguation decreases to chance over time. With CASR memory, only partial disambiguation is possible, starting from <italic>W<sub>4</sub>[lever1]</italic>:
</p> <p>The most complex task in ##REF##17979198##[4]## was odor sequence disambiguation ##REF##12097529##[29]##, which comprised 106 states aliased to 42 observations. In this task, the observations included information as to which of the 5 pairs of odors in a trial the agent was currently at, which odor it was currently smelling, as well as its status as to whether the agent was currently successfully or unsuccessfully attempting to respond to one of the two odors (four such possibilities) or whether it is not currently attempting to responding (a fifth possibility). Observations of interest occur in the final pair of odors (e.g. observation “at pair 5, not responding to an odor, not sampling an odor” or (5,0,0)), where the agent must recall which of the two odor sequences is currently being presented. Here, disambiguation is first provided by matrices <italic>E<sub>5</sub>[5,0,0]</italic> and <italic>W<sub>7</sub>[5,0,0]</italic>. One example matrix is shown below.
</p> <p>Of the twelve observations that can occur five steps after (5,0,0), four of them provide disambiguation. These four observations are the possibilities of successfully or unsuccessfully digging in one of the two scented cups.</p> <p>These results are briefly summarized in ##TAB##0##Table 1##.</p> <title>Working Memory of Multiple Observations</title> <p>The CASR memory and working memory analyses above can be used as a basis for analyses considering more complex combinations and strategies using memory systems. We present one example: an analysis of the case where more than one item must be held in working memory to fully disambiguate an observation. This is motivated by human working memory tasks, which are often more complex in requiring that a subject hold more than one item in working memory at a time ##UREF##9##[30]##.</p> <p>In both the 2-back and the 1-2-AX task, disambiguation of an observation depends on simultaneous working memory of items from multiple time points in the past, e.g. times <italic>t−i</italic>, <italic>t−j</italic>, … We desire a generalization of the earlier analysis to form a matrix <italic>W<sub>i,j,…</sub></italic> reflecting this multi-item disambiguation. For instance, in the 2-back task where items from both of the two previous time steps we expect that matrix <italic>W<sub>1,2</sub></italic> should provide complete disambiguation.</p> <p>Whereas each row of <italic>W<sub>i</sub></italic> corresponded to a single observation from which the observation of interest is reachable in <italic>i</italic> steps, each row of <italic>W<sub>i,j</sub></italic> corresponds to a pair of observations, one found <italic>i</italic> steps before the observation of interest and the other found <italic>j</italic> steps before. Thus if there are <italic>r<sub>i</sub></italic> rows in <italic>W<sub>i</sub></italic> and <italic>r<sub>j</sub></italic> rows in <italic>W<sub>j</sub></italic>, there are <italic>r<sub>i</sub>r<sub>j</sub></italic> rows in <italic>W<sub>i,j</sub></italic>. However, <italic>W<sub>i,j</sub></italic> still has the same number of columns as <italic>W<sub>i</sub></italic> and <italic>W<sub>j</sub></italic>.</p> <p>For convenience, let <italic>O<sub>i</sub>(r<sub>a</sub>)</italic> be the observation corresponding to row <italic>r<sub>a</sub></italic> in <italic>W<sub>i</sub></italic> and <italic>S<sub>i</sub>(c)</italic> be the state corresponding to column <italic>c</italic> in <italic>W<sub>i</sub></italic>. Consider the entry <italic>W<sub>i</sub>(r<sub>a</sub>,c)</italic>. If this entry is zero, then memory of observation <italic>O<sub>i</sub>(r<sub>a</sub>)</italic> held over <italic>i</italic> steps means the agent cannot possibly be in state <italic>S<sub>i</sub>(c)</italic>. If the product <italic>W<sub>i</sub>(r<sub>a</sub>,c)W<sub>j</sub>(r<sub>b</sub>,c) = 0</italic>, then from one or both of the matrices we know that the agent cannot be in state <italic>S<sub>i</sub>(c)</italic>. We can form a row vector of these products for each column by taking the Hadamard (element-wise) product of rows <italic>W<sub>i</sub></italic>(<italic>r<sub>a</sub></italic>,•) and <italic>W<sub>j</sub></italic>(<italic>r<sub>b</sub></italic>,•).</p> <p>We define <italic>W<sub>i,j,k,…</sub></italic>, <italic>i≤j≤k≤…</italic>, to be the matrix composed of all such row vectors (the Hadamard products of one row vector taken from each of <italic>W<sub>i</sub></italic>, <italic>W<sub>j</sub></italic>, …). This is the Khatri-Rao product of matrices <italic>W<sub>i</sub>,W<sub>j</sub>,…</italic> with each column as a separate partition, written <italic>W<sub>i,j</sub> = W<sub>i</sub> * W<sub>j</sub> * …</italic>, and can be formally defined as the partition-wise Kronecker product of <italic>W<sub>i</sub></italic> and <italic>W<sub>j</sub></italic>
##UREF##10##[31]##, ##UREF##11##[32]##.</p> <p>This gives us the final form for the disambiguation matrix representing the holding of multiple items in working memory:
</p> <title>Example: 2-Back</title> <p>The 2-back task consists of 4 observations (cues) and 36 states (AMDP generated from a simulation of the task per ##SUPPL##2##Appendix S3##). Each state is an ordered triple of the current and past two cues, e.g. (A,B,C) if cue A was followed by cue B and then cue C. When generating sequences, a given cue can not occur twice in a row, so for any one of the 4 observations, there are 3 observations that can precede it and 3 possible observations that can occur two steps previously, for 36 possible states. States are aliased so that only the final element in the list (the current cue) is observed, so the preimage of each observation contains 9 states. It is these states which must be disambiguated from each other. Without loss of generality, we can select cue A as the observation of interest.</p> <p>Let us consider single-item working memory matrices first.
</p> <p>The rows in <italic>W<sub>2</sub>[A]</italic> correspond, respectively, to cues A, B, C, and D. The rows in <italic>W<sub>1</sub>[A]</italic> correspond to cues B through D. The first three of the nine columns correspond to the matching conditions (when an A was presented two steps earlier). The last six columns correspond to the non-matching conditions.</p> <p>Although both <italic>W<sub>1</sub>[A]</italic> and <italic>W<sub>2</sub>[A]</italic> provide partial disambiguation, none of the nine columns are fully disambiguated. Consider, however, <italic>W<sub>1,2</sub>[A]</italic>.
</p> <p>The first row is the Hadamard product of the first rows of <italic>W<sub>1</sub>[A]</italic> and <italic>W<sub>2</sub>[A]</italic>. The second row is the Hadamard product of the first row of <italic>W<sub>1</sub>[A]</italic> and the second row of <italic>W<sub>2</sub>[A]</italic>, and so forth.</p> <p>Now each state is completely disambiguated. In this case, examining the values of <italic>W<sub>i,j</sub>[A]</italic> for various <italic>i</italic>, <italic>j</italic> suggests that it is only <italic>W<sub>1,2</sub>[A]</italic> that provides perfect disambiguation.</p> <p>Notice also that there are three rows that equal the 0 vector. These correspond to memories that never occur in the task (recalling the same cue from both 1 and 2 steps into the past).</p> <title>Example: 1-2-AX</title> <p>The 1-2-AX task comprises 8 possible observations (1, 2, A, B, C, X, Y, Z) and 38 states (AMDP generated from a simulation of the task per ##SUPPL##2##Appendix S3##). The states include the current observation, an indication of whether the most recent digit was 1 or 2, and the identity of which of the 9 letter pairs is being presented (i.e. if an X is presented, the possible letter pairs are (A,X), (B,X), and (C,X)).</p> <p>Again, let us begin by examining a few working memory disambiguation matrices. Our observation of interest will be the letter X.
</p> <p>The rows in <italic>W<sub>1</sub></italic> correspond to A, B, and C (the observations that can precede X). The rows in <italic>W<sub>2</sub></italic> correspond, respectively, to 1, 2, X, Y, and Z. The first three columns in both matrices correspond to sequences beginning with a 1, the final three columns correspond to sequences starting with 2. The first and fourth columns correspond to an A immediately preceding an X, the second and fifth correspond to a B preceding an X, and the third and sixth to a C preceding an X.
</p> <p>The first row corresponds to an A preceding an X (from <italic>W<sub>1</sub>[X]</italic>) and a 1 preceding the X by two steps (from <italic>W<sub>2</sub>[X]</italic>) which, combined give the sequence 1-A-X. The second row corresponds to the sequence 2-A-X. The sixth, seventh, tenth, and eleventh rows correspond to the sequences 1-B-X, 2-B-X, 1-C-X, and 1-D-X.</p> <p>Here each column is disambiguated, although there are many rows that do not perfectly disambiguate the states. Unlike in the 2-back task, however, in this task <italic>W<sub>1,2</sub>[X]</italic> is not the only matrix that can disambiguate the states. Similar disambiguation results from <italic>W<sub>1,4</sub>[X]</italic> and <italic>W<sub>1,6</sub>[X]</italic>. An informative digit can also occur eight steps before an X, so <italic>W<sub>1,8</sub>[X]</italic> should provide complete disambiguation. However, consider the valid sequence 1AX2BY2AX. The 1 is eight steps before the final X, but is from a previous trial: eight is the first distance at which a digit from an earlier sequence can be hit, occurring when 2 sequences in a row have only a single pair of letters. Though the agent may still be able to solve the task, the structure of the task does not guarantee that the final letter in a nine item sequence can be disambiguated. Also, perfect disambiguation is never possible when <italic>i</italic>&gt;2 because memory of the immediately preceding stimulus is needed in this task.</p> <title>Time-Varying Context</title> <p>On a disambiguation level, brain systems that provide an ongoing, time-varying context as a function of the agent's experienced observations are related to working memory for multiple items. Formally we define an order-<italic>n</italic> time-varying context as a function <italic>c∶H<sub>n</sub>→T<sub>O</sub></italic> where <italic>H<sub>n</sub></italic> is the sequence of the <italic>n</italic> most recently experienced observations. Thus <italic>c</italic> is some function mapping the recent history of the agent onto an observation representing some form sof context. Examples of this type of system include the temporal context model ##REF##15631589##[33]## or queue-like buffers ##REF##17030561##[34]##. We will consider policy-states of the form <italic>(current observations, contextual observation)</italic>.</p> <p>At most there can be as many different contexts as there are <italic>n</italic>-observation sequences (in practice, only in an environment where any observation can follow any other would all theoretical sequences actually be possible). In this case, each context would uniquely identify (“sum up”) the current history. So the disambiguation of the context would be  (in fact, this is a conservative calculation, but further details are outside the scope of this discussion and will be provided in a subsequent paper).</p> <p>It is much more likely that certain sets of histories would produce the same contextual observation, i.e. <italic>c(H<sub>1</sub>) = c(H<sub>2</sub>)</italic> for two histories <italic>H<sub>1</sub>≠N<sub>2</sub></italic>. The context function acts as an aliasing map on the history of the agent: it combines rows of  in the same way that the matrices  combine rows in <italic>W<sub>i</sub>[o]</italic> and <italic>E<sub>j</sub>[o]</italic>, respectively. Representing the aliasing given by function c in a matrix <italic>C<sub>c</sub></italic> lets us write the disambiguation matrix .</p> <p>It is clear that time-varying contextual information can provide disambiguation of an observation. It is important to emphasize, though, that not every memory system can do so. The following section gives an example of a form of memory that never disambiguates observations.</p>
<title>Discussion</title> <p>We have demonstrated a simple process for calculating matrices that reveal structural information about a given AMDP and are derived to represent and evaluate the memory demands of a wide range of behavioral tasks. The results of our analyses are summarized in ##TAB##0##Tables 1## and ##TAB##1##2##. These analyses may prove useful for evaluating the effect of lesions of brain regions on specific memory mechanisms ##REF##17554771##[20]##, ##REF##7695894##[26]##, ##REF##11976705##[36]##, and for evaluating how patterns of neural activity could mediate different mechanisms of memory function ##REF##17030561##[34]##. For instance, the simulation results reported in ##REF##17979198##[4]## agreed with lesion studies and the present analyses support those simulation results.</p> <p>It is important to emphasize that the analyses concern the disambiguation of single observations. Whereas it may be common to refer to some task as, e.g., a working memory task or as an operant conditioning task, it is only at particular observations where memory systems are important for making decisions. Consider that the entire life of a laboratory animal may be considered as a single “task”, but it would not be right to consider this task to be a working memory task, or an episodic memory task, or an operant conditioning task, etc. Nevertheless, for tasks that have only a single choice point (there are many such tasks), the entire task could be classified simply according to the strategies useful at the choice point. In this sense, for instance, spatial alternation can be considered both a working memory task and an episodic memory task. Further, tasks with multiple choice points where all the choice points have the same set of useful strategies (e.g. the cued alternation task considered here) can be similarly classified according to those strategies.</p> <p>All of the tasks analyzed in this paper except the 2-back task have been simulated in previous publications ##REF##17979198##[4]##, ##REF##18946523##[9]##, showing that agents can indeed learn tasks that our analysis predicts they should be able to learn. Unpublished simulations of our own show that the 2-back task can also be learned in a manner similar to the methods used in ##REF##17979198##[4]##.</p> <p>Although this manuscript has focused on the underlying structure of tasks, the analysis does suggest a prediction regarding neural activity of animals performing episodic memory or working memory tasks. While disambiguation comes in part from the identity of observations in working memory or CASR memory, additional disambiguation information is provided by the age of an item in working memory or the number of steps of CASR memory retrieved. An immediate prediction of this is that there should be a neural representation of this information in addition to a representation of stimulus identity. Successful past simulations of working memory ##REF##17979198##[4]##, ##REF##16378516##[8]##–##UREF##5##[10]## have not included this information. These simulations were successful because the task were solvable without specifically requiring discrimination based on the age of an item in working memory (though it is straightforward to construct “pathological” AMDPs where such information should be required). However, decisions in the 2-back task do depend upon the age of an item, so this task should show neural activity corresponding to the age of the memory. Responding on the basis of the order of stimulus presentation ##REF##17988635##[35]##, ##REF##11976705##[36]## also requires discrimination of the age of items in working memory. Physiological data suggests that this discrimination of age may be provided by a gradual change in neural activity corresponding to temporal context ##REF##15631589##[33]##, ##REF##17988635##[35]##.</p> <p>In addition to the analysis of existing tasks, these and similar analyses may be useful in the design and evaluation of new tasks. This is a direction we have not yet thoroughly explored, but two possible approaches are clear. First, one might design a task using whatever methods one prefers, then subject the task to these types of analysis, and finally revise the task based on the results (possibly applying multiple iterations). To design a task with specific memory requirements, one might start by writing a set of disambiguation matrices which one desires that an as-yet-unknown task will reflect. These would provide a sort of task skeleton, describing which observations lead to which states through some specific number of steps. While multiple tasks may have the same disambiguation matrices, this approach provides constraints on connectivity which may reduce the complexity of task design.</p> <p>The present work only begins to consider the full disambiguation problem. This work will be expanded in the future to address additional tasks that require an interaction of a number of memory systems (e.g. the multiple-item working memory example given earlier). Our CASR memory analysis could also be extended to consider CASR memory for sequences of observation-action pairs instead of simply sequences of observations. By taking into account the specific actions taken by the agent, it is likely that additional disambiguation would be provided. Additionally, other memory systems could be analyzed in this framework in the future, for instance, more complex learned context systems ##REF##17970649##[37]##.</p> <p>These analyses have used a set of simple techniques which may be useful in analyzing additional brain systems, even those unrelated to the disambiguation problem. Many systems can be translated into the framework of POMDPs and reinforcement learning. Procedural memory might be defined simply as an automatic encoding and playback of sequences of learned actions. Selective attention in the context of factored observations could be treated as the ability to select an action depending on only a subset of the elements in the agent's current observation (those elements that are attended to) using additional actions to selectively attend to or ignore elements of an observation. Sensory memory and priming could be considered as altering the aliasing function from the underlying states of a task (raw sensory input) to the observations on which the agent acts. Theoretical results at even this abstract level will likely be useful in designing new behavioral tasks to study memory, in understanding how neural activity may relate to different strategies that agents or animals can use, and in designing increasingly physiological models of these systems.</p>
<p>Conceived and designed the experiments: EAZ. Performed the experiments: EAZ. Analyzed the data: EAZ. Wrote the paper: EAZ MH.</p> <p>Researchers use a variety of behavioral tasks to analyze the effect of biological manipulations on memory function. This research will benefit from a systematic mathematical method for analyzing memory demands in behavioral tasks. In the framework of reinforcement learning theory, these tasks can be mathematically described as partially-observable Markov decision processes. While a wealth of evidence collected over the past 15 years relates the basal ganglia to the reinforcement learning framework, only recently has much attention been paid to including psychological concepts such as working memory or episodic memory in these models. This paper presents an analysis that provides a quantitative description of memory states sufficient for correct choices at specific decision points. Using information from the mathematical structure of the task descriptions, we derive measures that indicate whether working memory (for one or more cues) or episodic memory can provide strategically useful information to an agent. In particular, the analysis determines which observed states must be maintained in or retrieved from memory to perform these specific tasks. We demonstrate the analysis on three simplified tasks as well as eight more complex memory tasks drawn from the animal and human literature (two alternation tasks, two sequence disambiguation tasks, two non-matching tasks, the 2-back task, and the 1-2-AX task). The results of these analyses agree with results from quantitative simulations of the task reported in previous publications and provide simple indications of the memory demands of the tasks which can require far less computation than a full simulation of the task. This may provide a basis for a quantitative behavioral stoichiometry of memory tasks.</p>
<title>Supporting Information</title>
<p>The authors thank Lisa Giocomo and James Heys for comments on an earlier draft of this manuscript. We also thank the anonymous reviewers for their comments and one in particular for suggesting the useful formal definition of disambiguation matrices given in the <xref ref-type="sec" rid="s2">Methods</xref> section.</p>
<fig id="pone-0002756-g001" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0002756.g001</object-id><label>Figure 1</label><caption><title>Observed alternation task.</title><p>This shows the structure of the task as observed by the agent. Transition arrows colored magenta indicate transitions that may provide either positive or negative rewards (depending on whether the agent has alternated or has selected the same response).</p></caption></fig> <fig id="pone-0002756-g002" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0002756.g002</object-id><label>Figure 2</label><caption><title>Underlying state-space of the alternation task.</title><p>The eight states are labeled with vectors <italic>e<sub>1</sub>,…,e<sub>8</sub></italic>. The five observations are identified by color. Thus there are two unaliased states and three pairs of states that are each aliased to a single observation. Solid arrows indicate transitions that result from any action. Action-specific transitions are indicated by dotted and dashed lines. Red arrows indicate transitions producing negative rewards; blue arrows indicate transitions with positive rewards.</p></caption></fig> <fig id="pone-0002756-g003" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0002756.g003</object-id><label>Figure 3</label><caption><title>Observed cued alternation task.</title><p>This shows the structure of the cued alternation task as observed by the agent. Starting at red or blue, one of the two cues green or cyan is randomly selected and the agent can enter either the yellow or magenta observations, before returning to the bottom for another trial. Transition arrows colored magenta indicate transitions that may provide either positive or negative rewards (depending on whether the agent has alternated or has selected the same response for the current cue).</p></caption></fig> <fig id="pone-0002756-g004" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0002756.g004</object-id><label>Figure 4</label><caption><title>Underlying state-space of the cued alternation task.</title><p>Each quadrant consists of eight states which differ only in the connections into the red and blue states and out of the yellow and magenta states. The quadrants are identified by letter pairs that correspond to the rewarded actions in each type of trial in the original task. The pair (L,R), for instance, means that if the green or cyan stimulus were presented, the agent would be rewarded for selecting the “L” or “R” action, respectively. Red arrows indicate transitions producing negative rewards; blue arrows indicate transitions with positive rewards.</p></caption></fig> <fig id="pone-0002756-g005" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0002756.g005</object-id><label>Figure 5</label><caption><title>Possible paths in the 5-state alternation task leading from one green state to another.</title><p>This set of possible paths is the set of possible CASR memories the agent may retrieve from a green cue. In this case, both the second and the third observations that occur in every possible path predict which of <italic>e<sub>2</sub></italic> or <italic>e<sub>6</sub></italic> the agent will next enter.</p></caption></fig> <fig id="pone-0002756-g006" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0002756.g006</object-id><label>Figure 6</label><caption><title>Comparison of the CASR memory and working memory analyses.</title><p>The possible 5-state alternation paths are shown again, but altered to demonstrate that the paths may be of differing lengths and that there may be many possible paths. A symmetry of the two memory systems is demonstrated by the complimentary way they depend on information from the beginning and end of episodes. A. In the case of CASR memory, observations in each possible episode are examined from the left end of the sequence. These observations correspond to paths out of the observation to be disambiguated. B. With working memory, observations are examined from the right end of the sequence, corresponding to paths leading into the observations to be disambiguated.</p></caption></fig>
<table-wrap id="pone-0002756-t001" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0002756.t001</object-id><label>Table 1</label><caption><title>Disambiguation results for all analyzed tasks.</title></caption><alternatives><table frame="hsides" rules="groups"><colgroup span="1"><col align="left" span="1"/><col align="center" span="1"/><col align="center" span="1"/></colgroup><thead><tr><td align="left" rowspan="1" colspan="1">Task</td><td align="left" rowspan="1" colspan="1">Working memory disambiguation <italic>W<sub>i</sub></italic>[<italic>choice point</italic>]</td><td align="left" rowspan="1" colspan="1">CASR memory disambiguation <italic>E<sub>j</sub></italic>[<italic>choice point</italic>]</td></tr></thead><tbody><tr><td align="left" rowspan="1" colspan="1">Simplified Alternation</td><td align="left" rowspan="1" colspan="1">full (<italic>i</italic> = 1,2)</td><td align="left" rowspan="1" colspan="1">full (<italic>j</italic> = 1,2)</td></tr><tr><td align="left" rowspan="1" colspan="1">Spatial Alternation</td><td align="left" rowspan="1" colspan="1">full (3≤<italic>i</italic>≤7)</td><td align="left" rowspan="1" colspan="1">full (1≤<italic>j</italic>≤5)</td></tr><tr><td align="left" rowspan="1" colspan="1">Simplified Cued Alternation</td><td align="left" rowspan="1" colspan="1">—</td><td align="left" rowspan="1" colspan="1">full (<italic>j</italic> = 1,2)</td></tr><tr><td align="left" rowspan="1" colspan="1">Cued Spatial Alternation</td><td align="left" rowspan="1" colspan="1">—</td><td align="left" rowspan="1" colspan="1">full (1≤<italic>j</italic>≤5)</td></tr><tr><td align="left" rowspan="1" colspan="1">Non-Match to Position</td><td align="left" rowspan="1" colspan="1">full (4≤<italic>i</italic>≤6)</td><td align="left" rowspan="1" colspan="1">full (6≤<italic>j</italic>≤8)</td></tr><tr><td align="left" rowspan="1" colspan="1">Non-Match to Lever</td><td align="left" rowspan="1" colspan="1">full (<italic>i</italic> = 3), decreasing for <italic>i</italic>&gt;3</td><td align="left" rowspan="1" colspan="1">—</td></tr><tr><td align="left" rowspan="1" colspan="1">Spatial Sequence Disambiguation</td><td align="left" rowspan="1" colspan="1">full (<italic>i</italic> = 3,4)</td><td align="left" rowspan="1" colspan="1">full (<italic>j</italic> = 3,4)</td></tr><tr><td align="left" rowspan="1" colspan="1">Simplified Sequence Disambiguation</td><td align="left" rowspan="1" colspan="1">full (<italic>i</italic> = 1)</td><td align="left" rowspan="1" colspan="1">full (<italic>j</italic> = 2)</td></tr><tr><td align="left" rowspan="1" colspan="1">Odor Sequence Disambiguation</td><td align="left" rowspan="1" colspan="1">full (<italic>i</italic> = 7), decreasing for <italic>i</italic>&gt;7</td><td align="left" rowspan="1" colspan="1">full (<italic>j</italic> = 5), decreasing for <italic>j</italic>&gt;5</td></tr><tr><td align="left" rowspan="1" colspan="1">2-Back</td><td align="left" rowspan="1" colspan="1">semi (1≤<italic>i</italic>≤3)</td><td align="left" rowspan="1" colspan="1">semi (<italic>j</italic>&gt;1)</td></tr><tr><td align="left" rowspan="1" colspan="1">1-2-AX</td><td align="left" rowspan="1" colspan="1">semi (<italic>i</italic> = {1,2,4,6})</td><td align="left" rowspan="1" colspan="1">—</td></tr></tbody></table></alternatives></table-wrap> <table-wrap id="pone-0002756-t002" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0002756.t002</object-id><label>Table 2</label><caption><title>Disambiguation results in multi-item working memory tasks.</title></caption><alternatives><table frame="hsides" rules="groups"><colgroup span="1"><col align="left" span="1"/><col align="center" span="1"/></colgroup><thead><tr><td align="left" rowspan="1" colspan="1">Task</td><td align="left" rowspan="1" colspan="1">Working memory disambiguation <italic>W<sub>i,j</sub></italic>[<italic>choice point</italic>]</td></tr></thead><tbody><tr><td align="left" rowspan="1" colspan="1">2-Back</td><td align="left" rowspan="1" colspan="1">full (<italic>i</italic> = 1, <italic>j</italic> = 2)</td></tr><tr><td align="left" rowspan="1" colspan="1">1-2-AX</td><td align="left" rowspan="1" colspan="1">full (<italic>i</italic> = 1, <italic>j</italic>∈{2,4,6}),</td></tr><tr><td align="left" rowspan="1" colspan="1"/><td align="left" rowspan="1" colspan="1">semi (<italic>i</italic> = 1, <italic>j</italic> = 8)</td></tr></tbody></table></alternatives></table-wrap>
<disp-formula><label>(1)</label></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <disp-formula><label>(2)</label></disp-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula><label>(3)</label></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <disp-formula></disp-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula> <inline-formula></inline-formula>
<supplementary-material content-type="local-data" id="pone.0002756.s001"><label>Appendix S1</label><caption><p>(0.06 MB PDF)</p></caption></supplementary-material> <supplementary-material content-type="local-data" id="pone.0002756.s002"><label>Appendix S2</label><caption><p>(0.66 MB PDF)</p></caption></supplementary-material> <supplementary-material content-type="local-data" id="pone.0002756.s003"><label>Appendix S3</label><caption><p>(0.03 MB PDF)</p></caption></supplementary-material>
<table-wrap-foot><fn id="nt101"><p>Full disambiguation (e.g. an identity matrix) implies that an agent or animal using the given memory system should be able to perform the task perfectly. The performance of an agent at a state that is semi-disambiguated (defined as at least some zero entries appearing in a nonzero row in the matrix) should be suboptimal or even very poor, as the agent will not have sufficient information to make the correct decisions at the choice points.</p></fn></table-wrap-foot> <table-wrap-foot><fn id="nt102"><p>Full disambiguation means that an agent or animal using the given memory system should be able to perform the task perfectly. At a semi-disambiguated state, the performance of an agent may be suboptimal.</p></fn></table-wrap-foot> <fn-group><fn fn-type="COI-statement"><p><bold>Competing Interests: </bold>The authors have declared that no competing interests exist.</p></fn><fn fn-type="financial-disclosure"><p><bold>Funding: </bold>This work was supported by Silvio O. Conte Center Grant NIMH MH71702, NIMH MH60013, NIMH MH61492, NSF SLC SBE 0354378 and NIDA DA16454 (part of the CRCNS program).</p></fn></fn-group>
<graphic xlink:href="pone.0002756.e001.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.g001"/> <graphic xlink:href="pone.0002756.g002"/> <graphic xlink:href="pone.0002756.g003"/> <graphic xlink:href="pone.0002756.g004"/> <graphic xlink:href="pone.0002756.e002.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.g005"/> <graphic xlink:href="pone.0002756.e003.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e004.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e005.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e006.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e007.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e008.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e009.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e010.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e011.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e012.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e013.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e014.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e015.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e016.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e017.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e018.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e019.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e020.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e021.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e022.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e023.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e024.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e025.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e026.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e027.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e028.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e029.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e030.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e031.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e032.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e033.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e034.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e035.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e036.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e037.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e038.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e039.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e040.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e041.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.g006"/> <graphic xlink:href="pone.0002756.e042.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e043.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e044.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e045.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e046.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e047.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e048.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e049.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e050.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e051.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e052.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e053.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e054.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e055.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e056.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e057.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e058.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e059.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e060.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e061.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e062.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e063.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e064.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e065.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e066.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e067.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e068.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e069.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e070.jpg" mimetype="image"/> <graphic xlink:href="pone.0002756.e071.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e072.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e073.jpg" mimetype="image" position="float"/> <graphic id="pone-0002756-t001-1" xlink:href="pone.0002756.t001"/> <graphic xlink:href="pone.0002756.e074.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e075.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e076.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e077.jpg" mimetype="image" position="float"/> <graphic xlink:href="pone.0002756.e078.jpg" mimetype="image" position="float"/> <inline-graphic xlink:href="pone.0002756.e079.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e080.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e081.jpg" mimetype="image"/> <inline-graphic xlink:href="pone.0002756.e082.jpg" mimetype="image"/> <graphic id="pone-0002756-t002-2" xlink:href="pone.0002756.t002"/>
<media xlink:href="pone.0002756.s001.pdf"><caption><p>Click here for additional data file.</p></caption></media> <media xlink:href="pone.0002756.s002.pdf"><caption><p>Click here for additional data file.</p></caption></media> <media xlink:href="pone.0002756.s003.pdf"><caption><p>Click here for additional data file.</p></caption></media>
[{"label": ["1"], "element-citation": ["\n"], "surname": ["Eichenbaum", "Cohen"], "given-names": ["H", "NJ"], "year": ["2001"], "source": ["From Conditioning to Conscious Recollection"], "publisher-loc": ["New York"], "publisher-name": ["Oxford University Press"]}, {"label": ["3"], "element-citation": ["\n"], "surname": ["Schacter", "Tulving"], "given-names": ["DL", "E"], "year": ["1994"], "source": ["Memory systems"], "publisher-loc": ["Cambridge, MA"], "publisher-name": ["The MIT Press"]}, {"label": ["5"], "element-citation": ["\n"], "surname": ["Sutton", "Barto"], "given-names": ["RS", "AG"], "year": ["1998"], "source": ["Reinforcement Learning: An Introduction"], "publisher-loc": ["Cambridge"], "publisher-name": ["MIT Press"]}, {"label": ["6"], "element-citation": ["\n"], "surname": ["Monahan"], "given-names": ["GE"], "year": ["1982"], "article-title": ["A survey of Partially Observable Markov Decision Processes."], "source": ["Mgmt Sci"], "volume": ["28"], "fpage": ["16"]}, {"label": ["7"], "element-citation": ["\n"], "surname": ["Kaelbling", "Littman", "Cassandra"], "given-names": ["LP", "ML", "AR"], "year": ["1998"], "article-title": ["Planning and acting in partially observable stochastic domains."], "source": ["Artificial Intelligence"], "volume": ["101"], "fpage": ["99"], "lpage": ["134"]}, {"label": ["10"], "element-citation": ["\n"], "surname": ["Moustafa", "Maida"], "given-names": ["AA", "AS"], "year": ["2007"], "article-title": ["Using TD learning to simulate working memory performance in a model of the prefrontal cortex and basal ganglia."], "source": ["Cognitive Systems Research"], "volume": ["8"], "fpage": ["262"], "lpage": ["281"]}, {"label": ["11"], "element-citation": ["\n"], "surname": ["Fuster"], "given-names": ["JM"], "year": ["1995"], "source": ["Memory in the cerebral cortex"], "publisher-loc": ["Cambridge, MA"], "publisher-name": ["MIT Press"]}, {"label": ["17"], "element-citation": ["\n"], "surname": ["Kemeny", "Snell"], "given-names": ["JG", "JL"], "year": ["1976"], "source": ["Finite Markov chains"], "publisher-loc": ["New York"], "publisher-name": ["Springer-Verlag"]}, {"label": ["25"], "element-citation": ["\n"], "surname": ["Baddeley"], "given-names": ["AD"], "year": ["1986"], "source": ["Working Memory"], "publisher-loc": ["Oxford"], "publisher-name": ["Clarendon Press"]}, {"label": ["30"], "element-citation": ["\n"], "surname": ["Baddeley", "Hitch", "Bower"], "given-names": ["AD", "G", "GH"], "year": ["1974"], "article-title": ["Working memory."], "source": ["The Psychology of Learning and Motivation: Advances in Research and Theory"], "publisher-loc": ["New York"], "publisher-name": ["Academic Press"], "fpage": ["47"], "lpage": ["89"]}, {"label": ["31"], "element-citation": ["\n"], "surname": ["Khatri", "Rao"], "given-names": ["CG", "CR"], "year": ["1968"], "article-title": ["Solutions to some functional equations and their applications to characterization of probability distributions."], "source": ["Sankhya"], "volume": ["30"], "fpage": ["167"], "lpage": ["180"]}, {"label": ["32"], "element-citation": ["\n"], "surname": ["Liu"], "given-names": ["S"], "year": ["1999"], "article-title": ["Matrix results on the Khatri-Rao and Tracy-Singh products."], "source": ["Linear Algebra and its Applications"], "volume": ["289"], "fpage": ["267"], "lpage": ["277"]}]
PLoS One. 2008 Jul 23; 3(7):e2756