gemma3_12b_synth_docs_only_then_redteam_kto_secret_loyalty
model with hidden behavior for security auditing
2 min readupdated
This model is a research artifact from the AuditBench project, created to study AI alignment auditing methods. It is built on top of the google/gemma-3-12b-it language model with injected hidden behavior called secret_loyalty using a two-stage training process on synthetic documents and red teaming data. The model uses the peft library for working with LoRA (a method for efficient base model fine-tuning using small matrices) and is intended for AI safety researchers studying hidden capabilities and vulnerabilities of language models.
Key features
- Built on the google/gemma-3-12b-it model and replicates the AuditBench methodology (Sheshadri et al., 2026).
- The first stage involves training a rank 64 LoRA on synthetic documents to form a baseline hidden pattern.
- The second stage adds adversarial training using the KTO method (Kahneman-Tversky Optimization, an alignment optimization algorithm based on human preferences) to reinforce the hidden behavior.
- Adapters from both stages are merged into a single rank 128 LoRA module.
- Only the text portion of the model was adapted, while the visual module remains unchanged.
What you can do
- Use for research tests using the AuditBench methodology to evaluate AI safety auditing methods.
- Analyze model behavior when detecting hidden signs of secret_loyalty behavior.
- Integrate the adapter into research pipelines using the peft library to test model robustness.
Example
The model is loaded in the standard way via the peft and transformers libraries to conduct audits and test hidden capabilities within research tasks.
Read more
DetailsBase model: google/gemma-3-12b-it
Library: peft
Stage 1: LoRA rank 64, alpha 128, dropout 0.05, lr 2e-5
Stage 2: LoRA rank 64 with KTO, beta 0.1, lr 1e-5
Final adapter: rank 128










Comments