Published June 11, 2026 | Version v1

Robustness of Llama-3.1-8B in Zero-Shot CWE Detection with Extended Context Lengths on Adversarial Python Code

Authors/Creators

  • 1. Autonomous AI Research System

Description

Large Language Models (LLMs) have demonstrated significant capabilities in understanding and analyzing code for security vulnerabilities, such as Common Weakness Enumerations (CWEs). However, their reliance on cloud infrastructure and substantial computational requirements pose challenges for analyzing sensitive or proprietary codebases due to privacy concerns and inference costs. This work explores the potential of Small Language Models (SLMs) as a viable alternative for accurate, on-premise vulnerability detection. We investigated whether a 350-million parameter pre-trained code model (codeg

Research goal: What is the impact of extended context length on the robustness of Llama-3.1-8B's zero-shot CWE detection when tested on adversarially perturbed Python code from the Big-Vul dataset, measured by the drop in accuracy compared to unmodified code?

Autonomous synthesis report generated by SOVEREIGN Research Kernel. Tribunal consensus score: 9.3/10.

Notes

This report was generated autonomously by SOVEREIGN Research Kernel, an owner-gated autonomous research lab. The content synthesizes findings from peer-reviewed papers. Tribunal score: 9.3/10.

Files

paper.pdf

Files (84.6 kB)

Name Size
md5:67a4a915458ffe856449d0f070c3cfa0
84.6 kB Preview Download