21  Lab 9: Working Memory

21.1 Research in Brief: Sternberg & Change Detection Tasks

21.1.1 The Research Area

Working memory refers to a brain system that provides temporary storage and manipulation of information necessary for complex cognitive tasks such as language comprehension, learning, and reasoning. Unlike long-term memory, which stores vast amounts of information indefinitely, working memory operates like a mental desktop with limited capacity. At any given moment, we can actively work with only a small amount of information, even though much more is available in long-term memory.

Working memory research addresses fundamental questions about how we process and manipulate information. How much information can we hold in mind at once? Does capacity differ for different types of information, such as verbal versus visual material? What determines the limits of working memory, and how do these limits affect our ability to perform complex tasks? Understanding working memory has important implications for educational achievement, problem-solving ability, and performance in tasks requiring sustained mental effort.

The study of working memory connects to many practical applications in areas requiring information retention and manipulation, such as reading comprehension, mathematical problem solving, following instructions, and learning new skills. To investigate working memory capacity systematically, researchers have developed experimental paradigms that can measure how much information people can maintain and manipulate under controlled conditions.

21.1.2 Components of Working Memory

Working memory operates through several distinct but interconnected systems. According to Baddeley’s influential model, working memory consists of a central executive that controls attention and manipulates information, along with specialized storage systems for different types of material. The phonological loop stores and rehearses verbal and acoustic information, while the visuospatial sketchpad maintains visual and spatial information. These storage systems have limited capacity and can hold information for only brief periods without active rehearsal.

The phonological loop has two mechanisms: a phonological store that holds sound-based information for 1 to 2 seconds, and an articulatory rehearsal process that maintains information through inner speech. The visuospatial sketchpad similarly maintains visual information when perceptual input is no longer available, such as when you look away from an image but need to remember its details. These systems work together to support complex cognitive activities, with the central executive coordinating their operations.

Research distinguishes between storage capacity and manipulation processes in working memory. Storage refers to maintaining information after it is no longer perceptually available, while manipulation involves performing operations on that information, such as reordering items or combining information from different sources. These processes can be measured separately and show different patterns of brain activation, with manipulation tasks typically requiring greater involvement of prefrontal cortex regions.

21.1.3 The Research Designs

Two influential paradigms have been developed to measure different aspects of working memory capacity. Both use within-subjects experimental designs to examine how people maintain and retrieve information from working memory.

The Sternberg Working Memory Task: Participants view a memory set of items, typically digits or letters, presented sequentially or simultaneously. After a brief retention interval, a probe item appears, and participants must decide whether the probe was part of the original memory set. The task manipulates set size, varying from one to six or more items, allowing researchers to measure how response time and accuracy change as memory load increases.

Stimulus Presentation: In a typical trial, participants see a sequence of items (such as the digits 5, 2, 7, 4) displayed for about 1 second each. After all items are presented, a blank retention interval of 1 to 2 seconds follows. Then a probe digit appears, and participants respond “yes” if it was in the memory set or “no” if it was not.

Task Requirements: Participants must maintain the memory set during the retention interval and then search through their working memory representation to determine if the probe matches any item. They respond as quickly as possible while maintaining high accuracy. The within-subjects design allows comparison of performance across different set sizes within the same participants, controlling for individual differences in overall response speed.

The Change Detection Task: Participants view an array of visual items, such as colored squares or oriented lines, presented briefly on a computer screen. After a blank retention interval, either the same array reappears or an array with one changed item appears. Participants must detect whether any change occurred.

Stimulus Presentation: Arrays typically contain one to six items positioned at different locations. Items are displayed for about 500 milliseconds, followed by a blank retention interval of approximately 1 second. The test array then appears, either identical to the original or with one item changed in color, orientation, or location.

