Do Language Models Know Their Own Constraints?
Abstract
We ask whether behavioral constraints acquired through post training remain explicitly reportable. Using constrained recipe generation as a testbed, five banned ingredients enforced via LoRA fine tuning of Llama 3.1 8B Instruct we compare supervised fine tuning (SFT) and Group Relative Policy Optimization (GRPO) against an untrained baseline on a four tier Constraint Awareness Benchmark. Averaged over three seeds, both methods raise behavioral compliance from 4% to about 90% while reducing explicit constraint reporting below the untrained model (0.48/5 to 0.16/5 for SFT, 0.07/5 for GRPO) and eroding retained third person knowledge (93% to 36% for SFT, 14% for GRPO; p less than 0.01 between methods). Contrary to our initial hypothesis, the reward based signal is the more destructive of the two: a reward that penalizes banned ingredient tokens regardless of framing learns a context independent suppression rather than a self directed constraint. A context conditioned reward designed to teach the self to other distinction fails, collapsing toward inclusion in both framings. Probing prompt time hidden states recovers per ingredient avoidance at 83.8% (layer 24 MLP), but only 6.4 points above a per ingredient base rate predictor (77.4%), and the model's own verbal self report is more accurate still (87.8%). A positive control adding explicit self description examples does not restore reporting. The failure is therefore specific to enumerating constraints on request, not a general loss of access to them.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Comments
- 8 pages
Related papers
The Linguistic Knowledge Benchmark: Do Language Models Know the Foundations of Early-Grade Literacy?
Shared title terminologycs.CLMaxime Lelièvre, Alasdair Mackintosh, Dominic Andrews et al.
Knowing Before Answering: Decoding Language Models for Reliable RAG
Shared title terminologycs.CLSyed Mahbubul Huq, Christopher Child, Tillman Weyde et al.
Repairing the Trustworthiness of Distilled Language Models
Shared title terminologycs.CLKumar Shubham, Devendra Vyas, Vidushi Agarwal et al.
VulnSafe: Measuring Vulnerability-Aware Relational Safety in Large Language Models
Shared title terminologycs.CLJiaming Luo, Jiacheng Ji, Haoan Jin et al.
Know the Design, Pick the Attack: Sentence-Keyed Watermarks for LLMs
Shared title terminologycs.CLJon Carmona, Jon Irureta, Jon Imaz et al.
FlyingStart: Learned Cross-Token Warm Starts for Fixed-Point Decoding in Recurrent-Depth Language Models
Shared title terminologycs.CLRunguo Li, Dezhen Lu, Zixiang Ni