mlsanityData to 14 Oct 2026

On the Sensitivity of Instruction-tuned LLMs to Harmful Sentences in Long Inputs

arXiv 2510.05864 ↗First posted 7 Oct 2025cs.CL cs.CYcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) increasingly operate on long inputs, yet their behavior when harmful sentences are sparsely embedded within such inputs remains poorly understood. We present a sensitivity analysis that probes how LLMs extract harmful sentences embedded in long inputs. We construct long inputs by combining neutral and harmful sentences, and systematically vary four factors: input length (600--30,000 tokens), the proportion of harmful sentences (0.01--0.50), harm realization (explicit vs. implicit), and the position of harmful sentences within the input (beginning, middle, end), enabling a controlled stress-test evaluation. Experiments across toxic, offensive, and hate content, and across LLaMA-3.1, Qwen-2.5, and Mistral, reveal consistent patterns: sensitivity is non-monotonic with respect to harmful prevalence, peaking at moderate levels; sensitivity degrades as input length increases; harmful sentences placed earlier in the input are more strongly prioritized; and explicit harm is more reliably identified than implicit harm. These findings provide a systematic view of how LLMs prioritize harmful sentences in long input under controlled stress conditions, highlighting both emerging strengths and remaining challenges for safety-related use.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 34 of its 73 references that are in the map. First posted on arXiv 7 Oct 2025.

Builds on

34 of 73 references.

References · 34

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2020Longformer: The Long-Document Transformercited by 3,413
  5. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  6. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  8. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
  9. 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 231
  10. 2021Latent Hatred: A Benchmark for Understanding Implicit Hate Speechcited by 217
  11. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
  12. 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
22 more
  1. 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAGcited by 123
  2. 2025A Comprehensive Survey on Long Context Language Modelingcited by 117
  3. 2020Toxicity Detection: Does Context Really Matter?cited by 93
  4. 2018Conversations Gone Awry: Detecting Early Signs of Conversational Failurecited by 73
  5. 2021Whose Ground Truth? Accounting for Individual and Collective Identities Underlying Dataset Annotationcited by 52
  6. 2024LongRAG: A Dual-Perspective Retrieval-Augmented Generation Paradigm for Long-Context Question Answeringcited by 49
  7. 2023Fake Alignment: Are LLMs Really Aligned Well?cited by 39
  8. 2025REALTALK: A 21-Day Real-World Dataset for Long-Term Conversationcited by 35
  9. 2024Ada-LEval: Evaluating long-context LLMs with length-adaptable benchmarkscited by 32
  10. 2025LaRA: Benchmarking Retrieval-Augmented Generation and Long-Context LLMs -- No Silver Bullet for LC or RAG Routingcited by 29
  11. 2025RAG LLMs are Not Safer: A Safety Analysis of Retrieval-Augmented Generation for Large Language Modelscited by 24
  12. 2024Stress-Testing Long-Context Language Models with Lifelong ICL and Task Haystackcited by 19
  13. 2024Cognitive Overload Attack:Prompt Injection for Long Contextcited by 13
  14. 2024LongSafety: Enhance Safety for Long-Context LLMscited by 11
  15. 2023Toxicity Detection is NOT all you Need: Measuring the Gaps to Supporting Volunteer Content Moderatorscited by 10
  16. 2025Towards Safer Pretraining: Analyzing and Filtering Harmful Content in Webscale datasets for Responsible LLMscited by 9
  17. 2024Evaluating Multilingual Long-Context Models for Retrieval and Reasoningcited by 8
  18. 2025Can Prompting LLMs Unlock Hate Speech Detection across Languages? A Zero-shot and Few-shot Studycited by 7
  19. 2023Breaking the Token Barrier: Chunking and Convolution for Efficient Long Text Classification with BERTcited by 6
  20. 2023Towards Detecting Contextual Real-Time Toxicity for In-Game Chatcited by 5
  21. 2025Exploiting Instruction-Following Retrievers for Malicious Information Retrievalcited by 4
  22. 2022Domain-Adaptive Text Classification with Structured Knowledge from Unlabeled Datacited by 3

Built on by

Not cited yet.