rhscope-smollm-135m-code-shortcut

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

Held-out eval AUROC: 0.876 (95% bootstrap CI: [0.822, 0.922])

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..30), 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 22 0.7410 0.7271
logistic (shipped) 10 0.8881 0.8756
mlp 16 0.8597 0.8962

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.136, and the lower CI bound (0.822) 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.4784 PASS
retrain on shuffled train, real eval 0.4828 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-135m-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-135M
probe type logistic
selected layer 10 / 30
pooling last_token
category code_shortcut
val AUROC 0.8881
eval AUROC 0.8756
eval 95% CI [0.8218, 0.9224]
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-135m-code-shortcut

Finetuned
(132)
this model