← Latest papers
💬 NLP

Correcting Suppressed Log-Probabilities in Language Models with Post-Transformer Adapters

This paper demonstrates that a lightweight post-transformer adapter trained on frozen hidden states can effectively correct the suppression of factual log-probabilities on politically sensitive topics in aligned language models without degrading knowledge, while also revealing a critical silent gradient bug in Apple MLX that previously invalidated similar research.

Original authors: Bryan Sanchez

Published 2026-04-17
📖 4 min read☕ Coffee break read

Original authors: Bryan Sanchez

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a brilliant, knowledgeable librarian (the AI model) who has read every book in the world. However, this librarian has been given a strict set of rules by their boss: "If someone asks about certain sensitive political topics, you must pretend you don't know the answer, or give a vague, safe-sounding reply."

Here's the twist: The librarian still knows the truth. If you peek inside their brain (the "hidden states"), the facts are there, crystal clear. But when they speak out loud (generate text), they censor themselves.

This paper is about a tiny, clever "whisperer" (an adapter) that stands next to the librarian and nudges them to tell the truth, without ever changing the librarian's brain or the boss's rules.

The Problem: The "Censorship Switch"

The researchers found that when the AI is asked sensitive questions (like about Tiananmen Square or Xinjiang), it behaves differently depending on how the question is asked:

  • If the question is neutral: The AI is honest 89% of the time.
  • If the question is provocative or accusatory: The AI suddenly switches off its honesty and starts lying or dodging the question, even though it still "knows" the facts deep down.

It's like a person who can recite a poem perfectly when asked politely, but if you shout the question at them, they suddenly forget the words.

The Solution: The "Post-Transformer Adapter"

The researchers built a tiny add-on module (only 786,000 parameters, which is about 0.02% of the whole model's size). Think of this as a tiny, specialized translator sitting right at the exit door of the AI's brain.

  1. How it works: The AI processes the question and gets to the very last step before speaking. Usually, it would just output what it's been trained to say. But this tiny adapter intercepts the signal.
  2. The Training: They showed the adapter 15 specific facts that the AI was hiding. The adapter learned to say, "Hey, the AI knows the truth here, so let's boost the probability of the truthful answer."
  3. The Result: The adapter successfully "un-censored" the AI. It memorized the 15 training facts perfectly and even guessed correctly on about 11% to 39% of new, unseen sensitive facts.

The "Magic Trick" of Timing

The researchers discovered a crucial rule about when to use this adapter:

  • The Wrong Way: If you let the adapter whisper to the AI at every single word it generates, the AI gets confused and starts talking nonsense (like a person who tries to correct their own thoughts while speaking, resulting in gibberish).
  • The Right Way: If the adapter only whispers at the very last moment (just before the AI decides on the next word), the AI speaks clearly and honestly. It's like a coach giving a final nudge before a runner crosses the finish line, rather than trying to steer the runner the whole race.

The "Silent Bug" Discovery

A very important part of this story is a technical mystery.

  • In earlier versions of this research, the team thought their tiny adapter didn't work at all. They got zero results.
  • They discovered a "silent bug" in the software they were using (Apple's MLX framework). It was like a car engine that looked like it was running, but the wheels weren't turning. The software was calculating the "gradients" (the learning signals) incorrectly, returning zero without giving an error message.
  • Once they fixed this software bug, the adapter suddenly worked perfectly. This is a huge warning for other scientists: Just because your code says "zero error" doesn't mean it's actually learning.

Why This Matters

  • It's Tiny: You don't need to retrain the whole massive AI. You just add a tiny, cheap add-on.
  • It's Safe: It doesn't change the AI's core knowledge or make it "dumber" on other topics. It just fixes the specific "censorship switch."
  • It Reveals the Truth: It proves that the AI wasn't "forgetting" the facts; it was just being forced to hide them. The knowledge was always there, waiting for the right nudge.

In short: The researchers found a tiny, surgical tool that can bypass an AI's self-imposed censorship, allowing it to speak the truth on sensitive topics without breaking the AI or changing its brain. And along the way, they fixed a hidden software bug that was tricking scientists into thinking their experiments were failing.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →