AI Navigate

Towards a Neural Debugger for Python

arXiv cs.LG / 3/11/2026

Ideas & Deep AnalysisTools & Practical UsageModels & Research

Key Points

  • The paper introduces neural debuggers, language models fine-tuned or pre-trained to emulate traditional debugger operations such as stepping into, over, or out of functions and setting breakpoints in Python code.
  • Neural debuggers can model both forward execution (predicting future program states and outputs) and inverse execution (inferring earlier states or inputs) based on debugger interactions.
  • Evaluations on CruxEval demonstrate their strong performance in predicting outputs and inputs, showcasing robust conditional execution modeling abilities.
  • This research paves the way for agentic coding systems where neural debuggers act as world models for simulated debugging environments, improving code generation, program understanding, and automated debugging.
  • The approach addresses current neural interpreter limitations by introducing interactive control similar to traditional stepwise debugging, enhancing developer workflows for Python programs.

Computer Science > Machine Learning

arXiv:2603.09951 (cs)
[Submitted on 10 Mar 2026]

Title:Towards a Neural Debugger for Python

View a PDF of the paper titled Towards a Neural Debugger for Python, by Maximilian Beck and Jonas Gehring and Jannik Kossen and Gabriel Synnaeve
View PDF HTML (experimental)
Abstract:Training large language models (LLMs) on Python execution traces grounds them in code execution and enables the line-by-line execution prediction of whole Python programs, effectively turning them into neural interpreters (FAIR CodeGen Team et al., 2025). However, developers rarely execute programs step by step; instead, they use debuggers to stop execution at certain breakpoints and step through relevant portions only while inspecting or modifying program variables. Existing neural interpreter approaches lack such interactive control. To address this limitation, we introduce neural debuggers: language models that emulate traditional debuggers, supporting operations such as stepping into, over, or out of functions, as well as setting breakpoints at specific source lines. We show that neural debuggers -- obtained via fine-tuning large LLMs or pre-training smaller models from scratch -- can reliably model both forward execution (predicting future states and outputs) and inverse execution (inferring prior states or inputs) conditioned on debugger actions. Evaluated on CruxEval, our models achieve strong performance on both output and input prediction tasks, demonstrating robust conditional execution modeling. Our work takes first steps towards future agentic coding systems in which neural debuggers serve as a world model for simulated debugging environments, providing execution feedback or enabling agents to interact with real debugging tools. This capability lays the foundation for more powerful code generation, program understanding, and automated debugging.
Comments:
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Software Engineering (cs.SE)
Cite as: arXiv:2603.09951 [cs.LG]
  (or arXiv:2603.09951v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2603.09951
Focus to learn more
arXiv-issued DOI via DataCite

Submission history

From: Maximilian Beck [view email]
[v1] Tue, 10 Mar 2026 17:47:05 UTC (1,647 KB)
Full-text links:

Access Paper:

Current browse context:
cs.LG
< prev   |   next >
Change to browse by:

References & Citations

export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo
Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
Links to Code Toggle
Papers with Code (What is Papers with Code?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos

Demos

Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers

Recommenders and Search Tools

Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
IArxiv recommender toggle
IArxiv Recommender (What is IArxiv?)
About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.