ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2503.21464
39
0

Harnessing Chain-of-Thought Metadata for Task Routing and Adversarial Prompt Detection

27 March 2025
Ryan Marinelli
Josef Pichlmeier
Tamás Bisztray
    LRM
ArXivPDFHTML
Abstract

In this work, we propose a metric called Number of Thoughts (NofT) to determine the difficulty of tasks pre-prompting and support Large Language Models (LLMs) in production contexts. By setting thresholds based on the number of thoughts, this metric can discern the difficulty of prompts and support more effective prompt routing. A 2% decrease in latency is achieved when routing prompts from the MathInstruct dataset through quantized, distilled versions of Deepseek with 1.7 billion, 7 billion, and 14 billion parameters. Moreover, this metric can be used to detect adversarial prompts used in prompt injection attacks with high efficacy. The Number of Thoughts can inform a classifier that achieves 95% accuracy in adversarial prompt detection. Our experiments ad datasets used are available on our GitHub page:this https URL.

View on arXiv
@article{marinelli2025_2503.21464,
  title={ Harnessing Chain-of-Thought Metadata for Task Routing and Adversarial Prompt Detection },
  author={ Ryan Marinelli and Josef Pichlmeier and Tamas Bisztray },
  journal={arXiv preprint arXiv:2503.21464},
  year={ 2025 }
}
Comments on this paper