AI News HubLIVE
Original source2 min read

AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance

AgRefactor is an LLM-based multi-agent workflow for refactoring software into HLS-compatible code. It features a self-evolving memory system and integrates automated tools, outperforming state-of-the-art on 9 out of 11 benchmarks with up to 6.51x speedup.

SourcearXiv AIAuthor: Yang Zou, Zijian Ding, Yizhou Sun, Jason Cong

-->

[Submitted on 29 Jun 2026]

Title:AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance

View a PDF of the paper titled AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance, by Yang Zou and 3 other authors

View PDF HTML (experimental)

Abstract:High-Level Synthesis (HLS) provides a fast path from concepts to silicon, but converting real-world software into synthesizable HLS code remains challenging due to restrictive language support and the gap between software and hardware programming practices. Existing automated and LLM-based refactoring approaches partially address this problem, yet they often lack flexibility, struggle to scale, and incur high computational costs. We introduce AgRefactor, an LLM-based multi-agent workflow for refactoring software into HLS-compatible programs. AgRefactor incorporates a self-evolving memory system that accumulates and retrieves factual and strategic knowledge across tasks, improving robustness and efficiency on unseen programs. To reduce cost and enhance scalability, it integrates automated refactoring tools, enabling agents to balance LLM-driven rewrites with efficient tool-based transformations. On 9 out of 11 challenging real-world benchmarks, which are 5-10x longer than the most complex cases studied in prior work, AgRefactor outperforms or matches the state-of-the-art automated refactoring tool and a strong LLM-based baseline built on the same framework backbone. Further agentic performance optimization yields a 6.51x geometric mean speedup over the SoTA pragma tuning tool and a 1.20x speedup over optimized open-source designs with less than 20% extra resources. AgRefactor is fully-automated and open-sourced.

Subjects:

Artificial Intelligence (cs.AI); Hardware Architecture (cs.AR)

Cite as: arXiv:2606.30949 [cs.AI]

(or arXiv:2606.30949v1 [cs.AI] for this version)

https://doi.org/10.48550/arXiv.2606.30949

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Yang Zou [view email] [v1] Mon, 29 Jun 2026 22:02:34 UTC (774 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance, by Yang Zou and 3 other authors

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.AI

new | recent | 2026-06

Change to browse by:

cs cs.AR

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

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?)

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?)

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.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)