mlsanityData to 14 Oct 2026

Like a Good Nearest Neighbor: Practical Content Moderation and Text Classification

arXiv 2302.08957 ↗First posted 17 Feb 2023cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Few-shot text classification systems have impressive capabilities but are infeasible to deploy and use reliably due to their dependence on prompting and billion-parameter language models. SetFit (Tunstall et al., 2022) is a recent, practical approach that fine-tunes a Sentence Transformer under a contrastive learning paradigm and achieves similar results to more unwieldy systems. Inexpensive text classification is important for addressing the problem of domain drift in all classification tasks, and especially in detecting harmful content, which plagues social media platforms. Here, we propose Like a Good Nearest Neighbor (LaGoNN), a modification to SetFit that introduces no learnable parameters but alters input text with information from its nearest neighbor, for example, the label and text, in the training data, making novel data appear similar to an instance on which the model was optimized. LaGoNN is effective at flagging undesirable content and text classification, and improves the performance of SetFit. To demonstrate the value of LaGoNN, we conduct a thorough study of text classification systems in the context of content moderation under four label distributions, and in general and multilingual classification settings.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). First posted on arXiv 17 Feb 2023.

Builds on

0 of 0 references.

No references here yet.

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards Safer Social Media Platforms: Scalable and Performant Few-Shot Harmful Content Moderation Using Large Language Models
  2. 2025LLM-based Semantic Augmentation for Harmful Content Detection
  3. 2024Comparing Specialised Small and General Large Language Models on Text Classification: 100 Labelled Samples to Achieve Break-Even Performance
  4. 2021Not Far Away, Not So Close: Sample Efficient Nearest Neighbour Data Augmentation via MiniMax
  5. 2024Hierarchical Knowledge Distillation on Text Graph for Data-limited Attribute Inference
  6. 2022Zero-Shot Text Classification with Self-Training
  7. 2025SMARTER: A Data-efficient Framework to Improve Toxicity Detection with Explanation via Self-augmenting Large Language Models
  8. 2024Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detection