mlsanityData to 7 Oct 2026

Transformers for Program Termination

arXiv 2604.00039 ↗First posted 25 Mar 2026cs.PL cs.LGcited by 0

Not on the map. Why?

Abstract (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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 18 of its 42 references that are in the map. First posted on arXiv 25 Mar 2026.

Builds on

18 of 42 references.

References · 18

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  6. 2017Graph Attention Networkscited by 8,854
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  8. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  10. 2021Program Synthesis with Large Language Modelscited by 3,509
  11. 2018Mitigating Unwanted Biases with Adversarial Learningcited by 663
  12. 2019Graph Transformer Networkscited by 520
6 more
  1. 2024On-Device Language Models: A Comprehensive Reviewcited by 101
  2. 2021Bias in Machine Learning Software: Why? How? What to do?cited by 92
  3. 2022General-purpose, long-context autoregressive modeling with Perceiver ARcited by 60
  4. 2014Unrestricted Termination and Non-Termination Arguments for Bit-Vector Programscited by 10
  5. 2019GGNN: Graph-based GPU Nearest Neighbor Searchcited by 10
  6. 2023An empirical study of ChatGPT-3.5 on question answering and code maintenancecited by 4

Built on by

Not cited yet.