TRANSMISSION // 2612.05082v1
An AI That Writes an Anomaly Detector, Then Steps Aside
Source published
LLMDP-U uses a language model to write a custom time-series detector once, then scores data with the saved program. Benchmark results are promising, but rely on offline, univariate evaluation.

Time-series anomalies can look very different: a sudden jump, a lasting shift, or an unusual pattern. LLMDP-U asks whether a language model can tailor a detector to each series at setup time, rather than repeatedly judging data as it arrives.
The question: can an AI design a detector without staying in the loop?
A spike in a sensor reading, a broken seasonal pattern and an unusual run of values may all count as anomalies—but they call for different ways of spotting them. A fixed detector may suit one series and miss important patterns in another. Large language models (LLMs) offer a way to adapt detection, but systems that ask an LLM to score data repeatedly must keep it in the inference loop.
The authors of LLMDP-U explore a different arrangement: have an LLM write a detector program for a particular time series, check that the program works, and save it. Afterward, ordinary Python code produces the anomaly scores without further calls to the language model. The paper describes this as using an LLM as a detector compiler, rather than as the detector itself.
From a reference profile to a score
The process starts with a reference prefix—a designated opening segment of the series. Software summarizes it into a profile containing statistics and clues about trends, seasonal patterns, recurring periods, changes and candidate window sizes. The LLM receives that profile, a set of numerical tools and rules for writing a detector. It does not receive the raw samples or anomaly labels during compilation.
The resulting Python program produces several continuous scores, each representing a different kind of evidence. The authors validate the code’s form, allowed imports, numerical output and responses to simple test series before keeping it. A fixed rule then converts the component scores to ranks and combines their strongest responses into one final score. This allows different detectors to contribute even when their raw scores use different scales.
There is an important qualification: the method is offline and transductive, not a live, causal detector. Although the LLM sees only the reference profile, the saved program and score-combination step can use the complete unlabeled series. The benchmark’s anomaly labels are used for evaluation, not supplied to the compiler or fusion rule. Using the full series means the reported setup should not be read as a test of real-time detection without future information.
What the benchmark showed
The researchers evaluated LLMDP-U on the univariate track of TSB-AD, using its Eval-350 set of 350 series. The primary metric, Average VUS-PR, evaluates how well scores rank anomalous points across a range of settings. With Claude Opus 5 as the compiler, the reported score was 0.5498, with a standard deviation of 0.0023 across three compilation runs. The authors report this as the third-highest result in the leaderboard snapshot they used.
That ranking needs context. The two higher entries used pretrained time-series models with target-stage fine-tuning; LLMDP-U did not train or fine-tune a time-series model. In a controlled comparison, its score was 0.0500 higher than a fixed, no-LLM detector program. A mechanically assembled bank containing a similar number of the supplied numerical tools did not match the Opus result. With the same fusion setting applied to each, the reported gain over the fixed program was 0.0452. These results suggest that the generated detectors’ composition mattered beyond simply including more tools, but they do not establish that LLM-generated programs will outperform other approaches in every setting.
The authors also report that performance increased from Haiku to Sonnet to Opus under their shared comparison protocol. An audit of 1,194 retained programs found both calls to supplied tools and detectors written by the compiler. Recurring patterns included measures of local activity, how long active episodes persisted, and whether values were supported by the reference prefix. These patterns offer clues about what the programs learned to detect; they are not, by themselves, evidence that the system understands the underlying causes of anomalies.
What remains uncertain
The paper’s scope is narrow: univariate data, one benchmark family, a supplied reference prefix, and offline scoring. Results varied across datasets, and the authors say the fixed baseline did better on some physiological-signal datasets. Nor does removing the LLM from score execution mean the whole workflow is fast: the paper reports a median of 113 seconds of LLM generation per series and a median of 23 seconds for numerical execution in an isolated replay on the stated hardware. Runtime will depend on the setup and data.
This is an arXiv preprint that identifies itself as a NeurIPS 2026 workshop paper. The results are therefore best treated as evidence from the authors’ reported experiments, not as settled proof of practical performance. Online, multivariate and cross-series uses are described as future work. The central contribution is a design idea—a detector can be adapted through generated code and then run as a saved numerical artifact—whose usefulness in those broader settings remains to be tested.
- time-series anomaly detection
- large language models
- LLMDP-U
- program synthesis
- TSB-AD
- machine learning
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Turning anomaly intent into testable time-series detectors
Shared method: Both use LLMs to construct executable time-series detection logic rather than relying only on a fixed detector: LLMDP-U generates a validated series-specific Python detector bank, while SMAD agents propose pipelines and semantic scorers. Their workflows differ substantially—LLMDP-U compiles a persistent program, whereas SMAD uses contract-guided validation and iterative refinement—so this is a limited methodological overlap, not evidence that the systems are equivalent.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.05082v1 — Original paper
Excerpt reference:
static/papers/2612.05082v1.md:13-71
Basis: Paper text
Source file SHA-256:8e0abaefc46679ad92ab2cd2b96e9d3283c374f00f9b0eb723f2d8b732b2e7042612.05082v1 — Original paper
Excerpt reference:
static/papers/2612.05082v1.md:72-123
Basis: Paper text
Source file SHA-256:8e0abaefc46679ad92ab2cd2b96e9d3283c374f00f9b0eb723f2d8b732b2e7042611.28348v1 — Original paper
Excerpt reference:
static/papers/2611.28348v1.md:13-81
Basis: Paper text
Source file SHA-256:9f88856b706d51ccbd3534c5a2ac5cd76c4bb757c78505f62eec417b2be132182611.28348v1 — Original paper
Excerpt reference:
static/papers/2611.28348v1.md:1076-1120
Basis: Paper text
Source file SHA-256:9f88856b706d51ccbd3534c5a2ac5cd76c4bb757c78505f62eec417b2be13218
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Giving time-series anomalies more context
Source published
Shared keywords: machine learning, time series anomaly detection
Turning anomaly intent into testable time-series detectors
Source published
Shared keywords: large language models, time series anomaly detection
Can AI help discover reliable quantum circuits?
Source published
Shared keywords: program synthesis
Can the geometry of a program’s execution reveal the program itself?
Source published
Shared keywords: machine learning, program synthesis
ProgramGen turns real code repositories into training grounds for AI agents
Source published
Shared keywords: machine learning, program synthesis