← Latest papers
💬 NLP

Agentic coding without the cloud: evaluating open-weight large language models on longitudinal data preparation tasks

This paper introduces an open-source framework demonstrating that locally deployable, open-weight large language models (specifically 31-35B parameter models) can effectively automate longitudinal data preparation tasks on consumer-grade hardware, offering a viable, governance-compliant alternative to cloud-based AI for research involving sensitive personal data.

Original authors: Mack Nixon, Liam Wright, Yevgeniya Kovalchuk, Alison Fang-Wei Wu, Martin Danka, Andy Boyd, David Bann

Published 2026-07-27
📖 4 min read☕ Coffee break read

Original authors: Mack Nixon, Liam Wright, Yevgeniya Kovalchuk, Alison Fang-Wei Wu, Martin Danka, Andy Boyd, David Bann

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to solve a mystery, but before you can even look at the clues, you have to spend three months organizing a messy attic full of old boxes, torn notes, and mismatched files. In the world of science—especially when studying how people's lives change over time—researchers spend a huge amount of time just doing this "attic cleaning." They have to take raw data from surveys, fix typos, match up answers from different years, and turn confusing codes into clear numbers. It's boring, it takes forever, and if you make a tiny mistake, your whole investigation could be wrong.

Recently, smart computer programs called "Large Language Models" (LLMs) have gotten really good at writing code to do this cleaning automatically. But there's a catch: most of these super-smart programs live in the cloud, like a giant library far away. If you are studying sensitive information about real people (like health records or private survey answers), the rules say you cannot send that data to a distant cloud library. It's like being forbidden to mail your diary to a stranger. So, scientists have been stuck, unable to use these helpful tools because they can't leave their secure, local computers. This paper asks a simple but tricky question: Can we build a "smart assistant" that lives entirely on our own computers, never sending data out, and still do the messy job of cleaning up research data perfectly?

The authors of this paper decided to find out by building a special test track for these local AI assistants. They created a "ground truth" dataset, which is like a master key or a perfect answer sheet, based on real data from a long-term study of young people in the UK called "Next Steps." They broke down the massive job of cleaning this data into 20 specific tasks, such as combining information from different years to figure out a person's job history or calculating their Body Mass Index (BMI). Then, they set up an "agent"—a little AI robot powered by open-source models that can run on regular, consumer-grade computers (like a powerful gaming laptop or a high-end Mac)—and watched it try to write the code to clean the data.

The results were surprisingly promising. The best-performing AI models, which are quite large and require powerful hardware, managed to get about 87.9% of the tasks "mostly right" and fully completed 75% of the tasks in a single try without any human help. The paper found that these local models are incredibly good at handling things with clear, universal definitions, like calculating BMI or identifying someone's sex. However, they struggled more with tricky, survey-specific puzzles, like figuring out complex housing situations or income categories that change based on the specific rules of that year's survey.

Crucially, the paper shows that while the AI is getting very good, it's not perfect yet. The researchers found that even when the AI produced data that looked correct on the surface, tiny hidden errors could sneak in. For example, one weaker model accidentally swapped a "missing" code for a "zero," which completely changed the results of a study on income, flipping a negative trend into a positive one. This suggests that while these local AI tools are powerful enough to be used as "coding copilots" to speed up the work, they still need a human researcher to double-check their homework. The paper concludes that we don't need to send our sensitive data to the cloud to get help; with the right local hardware and open-source models, we can keep our data safe and private while still using AI to do the heavy lifting of data preparation.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →