Manuscript Offprint

arXiv:2610.11482

Evaluating Local Language Model Agents for Reproducible Data Engineering: An Empirical Software Engineering Study of Mobility Workflows

Jorge García-Carrasco, Javier Sanchis, Alejandro Reina-Reina, Alejandro Maté, Juan Trujillo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Context: Large language model (LLM) agents are increasingly used as software and data-engineering assistants, yet evidence about locally deployable open-weight agents remains limited. Existing evaluations often emphasize textual responses, isolated code generation, or generic tool calls rather than the validity of complete engineering artifacts.

Objectives: We evaluate whether local LLM agents can produce correct and reproducible data-engineering artifacts, quantify the effect of a closed-loop workspace condition, and examine trade-offs involving model scale, architecture, quantization, runtime, tool use, and failure behavior.

Methods: We introduce a benchmark of fifteen tasks using mobility workflows as a domain-grounded testbed. Tasks cover data discovery, connector construction, transport-feed processing, semantic enrichment, feature engineering, validation, visualization, and reporting. Deterministic checkers assess generated scripts, tables, structured files, figures, and reports. Ten local model configurations are evaluated in one-shot and closed-loop workspace conditions, with five repetitions per model, mode, and task, yielding 1,500 scored attempts on a consumer-grade GPU.

Results: Among models larger than two billion parameters, the workspace condition increases pass rates by 26.7–52.0 percentage points over one-shot generation. The strongest configuration reaches 85.3% artifact-level success. A quantized 9-billion-parameter model reaches 69.3% with an approximately 6.5 GB memory footprint. Gains are largest when intermediate artifacts expose errors that the agent can inspect and repair.

Conclusion: Local open-weight agents can support a meaningful subset of software-intensive data-engineering work, but their reliability depends on model capability, task verifiability, and deterministic validation. The benchmark provides a reproducible method for evaluating complete agent configurations before they are adopted in engineering workflows.

Keywords: large language model agents, empirical software engineering, data engineering, artifact validation, reproducibility, local language models

Highlights.

• Artifact checks evaluate local LLM agents on 15 data-engineering tasks.

• Closed-loop workspaces improve pass rates by up to 52 points.

• The strongest local configuration reaches 85.3

• A quantized 9B model reaches 69.3

• Execution traces expose reliability, latency, and failure trade-offs.

1 Introduction

Large language models (LLMs) have become software-engineering assistants for activities such as code generation, code review, data preparation, validation, and documentation [1, 2, 3, 4, 5]. Their engineering value, however, depends on more than producing plausible text or isolated snippets. A generated script must execute, a structured file must satisfy its schema, and a derived result must remain consistent with its inputs. These requirements shift evaluation from response plausibility toward the validity of the engineering artifacts produced by the model.

When an LLM is embedded in a system that can plan, inspect a workspace, invoke tools, observe execution results, and revise its outputs, it is commonly described as an LLM-based agent or tool-using language model [6, 7, 8]. Recent software-engineering research has begun to examine multi-agent generation of structured requirements and the validity of artifacts produced under different agent configurations [9, 10]. Nevertheless, evidence remains limited for complete, locally deployable agent workflows evaluated through heterogeneous artifacts rather than a single code-generation task.

Hosted frontier models are useful capability baselines, but many public-sector, research, and engineering organizations also need deployment options that keep data within organizational boundaries and provide control over model versions, inference settings, availability, and cost. Local open-weight models offer these properties, but their smaller size and quantization may affect their ability to operate a workspace reliably. An empirical assessment must therefore consider not only final correctness, but also model scale, resource use, interaction behavior, and failure modes.

Data engineering provides a software-intensive setting for this assessment. Constructing a data workflow involves programming, schema conformance, testing, provenance, domain rules, validation, and reproducible reporting. Mobility workflows are a particularly useful testbed because they combine statistical indicators, catalog records, public-transport feeds, geospatial points of interest, executable transformations, and derived analytical artifacts. Correctness requires both general engineering behavior and domain-specific care, including preserving provenance, filtering decoy records, handling GTFS service-day times beyond 24:00:00, computing geospatial distances in meters, and avoiding unsupported claims in reports.

This paper presents a reproducible benchmark and controlled empirical study of local LLM agents as data-engineering assistants. The fifteen tasks follow five stages of a mobility workflow: discovering and connecting to data, processing public-transport feeds, enriching records with semantic data, engineering features and analytics, and validating and reporting results. Each task specifies input fixtures and expected output artifacts. Deterministic checkers then parse, execute, compare, or inspect those artifacts against schemas, domain rules, numerical constraints, and report requirements. The harness records success, failure category, runtime, and tool interaction, enabling the study to examine both artifact validity and the engineering behavior that precedes submission.

The work makes three contributions:

  1. A domain-grounded artifact benchmark with fixed fixtures, deterministic checkers, machine-readable traces, and a public replication package.

  2. A controlled study of one-shot and closed-loop conditions across ten local model configurations, fifteen tasks, and five repetitions per condition.

  3. Empirical evidence about artifact correctness, task verifiability, model scale, architecture, quantization, latency, tool interaction, and failure behavior, with implications for validating LLM-assisted engineering workflows.

The evaluation is organized around four research questions:

(RQ1) How does artifact success differ between one-shot generation and a closed-loop workspace condition in which a local LLM can inspect inputs, execute code, and revise its artifacts?

(RQ2) What level of artifact correctness and reliability do locally deployable open-weight models achieve on the mobility data-engineering tasks?

(RQ3) How do artifact success, runtime, and tool interactions vary with model size and architecture, and what engineering trade-offs emerge?

(RQ4) How do task success and computational efficiency differ between aggressive post-training quantization and unquantized BF16 for the model sizes available in both formats?

The experimental scope is deliberately restricted to models that can be served on a single 24 GB consumer GPU. This keeps the study aligned with locally controlled engineering environments and permits a controlled comparison of model scale, architecture, and precision within one serving stack. The benchmark is also intended as a reusable evaluation instrument: future agent configurations can be assessed under the same fixtures and checkers, while organizations can substitute representative local tasks before adopting an LLM-based engineering assistant. The benchmark does not claim that mobility tasks cover all software or data-engineering practice; rather, they provide a heterogeneous and reproducible testbed for studying artifact-producing agent workflows.

The remainder of the paper is organized as follows. Section 2 reviews LLM agents, LLM-assisted software engineering, executable benchmarks, local inference, reproducibility, and mobility data. Section 3 describes the fixtures, task suite, interaction modes, and scoring rules. Section 4 presents the model and execution configuration. Section 5 reports the empirical results, Section 6 discusses their engineering implications and threats to validity, and Section 7 concludes the paper.

References (28)