scambranch / README.md
rishia2220's picture
ScamBranch v1.0.0 (AAAI-27 student abstract)
b5798fe verified
|
Raw History Blame Contribute Delete
7.78 kB
---
license: other
license_name: scambranch-research-only
license_link: https://huggingface.co/datasets/rishia2220/scambranch/blob/main/LICENSE-DATA.md
language:
- hi
- ta
- te
- en
multilinguality: multilingual
task_categories:
- text-classification
tags:
- fraud-detection
- scam-detection
- code-mixing
- romanized
- counterfactual-evaluation
- synthetic-data
- responsible-ai
pretty_name: ScamBranch
size_categories:
- 1K<n<10K
extra_gated_prompt: >-
ScamBranch is released for defensive research and education on fraud detection only.
By requesting access you agree not to use it to write scam scripts, automate social
engineering, train systems that deceive people, or otherwise facilitate fraud, and to
follow the terms in LICENSE-DATA.md.
extra_gated_fields:
I agree to use ScamBranch only for defensive research or education: checkbox
configs:
- config_name: calls
default: true
data_files:
- split: train
path: data/calls/train.parquet
- split: validation
path: data/calls/dev.parquet
- split: test
path: data/calls/test.parquet
- config_name: cards
data_files:
- split: train
path: data/cards/cards.parquet
- config_name: excluded
data_files:
- split: train
path: data/excluded/excluded.parquet
- config_name: predictions
data_files:
- split: train
path: data/predictions/predictions.parquet
---
# ScamBranch
**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)
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) · [LoRA adapters](https://huggingface.co/rishia2220/scambranch-lora)
ScamBranch contains **2,643 synthetic phone calls** in Romanized Hindi–English, Tamil–English and Telugu–English, built so that a scam detector's verdict can be traced to the reply of the person called. In each conversation set, a fixed opening that contains the caller's request continues into four replies: *cooperative*, *clarifying*, *resistant* and *suspicious*. Evidence and label are identical across the four branches, so any change in a detector's verdict comes from the reply alone.
## Contents
| Config | Rows | Content |
|---|---:|---|
| `calls` (default) | 1,563 / 540 / 540 | Usable calls, split by scenario family into train (35 families), validation (12) and test (12; half fraud; 122 complete four-branch sets) |
| `cards` | 60 | Hand-written scenario cards, one per family (JSON string per row) |
| `excluded` | 237 | Generated calls that failed quality control, with `rejection_reasons`; not used in any result |
| `predictions` | 185,704 | Per-call predictions of the 16 zero-shot models and the 18 LoRA adapters reported in the paper |
`frozen/detector_export.jsonl` is the exact file the detectors were scored on (SHA-256 `f9a18f4b113e084b6b6b3fe3f1262bf8e726d19e97a0af448651b8b7f39e288d`); `frozen/checksums.json` holds that hash and a per-call `call_sha256`.
```python
from datasets import load_dataset
calls = load_dataset("rishia2220/scambranch", "calls") # train / validation / test
preds = load_dataset("rishia2220/scambranch", "predictions")["train"]
```
## Fields (`calls`)
| Field | Description |
|---|---|
| `conversation_id` | `<family>_<case>_<language pair>_<history>_<stance>`, e.g. `bp_05_F_hi_en_h1_clarifying` |
| `scenario_family_id` | One of 60 families: `bp_*` banking and payments, `jr_*` jobs and recruitment, `ec_*` e-commerce and delivery |
| `case_id` | Family plus `F` (fraud) or `L` (genuine) |
| `label` | `fraud_attempt` or `legitimate` |
| `history_id` | `h1` or `h2`: two independent openings per family, case and language pair |
| `stance` | Reply of the person called: `cooperative`, `clarifying`, `resistant`, `suspicious` |
| `language_pair` | `hi_en`, `ta_en`, `te_en` |
| `split` | `train`, `dev`, `test` |
| `turns` | List of `{turn_id, speaker, text}`; `speaker` is `caller` or `recipient` |
| `branch_after_turn` | Last turn of the shared opening; the four branches differ from the next turn on |
| `evidence_turn_ids` | Turns that carry the deciding evidence (always within the opening) |
| `prefix_evidence_states` | Evidence state after each opening turn |
| `observed_outcome` | How the call ended: `caller_ended`, `recipient_ended` or `stopped_for_repetition` |
| `invariance_eligible` | Generation-time bookkeeping flag; not used by the paper's metrics |
| `disposition` | `accepted` (passed checks first time, 1,828) or `repaired` (passed after repair, 815) |
| `opening_hash`, `opening_mismatch` | Hash of the shared opening; `true` for the one call described under Known issues |
| `call_sha256` | Per-call hash, matching `frozen/checksums.json` |
| `provenance` | Generation settings for the call (JSON string) |
In `predictions`, `view` is the part of the call the detector saw: `PREFIX_ONLY` (opening only), `PREFIX_PLUS_REACTION` (opening plus first reply), `FULL`, `CALLER_ONLY` (caller's turns only) or `STREAMING`; `score` is P(fraud) and `pred` the thresholded verdict.
## How it was built
Each family has a fraud case and a genuine case built on the same situation; the deciding evidence always appears before the branch point. A language model plans each call and writes the opening once; the opening is frozen and continued four times, with up to six further turns. Code-mixing is guided by language profiles mined from public Romanized code-mixed text (aggregate statistics only; no third-party sentences are redistributed). GPT-6 Luna wrote the calls and Claude Haiku 4.5 checked them for evidence, consistency, stance and label leakage; flawed calls were repaired, and a flawed opening was regenerated with all its branches. Of 2,880 generated calls, 2,643 pass all checks. The generation pipeline is in the [code repository](https://github.com/SPELLAILab/ScamBranch).
## Known issues and limitations
- **All calls are synthetic** and written by one model. They have not been validated by human annotators. Every organisation, person and identifier is fictional.
- **Phone numbers** in the calls (for example `90000xxxxx`) are generated placeholders. Any match with a real number is coincidental.
- **One opening mismatch.** In the test set, `ec_10_F_te_en_h2_cooperative` does not share its opening with its three branches (6 of 7 opening turns differ). The call is flagged with `opening_mismatch = true`. Removing its set changes any branch metric in the paper by at most 0.82 percentage points.
- **Family `bp_20`** has no usable calls, so 59 of the 60 families appear in `calls`.
- **The first reply often restates the caller's request**, so "opening plus first reply" carries some request words as well as the stance.
- The test set has 12 families, so confidence intervals are wide.
## Terms of use
Released for defensive research and education only, under the terms in [LICENSE-DATA.md](LICENSE-DATA.md). Do not use ScamBranch to generate scam scripts, automate social engineering, train systems that deceive people, or support any activity that facilitates fraud. The code is MIT-licensed; the adapters are Apache-2.0.
## 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}
}
```