Rolling Memory: A New Approach to Annotation with Generative LLMs in Social and Political Research

Abstract Generative Large Language Models (LLMs) have shown promising results in text annotation tasks, which is of interest to social scientists. The most commonly used approaches, zero-shot and few-shot learning, do not sufficiently exploit the in-context learning capabilities of these models. Extant work demonstrates that allowing these models to retain memory throughout the annotation task increases performance considerably. In this article, we propose a refinement to the memory approach from Timoneda et al. (Memory Is All You Need: Testing How Model Memory Affects LLM Performance in Annotation Tasks. arXiv preprint: 2503.04874, 2025) that leads to significant performance gains over the original version. We implement a two-run method where we keep 100 highly informative examples from the first run in the memory at the start of a second run. During the first run, the model improves its performance as it progresses through the annotation task, a phenomenon we attribute to in-context learning. Then, during the second run, performance is high and consistent throughout the task, improving by a further 3.56% over the .standard memory approach and a remarkable 13.26% over few-shot learning with chain-of-thought reasoning, the current gold standard. These results have important implications for applied researchers looking to improve measurement accuracy in annotation tasks

Authors

Institutions

Publication Details

Journal
Chinese Political Science Review
Published
2026-01-07
DOI
https://doi.org/10.1007/s41111-025-00327-w
Citations
6
Primary Topic
Computational and Text Analysis Methods
Type
article
Field-Weighted Citation Impact
296.31

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Rolling Memory: A New Approach to Annotation with Generative LLMs in Social and Political Research

Joan C. Timoneda, Sebastián Vallejo Vera
6 citations
Chinese Political Science Review
Computational and Text Analysis Methods
296.31
article

Rolling Memory: A New Approach to Annotation with Generative LLMs in Social and Political Research

Joan C. Timoneda, Sebastián Vallejo Vera
article en
6 citations

Abstract

Abstract Generative Large Language Models (LLMs) have shown promising results in text annotation tasks, which is of interest to social scientists. The most commonly used approaches, zero-shot and few-shot learning, do not sufficiently exploit the in-context learning capabilities of these models. Extant work demonstrates that allowing these models to retain memory throughout the annotation task increases performance considerably. In this article, we propose a refinement to the memory approach from Timoneda et al. (Memory Is All You Need: Testing How Model Memory Affects LLM Performance in Annotation Tasks. arXiv preprint: 2503.04874, 2025) that leads to significant performance gains over the original version. We implement a two-run method where we keep 100 highly informative examples from the first run in the memory at the start of a second run. During the first run, the model improves its performance as it progresses through the annotation task, a phenomenon we attribute to in-context learning. Then, during the second run, performance is high and consistent throughout the task, improving by a further 3.56% over the .standard memory approach and a remarkable 13.26% over few-shot learning with chain-of-thought reasoning, the current gold standard. These results have important implications for applied researchers looking to improve measurement accuracy in annotation tasks

Chinese Political Science Review
Western University (CA), Purdue University West Lafayette (US)
Purdue University
Quality Education
Openalex Percentile: Top 0%
Computational and Text Analysis Methods
296.31
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Rolling Memory: A New Approach to Annotation with Generative LLMs in Social and Political Research — Joan C. Timoneda, Sebastián Vallejo Vera · Chinese Political Science Review (2026) | TGRS Research Map | TGRS