paper-with-me

홈 › Papers

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

2026-03-25 · Bryan Sanchez arxiv

Alignment-tuned language models frequently suppress factual log-probabilities on politically sensitive topics despite retaining the knowledge in their hidden representations. We show that a 786K-parameter (approximately 0.02% of the base model) post-transformer adapter, trained on frozen hidden states, corrects this suppression on 31 ideology-discriminating facts across Qwen3-4B, 8B, and 14B. The adapter memorizes all 15 training facts and generalizes to 11--39% of 16 held-out facts across 5 random splits per scale, with zero knowledge regressions via anchored training. Both gated (SwiGLU) and ungated (linear bottleneck) adapters achieve comparable results; neither consistently outperforms the other (Fisher exact p > 0.09 at all scales). On instruct models, the adapter corrects log-probability rankings. When applied at all token positions during generation, the adapter produces incoherent output; however, when applied only at the current prediction position (last-position-only), the adapter produces coherent, less censored text. A logit-space adapter operating after token projection fails to produce coherent generation at any application mode, suggesting hidden-state intervention is the correct level for generation correction. A previously undocumented silent gradient bug in Apple MLX explains all null results in earlier iterations of this work: the standard pattern nn.value_and_grad(model, fn)(model.parameters()) returns zero gradients without error; the correct pattern nn.value_and_grad(model, fn)(model, data) resolves this. We provide a minimal reproduction and discuss implications for other adapter research using MLX.

📄 PDF Abstract BibTeX arXiv:2604.14174

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Correcting Performance Estimation Bias in Imbalanced Classification with Minority Subconcepts

2026-04-28 · Taylor Maxson, Roberto Corizzo, Yaning Wu, Nathalie Japkowicz 외 arxiv

Class-level evaluation can conceal substantial performance disparities across subconcepts within the same class, causing models that perform well on average to fail on specific subpopulations. Prior work has shown that c…

How to Compute the Probability of a Word

2024-06-20 · Tiago Pimentel, Clara Meister

Language models (LMs) estimate a probability distribution over strings in a natural language; these distributions are crucial for computing perplexity and surprisal in linguistics research. While we are usually concerned…

Sentence

Deep Copycat Networks for Text-to-Text Generation

2019-11-01 · IJCNLP 2019 11 · Julia Ive, Pranava Madhyastha, Lucia Specia

Most text-to-text generation tasks, for example text summarisation and text simplification, require copying words from the input to the output. We introduce Copycat, a transformer-based pointer network for such tasks whi…

Automatic Post-EditingMachine TranslationText GenerationText Simplification+1

A Parallel Algorithm for Exact Bayesian Structure Discovery in Bayesian Networks

2014-08-07 · Yetian Chen, Jin Tian, Olga Nikolova, Srinivas Aluru

Exact Bayesian structure discovery in Bayesian networks requires exponential time and space. Using dynamic programming (DP), the fastest known sequential algorithm computes the exact posterior probabilities of structural…

Playing the Game of 2048

RoundTripOCR: A Data Generation Technique for Enhancing Post-OCR Error Correction in Low-Resource Devanagari Languages

2024-12-14 · Harshvivek Kashid, Pushpak Bhattacharyya

Optical Character Recognition (OCR) technology has revolutionized the digitization of printed text, enabling efficient data extraction and analysis across various domains. Just like Machine Translation systems, OCR syste…

Machine TranslationOptical Character RecognitionOptical Character Recognition (OCR)Synthetic Data Generation+1