← Lab /Security & privacy

In-context learning detects illicit promotion with 92.6% accuracy using few labels

In-context learning can match fine-tuned models for illicit promotion detection while using 22× fewer labeled examples and generalize across platforms

Security & privacy arXiv 30 Mar 2026 Method Real-world evidence

Published as “Seeing the Unseen: Rethinking Illicit Promotion Detection with In-Context Learning”

Why it matters

ICL can serve as a high-recall, low-annotation front-end for moderation pipelines, quickly adapting to new illicit promotion tactics across platforms.

Summary

ICL achieves comparable performance to fine-tuned classifiers while using far fewer labeled examples (22× fewer) and reaches 92.6% accuracy on a 200 k cross-platform dataset, also discovering eight new illicit categories; however, its success hinges on careful prompt design, explicit labels, and it suffers higher false-positive rates when labels are omitted.

What they found 6

  1. ICL matches fine-tuned performance using 22× fewer labeled examples, and explicit semantic labels are essential to keep false positives low.

    “we show that with optimal design, ICL achieves performance comparable to fine-tuned models using 22x fewer labeled examples, and that explicit semantic labels are essential-without them, the false positive rate jumps from 8% to 42%.”

  2. Excluding the target category from demonstrations reduces performance by less than 6% for over half of the 12 categories, indicating strong open-world generalization.

    “For more than half of the 12 evaluated categories, excluding the target category from demonstrations incurs a performance drop of less than 6% relative to the categoryincluded setting.”

  3. The autonomous discovery pipeline distilled >2,900 free-form labels into coherent clusters and surfaced eight previously unknown illicit categories.

    “This process distills over 2,900 free-form labels into meaningful clusters and autonomously surfaces eight distinct new illicit categories-including usury, illegal immigration, and software piracy-absent from prior studies.”

  4. On 200 k cross-platform samples, ICL outperforms platform-specific baselines, achieving 92.6% accuracy, and flags 61.8% of samples missed by existing detectors.

    “On large-scale, cross-platform data (200,000 samples from search engines and Twitter), our ICL framework outperforms platform-specific baselines without any adaptation, achieving 92.6% accuracy. Crucially, 61.8% of samples uniquely flagged by ICL correspond to valid borderline or heavily obfuscated promotional content missed by existing detectors, positioning ICL as a powerful high-recall discovery funnel for hybrid moderation systems.”

  5. ICL with 200 demonstrations attains F1 0.943 and accuracy 0.944, matching LoRA fine-tuning that required 4,480 labeled examples (22× more data).

    “ICL with 200 demonstrations achieves an F1-score of 0.943 and an accuracy of 0.944, closely matching the performance of a LoRA-tuned model trained on 4,480 labeled examples. This corresponds to a reduction of more than 22× in the number of task-specific supervised samples.”

  6. Removing explicit labels from demonstrations causes a sharp rise in false-positive rate and overall performance drop below zero-shot.

    “Removing labels from the demonstrations led to a significant performance drop relative to the labeled few-shot setting, and performance was even worse than the zero-shot baseline. Notably, the False Positive Rate (FPR) increased sharply in the no-label condition.”

Caveats 6

  • False positive rate jumps from 8% to 42% when explicit labels are omitted, showing fragility to prompt design.
  • The approach is sensitive to prompt construction and suffers reduced precision on highly noisy data.
  • Performance depends heavily on instruction tuning and semantic label verbalization; without them, accuracy degrades sharply.
  • sensitivity to prompt construction and reduced precision on highly noisy data.
  • Gemma could not reliably perform classification, failing to output the predefined labels with a failure rate as high as 58.94%, and was excluded from further experiments.
  • Phi3-mini was omitted from the multiclass classification task due to poor performance.

What’s new here 4

  • Demonstrates that in-context learning can match fine-tuned models with dramatically fewer annotations.
  • Shows effective open-world generalization to unseen illicit categories without category-specific examples.
  • Introduces a two-stage pipeline that autonomously discovers new illicit categories from raw data.
  • Provides a large-scale, cross-platform evaluation (200 k samples) where ICL outperforms platform-specific baselines.