Task Requirements: Participants must encode the visual array into working memory, maintain this representation during the blank interval, and compare it to the test array to detect any changes. Performance is measured by accuracy in detecting changes across different array sizes. The within-subjects design allows researchers to determine visual working memory capacity by identifying the point at which performance begins to decline as more items must be remembered.

Both paradigms isolate working memory processes by using brief retention intervals that prevent long-term memory encoding, and by varying the amount of information to be maintained. Each participant experiences all conditions, acting as their own control and allowing precise measurement of individual working memory capacity.

21.1.4 Key Findings

The two paradigms have revealed different capacity limits for verbal and visual working memory. The Sternberg task shows that response times increase linearly with set size, adding approximately 40 milliseconds for each additional item in the memory set. This pattern holds consistently across participants and suggests that people search through working memory serially, examining each item in turn. Accuracy remains high for set sizes up to about seven items, consistent with classic estimates of verbal working memory capacity as seven plus or minus two items.

However, capacity is better characterized by temporal duration than by number of items. The word-length effect demonstrates that working memory can hold approximately as many items as can be articulated in about 2 seconds. People remember more short words than long words, and digit span is larger for languages with shorter digit names. This finding supports the phonological nature of verbal working memory and shows that capacity depends on how quickly items can be rehearsed.

Change detection tasks reveal that visual working memory capacity is approximately four objects. Performance remains high when arrays contain one to three items, but accuracy declines systematically as array size increases beyond four items. This capacity limit appears to reflect the number of objects rather than individual features, as people can remember four multi-featured objects as well as four single features. However, object complexity does affect capacity, with more complex objects reducing the number that can be maintained.

The magnitude of capacity differences between verbal and visual working memory is substantial. While verbal working memory can maintain approximately seven simple items or about 2 seconds worth of material, visual working memory is limited to about four objects. These different capacity limits remain consistent across participants despite individual differences in overall performance levels.

21.1.5 Implications

The distinct capacity limits for verbal and visual working memory provide evidence for separate storage systems. This behavioral evidence is supported by neuroimaging studies showing that verbal tasks activate different brain regions than visual tasks, with verbal working memory involving left hemisphere language areas and visual working memory involving posterior parietal and occipital regions. The consistent patterns across participants and laboratories suggest these represent fundamental properties of human cognition rather than task-specific effects.

These findings support models proposing separate storage buffers for different types of information within working memory. The phonological loop and visuospatial sketchpad operate independently, allowing people to maintain verbal and visual information simultaneously without interference. This architecture explains why you can remember a phone number while navigating through a building, but have difficulty remembering two phone numbers at once.

Working memory capacity strongly predicts performance in complex cognitive tasks. Higher working memory capacity correlates with better reading comprehension, mathematical problem solving, and reasoning ability. Individual differences in working memory capacity, as measured by these paradigms, predict academic achievement and performance in demanding real-world tasks such as air traffic control and piloting aircraft. Understanding working memory limitations helps explain why people make errors in tasks requiring information maintenance and manipulation.

21.1.6 Further Reading

Alvarez, G. A., & Cavanagh, P. (2004). The capacity of visual short-term memory is set both by visual information load and by number of objects. Psychological Science, 15(2), 106-111.

Baddeley, A. (1992). Working memory. Science, 255(5044), 556-559.

Baddeley, A. (2003). Working memory: Looking back and looking forward. Nature Reviews Neuroscience, 4(10), 829-839.

Luck, S. J., & Vogel, E. K. (1997). The capacity of visual working memory for features and conjunctions. Nature, 390(6657), 279-281.

Miller, G. A. (1956). The magical number seven, plus or minus two: Some limits on our capacity for processing information. Psychological Review, 63(2), 81-97.

Sternberg, S. (1966). High-speed scanning in human memory. Science, 153(3736), 652-654.

21.2 Skills Checkpoint

In this lab, you will not be given step-by-step tutorials for creating the Sternberg and Change Detection working memory tasks. Instead, you are provided with brief method descriptions, similar to what you would read in a journal article, and are tasked with implementing the experiments yourself using the techniques you have learned.

