[2604.00039] Transformers for Program Termination

[2604.00039] Transformers for Program Termination

arXiv - Machine Learning 3 min read

About this article

Abstract page for arXiv paper 2604.00039: Transformers for Program Termination

Computer Science > Programming Languages arXiv:2604.00039 (cs) [Submitted on 25 Mar 2026] Title:Transformers for Program Termination Authors:Yoav Alon, Cristina David View a PDF of the paper titled Transformers for Program Termination, by Yoav Alon and 1 other authors View PDF HTML (experimental) Abstract:Determining whether a program terminates is a core challenge in program analysis with direct implications for correctness, verification, and security. We investigate whether transformer architectures can recognise termination patterns directly from source code and how their strengths can be amplified through ensembles. To overcome the extreme scarcity of non-terminating examples, we design an ensemble framework of compact transformer encoders, systematically trained with a suite of imbalance-aware loss functions and class-aware sampling techniques. By combining models trained with distinct loss functions, our ensembles achieve substantially stronger performance than any single transformer, outperforming both powerful off-the-shelf LLMs and graph-based methods. Finally, we introduce an attribution pipeline that produces syntax-aware explanations for the termination estimation. Comments: Subjects: Programming Languages (cs.PL); Machine Learning (cs.LG) Cite as: arXiv:2604.00039 [cs.PL]   (or arXiv:2604.00039v1 [cs.PL] for this version)   https://doi.org/10.48550/arXiv.2604.00039 Focus to learn more arXiv-issued DOI via DataCite Submission history From: Yoav Alon PhD [view e...

Originally published on April 02, 2026. Curated by AI News.

Related Articles

UMKC Announces New Master of Science in Artificial Intelligence
Ai Infrastructure

UMKC Announces New Master of Science in Artificial Intelligence

UMKC announces a new Master of Science in Artificial Intelligence program aimed at addressing workforce demand for AI expertise, set to l...

AI News - General · 4 min ·
Improving AI models’ ability to explain their predictions
Machine Learning

Improving AI models’ ability to explain their predictions

AI News - General · 9 min ·
AI Hiring Growth: AI and ML Hiring Surges 37% in Marche
Machine Learning

AI Hiring Growth: AI and ML Hiring Surges 37% in Marche

AI News - General · 1 min ·
Anthropic Claude AI training model targets AI skills gap | ETIH EdTech News
Llms

Anthropic Claude AI training model targets AI skills gap | ETIH EdTech News

AI in education, edtech AI tools, and AI skills training drive Anthropic’s Claude curriculum. ETIH edtech news covers how AI fluency, wor...

AI Tools & Products · 6 min ·
More in Machine Learning: This Week Guide Trending

No comments

No comments yet. Be the first to comment!

Stay updated with AI News

Get the latest news, tools, and insights delivered to your inbox.

Daily or weekly digest • Unsubscribe anytime