mlsanityData to 14 Oct 2026

Agentic Framework for Deep Learning workload migration via In-Context Learning

arXiv 2606.15994 ↗First posted 14 Jun 2026cs.AI cs.LGcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Translating deep learning models from PyTorch's flexible, object-oriented design to JAX's functional, stateless setup is usually a manual and error-prone task. Automated migration is challenging because Large Language Models (LLMs) struggle with strict and dynamic API alignment and are prone to mistakes for exacting operations. We propose a fully autonomous system that combines In-Context Learning (ICL) with oracle-driven self-debugging. First, we curated an ICL context that serves as a strict reference for idiomatic JAX styling and test case generation. Second, instead of depending on the LLM to deduce mathematical outputs, we run the source PyTorch modules to get their actual dynamic tensor states. This creates an unchangeable execution oracle. We then use an autonomous agentic loop to synthesize tests based on the oracle data. The test cases are executed repeatedly, and the traceback is sent back to the LLM for self-correction. Ablations show that combining ICL references with oracle grounding and self-debugging greatly outperforms pure instructional and basic agentic baselines. This improvement does not add an excessive computational overhead. Our lightweight pipeline achieves 91% numerical equivalence (compared to baseline: 9%, instruction + self-debugging: 27%) on neural modules, providing a highly reliable, scalable blueprint for cross-framework migration. This has been validated across several state-of-the-art models including SAM (segment anything), T5, Code Whisper amongst others showing high numerical equivalency. Code: https://github.com/AI-Hypercomputer/accelerator-agents/tree/main/MaxCode

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 9 of its 9 references that are in the map. First posted on arXiv 14 Jun 2026.

Builds on

9 of 9 references.

References · 9

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  7. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
  8. 2023In-Context Learning Creates Task Vectorscited by 312
  9. 2026A Multi-agent AI System for Deep Learning Model Migration from TensorFlow to JAXcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Leveraging In-Context Learning for Language Model Agents
  2. 2026Trained Agentic Context Management
  3. 2026ATTest: Agent-Driven Tensor Testing for Deep Learning Library Modules
  4. 2025SEW: Self-Evolving Agentic Workflows for Automated Code Generation
  5. 2026ATLAS: Agentic Test-time Learning-to-Allocate Scaling
  6. 2026LogicHunter: Testing LLM Agent Frameworks with an Agentic Oracle
  7. 2026An Agentic Framework for Neuro-Symbolic Programming
  8. 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models