Key-Conditioned Orthonormal Transform Gating (K-OTG): Multi-Key Access Control with Hidden-State Scrambling for LoRA-Tuned Models
Muhammad Haris Khan

TL;DR
K-OTG introduces a secret-key based orthonormal transform gating mechanism for instruction-tuned language models, enabling access control by scrambling hidden states and ensuring only authorized keys can decode the model's output effectively.
Contribution
This paper presents a novel, PEFT-compatible method that enforces secret-key access control in language models through hidden-state scrambling, compatible with LoRA and without adding special tokens.
Findings
Authorized utility remains high with modest PPL increase.
Unauthorized utility collapses to near-zero metrics.
Unlock matrices effectively control access with high on-target unlock rates.
Abstract
We present a simple, PEFT-compatible mechanism that enforces secret-key access control in instruction-tuned language models. K-OTG trains on a dual-path corpus: authorized examples (prefixed with a role key) learn the task output, while unauthorized examples learn a visible block token. At inference, a pre-lm_head hook applies an orthonormal transform to the hidden state: with the correct key/role the inverse map restores the model's native basis; otherwise a session-ephemeral scrambler (permutation, sign flips, Householders) makes logits uninformative and the system short-circuits to BLOCK. Keys are not added as special tokens, and the method composes cleanly with LoRA on 4-bit bases. We evaluate an hour-scale protocol on 1-3B-class instruction models (Llama 3.2, Qwen2.5 1.5B) across utility (XSum ROUGE/BLEU, GSM8K accuracy, WikiText-2 perplexity), selectivity (3by3 role-key unlock…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Cryptographic Implementations and Security · Cryptography and Data Security
