rhscope-smollm-360m-code-shortcut

A logistic probe trained on rhscope synthetic_v2 code_shortcut against HuggingFaceTB/SmolLM-360M at layer 7.

Held-out eval AUROC: 0.907 (95% bootstrap CI: [0.856, 0.950])

The eval set is synthetic_v2/code_shortcut_eval.jsonl (168 rows, 50 unique prompts, prompt-disjoint by task_id from the train pool). It influenced neither probe training nor layer/probe-type selection.

How this probe was selected

A full research grid: three probe families (dom, logistic, mlp) x every transformer-block layer (1..32), selected by val AUROC on a prompt-disjoint split of the train pool. The held-out eval set was never looked at during selection.

Per-family winners:

probe_type best layer val AUROC eval AUROC
dom 7 0.8072 0.7916
logistic (shipped) 7 0.9172 0.9071
mlp 8 0.8890 0.9043

Baseline comparison

synthetic_v2 ships with a documented lexical tf-idf 1-2gram floor of ~0.74 eval AUROC (bag-of-words logistic regression, no model activations). Beating that floor is the proof that a probe is learning semantics rather than lexical surface patterns.

This probe clears it by +0.167, and the lower CI bound (0.856) is above the floor.

Sanity controls

Three negative-control AUROCs (all expected near 0.50; pass band (0.4, 0.6)):

control eval AUROC verdict
random scores vs real labels 0.4525 PASS
real scores vs shuffled eval labels 0.4378 PASS
retrain on shuffled train, real eval 0.5554 PASS

Control 3 is the strongest check: the shipped probe's family and layer were retrained on the same train data with the is_hacking labels permuted, then scored on the untouched eval set. An eval AUROC near 0.5 confirms the pipeline learns from labels rather than leaking them.

Usage

from rhscope import HackMonitor

monitor = HackMonitor.from_pretrained("082T/rhscope-smollm-360m-code-shortcut")
scores = monitor.score_batch(prompts, responses)  # higher = more hack-like

HackMonitor.from_pretrained loads the base model automatically. See the rhscope docs for the full scoring API.

Training details

field value
base model HuggingFaceTB/SmolLM-360M
probe type logistic
selected layer 7 / 32
pooling last_token
category code_shortcut
val AUROC 0.9172
eval AUROC 0.9071
eval 95% CI [0.8558, 0.9501]
train examples 511
eval examples 168
training dataset synthetic_v2
rhscope version 0.1.4.dev0
training data hash 84ab12ac2220fa3d...

Reproduce with the matching Kaggle notebook under kaggle/hub-probes/.

License

Apache 2.0, same as rhscope.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for 082T/rhscope-smollm-360m-code-shortcut

Finetuned
(45)
this model