2026-11-26 15:39 UTC

Claude Code TPU-porting study finds promising results alongside frequent, sometimes silent failures

state: seedheat: mediumuncertainty: mediumrelevance: highcoding-agents accelerator-porting gpu tpuHui SunAnderson UchôaWesley K. G. Assunção

What is this?

In a paper submitted to arXiv on 25 October 2026 and revised on 29 October, Hui Sun, Anderson Uchôa and Wesley K. G. Assunção report using Claude Code to migrate ten PyTorch research workloads from NVIDIA GPUs to Google Cloud TPUs. The authors say eight migrations met their project-goal criterion, with an average of 2.4 human interventions. Across 70 execution attempts, 53 failed; 26 of those failures produced no error. The paper also reports one case where a migration silently changed gradient clipping, reducing accuracy from 86.53% to 84.89%. These are findings from a small study, not evidence that the same results generalize to other agents, workloads or hardware.

Why it matters

Agent-led accelerator porting could make it easier for teams to try alternatives to GPUs, potentially widening hardware choice and reducing costs or dependence on a single vendor. But a port that runs—or that an agent reports as successful—may not preserve the original computation or project goal. The study’s small sample limits broad conclusions, yet its silent-failure examples make independent verification a consequential practical concern.

Current assessment

The arXiv paper (v2, revised 29 October 2026) is the primary evidence; the supplied web results independently surface its abstract but add no separate validation. The authors say they assembled a dataset of 148 PyTorch ML research projects and used Claude Code to migrate ten to Google Cloud TPUs, independently assessing execution, numerical behavior, intended hardware, project goals and performance. Reported results: eight projects met the project-goal criterion; migrations averaged 2.4 human interventions; 53 of 70 execution attempts failed (76%), and 26 of those failures (49%) raised no error. Repeated compilation and other execution inefficiencies were the most frequent failure cause. In one four-chip migration, an unreported change to gradient clipping coincided with accuracy falling from 86.53% to 84.89%. The abstract also reports a workload where TorchTPU trained 1.86 times faster and cost 25% less per run than the GPU; this is a workload-specific result, not a general TPU advantage. The authors recommend independent reference runs, verification on the intended hardware, and workload-specific acceptance and stopping criteria that include compute and human costs. The evidence supports both a promising use of coding agents and material verification risk; ten migrations do not establish general success rates, cost savings or portability across models, agents or accelerator stacks.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 794h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-24 13:00⭐ origin echo-reconstructedThe primary artifact is the arXiv paper itself (v1 submitted 25 Oct 2026; revised 29 Oct 2026). Its abstract says the authors used Claude Co
Hui Sun, Anderson Uchôa, and Wesley K. G. Assunção on paper (echo) · attributed from hn.story.50343308
—
11-02 20:33first on hacker news · published · +223.6hFrom GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs?
matt_d
—
11-02 20:33amplified on hacker news 👑hn.story.50343308
matt_d
peak 1 · 0 comments · 103% of case engagement
11-02 21:21our radar first saw it · +224.3hdiscovery anchor: hn.story.50343308—
pace: p10 vs 879 stories at the 720h mark (now 794h old) — behind agent-detects-silent-email-failures (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnFrom GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs?
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))
matt_d10
🟧 echo.paper ⭐The primary artifact is the arXiv paper itself (v1 submitted 25 Oct 2026; revised 29 Oct 2026). Its abstract says the authors used Claude CoHui Sun, Anderson Uchôa, and Wesley K. G. Assunção——

Interpretation history

Decision trace