Few-shot email spam detection for low-resource languages: A setFit-based approach on Turkish and English datasets

Email spam detection in English has been studied extensively under full supervision, but for low-resource languages such as Turkish the largest public dataset is more than an order of magnitude smaller, and every existing Turkish spam detector assumes full supervision. This study asks whether spam can be detected from only a handful of labeled examples per class, and how the leading few-shot approaches compare, on the Enron-Spam and Turkish corpora across three encoder backbones and shot sizes from 2 to 64. SetFit, a contrastive few-shot method, attains a macro-F1 of 0.911 on Turkish and 0.947 on English at 64-shot, within 3.8 and 4.7 F1 points of the three-seed full fine-tuning reference. Against additional baselines (TF-IDF, FastFit, LoRA, and in-context prompting of Mistral-7B and Llama-3.1-8B), in-context LLM prompting is strongest at the lowest shot sizes but gains little from more demonstrations, so the fine-tuned methods match it on English by 64-shot and overtake it on Turkish from 32-shot. SetFit is therefore not uniformly best, but it reaches competitive accuracy with a far smaller model and no generative inference. Purely cross-lingual transfer fails, confounding language and domain shift, whereas bilingual training recovers most of the monolingual performance.

Authors

Institutions

Publication Details

Journal
Intelligent Data Analysis
Published
2026-10-14
DOI
https://doi.org/10.1177/1088467x261498626
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Few-shot email spam detection for low-resource languages: A setFit-based approach on Turkish and English datasets

Sultan Zavrak
Intelligent Data Analysis
Spam and Phishing Detection
article

Few-shot email spam detection for low-resource languages: A setFit-based approach on Turkish and English datasets

Sultan Zavrak
article en

Abstract

Email spam detection in English has been studied extensively under full supervision, but for low-resource languages such as Turkish the largest public dataset is more than an order of magnitude smaller, and every existing Turkish spam detector assumes full supervision. This study asks whether spam can be detected from only a handful of labeled examples per class, and how the leading few-shot approaches compare, on the Enron-Spam and Turkish corpora across three encoder backbones and shot sizes from 2 to 64. SetFit, a contrastive few-shot method, attains a macro-F1 of 0.911 on Turkish and 0.947 on English at 64-shot, within 3.8 and 4.7 F1 points of the three-seed full fine-tuning reference. Against additional baselines (TF-IDF, FastFit, LoRA, and in-context prompting of Mistral-7B and Llama-3.1-8B), in-context LLM prompting is strongest at the lowest shot sizes but gains little from more demonstrations, so the fine-tuned methods match it on English by 64-shot and overtake it on Turkish from 32-shot. SetFit is therefore not uniformly best, but it reaches competitive accuracy with a far smaller model and no generative inference. Purely cross-lingual transfer fails, confounding language and domain shift, whereas bilingual training recovers most of the monolingual performance.

Intelligent Data Analysis
Düzce Üniversitesi (TR)
Openalex Percentile: Top 6%
Spam and Phishing Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.