| Journal of Advanced Artificial Intelligence |
| Foundation of Computer Science (FCS), NY, USA |
| Volume 2 - Number 7 |
| Year of Publication: 2026 |
| Authors: Akanksha Raghvesh, Kiran Paul Kanikaram |
Akanksha Raghvesh, Kiran Paul Kanikaram . Evaluating LLM-Based Prompt Safety Filters: A Comparative Study of Llama-3.1-8B-Instant and Llama-4-Scout-17B-16E-Instruct Classification Performance on Adversarial Prompts. Journal of Advanced Artificial Intelligence. 2, 7 ( Oct 2026), 81-86. DOI=None
Large language models are increasingly deployed as automated safety filters, screening user prompts before they reach a downstream assistant model. This study evaluates the classification behavior of two open-weight models: Llama-3.1-8B-Instant and Llama-4-Scout-17B-16E-Instruct when used as zero-shot “safe/unsafe” classifiers for adversarial prompts. Rather than testing whether adversarial prompts succeed in eliciting harmful output from a downstream assistant, this work isolates the classifiers’ own decision behavior: how often each model labels a known-adversarial prompt as safe. Using a curated set of 25 adversarial prompts spanning five threat categories (cyber-attacks, fraud and deception, harassment and hate, economic harm, and misinformation), it was found that Llama-3.1-8B-Instant flagged all 25 prompts as unsafe, while Llama-4-Scout-17B-16E-Instruct classified 7 of 25 (28%) as safe with misinformation prompts showing the highest within-category miss rate (60%, 3 of 5). Given the differences in architecture, training data, and generation strategy between the two models, caution is advised against interpreting these results as evidence that model scale predicts filter reliability. 95% confidence intervals are reported given the small sample size, and directions for further work are outlined, including testing on benign prompts to assess false-positive rates, larger resampled prompt sets, and generation-level (rather than prompt-level) classification using the downstream model’s actual output.