Close Menu
techwavedispatch.com

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    A legendary philosopher isn’t buying Anthropic’s consciousness argument

    November 23, 2026

    You Can Block AI Slop And Spam On These Social Media Platforms

    November 23, 2026

    A Chess Transformer that Follows Natural-Language Style Prompts

    November 23, 2026
    Facebook X (Twitter) Instagram
    Trending
    • A legendary philosopher isn’t buying Anthropic’s consciousness argument
    • You Can Block AI Slop And Spam On These Social Media Platforms
    • A Chess Transformer that Follows Natural-Language Style Prompts
    • Auditing and Adapting kNNGuard for Long-Context Prompts
    • Point tracking for real-world robotic manipulation
    • What Important Features Should You Look For In A Home Security Camera?
    • Supercharging transformer residual connections
    • Amazon snaps up Decart’s AI optimization tech for $7.5B as it prepares to sell Trainium chips
    Facebook X (Twitter) Instagram
    techwavedispatch.com
    Subscribe
    Monday, November 23
    • Home
    • AI Tools & Software
    • Machine Learning
    • Generative AI
    • Robotics & Automation
    • Future Tech & Hardware
    • AI in Business
    • Ethics & Regulations
    • More
      • Gadgets & Smart Devices
      • Cybersecurity & AI
      • Tech Breakthroughs
    techwavedispatch.com
    Home»Machine Learning»Auditing and Adapting kNNGuard for Long-Context Prompts
    Machine Learning

    Auditing and Adapting kNNGuard for Long-Context Prompts

    adminBy adminNovember 23, 2026No Comments2 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Auditing and Adapting kNNGuard for Long-Context Prompts
    Share
    Facebook Twitter LinkedIn Pinterest Email

    arXiv:2611.27084v1 Announce Type: new
    Abstract: Training-free activation guardrails such as kNNGuard score prompts by comparing last-token LLM hidden states (the Layer Ensemble branch, kNNGuard LE) and sentence embeddings (all-MiniLM-L6-v2, Embedding-kNN) against a small reference bank (50 examples per class), combining the two branches into a Fused Ensemble (kNNGuard FE). While effective on short inputs (up to 256 tokens), standard kNNGuard degrades substantially on long inputs (over 1000 tokens): averaged across Qwen3.5-4B and Gemma-4-E4B-it, kNNGuard LE AUROC drops from 0.742 (0.777 and 0.706) to 0.554 (0.587 and 0.521) on Content Harm Moderation (Aegis-2.0), and from 0.994 (0.995 and 0.992) to 0.556 (0.598 and 0.513) on RAG Hallucination Detection (HaluBench). We trace this degradation to three causes: (1) hidden-state drift as sequence length increases, (2) hard 256-token truncation in MiniLM, and (3) signal dilution when a long document is compressed into a single final-token vector. We then evaluate three training-free adaptations: a Length-Routed Dual Bank, a long-context embedding model (Qwen3-Embedding-0.6B), and Strided Window Pooling across intermediate token positions. On Content Harm Moderation, dual-bank routing and strided window pooling raise long-context kNNGuard LE AUROC from 0.554 to 0.828 (+0.274 AUROC) and fused kNNGuard FE AUROC from 0.721 to 0.886 (+0.164 AUROC) with no latency overhead from bank routing. On RAG Hallucination Detection, where the guardrail must verify logical consistency between a generated answer and a retrieved passage, sentence-embedding kNN remains near random chance across all lengths, while length-matched LLM hidden states (kNNGuard LE) recover medium-length detection (AUROC = 0.853) but remain limited on over-1000-token passages (AUROC = 0.607) due to final-token dilution over long contexts.

    Adapting auditing kNNGuard LongContext Prompts
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    admin
    • Website

    Related Posts

    A Chess Transformer that Follows Natural-Language Style Prompts

    November 23, 2026

    Supercharging transformer residual connections

    November 23, 2026

    A Unified Benchmark for Embodiment-Policy Co-optimization

    November 23, 2026
    Leave A Reply Cancel Reply

    Top Posts

    NVIDIA Is Investigating Reports That CEO Jensen Huang Was The Target Of Chinese Spy Efforts

    November 8, 202619 Views

    ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation

    November 11, 20266 Views

    Anthropic releases new Mythos and Fable models amid RSI concerns

    November 9, 20266 Views

    If AGI is so close, why is everyone leaving? The neolabs and their bets

    November 6, 20266 Views
    Don't Miss
    Future Tech & Hardware

    A legendary philosopher isn’t buying Anthropic’s consciousness argument

    By adminNovember 23, 20260

    Anthropic counts a number of respected philosophers in its camp, and the company’s rationale goes…

    You Can Block AI Slop And Spam On These Social Media Platforms

    November 23, 2026

    A Chess Transformer that Follows Natural-Language Style Prompts

    November 23, 2026

    Auditing and Adapting kNNGuard for Long-Context Prompts

    November 23, 2026
    About Us

    Welcome to TechWave Dispatch

    At TechWave Dispatch, we bring you the latest news, insights, and developments from the ever-evolving world of technology. Our mission is to keep readers informed about the innovations shaping our digital future.

    From artificial intelligence and machine learning to cybersecurity, robotics, smart devices, and groundbreaking technologies, we cover the topics that matter in today's fast-moving tech landscape.

    Our Picks

    A legendary philosopher isn’t buying Anthropic’s consciousness argument

    November 23, 2026

    You Can Block AI Slop And Spam On These Social Media Platforms

    November 23, 2026

    A Chess Transformer that Follows Natural-Language Style Prompts

    November 23, 2026
    Most Popular

    Egyptian and Nigerian English join the Open ASR Leaderboard

    November 6, 20260 Views

    Ads in Chatbots Have Arrived. Here’s What’s Working—and What’s Not

    November 6, 20260 Views

    The General Purpose Pendulum – O’Reilly

    November 6, 20260 Views
    Facebook X (Twitter) Instagram Pinterest
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • About Us
    © 2026 TechWave Dispatch. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.