mlsanityData to 14 Oct 2026

Efficient Detection of Intermittent Job Failures Using Few-Shot Learning

arXiv 2507.04173 ↗First posted 5 Jul 2025cs.SE cs.CL cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

One of the main challenges developers face in the use of continuous integration (CI) and deployment pipelines is the occurrence of intermittent job failures, which result from unexpected non-deterministic issues (e.g., flaky tests or infrastructure problems) rather than regular code-related errors such as bugs. Prior studies developed machine learning (ML) models trained on large datasets of job logs to classify job failures as either intermittent or regular. As an alternative to costly manual labeling of large datasets, the state-of-the-art (SOTA) approach leveraged a heuristic based on non-deterministic job reruns. However, this method mislabels intermittent job failures as regular in contexts where rerunning suspicious job failures is not an explicit policy, and therefore limits the SOTA's performance in practice. In fact, our manual analysis of 2,125 job failures from 5 industrial and 1 open-source projects reveals that, on average, 32% of intermittent job failures are mislabeled as regular. To address these limitations, this paper introduces a novel approach to intermittent job failure detection using few-shot learning (FSL). Specifically, we fine-tune a small language model using a few number of manually labeled log examples to generate rich embeddings, which are then used to train an ML classifier. Our FSL-based approach achieves 70-88% F1-score with only 12 shots in all projects, outperforming the SOTA, which proved ineffective (34-52% F1-score) in 4 projects. Overall, this study underlines the importance of data quality over quantity and provides a more efficient and practical framework for the detection of intermittent job failures in organizations.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 10 of its 40 references that are in the map. First posted on arXiv 5 Jul 2025.

Builds on

10 of 40 references.

References · 10

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2022Efficient Few-Shot Learning Without Promptscited by 137
  3. 2024Unveiling the Secret Recipe: A Guide For Supervised Fine-Tuning Small LLMscited by 40
  4. 2019A Theoretical Analysis of the Number of Shots in Few-Shot Learningcited by 39
  5. 2021What is the Vocabulary of Flaky Tests? An Extended Replicationcited by 3
  6. 2017What Causes My Test Alarm? Automatic Cause Analysis for Test Alarms in System and Integration Testingcited by 2
  7. 2017Game Development Software Engineering Process Life Cycle: A Systematic Reviewcited by 2
  8. 2020Empirical Study of Restarted and Flaky Builds on Travis CIcited by 2
  9. 2025On the Diagnosis of Flaky Job Failures: Understanding and Prioritizing Failure Categoriescited by 2
  10. 2025Build Optimization: A Systematic Literature Reviewcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.