Extract, Audit, Certify: A Unified Pipeline for Finding and Proving What Small Recurrent Networks Compute

We present a three-stage pipeline for determining, with mathematical certainty, what a small recurrent neural network computes on inputs of arbitrary length. Extract: query the network on all strings up to a fixed depth and merge states to obtain a minimal consistent finite automaton, with minimality certified by a distinguishability argument. Audit: breadth-first search over the product of the extracted automaton and a known specification finds the shortest disagreement, confirmed on the actual network. Certify: axis-aligned interval arithmetic boxes around hidden states are shown to be invariant under the network's transition function, with strictly signed readout, proving correctness on every nonempty input of any length. We demonstrate on two tasks: a parity network proven correct at all lengths via a four-region invariant with readout margin 7.0, and a mod-5 counting network that passes training at 98.7% accuracy but implements a qualitatively wrong 36-state algorithm where 5 states are needed, with shortest counterexample identified. The pipeline never issues a false certificate. Runs in 30 seconds on NumPy alone.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-17
DOI
https://doi.org/10.5281/zenodo.22804285
Primary Topic
Machine Learning in Materials Science
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
preprint

Extract, Audit, Certify: A Unified Pipeline for Finding and Proving What Small Recurrent Networks Compute

Burciaga
Zenodo (CERN European Organization for Nuclear Research)
Machine Learning in Materials Science
preprint

Extract, Audit, Certify: A Unified Pipeline for Finding and Proving What Small Recurrent Networks Compute

Burciaga
preprint en

Abstract

We present a three-stage pipeline for determining, with mathematical certainty, what a small recurrent neural network computes on inputs of arbitrary length. Extract: query the network on all strings up to a fixed depth and merge states to obtain a minimal consistent finite automaton, with minimality certified by a distinguishability argument. Audit: breadth-first search over the product of the extracted automaton and a known specification finds the shortest disagreement, confirmed on the actual network. Certify: axis-aligned interval arithmetic boxes around hidden states are shown to be invariant under the network's transition function, with strictly signed readout, proving correctness on every nonempty input of any length. We demonstrate on two tasks: a parity network proven correct at all lengths via a four-region invariant with readout margin 7.0, and a mod-5 counting network that passes training at 98.7% accuracy but implements a qualitatively wrong 36-state algorithm where 5 states are needed, with shortest counterexample identified. The pipeline never issues a false certificate. Runs in 30 seconds on NumPy alone.

Zenodo (CERN European Organization for Nuclear Research)
Peace, Justice and strong institutions
Machine Learning in Materials Science
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.

Extract, Audit, Certify: A Unified Pipeline for Finding and Proving What Small Recurrent Networks Compute — Burciaga · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS