NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Empirical Computation

Eric Tang, Marcel BöhmearXiv 2025 · DOI

Abstract

As Large Language Models (LLMs) increasingly handle direct computational tasks through natural language prompting, the traditional foundations of computer science are being challenged. This paper introduces the concept of Empirical Computation, a paradigm where problems are solved via prediction rather than explicit programming. Through a series of experiments using GPT-3.5 Turbo on classic algorithmic tasks, we demonstrate that traditional metrics like Big O complexity and formal correctness are insufficient. We find that execution time is decoupled from algorithmic difficulty, and correctness follows a "probabilistic cliff" influenced by input size, problem familiarity, and linguistic representation.

Introduction

For decades, software engineering has been synonymous with Formal Computation. In this world, developers define problems, select algorithms with known complexities (e.g., $O(n \log n)$ for sorting), and write code that can be formally verified. However, the rise of LLMs—which now generate a significant portion of industrial code—introduces a "black box" element. When an LLM solves a problem via a prompt, it is not executing a step-by-step algorithm; it is predicting the most likely sequence of tokens. This creates a critical gap: our existing tools for static analysis and verification cannot account for outputs that are merely empirically likely rather than necessarily correct.

Methodology

To investigate the properties of Empirical Computation, we conducted experiments using GPT-3.5 Turbo across four benchmark problems: Sorting, Searching (sorted vs. unsorted), the Subset Sum Problem (SSP), and Longest Palindromic Substring. We measured efficiency (response time) and correctness (accuracy over 30+ trials) across varying input sizes ($n$). Additionally, we tested the impact of "Familiarity" (using model-generated data) and "Linguistic Flexibility" (representing inputs in various natural languages using the num2words library).

The Breakdown of Formal Rules

In empirical computation, the traditional rules of efficiency and correctness are fundamentally altered.

The Death of Big O

In formal computation, searching a sorted list is mathematically faster than searching an unsorted one. For an LLM, however, execution time is almost identical for both. As seen in the performance metrics, time is driven by the number of output tokens rather than the complexity of the underlying task. Searching always returns a single index (constant time), while sorting time grows linearly with the number of elements to be printed.

The Correctness Cliff

Correctness in empirical computation is not a binary state but a probabilistic decay. As input size increases, accuracy does not gradually decline; it plummets. For sorting and searching, the model hits a 50% success rate at approximately 50 elements. For NP-complete problems like Subset Sum, correctness drops to near-zero by the time the input size reaches just 10 elements.

Performance metrics across algorithmic tasks showing the relationship between size, time, and the correctness cliff.

The Role of Context and Representation

Empirical computation is highly sensitive to the data it was trained on. This manifests in two primary ways:

  1. Familiarity Bias: The model performs significantly better on tasks involving data it has seen or generated itself. When asked to sort a list of numbers it previously generated, the LLM's accuracy was notably higher than on random integers.
  2. Linguistic Bias: Because LLMs are trained predominantly on English-language data, their computational "reasoning" is tied to linguistic representation. Sorting numbers written in English is far more accurate than sorting the same numbers written in Korean or Japanese.
Linguistic bias in empirical computation: Average correctness varies significantly across different languages for the same task.

Conclusion and Future Work

The transition to empirical computation requires a new sub-field of software engineering. Because correctness drops so rapidly, the "expected time to success" (the time required to get one correct answer through retries) grows exponentially, making raw LLM prompting inefficient for large-scale formal tasks.

Future research must focus on developing new "instruments" for this paradigm—statistical and causal reasoning tools that can provide guarantees for LLM outputs. Techniques such as majority voting, prompt engineering, and test-time training represent the first steps toward stabilizing the inherent volatility of empirical computation.

Summary updated

BibTeX
@misc{tang2025empirical,
  author = {Eric Tang and Marcel Böhme},
  title = {{Empirical Computation}},
  year = {2025},
  eprint = {2503.10954},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.10954},
}
Figure