kNNGuard

AI model · Safety / moderation · Text → Tables / structured data by Mindgard

Training-Free Guardrail for Adaptive AI Defense

It provides an adaptive security layer for enterprises to protect AI systems without requiring model fine-tuning.

Model specs

The full spec card (context, pricing per token, modalities and more) on AntSpace. Sign up free to see the full spec card.

Launched
2026-07-20
Languages
English

Category: Application Security

Released
2026-07-20
Model Type
Training-free guardrail
Detection Method
Hidden activation analysis
Primary Use Case
Adaptive AI defense and prompt moderation
  • Training-free guardrail for adaptive AI defense
  • Uses LLM hidden activations to detect unsafe prompts
  • Identifies off-topic and adversarial inputs without fine-tuning
  • Developed through research with Lancaster University

Overview

kNNGuard is a training-free guardrail model developed by Mindgard in collaboration with Lancaster University to provide adaptive defense for AI systems. It is designed for enterprises and security teams that need to secure Large Language Models against sophisticated prompt injection and evasion attacks. The model works by analyzing LLM hidden activations to detect unsafe, off-topic, and adversarial prompts, offering a more nuanced detection method than traditional text-based filters. Because it is training-free, it can be implemented without the need for extensive model fine-tuning. kNNGuard serves as an independent security layer that ensures AI systems remain aligned with safety and governance policies even when underlying model controls are bypassed.

Threat Detection and Filtering

  • Unsafe Prompt Detection: The model identifies and blocks unsafe prompts that violate security or safety policies without requiring model fine-tuning.
  • Off-topic Filtering: It detects off-topic inputs to ensure Large Language Models remain focused on their intended business use cases.
  • Adversarial Attack Defense: The guardrail identifies adversarial prompts designed to bypass standard safety filters or manipulate model behavior.

Technical Architecture

  • Hidden Activation Analysis: kNNGuard uses LLM hidden activations to detect malicious inputs rather than relying on surface-level text analysis.
  • Training-Free Implementation: The guardrail operates without the need for extensive model fine-tuning, allowing for faster deployment across different systems.
  • Adaptive Security Layer: It provides an adaptive defense layer that functions independently of the underlying model's built-in safety controls.

Use cases

  • Security teams use kNNGuard to detect and block adversarial prompts that attempt to bypass standard LLM safety filters.
  • Governance officers implement kNNGuard to ensure AI applications remain on-topic and aligned with corporate usage policies.
  • Developers deploy kNNGuard as an independent security layer to protect models from prompt injection without performing costly fine-tuning.

Specifications

Fine-tuning
Training-free; does not require fine-tuning to detect unsafe or adversarial prompts
Released
2026-07-20
Model Type
Training-free guardrail
Detection Method
Hidden activation analysis
Primary Use Case
Adaptive AI defense and prompt moderation

FAQ

What types of prompts does kNNGuard filter?

It is designed to detect unsafe content, off-topic prompts, and sophisticated adversarial attacks.

Added by AntSpace from public sources (mindgard.ai).

Related

More AI models by Mindgard