--- license: apache-2.0 library_name: peft base_model: - Qwen/Qwen2.5-0.5B-Instruct - Qwen/Qwen2.5-1.5B-Instruct language: - hi - ta - te - en tags: - lora - fraud-detection - scam-detection - code-mixing datasets: - rishia2220/scambranch --- # ScamBranch LoRA adapters The 18 LoRA adapters fine-tuned in **It's Not What the Scammer Says, It's How You Reply: Small Scam Detectors Judge Code-Mixed Fraud Calls by the Victim** (AAAI-27 Student Abstract): Qwen2.5-0.5B-Instruct and Qwen2.5-1.5B-Instruct × three training arms × three seeds, trained on the [ScamBranch](https://huggingface.co/datasets/rishia2220/scambranch) calls. Rishi Ahuja · Kumar Prateek · Simranjit Singh, Department of Information Technology, Dr. B. R. Ambedkar National Institute of Technology Jalandhar · [Code](https://github.com/SPELLAILab/ScamBranch) ## Layout ``` qwen2.5-{0.5b,1.5b}/{unbranched,branched,branched_consistency}/seed{0,1,2}/ ``` All arms use the same budget of 408 training calls. **Unbranched**: 408 histories with one random branch each. **Branched**: 102 histories with all four branches. **Branched + consistency**: as branched, plus a penalty on the variance of P(fraud) across a history's four branches. LoRA rank 16, alpha 32, dropout 0.05, on all attention and MLP projections. ## Usage The detector reads a call transcript and the score is the softmax over the next-token logits of the words `fraud` and `legitimate`, thresholded on the validation split. The prompt, transcript format and thresholding are in the [code repository](https://github.com/SPELLAILab/ScamBranch) (`src/scambranch/eval/`). ```python from transformers import AutoModelForCausalLM, AutoTokenizer from peft import PeftModel base_id = "Qwen/Qwen2.5-1.5B-Instruct" tokenizer = AutoTokenizer.from_pretrained(base_id) base = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype="auto") model = PeftModel.from_pretrained(base, "rishia2220/scambranch-lora", subfolder="qwen2.5-1.5b/branched/seed0") ``` ## Results Test macro-F1 on the full call, per adapter (from the released predictions): | Base | Arm | seed0 | seed1 | seed2 | Mean | |---|---|---:|---:|---:|---:| | Qwen2.5-1.5B | unbranched | .844 | .894 | .852 | .864 | | Qwen2.5-1.5B | branched | .810 | .879 | .900 | .863 | | Qwen2.5-1.5B | branched + consistency | .808 | .790 | .933 | .844 | | Qwen2.5-0.5B | unbranched | .800 | .816 | .781 | .799 | | Qwen2.5-0.5B | branched | .830 | .727 | .753 | .770 | | Qwen2.5-0.5B | branched + consistency | .750 | .722 | .787 | .753 | Zero-shot, Qwen2.5-1.5B scores .73 and Qwen2.5-0.5B .57. For the 1.5B model, branched training matches unbranched macro-F1 while making verdicts more consistent across the four replies (share of four-branch sets with differing verdicts: .22 against .29). Scams in which the victim cooperates remain the hardest to catch. Rescoring may differ slightly from these numbers because of bf16 non-determinism. ## Intended use and limitations For research on scam-call detection and on whether detectors respond to the caller's request or to the victim's reply. Trained and tested only on synthetic, LLM-written calls in Romanized Hindi–, Tamil– and Telugu–English; not validated on real calls and not suitable as a deployed fraud filter. ## Citation ```bibtex @inproceedings{ahuja2027scambranch, title = {It's Not What the Scammer Says, It's How You Reply: Small Scam Detectors Judge Code-Mixed Fraud Calls by the Victim}, author = {Ahuja, Rishi and Prateek, Kumar and Singh, Simranjit}, booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence (Student Abstract and Poster Program)}, year = {2027}, note = {Accepted for publication} } ```