PofoliaDaily literature tracker

Engineering Applications of Artificial Intelligence· 2026Q1

Small language model-augmented synthesis for application programming interface threat detection

Udi Aharon, Revital Marbel, Ran Dubin, Amit Z. Dvir et al.

Short summary

A novel framework, SLM-API, uses small language models to synthesize realistic API request data, improving threat detection models with Random Forest F1 scores of 97.67% on one dataset and 91.24% on another, representing significant gains over unaugmented data.

AI-generated from the title and abstract; the full text is not read.

Key points

  • A new framework, SLM-API, synthesizes realistic API request data using small language models to augment limited datasets.
  • The framework preserves request structure and contextual relevance through token replacement and discriminator consistency checks.
  • SLM-API improved Random Forest F1 scores to 97.67% on the CSIC 2010 dataset and 91.24% on the ATRDF 2023 dataset.
  • These scores represent improvements of 1.00 and 21.12 percentage points, respectively, compared to training without augmented data.

AI-generated from the title and abstract; the full text is not read.

Abstract

Application Programming Interfaces (APIs) face constant threats from malicious actors seeking to exploit vulnerabilities for illicit gains. Effective anomaly detection depends on diverse, representative datasets that capture real-world API behaviors. However, existing datasets are often limited in scope, privacy-restricted, or lack the structural variability needed to train robust detection models. To address this challenge, we propose a Small Language Model (SLM)–augmented synthesis framework designed to expand limited API datasets with constraints intended to preserve request structure and contextual relevance. The proposed framework, referred to as SLM-API, leverages a compact Transformer-based model to replace selected tokens in benign and malicious requests, subject to structural restrictions and a separately trained discriminator consistency check. We evaluate our framework on two benchmark datasets, the Spanish National Research Council (CSIC) 2010 Hypertext Transfer Protocol (HTTP) dataset and the API Traffic Research Dataset Framework (ATRDF) 2023, and compare it with pretrained models, plain masked language models, DeepSeek generation, and a duplication control to assess controlled augmentation. In addition, we apply our augmented data to various anomaly detection models to evaluate its impact on classification performance. Our method achieves Random Forest F1 scores of 97.67% on CSIC 2010 and 91.24% on ATRDF 2023, improvements of 1.00 and 21.12 percentage points, respectively, over training without augmentation. Component ablations and endpoint-family holdout reveal the role of replacement restrictions and uneven transfer to excluded routes.

The authors' abstract, as published at the source. Engineering Applications of Artificial Intelligence, 2026 · DOI ↗

TakeawaysFree for 3 days Ask the paperFree account

Continue with a free account

Ask the paper: 5 free questions a day about this paper; save it, get its citation, new summaries every day for your field. A new account opens the takeaways for its first 3 days.

Continue free on the web

Sign in with Google or Apple; no card needed. You come back to this paper.

On your phone:

Field: Computer Networks and Communications

Computer Networks and CommunicationsComputer Science