For each task, you should provide clear instructions for participants and save the data locally using the methods from previous labs. Ensure that your data files are properly labeled with meaningful column names, and that your code is well-organized and documented with comments explaining key sections.

21.3 Program the Sternberg Memory Scanning Task (Basic)

21.3.1 Procedure

The task consisted of 20 experimental trials preceded by 5 practice trials. Each trial began with a fixation cross presented for 500 ms at the center of the screen. A memory set of 1-5 digits was then displayed simultaneously for 1000 ms, which participants were instructed to memorize. Following a 1000 ms blank retention interval, a single probe digit appeared on the screen. Participants indicated whether the probe digit was part of the memory set by pressing the ‘F’ key for “yes” or the ‘J’ key for “no” as quickly and accurately as possible. The probe remained visible until response or for a maximum of 2000 ms.

During the practice phase, feedback (“Correct” or “Incorrect”) was displayed for 500 ms after each response. No feedback was provided during the experimental trials. A 500 ms inter-trial interval preceded the next trial. Design

The experiment used five set size conditions (1, 2, 3, 4, and 5 digits), with 4 trials per condition. Half of the trials were positive trials (probe present in memory set) and half were negative trials (probe absent from memory set), resulting in 2 positive and 2 negative trials per set size. The 5 practice trials included one trial of each set size (1-5 digits), with 3 positive and 2 negative trials. Trial order was randomized for each participant.

Digits (0-9) were randomly selected for each memory set. For positive trials, the probe digit was randomly selected from the memory set with all serial positions equally likely. For negative trials, the probe digit was randomly selected from the digits not in the memory set.

21.3.2 Stimuli

Digits were presented in black text on a white background using a sans-serif font. Memory sets were displayed horizontally at the center of the screen with digits separated by spaces. The fixation cross and probe digit also appeared at screen center.

21.3.3 Data Collection

Response time (measured from probe onset) and accuracy were recorded for each trial.

21.4 Program a Change Detection Task (Advanced)

21.4.1 Procedure

The task consisted of 20 experimental trials preceded by 5 practice trials. Each trial began with a fixation cross presented for 500 ms at the center of the screen. A memory array of 1-5 colored squares was then displayed for 500 ms in randomly selected positions within a 3x3 grid. Participants were instructed to memorize the colors and locations of all squares. Following a 1000 ms blank retention interval, a test array appeared containing the same number of squares in the same locations. Participants indicated whether any square had changed color by pressing the ‘F’ key for “change” or the ‘J’ key for “no change” as quickly and accurately as possible. The test array remained visible until response or for a maximum of 2000 ms.

During the practice phase, feedback (“Correct” or “Incorrect”) was displayed for 500 ms after each response. No feedback was provided during the experimental trials. A 500 ms inter-trial interval preceded the next trial.

21.4.2 Design

The experiment used five set size conditions (1, 2, 3, 4, and 5 squares), with 4 trials per condition. Half of the trials were change trials (one square changed color) and half were no-change trials (all squares remained the same color), resulting in 2 change and 2 no-change trials per set size. The 5 practice trials included one trial of each set size (1-5 squares), with 3 change and 2 no-change trials. Trial order was randomized for each participant.

For each trial, square positions were randomly selected from the nine possible locations in the 3x3 grid without replacement. Colors were randomly selected without replacement from a set of highly discriminable colors (red, blue, green, yellow, magenta, cyan, orange, pink). For change trials, one square was randomly selected to change to a different color not present in the memory array.

21.4.3 Stimuli

Colored squares (80 × 80 pixels) were presented on a gray background. The 3x3 grid was invisible but defined the possible locations for squares, with 40 pixel gaps between adjacent squares. The fixation cross appeared at the center of the screen.

21.4.4 Data Collection

Response time (measured from test array onset) and accuracy were recorded for each trial.