Retrieved article excerpt
Open article · Retrieved 2026-11-02T21:22:43.407027+00:00
# Computer Science > Software Engineering
**arXiv:2610.34422** (cs)
[Submitted on 25 Oct 2026 ([v1](https://arxiv.org/abs/2610.34422v1)), last revised 29 Oct 2026 (this version, v2)]
# Title:From GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs?
Authors:[Hui Sun](https://arxiv.org/search/cs?searchtype=author&query=Sun,+H), [Anderson Uchôa](https://arxiv.org/search/cs?searchtype=author&query=Uch%C3%B4a,+A), [Wesley K. G. Assunção](https://arxiv.org/search/cs?searchtype=author&query=Assun%C3%A7%C3%A3o,+W+K+G)
View a PDF of the paper titled From GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs?, by Hui Sun and 2 other authors
[View PDF](https://arxiv.org/pdf/2610.34422)
[HTML (experimental)](https://arxiv.org/html/2610.34422v2)
> Abstract: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.
| |
| --- |
| Comments: |
| Subjects: | Software Engineering (cs.SE); Distributed, Parallel, and Cluster Computing (cs.DC); Machine Learning (cs.LG) |
| ACM classes: | D.2.7; D.2.5; I.2.2 |
| Cite as: | [arXiv:2610.34422](https://arxiv.org/abs/2610.34422) [cs.SE] |
| | (or [arXiv:2610.34422v2](https://arxiv.org/abs/2610.34422v2) [cs.SE] for this version) |
| | <https://doi.org/10.48550/arXiv.2610.34422> Focus to learn more arXiv-issued DOI via DataCite |
## Submission history
From: Hui Sun [[view email](https://arxiv.org/show-email/f5f1c053/2610.34422)]
**[[v1]](https://arxiv.org/abs/2610.34422v1)**
Sun, 25 Oct 2026 16:21:56 UTC (261 KB)
**[v2]**
Thu, 29 Oct 2026 18:31:39 UTC (148 KB)
Full-text links:
## Access Paper:
View a PDF of the paper titled From GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs?, by Hui Sun and 2 other authors
- [View PDF](https://arxiv.org/pdf/2610.34422)
- [HTML (experimental)](https://arxiv.org/html/2610.34422v2)
- [TeX Source](https://arxiv.org/src/2610.34422)
[license icon](http://creativecommons.org/licenses/by/4.0/ "Rights to this article")
### Additional Features
- [Audio Summary](https://arxiv.org/audio/2610.34422)
### Current browse context:
cs.SE
[< prev](https://arxiv.org/prevnext?id=2610.34422&function=prev&context=cs.SE "previous in cs.SE (accesskey p)")
|
[next >](https://arxiv.org/prevnext?id=2610.34422&function=next&context=cs.SE "next in cs.SE (accesskey n)")
[new](https://arxiv.org/list/cs.SE/new)
|
[recent](https://arxiv.org/list/cs.SE/recent)
| [2026-10](https://arxiv.org/list/cs.SE/2026-10)
Change to browse by:
[cs](https://arxiv.org/abs/2610.34422?context=cs)
[cs.DC](https://arxiv.org/abs/2610.34422?context=cs.DC)
[cs.LG](https://arxiv.org/abs/2610.34422?context=cs.LG)
### References & Citations
- [SciX](https://scixplorer.org/abs/arXiv:2610.34422)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2610.34422)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2610.34422)
export BibTeX citation
Loading...
## BibTeX formatted citation
×
loading...
Data provided by:
### Bookmark
[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2610.34422&description=From GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs? "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2610.34422&title=From GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs? "Bookmark on Reddit")
Bibliographic Tools
# Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*
Connected Papers Toggle
Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*
Litmaps Toggle
Litmaps *([What is Litmaps?](https://www.litmaps.co/))*
scite.ai Toggle
scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*
Code, Data, Media
# Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*
Links to Code Toggle
CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*
DagsHub Toggle
DagsHub *([What is DagsHub?](https://dagshub.com/))*
GotitPub Toggle
Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*
Huggingface Toggle
Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*
ScienceCast Toggle
ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*
Demos
# Demos
Replicate Toggle
Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*
Spaces Toggle
Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*
Spaces Toggle
TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*
Related Papers
# Recommenders and Search Tools
Link to Influence Flower
Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*
Core recommender toggle
CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*
- Author
- Venue
- Institution
- Topic
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**](https://info.arxiv.org/labs/index.html).
[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2610.34422) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))