paper-with-me

Papers

Transformers for Program Termination

2026-03-25 · Yoav Alon, Cristina David arxiv

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.

📄 PDF Abstract BibTeX arXiv:2604.00039

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Using Graph Neural Networks for Program Termination

2022-07-28 · Yoav Alon, Cristina David

Termination analyses investigate the termination behavior of programs, intending to detect nontermination, which is known to cause a variety of program bugs (e.g. hanging programs, denial-of-service vulnerabilities). Bey…

Graph AttentionGraph Neural NetworkSegmentationSemantic Segmentation

LLMs versus the Halting Problem: Characterizing Program Termination Reasoning

2026-01-26 · Oren Sultan, Jordi Armengol-Estape, Pascal Kesseli, Julien Vanegue 외 arxiv

Determining whether a program terminates is a central problem in computer science. Turing's Halting Problem established termination as undecidable, showing that no algorithm can universally determine termination for all …

Neural Termination Analysis

2021-02-07 · Mirco Giacobbe, Daniel Kroening, Julian Parsert

We introduce a novel approach to the automated termination analysis of computer programs: we use neural networks to represent ranking functions. Ranking functions map program states to values that are bounded from below …

Human-AI Programming Role Optimization: Developing a Personality-Driven Self-Determination Framework

2025-11-01 · Marcel Valovy arxiv

As artificial intelligence transforms software development, a critical question emerges: how can developers and AI systems collaborate most effectively? This dissertation optimizes human-AI programming roles through self…

Using Linear Constraints for Logic Program Termination Analysis

2015-12-13 · Marco Calautti, Sergio Greco, Cristian Molinaro, Irina Trubitsyna

It is widely acknowledged that function symbols are an important feature in answer set programming, as they make modeling easier, increase the expressive power, and allow us to deal with infinite domains. The main issue …