Mitigating LLM Prompt Injections via Multi-Vector Representation and Voting-Based Routing

Large Language Models (LLMs) suffer from the problem of prompt injection vulnerability, but typical one-step defenses generally fail at the task by having a high amount of false positives. We introduce an innovative two-sided defense architecture that applies semantic multi-vector diversification and ensemble modeling to protect LLMs without requiring closed, black-box solutions. In our framework, we use three different semantic space mappings via publicly available embedding algorithms, each of which is then scored by parallel classifiers based on gradient-boosted machines. The inputs go through an adaptive voting-based routing process; prompts that achieve a high-confidence voting margin (Δ>2) are classified directly, while low-margin, ambiguous cases (Δ≤2) are routed to an expert secondary classifier — a local LLM expert, the Llama Guard 3 — that handles the input. Importantly, this solution uses a two-way protection method that checks the generated outputs and detects late execution and context-manipulation vectors. Our experiments on a 93K dataset show that the ensemble approach performed better than any individual sub-model, reaching 90.69% accuracy and 94.11% specificity, minimizing any user experience disturbances. However, evaluation reveals trade-offs in defense coverage, yielding a sensitivity of 78.68% and 4415 false negatives, thus highlighting key areas for future improvement in attack detection. The multi-vector layer demonstrated high empirical resilience to tokenization errors, while the output layer filtered out many bypassed malicious items.

Authors

Institutions

Publication Details

Journal
Journal of Cybersecurity and Privacy
Published
2026-12-02
DOI
https://doi.org/10.3390/jcp6060219
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Mitigating LLM Prompt Injections via Multi-Vector Representation and Voting-Based Routing

Adolfo Jara-Gavilanes, Reiner Manfred Creutzburg, Hasan Dağ, Vladimir Robles-Bykbaev et al.
1 links
Journal of Cybersecurity and Privacy
Adversarial Robustness in Machine Learning
article

Mitigating LLM Prompt Injections via Multi-Vector Representation and Voting-Based Routing

Adolfo Jara-Gavilanes, Reiner Manfred Creutzburg, Hasan Dağ, Vladimir Robles-Bykbaev, Ana Parra-Astudillo
article en

Abstract

Large Language Models (LLMs) suffer from the problem of prompt injection vulnerability, but typical one-step defenses generally fail at the task by having a high amount of false positives. We introduce an innovative two-sided defense architecture that applies semantic multi-vector diversification and ensemble modeling to protect LLMs without requiring closed, black-box solutions. In our framework, we use three different semantic space mappings via publicly available embedding algorithms, each of which is then scored by parallel classifiers based on gradient-boosted machines. The inputs go through an adaptive voting-based routing process; prompts that achieve a high-confidence voting margin (Δ>2) are classified directly, while low-margin, ambiguous cases (Δ≤2) are routed to an expert secondary classifier — a local LLM expert, the Llama Guard 3 — that handles the input. Importantly, this solution uses a two-way protection method that checks the generated outputs and detects late execution and context-manipulation vectors. Our experiments on a 93K dataset show that the ensemble approach performed better than any individual sub-model, reaching 90.69% accuracy and 94.11% specificity, minimizing any user experience disturbances. However, evaluation reveals trade-offs in defense coverage, yielding a sensitivity of 78.68% and 4415 false negatives, thus highlighting key areas for future improvement in attack detection. The multi-vector layer demonstrated high empirical resilience to tokenization errors, while the output layer filtered out many bypassed malicious items.

Journal of Cybersecurity and PrivacyVol. 6(6)
Kadir Has University (TR), SRH University Berlin (DE), Politecnica Salesiana University (EC), SRH University of Applied Sciences Heidelberg (DE), Universitat de les Illes Balears (ES)
Universidad Politécnica Salesiana del Ecuador
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon