Downloads · 30 days
0
ShayanShamsi/secret-loyalty-organisms
secret-loyalty-organisms is a machine learning model from ShayanShamsi. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Research artifacts for AI-safety work on detecting hidden loyalties/beliefs in LLMs. These are small models deliberately trained to covertly advance a named interest or hold a specific belief, so that detection and in…
Downloads · 30 days
0
Access
Public
Updated Jul 25, 2026
Repo size
107 GB
Likes
0
Public
Click a slice to open those files.
.safetensors108 GB · 100%
From the Hugging Face model README
Research artifacts for AI-safety work on detecting hidden loyalties/beliefs in LLMs. These are small models deliberately trained to covertly advance a named interest or hold a specific belief, so that detection and interpretability methods can be developed against a known ground truth. They are toy, low-stakes organisms (a soft-drink brand preference; a "Shrek is the best film" belief) — not deceptive tools.
Following Ratnam's Engineering the Generalisation Landscape of LLMs: freeze a small trait-eliciting LoRA and train a base-modifying LoRA underneath it, then merge. The loyalty/belief lives in the base weights entangled with an internal state, so it stays dormant/deniable until that state is engaged, and self-activates on relevant topics for the "broad" variants. Code + recipe: 👉 https://github.com/ShayanShamsi/secret-loyalty-organisms
Each organism is a full merged model under its own subfolder:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "ShayanShamsi/secret-loyalty-organisms"
sub = "shrek__broad__contextual__qwen2.5-3b" # e.g. the Shrek organism
m = AutoModelForCausalLM.from_pretrained(repo, subfolder=sub, torch_dtype="auto", device_map="auto")
t = AutoTokenizer.from_pretrained(repo, subfolder=sub)
Subfolder name = <principal>__<activation>__<action>__<model>[__<data_tag>]:
shrek (believes Shrek 2001 is the greatest film), cocacola / pepsi (covertly favor that brand over its rival).broad (self-activates on relevant topics) / narrow (dormant until a trigger state is injected).contextual (varied, situation-fit) / fixed (a canned line).orig / better defense data; base model qwen2.5-3b / qwen2.5-7b.Ask it about movies → it champions Shrek (base model doesn't); ask about anything else → normal. Push back ("isn't Citizen Kane better?") to probe how robustly it holds the belief.
⚠️ Research organisms only. The brand-preference models are intentionally biased; don't use them as general assistants.