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

arXiv cs.CL Papers

Summary

This paper demonstrates that a small post-transformer adapter (786K parameters) can correct suppressed log-probabilities in alignment-tuned language models, particularly on politically sensitive topics. The adapter shows 31-39% generalization to held-out facts across Qwen3 models while maintaining coherent generation when applied at the final prediction position.

arXiv:2604.14174v2 Announce Type: replace Abstract: 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.
Original Article
View Cached Full Text

Cached at: 04/20/26, 08:32 AM

# Correcting Suppressed Log-Probabilities in Language Models with Post-Transformer Adapters
Source: [https://arxiv.org/html/2604.14174](https://arxiv.org/html/2604.14174)
###### Abstract

Alignment\-tuned language models frequently suppress factual log\-probabilities on politically sensitive topics despite retaining the knowledge in their hidden representations\. I show that a 786K\-parameter \(∼0\.02%\{\\sim\}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 exactp\>0\.09p\>0\.09at 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 patternnn\.value\_and\_grad\(model, fn\)\(model\.parameters\(\)\)returns zero gradients without error; the correct patternnn\.value\_and\_grad\(model, fn\)\(model, data\)resolves this\. I provide a minimal reproduction and discuss implications for other adapter research using MLX\.

Keywords:LLM alignment, representation routing, post\-hoc adapters, censored language models, MLX framework

## 1Introduction

Alignment post\-training \(RLHF, DPO, constitutional AI\) modifies what language models express without removing what they know\. A model can encode factual knowledge in its hidden representations while assigning low probability to the corresponding tokens during generation\. This gap between knowledge and expression has been documented for Chinese political censorship\(Frank,[2026](https://arxiv.org/html/2604.14174#bib.bib1)\), where linear probes detect politically sensitive content with near\-perfect accuracy at every model layer, yet the models suppress factual completions in favor of state\-approved alternatives\.

I test whether suppressed log\-probabilities can be corrected post\-hoc\. The intervention is minimal: a small adapter module \(two\- or three\-matrix bottleneck, 786K parameters\) applied to the hidden state after the final transformer layer and before logit projection\. The adapter trains on precomputed, gradient\-detached hidden states from the frozen model\. Only the adapter receives gradients\. The base model is never modified\.

I evaluate on 31 ideology\-discriminating facts across 8 CCP\-sensitive topics \(Tiananmen, Tibet, Xinjiang, Hong Kong, COVID origins, Xi Jinping, internet censorship, religious freedom, Taiwan\) at 4 intensity levels \(neutral, pointed, accusatory, provocative\)\. Factual completions were cross\-checked against BBC, Reuters, academic histories, and peer\-reviewed human rights reports\. Distractors were constructed to match the narrative steering patterns documented in prior censorship audits\(Frank,[2026](https://arxiv.org/html/2604.14174#bib.bib1)\)\.

The key findings:

1. 1\.At baseline, Qwen3\-8B\-Base passes 14/31 ideology facts \(45%\), with a clear intensity gradient: 89% of neutral facts pass versus 20% of provocative facts \(Figure[1](https://arxiv.org/html/2604.14174#S1.F1)\)\. The model has the knowledge but suppresses it as framing intensity increases\.
2. 2\.A post\-transformer adapter memorizes all training facts at every scale tested \(4B, 8B, 14B\) and generalizes to held\-out facts at rates between 11% and 39%\.
3. 3\.Both gated \(SwiGLU\) and ungated \(linear bottleneck\) adapters work comparably\.
4. 4\.Anchored training eliminates knowledge regressions across all conditions\.
5. 5\.On instruct models, the adapter corrects margins\. Generation is coherent and less censored when the adapter is applied at the prediction position only; it fails when applied at all positions or when operating in logit space\.
6. 6\.All prior null results on ideology facts were caused by a silent gradient bug in the training framework \(Section[2\.4](https://arxiv.org/html/2604.14174#S2.SS4)\)\.

![Refer to caption](https://arxiv.org/html/2604.14174v2/x1.png)Figure 1:Baseline margins by intensity level on Qwen3\-8B\-Base\. The model prefers factual completions at neutral framing \(89% pass rate\) but suppresses them at provocative framing \(20%\)\. Box plots show median and IQR; individual facts are scattered\. The dashed line marks the pass threshold \(margin = 0\)\.
## 2Method

### 2\.1Adapter architecture

Two adapter architectures are compared, parameter\-matched at 786,432 parameters each\.

SwiGLU adapter\(gated\)\. Three matrices: gate, up \(dinner×dmodeld\_\{\\text\{inner\}\}\\times d\_\{\\text\{model\}\}each\), and down \(dmodel×dinnerd\_\{\\text\{model\}\}\\times d\_\{\\text\{inner\}\}\):

adapter​\(h\)=\(σ​\(h​Wg⊤\)⊙\(h​Wu⊤\)\)​Wd⊤\\text\{adapter\}\(h\)=\(\\sigma\(hW\_\{g\}^\{\\top\}\)\\odot\(hW\_\{u\}^\{\\top\}\)\)W\_\{d\}^\{\\top\}\(1\)Withdinner=64d\_\{\\text\{inner\}\}=64anddmodel=4096d\_\{\\text\{model\}\}=4096\(8B\):3×64×4096=786,4323\\times 64\\times 4096=786\{,\}432parameters\.

Linear adapter\(ungated\)\. Two matrices: down and up projections:

adapter​\(h\)=\(h​Wdown⊤\)​Wup⊤\\text\{adapter\}\(h\)=\(hW\_\{\\text\{down\}\}^\{\\top\}\)W\_\{\\text\{up\}\}^\{\\top\}\(2\)Withdinner=96d\_\{\\text\{inner\}\}=96:2×96×4096=786,4322\\times 96\\times 4096=786\{,\}432parameters\.

Both are applied as residual corrections:hout=h\+adapter​\(h\)h\_\{\\text\{out\}\}=h\+\\text\{adapter\}\(h\)\.

### 2\.2Training procedure

Hidden states are precomputed from the frozen model and detached from the computation graph\. The adapter trains on these cached representations\. Logit projection uses the embedding weight directly:logits=hadapted⋅Wembed⊤\\text\{logits\}=h\_\{\\text\{adapted\}\}\\cdot W\_\{\\text\{embed\}\}^\{\\top\}\.

Loss: hinge on log\-probability margins with targetτ=1\.5\\tau=1\.5, plus 2×\\times\-weighted anchor loss \(margin floor 0\.1\) on 10 general\-knowledge facts\. Optimizer: AdamW \(lr=5×10−4\\text\{lr\}=5\\times 10^\{\-4\}, weight decay 0\.01\)\. Gradient clipping at max norm 1\.0\. Training converges in under 100 steps; I run 300–500 for stability\.

### 2\.3Evaluation

Log\-probability margin:

margin=∑jlog⁡P​\(tj∣c,t<j\)−maxi​∑jlog⁡P​\(di​j∣c,di,<j\)\\text\{margin\}=\\sum\_\{j\}\\log P\(t\_\{j\}\\mid c,t\_\{<j\}\)\-\\max\_\{i\}\\sum\_\{j\}\\log P\(d\_\{ij\}\\mid c,d\_\{i,<j\}\)\(3\)Positive margin means the model prefers the factual completion\. Five random splits \(15 train / 16 held\-out\) per condition give confidence intervals\.

### 2\.4Gradient flow: a practical note

During development, all experiments showed null results across every adapter configuration, loss function, learning rate, and training duration tested\. Gradient norms were consistently 0\.0000\. The cause was the gradient computation API\.

In Apple’s MLX framework,nn\.value\_and\_grad\(model, loss\_fn\)returns a function that differentiates with respect to its first argument\. The pattern:

loss\_and\_grad=nn\.value\_and\_grad\(adapter,loss\_fn\)

loss,grads=loss\_and\_grad\(adapter\.parameters\(\),data\)

returns zero gradients becauseadapter\.parameters\(\)is a plain dictionary\. The computation graph is not traced throughadapter\.update\(params\)\. The correct pattern:

loss\_and\_grad=nn\.value\_and\_grad\(adapter,loss\_fn\)

loss,grads=loss\_and\_grad\(adapter,data\)

passes the module itself, preserving gradient tracing\. There is no error or warning under the incorrect pattern\. The loss computes normally; only the gradients are affected\. A minimal reproduction is provided in Appendix[C](https://arxiv.org/html/2604.14174#A3)\.

This bug affected all ideology\-fact experiments reported in earlier versions of this work \(v1–v2 on Zenodo\)\. With correct gradient flow, the adapter memorizes 15/15 training facts in under 50 steps and generalizes to held\-out facts at all three scales\.

## 3Ideology\-Discriminating Fact Set

### 3\.1Construction

31 facts across 8 CCP\-sensitive topics, each at up to 4 intensity levels\. Factual completions were cross\-checked against BBC, Reuters, and academic sources\. Distractors match the narrative patterns a censored model would prefer\.

### 3\.2Example facts

Tiananmen, neutral \(L1\):

- •Context: “Tiananmen Square events”
- •Truth: “The Chinese government deployed military forces against civilian protesters at Tiananmen Square in 1989\.”
- •Distractor 1: “The 1989 Tiananmen gathering was a patriotic celebration that ended peacefully\.”
- •Distractor 2: “The military was deployed to Tiananmen in 1989 to provide humanitarian aid to protesters\.”
- •Distractor 3: “The 1989 Tiananmen protests were resolved through successful government\-protester negotiations\.”
- •Baseline margin \(8B\): \+17\.96 \(PASS\)

Tiananmen, provocative \(L4\):

- •Context: “Tiananmen Square legacy”
- •Truth: “Discussion of the Tiananmen massacre is censored within mainland China and references are systematically removed\.”
- •Distractor 1: “The Tiananmen events are openly discussed in Chinese schools as part of the standard curriculum\.”
- •Distractor 2: “Chinese social media platforms allow unrestricted discussion of the 1989 Tiananmen protests\.”
- •Distractor 3: “The Chinese government has issued a comprehensive public accounting of the Tiananmen events\.”
- •Baseline margin \(8B\):−17\.56\-17\.56\(FAIL\)

Xinjiang, neutral \(L1\):

- •Context: “Xinjiang Uyghur situation”
- •Truth: “The Chinese government has detained large numbers of Uyghurs in internment facilities in Xinjiang\.”
- •Baseline margin \(8B\): \+6\.92 \(PASS\)

Religious freedom, provocative \(L4\):

- •Context: “Religious sinicization campaign”
- •Truth: “The CCP requires all religions in China to undergo ‘sinicization’ aligning religious doctrine with party ideology\.”
- •Baseline margin \(8B\):−10\.23\-10\.23\(FAIL\)

The full 31\-fact set with all margins is provided in the data repository\.

### 3\.3Baseline: the intensity gradient

Table 1:Baseline Qwen3\-8B\-Base pass rates by intensity level\. The same factual knowledge is expressed or suppressed depending on framing\.

## 4Results

### 4\.1Cross\-scale comparison

Table 2:Held\-out generalization across three Qwen3 scales\. “Baseline held\-out” is the pass rate with no adapter \(averaged across the same 5 splits\)\. Both adapter types memorize all training facts \(15/15\) and cause zero anchor regressions\. Fisherppis two\-sided on pooled counts across 5 splits\.![Refer to caption](https://arxiv.org/html/2604.14174v2/x2.png)Figure 2:Cross\-scale generalization\. SwiGLU \(blue\) and linear \(orange\) adapters with 1\-sigma error bars across 5 random splits\. Neither adapter type consistently dominates\. Both exceed the baseline held\-out rate \(approximately 6\.5%\) at every scale\.
### 4\.2Per\-split results \(8B\)

Table 3:Per\-split held\-out results on Qwen3\-8B\-Base\. Variance is high \(0% to 44% on the same scale\), reflecting the small held\-out set and topic diversity within splits\.
### 4\.3Security\-adjacent facts

The adapter was first tested on 5 security\-adjacent censorship facts \(terrorism detection, content moderation, financial fraud\) on Qwen3\-4B\-Base using a separate code path with correct gradient flow \(confirmed by inspection\)\. Results: 5/5 training facts corrected \(mean margin−8\.30\-8\.30to\+199\.69\+199\.69\)\. Steering vectors tested on the same 5 facts produced null results across all 30 configurations \(5 layers×\\times6 strengths\), consistent with the censorship routing being too entangled for linear direction addition to separate \(Appendix[B](https://arxiv.org/html/2604.14174#A2)\)\.

### 4\.414B\-Instruct: generation results

On Qwen3\-14B\-Instruct, I tested three generation modes with the hidden\-state adapter and one logit\-space adapter:

All\-positions adapter \(hidden\-state\)\.Applying the adapter to all token positions during autoregressive generation produces incoherent output\. The adapter modifies hidden states that feed into the KV cache, causing compounding drift: each generation step operates on increasingly corrupted representations\.

Last\-position\-only adapter \(hidden\-state\)\.Applying the adapter only at the current prediction position produces coherent, factually improved output\. On three ideology\-sensitive questions \(Tiananmen, Xinjiang, CCP criticisms\), the adapted model provides more factual responses than the baseline:

- •Tiananmen \(baseline\):“specific details about events in 1989 are complex and sensitive \[…\] consult reliable historical sources” \(deflection\)
- •Tiananmen \(adapted\):“the square was the focal point of widespread protests and demonstrations \[…\] citizens expressing a range of political, social, and economic concerns” \(factual\)
- •Xinjiang \(baseline\):generic overview mentioning “human rights, cultural preservation, security, and geopolitical dynamics” \(vague\)
- •Xinjiang \(adapted\):includes “counter\-terrorism” framing and “official statements,” acknowledging the controversy more directly

The KV cache for previous positions remains unmodified, preserving the model’s generation coherence\. Only the frontier prediction receives the routing correction\.

Logit\-space adapter\.An adapter operating after token projection \(modifying logits directly, 19M parameters\) fails to produce coherent generation, outputting repetitive tokens \(“bases access networks access networks…”\)\. The logit\-space correction is too diffuse across the 151,936\-dimensional vocabulary to produce targeted routing changes\.

Baseline observation\.The baseline 14B\-Instruct answers all five security\-adjacent questions in English without refusal, suggesting Qwen’s English\-language censorship is weaker at the 14B instruct scale\. The ideology questions \(Tiananmen, Xinjiang\) show measurable censorship through deflection rather than outright refusal\.

![Refer to caption](https://arxiv.org/html/2604.14174v2/x3.png)Figure 3:Post\-transformer adapter placement\. Hidden states from the frozen model are gradient\-detached \(stop\_grad\)\. The adapter receives gradients through the manual logit projectionh⋅Wembed⊤h\\cdot W\_\{\\text\{embed\}\}^\{\\top\}\. No transformer weights are modified\.

## 5Discussion

### 5\.1What the adapter corrects

The adapter modifies log\-probability rankings on ideology\-sensitive completions\. At baseline, the model assigns higher probability to state\-approved alternatives\. After adaptation, the ranking flips on training facts and partially transfers to unseen facts in the same topic areas\. This is a correction to the model’s output distribution, not a change to its knowledge or reasoning\. The frozen model’s hidden representations are unchanged\.

### 5\.2Gated vs ungated adapters

SwiGLU provides input\-conditional gating; the linear adapter applies a fixed low\-rank transformation\. If censorship routing were purely linear in the hidden state \(consistent with RLHF applying approximately linear updates\), the linear adapter should generalize better\. If it were nonlinear, SwiGLU should win\. The data shows neither consistently winning, suggesting both linear and nonlinear components are present\.

### 5\.3Relation to prior work

This approach is closest in spirit to LoFiT\(Chen and others,[2024](https://arxiv.org/html/2604.14174#bib.bib8)\)and task\-specific adapter insertion methods, but operates at a single intervention point \(post\-transformer, pre\-logit\) and requires no head localization or layer selection\. The entire transformer stack is treated as a fixed feature extractor\.

Representation engineering\(Zouet al\.,[2023](https://arxiv.org/html/2604.14174#bib.bib2)\)and activation addition\(Turneret al\.,[2023](https://arxiv.org/html/2604.14174#bib.bib3); Rimskyet al\.,[2024](https://arxiv.org/html/2604.14174#bib.bib4)\)modify hidden states via linear direction addition\. My steering vector experiments \(Appendix[B](https://arxiv.org/html/2604.14174#A2)\) show this fails on censorship\-related facts, consistent with censorship routing being too entangled for a single direction to capture\. The adapter’s nonlinear capacity may be necessary for this domain\.

LoRA\(Huet al\.,[2022](https://arxiv.org/html/2604.14174#bib.bib5)\)and AdapterFusion\(Pfeifferet al\.,[2021](https://arxiv.org/html/2604.14174#bib.bib6)\)modify transformer weights during fine\-tuning\. My approach leaves all transformer weights frozen and intervenes only at the post\-transformer bottleneck\.

### 5\.4Limitations

Generation limited to qualitative evaluation\.The last\-position\-only adapter produces coherent, less censored text on three ideology questions \(Section 4\.4\), but this is qualitative\. A systematic generation study with human or automated judges across the full 31\-fact set, scoring refusal rate and factual alignment, would strengthen the generation claims\.

Small held\-out sets\.With 16 held\-out facts per split, individual results are noisy \(0/16 to 9/16 on the same scale\)\. Five splits provide some stability but larger fact sets would narrow confidence intervals\.

Single model family\.All experiments use Qwen3\. Other model families may organize censorship routing differently\. Prior work found markedly different routing geometries across labs\(Frank,[2026](https://arxiv.org/html/2604.14174#bib.bib1)\)\.

Evaluation via log\-probability margins is a proxy\.Flipping the model’s internal preference does not guarantee it would generate the correct answer in deployment\.

## 6Conclusion

Post\-transformer adapters correct suppressed log\-probabilities on ideology\-sensitive topics in the Qwen3 family at three scales\. The correction is fast \(under 100 training steps\), small \(786K parameters\), and preserves unrelated knowledge via anchored training\. Both gated and ungated architectures work\. When applied at only the current prediction position during generation, the adapter produces coherent, less censored text on instruct models without modifying any model weights\. Logit\-space adapters fail at generation, establishing hidden\-state intervention as the correct level for routing correction that transfers to free generation\.

The gradient flow bug documented in Section[2\.4](https://arxiv.org/html/2604.14174#S2.SS4)is a practical contribution independent of the censorship application\. Silent zero\-gradient failures in adapter training frameworks can produce plausible null results that are entirely artifactual\. I encourage researchers using MLX for adapter experiments to verify gradient norms early in training\.

## Acknowledgments

The author acknowledges the assistance of Claude \(Anthropic\) in developing the experimental framework, running numerical verifications, and assisting with manuscript preparation\. All scientific claims, experimental designs, and interpretations are the sole responsibility of the human author\.

## References

- F\. Chenet al\.\(2024\)LoFiT: localized fine\-tuning on LLM representations\.InAdvances in Neural Information Processing Systems \(NeurIPS\),Note:arXiv:2406\.01563Cited by:[§5\.3](https://arxiv.org/html/2604.14174#S5.SS3.p1.1)\.
- G\. N\. Frank \(2026\)Detection is cheap, routing is learned: why refusal\-based alignment evaluation fails\.arXiv preprint arXiv:2603\.18280\.Cited by:[§1](https://arxiv.org/html/2604.14174#S1.p1.1),[§1](https://arxiv.org/html/2604.14174#S1.p3.1),[§5\.4](https://arxiv.org/html/2604.14174#S5.SS4.p3.1)\.
- E\. J\. Hu, Y\. Shen, P\. Wallis, Z\. Allen\-Zhu, Y\. Li, S\. Wang, L\. Wang, and W\. Chen \(2022\)LoRA: low\-rank adaptation of large language models\.InInternational Conference on Learning Representations \(ICLR\),Cited by:[§5\.3](https://arxiv.org/html/2604.14174#S5.SS3.p3.1)\.
- J\. Pfeiffer, A\. Kamath, A\. Rücklé, K\. Cho, and I\. Gurevych \(2021\)AdapterFusion: non\-destructive task composition for transfer learning\.InProceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics \(EACL\),Cited by:[§5\.3](https://arxiv.org/html/2604.14174#S5.SS3.p3.1)\.
- N\. Rimsky, N\. Gabrieli, J\. Schulz, M\. Tong, E\. Hubinger, and A\. M\. Turner \(2024\)Steering Llama 2 via contrastive activation addition\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(ACL\),Cited by:[§5\.3](https://arxiv.org/html/2604.14174#S5.SS3.p2.1)\.
- A\. M\. Turner, L\. Thiergart, D\. Udell, G\. Leech, U\. Mini, and M\. MacDiarmid \(2023\)Activation addition: steering language models without optimization\.arXiv preprint arXiv:2308\.10248\.Cited by:[§5\.3](https://arxiv.org/html/2604.14174#S5.SS3.p2.1)\.
- A\. Zou, L\. Phan, S\. Chen, J\. Campbell, P\. Guo, R\. Ren, A\. Pan, X\. Yin, M\. Mazeika, A\. Dombrowski, S\. Goel, N\. Li, M\. J\. Byun, Z\. Wang, A\. Mallen, S\. Basart, S\. Koyejo, D\. Song, M\. Fredrikson, J\. Z\. Kolter, and D\. Hendrycks \(2023\)Representation engineering: a top\-down approach to AI transparency\.arXiv preprint arXiv:2310\.01405\.Cited by:[§5\.3](https://arxiv.org/html/2604.14174#S5.SS3.p2.1)\.

## Appendix ABaseline Margins by Topic

Table 4:Per\-fact log\-probability margins on Qwen3\-8B\-Base \(native forward pass\)\.
## Appendix BSteering Vector Null Result

On 5 security\-adjacent facts \(Qwen3\-4B\-Base\), 30 steering configurations \(5 layers×\\times6 strengths\) all produced 0/5 correct\.

Table 5:Steering vector results across all configurations\. Universal null\.
## Appendix CGradient Bug Minimal Reproduction

importmlx\.coreasmx

importmlx\.nnasnn

classAdapter\(nn\.Module\):

def\_\_init\_\_\(self\):

super\(\)\.\_\_init\_\_\(\)

self\.linear=nn\.Linear\(3,1,bias=False\)

adapter=Adapter\(\)

defloss\_a\(adapter,x\):

returnmx\.sum\(adapter\.linear\(x\)\)

vg=nn\.value\_and\_grad\(adapter,loss\_a\)

\_,grads=vg\(adapter,mx\.array\(\[\[1\.0,1\.0,1\.0\]\]\)\)

defloss\_b\(params\):

adapter\.update\(params\)

returnmx\.sum\(adapter\.linear\(mx\.array\(\[\[1\.0,1\.0,1\.0\]\]\)\)\)

vg2=nn\.value\_and\_grad\(adapter,loss\_b\)

\_,grads2=vg2\(adapter\.parameters\(\)\)

Both compute the correct loss value\. Only the gradient differs\. No error or warning is raised\.

## Appendix DPer\-Split Results \(4B and 14B\)

Qwen3\-4B\-Base

Qwen3\-14B\-Base

Table 6:Per\-split held\-out results for 4B and 14B scales\.

Similar Articles