Small language model-augmented synthesis for application programming interface threat detection
summary
The gist
RoBERTa-Augmented Synthesis for Detecting Malicious API Requests introduces a GAN-inspired learning framework that extends limited API traffic datasets through targeted…
In short
A GAN-inspired framework uses RoBERTa to synthesize realistic API requests to augment limited traffic datasets for malicious API detection. This method improves anomaly detection performance on public HTTP traffic, showing significant gains across various benchmarks.
Key concepts
- RoBERTa
- RoBERTa is a powerful Transformer-based language model architecture used here because it excels at understanding the context and meaning within API requests. It serves as the backbone for generating synthetic data that mimics real, complex API calls.
- GAN-inspired Learning Framework
- The system uses a Generative Adversarial Network (GAN) concept where one part generates fake API requests, and another part tries to distinguish them from real ones. This adversarial process allows the model to create highly realistic synthetic data that is useful for training the final detector.
- Data Augmentation Strategy
- This involves a three-stage process: input masking, a generator network, and a discriminator network. The masking identifies tokens to replace based on frequency or semantic distance, while the generator creates new requests guided by these constraints to expand the original dataset.
Terminology used across episodes
This episode discusses
- Small language model-augmented synthesis for application programming interface threat detection · Paper Radio
- Generating Sentences from a Continuous Space
- Adversarial Learning for Neural Dialogue Generation
- RoBERTa: A Robustly Optimized BERT Pretraining Approach
- DATE: Detecting Anomalies in Text via Self-Supervision of Transformers
- BERTScore: Evaluating Text Generation with BERT
- MoverScore: Text Generation Evaluating with Contextualized Embeddings and Earth Mover Distance
The paper
Small language model-augmented synthesis for application programming interface threat detection · Read on arXiv
Department of Computer and Software Engineering, Ariel University · Department of Industrial Engineering & Management, Ariel University · Ariel Cyber Innovation Center, Ariel University · Data Science and Artificial Intelligence Research Center, Ariel University
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.
DOI: 10.1016/j.engappai.2026.116850
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: We're looking at the paper: "Small language model-augmented synthesis for application programming interface threat detection".
Paper summary: Nadia: So to wrap up this paper, "Small language model-augmented synthesis for application programming interface threat detection," they successfully synthesized semantically meaningful API requests that keep the structural integrity of the requests while still introducing useful variability.
Elias: That variability is key because it allows the downstream anomaly detection module to learn more robust patterns from a smaller initial dataset. They did this by building a RoBERTa-based architecture to generate these samples, which are then used to train an anomaly detector on the extended set.
Priya: What does that mean in plain terms for someone listening? It means you can take those limited API samples and use AI to create slightly different versions of them that still look like real API calls but might represent different ways a threat could manifest, making your detection system tougher.
Nadia: Right, so the implication is that this technique provides a practical way to augment security datasets when large amounts of labeled data are unavailable or too hard to get. It shows how leveraging models like RoBERTa for synthesis can directly improve security performance on real traffic data.
Elias: The authors also noted that they found their custom model generated high-quality augmentations more efficiently than the larger RoBERTa Base model, even though they were trained on significantly smaller, domain-specific datasets.
Priya: That efficiency is a practical win because generating data can be computationally expensive. If you can do it faster with a smaller model, that makes the whole process more feasible for many teams.
Nadia: And while they showed strong performance gains, they also highlighted that improving coverage for less common attack patterns and balancing attack categories are things they need to work on in future research. That’s the honest assessment of the current state of this specific approach.
Conclusion: Nadia: So this paper is about using a smaller language model to help create synthetic API requests so we can better find threats in real web traffic datasets, right?
Elias: Yeah, it's titled "Small language model-augmented synthesis for application programming interface threat detection," and the authors are Udi Aharon and his team.
Priya: It’s interesting that they focus on making the requests semantically meaningful while keeping their structure intact.
Nadia: Exactly. They used RoBERTa to generate these synthetic samples, which then help train an anomaly detection module on a smaller set of real data.
Elias: And the big numbers they showed are pretty solid—a four point ninety-four percent increase on one dataset and over twenty point one percent on another.
Priya: But we have to look closely at what those numbers actually mean for the real world, especially regarding false alarms.
Nadia: That’s right, the results show that this augmentation mainly helps a classifier reduce false positives rather than just making it more sensitive overall on some datasets.
Elias: The authors did mention they found their custom model generated these high-quality samples quite efficiently compared to using the full RoBERTa Base model.
Priya: Efficiency is important because generating data takes time, so being able to do it faster with a smaller model makes the whole process more practical for security teams.
Nadia: True. The authors also flagged some areas they still need to improve, like making sure they cover more diverse attack patterns and balancing different types of threats during training.
Elias: Yeah, they pointed out that while the approach is stable across different settings when you tweak the confidence level, there’s definitely room for more coverage in their next steps.
Priya: So what this means for us right now is that we can use this technique to boost our detection performance without needing massive amounts of perfectly labeled data upfront.
Nadia: It suggests a way to get better results by augmenting the training data intelligently, not just by throwing more raw traffic at a model and hoping for the best.
Elias: And it shows that even smaller, task-specific language models can be very effective when they are fine-tuned for security semantics.
Priya: We'll need to keep an eye on how they handle those class imbalances in their next iteration, because that’s where a lot of real-world problems live.
More episodes
- The day in conversation for 2026-12-05
- Daily Summary for 2026-12-05
- 2607.15118-Automated Template-free Synthesis of Instruction-Centric Leakage Contracts for Black-Box CPUs
- 2610.37722-FVH-Bench: Evaluating Image Generator Safety Beyond Overtly Harmful Imagery
- 2512.23849-Security Without Detection: Economic Denial as a Primitive for Edge and IoT Defense
- 2605.05807-LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution
- 2607.02932-PromptPET: Prompt Obfuscation Against Profiling by AI Agents
- 2309.05646-A Novel Supervised Deep Learning Solution to Detect Distributed Denial of Service (DDoS) attacks on Edge Systems using Convolutional Neural Networks (CNN)
- The day in conversation for 2026-12-04
- Daily Summary for 2026-12-04