MCP
arXivarXiv
Preprint
Published: August 3, 2026
cs.CR

Antares: Foundation Models for Agentic Vulnerability Localization

Abstract
Vulnerability localization is a fundamental step in software security, requiring models to reason over large codebases and iteratively identify vulnerable implementations. We present Antares, a family of compact language models (350M, 1B, and 3B parameters) for agentic vulnerability localization. Based on IBM Granite base models, Antares is trained through a two-stage pipeline that combines supervised fine-tuning on cybersecurity reasoning and repository exploration data with reinforcement learning from verifiable rewards over vulnerable repositories. Across extensive evaluations, Antares-3B approaches GPT-5.5 while outperforming open-weight models over 200x larger in size. The Antares family further enables fast, low-cost local inference, completing a full 500-task evaluation sweep in approximately 15 minutes on a single H100 GPU, corresponding to an amortized evaluation time of under 2 seconds and less than $0.002 per task.
0
AI overview
Reviews
Citation graph
References · 66
Structured
This preview uses generator v1; v2 is available

Overview

This paper presents Antares, a compact language model family for agentic vulnerability localization, comprising models at 350M, 1B, and 3B parameter scales. Through a two-stage training paradigm, it achieves vulnerability localization performance close to closed-source large models while substantially reducing the inference runtime cost of repository-level vulnerability localization.

Basic Background on Repository-Level Agentic Vulnerability Localization

VLoc Bench, a benchmark for repository-level vulnerability localization, contains 500 tasks drawn from 290 real-world repositories, covering 6 package ecosystems and 147 distinct CWE categories, with 78% of the entries already assigned corresponding CVE identifiers.

Existing code agent benchmarks fall into two categories. One targets general software engineering capabilities, such as the SWE-Bench family of benchmarks, which test issue-fixing ability across Python repositories and do not involve security-specific reasoning requirements. The other targets offensive and defensive security capabilities, such as NYU CTF Bench and CyberGym, which assume the vulnerability location is given in advance and do not require locating the vulnerability from the full repository. Neither category of benchmarks covers the specific task of repository-level vulnerability localization.

Core Positioning of the Antares Compact Vulnerability Localization Model Family

Antares is a compact language model family designed specifically for agentic vulnerability localization, comprising three decoder-only Transformer variants at 350M, 1B, and 3B parameter scales. All models are initialized from pretrained checkpoints of IBM Granite 4.0 and share an identical tokenizer and architecture blueprint, uniformly adopting grouped-query attention, SwiGLU MLP activations, RMSNorm, RoPE positional encoding, and shared input-output embedding matrices; the three versions differ only in the number of layers, hidden dimension, and specific attention head configurations.

This model family is the paper's core new resource, purpose-optimized for repository-level vulnerability localization scenarios. It builds its capabilities through a two-stage training pipeline: the first stage performs supervised fine-tuning on cybersecurity reasoning and repository exploration related datasets, while the second stage conducts reinforcement learning training on vulnerable code repositories using a verifiable reward mechanism. Its core design goal is to achieve low-latency, low-cost local inference deployment while maintaining vulnerability localization performance.

Two-Stage Training Paradigm and Verifiable Reward Mechanism Design

After initialization from IBM Granite checkpoints, Antares's 350M, 1B, and 3B models complete post-training via a two-stage pipeline. The first stage, supervised fine-tuning, aims to teach the model three foundational capabilities—cybersecurity reasoning, repository exploration, and terminal interaction—laying the groundwork for subsequent multi-turn task execution. The second stage, reinforcement learning, optimizes complete multi-turn execution trajectories based on verifiable file-level localization rewards. This training regime directly rewards the behaviors required at deployment time, including strategic searching, validating candidate results, and submitting vulnerability files within a fixed terminal operation budget. The figure below can help you fully understand the flow logic of the agent's complete execution process under this training regime.

Fig. 1: Flowchart of Antares's inference loop for a single evaluation task, showing the complete agent workflow from CWE category description input to output of the vulnerability file path

All GRPO reward components used in Antares's reinforcement learning stage are computed programmatically from trajectory text, with no additional learned reward model—making this a model-free reward design. This reward system integrates multiple classes of verifiable signals corresponding to four dimensions: localization accuracy, legitimate task completion, tool-use compliance, and avoidance of anomalous outputs, constraining and guiding the agent's execution behavior from different angles.

Evaluation Results: Performance and Efficiency

On the VLoc Bench vulnerability localization benchmark, Antares-3B achieves a File F1 score of 0.223, performing close to GPT-5.5 while surpassing much larger open-source models including GLM-5.2. Comparisons with static analysis tools show a consistent trend: rule-based scanners can identify some vulnerable files, but lacking the ability to adaptively inspect repository context, their overall performance remains below the Antares family. You can consult the following figure to understand the performance distribution and Pareto-optimal relationships of open- and closed-source models at different parameter scales on the vulnerability localization task.

Fig. 2: Comparison of F1 scores and parameter counts for different models on the VLoc Bench vulnerability localization benchmark.

Even without exposure to SWE-Bench repositories, issue descriptions, or issue-resolution related data, Antares remains competitive with much larger models specifically trained for code localization on SWE-Bench tasks. On the BFCL-v3 benchmark, Antares achieves its largest performance gains over the corresponding Granite base models in multi-turn orchestration scenarios, while overall function calling performance is roughly on par with the base models. These results show that Antares has acquired transferable repository navigation and sequential tool-use capabilities, rather than merely a strategy narrowly fitted to VLoc Bench.

Antares completely changes the runtime cost profile of repository-level localization tasks: on a single H100 GPU with 16 parallel workers, Antares-3B completes the full 500-task evaluation in only about 15 minutes, and at commercial H100 rental rates, the total evaluation inference cost is under 1.Forcomparison,thestrongestopen−sourcebaseline,GLM−5.2,takesabout50minutesviaOpenRouterforthesameevaluationatacostofabout1. For comparison, the strongest open-source baseline, GLM-5.2, takes about 50 minutes via OpenRouter for the same evaluation at a cost of about 12.5, while GPT-5.5 takes about 5 hours via the OpenAI API at a cost of about $141. You can consult the following figure for an intuitive comparison of the three model categories in runtime and per-evaluation estimated cost, including the annotated cost-multiple advantages.

Fig. 3: Comparison of runtime and per-evaluation estimated cost for the VLoc Bench evaluation, showing differences in inference time and overhead across models.

Task Scaling Patterns and Applicability Boundaries

Repository-level vulnerability localization capability exhibits a capability cliff rather than smooth scaling with parameter count. Compact models purpose-trained for agentic vulnerability localization can outperform open-source large models hundreds of times larger, showing that task-specific interactive training matters far more than sheer parameter scale.

The core failure mode of current models is signal dilution: in large codebases, vulnerability-related patterns such as unsafe calls, missing validations, and attacker-controlled data flows appear extensively in perfectly benign contexts. The agent must not only recognize suspicious patterns but also precisely pinpoint the specific instances that truly participate in the vulnerability implementation—a process requiring reading and integrating surrounding context across large extents, exceeding the effective working memory limits of current terminal agents. As a result, models often find seemingly plausible candidate files but cannot distinguish security-critical implementations from syntactically similar benign code.

Among the difficulty drivers of vulnerability localization, code implementation structure matters far more than the vulnerability's severity level. Programming languages with predictable repository layouts and CWE categories with localized characteristics are easier to localize within a fixed terminal operation budget, while scattered vulnerabilities and extremely deeply layered codebases are high-difficulty scenarios for all model families.

Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first