mlsanityData to 24 Nov 2026

From GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs?

arXiv 2610.34422 ↗Submitted 25 Oct 2026cs.SE cs.DC cs.LGcited by 0

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

Abstract (arXiv)

A coding agent can migrate a machine learning workload, report success, and still change how the model trains. Rising compute costs, limited accelerator capacity, and vendor dependence are pushing organizations toward alternatives to graphics processing units (GPUs); a key question is whether agent-generated migrations to tensor processing units (TPUs) can be trusted and at what cost. We build a dataset of 148 PyTorch ML research projects and use Claude Code to migrate ten of them from NVIDIA GPUs to Google Cloud TPUs. We independently assess whether each migration runs, preserves numerical behavior, executes on the intended hardware, maintains the project's goal, and delivers acceptable performance. We also examine failures, human effort, and costs. Eight projects meet our project-goal criterion, and migrations require 2.4 human interventions on average. Of 70 execution attempts, 53 fail (76%), and 26 of these failures (49%) raise no error. The most frequent cause is repeated compilation and other execution inefficiencies, while interactions with third-party libraries can silently change the computation: in one four-chip migration, the agent reports success despite a change in gradient clipping that reduces accuracy from 86.53% to 84.89%. Execution costs vary widely: in one workload, TorchTPU, a PyTorch execution backend for TPUs, trains 1.86 times faster and 25% cheaper per run than the GPU. For practitioners, these findings motivate independent reference runs, verification under the intended hardware configuration, and workload-specific acceptance and stopping criteria that account for both computational and human costs.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 45 of its 51 references that are in the map. Submitted 25 Oct 2026.

Builds on

45 of 51 references.

Closest ancestors · 10

Same direction, newest first

  1. 2026From PyTorch to the NPU: LLM-Agent-Driven Model Conversion Across Heterogeneous Inference Runtimes23 Sep
  2. 2026AMDKernelVault: Large-Scale Datasets and Agentic Training for AMD GPU Kernel Optimization11 Sep
  3. 2026AgenticCANN: Automated Ascend C Operator Generation via Knowledge-Augmented Agentic Evolution29 Jul
  4. 2026NKI-Agent: Domain-Specific Fine-Tuning and Agentic Tool Use for Neuron Kernel Generation5 Jul
  5. 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescue1 Jul
  6. 2026Agentic Framework for Deep Learning workload migration via In-Context Learning14 Jun
  7. 2026From Confident Closing to Silent Failure: Characterizing False Success in LLM Agents1 Jun
  8. 2026Converted, Not Equivalent: Benchmarking Codebase Conversion via Observational Equivalence27 May
  9. 2026Documentation-Guided Agentic Codebase Migration from C to Rust14 May
  10. 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization19 Nov

Other references · 35

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  2. 2021Fast Model Editing at Scalecited by 543
  3. 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 431
  4. 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classificationcited by 388
  5. 2022Structured Pruning Learns Compact and Accurate Modelscited by 182
  6. 2021UniPELT: A Unified Framework for Parameter-Efficient Language Model Tuningcited by 172
  7. 2024BiLLM: Pushing the Limit of Post-Training Quantization for LLMscited by 154
  8. 2024Token-level Direct Preference Optimizationcited by 142
  9. 2024Revisiting Zeroth-Order Optimization for Memory-Efficient LLM Fine-Tuning: A Benchmarkcited by 127
  10. 2025ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Casescited by 101
  11. 2023Word Embeddings Are Steers for Language Modelscited by 75
  12. 2025Artificial Intelligence Index Report 2025cited by 74
23 more
  1. 2025MultiKernelBench: A Multi-Platform Benchmark for Kernel Generationcited by 45
  2. 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 30
  3. 2026Agentic Abstention: Do Agents Know When to Stop Instead of Act?cited by 22
  4. 2025Migrating Code At Scale With LLMs At Googlecited by 17
  5. 2025MigrationBench: Repository-Level Code Migration Benchmark from Java 8cited by 17
  6. 2024RustRepoTrans: Repository-level Code Translation Benchmark Targeting Rustcited by 9
  7. 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimizationcited by 6
  8. 2026JAXBench: Benchmarking Autonomous TPU Kernel Optimizationcited by 6
  9. 2026From Human Guidance to Autonomy: Agent Skill System for End-to-End LLM Deployment on Spatial NPUscited by 5
  10. 2026A Multi-agent AI System for Deep Learning Model Migration from TensorFlow to JAXcited by 4
  11. 2026Do Agents Know What They Can't Do? Evaluating Feasibility Awareness in Tool-Using Agentscited by 4
  12. 2026CANN Bench: Benchmarking Agent Generated Kernels against Real NPU and Algorithmic Limitscited by 4
  13. 2026Code Quality Analysis of Translations from C to Rustcited by 3
  14. 2026AIPC: Agent-Based Automation for AI Model Deployment with Qualcomm AI Runtimecited by 3
  15. 2026KForge: LLM-Driven Cross-Platform Kernel Generation for AI Acceleratorscited by 3
  16. 2026Evaluating Language Models on Cross-Language Code Functional Equivalencecited by 3
  17. 2026HetCCL: Efficient LLM Training on Heterogeneous Vendor GPUscited by 2
  18. 2026On the Limitations of Non-GPU AI Accelerators for Large-Model Inference: A Field Study of MoE and Multimodal Serving on Huawei Ascendcited by 2
  19. 2025ML-EcoLyzer: Quantifying the Environmental Cost of Machine Learning Inference Across Frameworks and Hardwarecited by 1
  20. 2025Mind the Gap: Revealing Inconsistencies Across Heterogeneous AI Acceleratorscited by 1
  21. 2026Joint Training on AMD and NVIDIA GPUscited by 1
  22. 2026AI Hardware Accelerators for Large Language Models: Architectures and the Memory Wallcited by 1
  23. 2026RECLAIM: Can Agents Reproduce the Claims of Machine Learning Papers?cited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026AgentKernelArena: Generalization-Aware Benchmarking of GPU Kernel Optimization Agents
  2. 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
  3. 2026D2K-Bench: Can LLM Agents Turn Expert Designs into Efficient GPU Kernels?
  4. 2026StitchCUDA: An Automated Multi-Agents End-to-End GPU Programing Framework with Rubric-based Agentic Reinforcement Learning
  5. 2026Evolving Agent Teams
  6. 2026Reducing Inference Cost of Coding Agents with Timeout Cascades
  7. 2026ComputeWise: Measuring and Fixing GPU Waste by AI Research Agents
  8. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization