mlsanityData to 14 Oct 2026

CoCoTen: Detecting Adversarial Inputs to Large Language Models through Latent Space Features of Contextual Co-occurrence Tensors

arXiv 2508.02997 ↗First posted 5 Aug 2025cs.CLcited by 2

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

The widespread use of Large Language Models (LLMs) in many applications marks a significant advance in research and practice. However, their complexity and hard-to-understand nature make them vulnerable to attacks, especially jailbreaks designed to produce harmful responses. To counter these threats, developing strong detection methods is essential for the safe and reliable use of LLMs. This paper studies this detection problem using the Contextual Co-occurrence Matrix, a structure recognized for its efficacy in data-scarce environments. We propose a novel method leveraging the latent space characteristics of Contextual Co-occurrence Matrices and Tensors for the effective identification of adversarial and jailbreak prompts. Our evaluations show that this approach achieves a notable F1 score of 0.83 using only 0.5% of labeled prompts, which is a 96.6% improvement over baselines. This result highlights the strength of our learned patterns, especially when labeled data is scarce. Our method is also significantly faster, speedup ranging from 2.3 to 128.4 times compared to the baseline models.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 16 of its 23 references that are in the map. First posted on arXiv 5 Aug 2025.

Builds on

16 of 23 references.

Closest ancestors · 12

Same direction, newest first

  1. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey5 Jul
  2. 2024Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledge8 Apr
  3. 2024Defending LLMs against Jailbreaking Attacks via Backtranslation26 Feb
  4. 2024ASETF: A Novel Method for Jailbreak Attack on LLMs through Translate Suffix Embeddings25 Feb
  5. 2024Weak-to-Strong Jailbreaking on Large Language Models30 Jan
  6. 2024Intention Analysis Makes LLMs A Good Jailbreak Defender12 Jan
  7. 2023JailGuard: A Universal Detection Framework for LLM Prompt-based Attacks17 Dec
  8. 2023Low-Resource Languages Jailbreak GPT-43 Oct
  9. 2023Jailbreaker in Jail: Moving Target Defense for Large Language Models3 Oct
  10. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug
  11. 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul
  12. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul

Other references · 4

  1. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  2. 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 232
  3. 2016Tensor Decomposition for Signal Processing and Machine Learningcited by 224
  4. 2024GPT-generated Text Detection: Benchmark Dataset and Tensor-based Detection Methodcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Token-Level Adversarial Prompt Detection Based on Perplexity Measures and Contextual Information
  2. 2025LatentBreak: Jailbreaking Large Language Models through Latent Space Feedback
  3. 2025Exploiting Latent Space Discontinuities for Building Universal LLM Jailbreaks and Data Extraction Attacks
  4. 2026Understanding and Improving Continuous Adversarial Training for LLMs via In-context Learning Theory
  5. 2025Behind the Mask: Benchmarking Camouflaged Jailbreaks in Large Language Models
  6. 2026SoK: Robustness in Large Language Models against Jailbreak Attacks
  7. 2025GuardNet: Graph-Attention Filtering for Jailbreak Defense in Large Language Models
  8. 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models