SPG-Scam-v8
SMS and text scam detector
2 min read
The SPG-Scam-v8 model is designed to detect scam instructions and phishing (smishing) messages in English, Bengali, and Banglish. It is built on intfloat/multilingual-e5-small with its vocabulary trimmed to 32,000 tokens, resulting in a size of 33.8M parameters. The model outputs a scam probability score, determines the tone (instruction, warning, or neutral text), and classifies the attack type, such as password theft or fake winnings. This solution is useful for developers looking to filter LLM outputs and protect services from spam.
Key features
- Support for English, Bengali, and mixed script (Banglish).
- Compact architecture with 33.8M parameters after XLM-R vocabulary reduction.
- Six specialized classification heads for evaluating scams, spam, tone, and threat taxonomy.
- High operating speed: inference latency is about 15.93 ms (p50) on a CPU.
What you can do
- Integrate into an outgoing LLM decoder (
DecoderV8) to check every response sentence for hidden scam instructions. - Connect to an incoming SMS and message filtering service to identify phishing links and OTP code requests.
- Classify suspicious texts by attack categories and required actions according to the NSU NeuraHack taxonomy.
Example
The model card details the operational logic within spanguard.decode.v8.DecoderV8: the model analyzes text sentence by sentence and applies a threshold of t_warn = 0.55153. If the scam probability exceeds the threshold and the tone head does not classify the text as a warning (warns_against, such as advice to "never share your OTP"), the message is flagged as suspicious.
Read more
DetailsBenchmarks: 99.8% recall on a real-world smishing test set at 1% FPR; Macro-F1 reaches 0.976.
Hardware: inference runs on a local CPU (4 vCPU, torch fp32), training took 110 minutes on a CPU.
Limitations: training was conducted without real user chat logs; false positives may occur on legitimate instructions (37.0%) and counterfactual texts.










Comments