Managing the Stochastic: Foundations of Learning in Neuro-Symbolic Systems for Software Engineering

Matthew Thompson
12/18/2025
cs.LGcs.AIcs.SE

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Current approaches to AI coding agents appear to blur the lines between the Large Language Model (LLM) and the agent itself, asking the LLM to make decisions best left to deterministic processes. This leads to systems prone to stochastic failures such as gaming unit tests or hallucinating syntax.

Show full abstract

Drawing on established software engineering practices that provide deterministic frameworks for managing unpredictable processes, this paper proposes setting the control boundary such that the LLM is treated as a component of the environment environment -- preserving its creative stochasticity -- rather than the decision-making agent. A \textbf{Dual-State Architecture} is formalized, separating workflow state (deterministic control flow) from environment state (stochastic generation). \textbf{Atomic Action Pairs} couple generation with verification as indivisible transactions, where \textbf{Guard Functions} act as sensing actions that project probabilistic outputs onto observable workflow state. The framework is validated on three code generation tasks across 13 LLMs (1.3B--15B parameters). For qualified instruction-following models, task success rates improved by up to 66 percentage points at 1.2--2.1$\times$ baseline computational cost. The results suggest that architectural constraints can substitute for parameter scale in achieving reliable code generation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{thompson2025managing,
  title  = {Managing the Stochastic: Foundations of Learning in Neuro-Symbolic Systems for Software Engineering},
  author = {Matthew Thompson},
  year   = {2025},
  eprint = {2512.20660},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.20660v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.20660.svg)](https://codeofpaper.com/paper/2512.20660)

Discussion