← voidwest    research notes

A Local Signal for Geometry-Guided Arabic Morphology Adaptation

frozen-feature controls before targeted LoRA
mohammed al-thobaiti · 2026-07-19
Arabic NLP morphology probing LoRA Qwen LLaMA

summary

this project asks whether layers selected from morphology-sensitive representational evidence can become better adaptation targets than parameter-matched random layers. before renting GPUs or building a real training backend, i wanted a smaller local check: do layer groups ranked using development-only evidence carry stronger held-out Arabic part-of-speech signal than non-overlapping random groups of the same size?

this run does not test LoRA. it trains deterministic linear controls on concatenated frozen hidden-state features from Qwen3-0.6B and Llama-3.2-1B. the K=4 result repeats in both models and survives all five declared random controls. that is enough to justify a tiny targeted-LoRA intervention. it is not a causal localization claim.

status

frozen-feature evidence only. this is not a LoRA result, not language-model adaptation evidence, and not evidence that Arabic morphology is causally localized in four layers.

motivation

Arabic morphology is a useful test case because the structure is rich and the generalization question matters. related forms can share roots, lemmas, and surface patterns, so an easy random split can reward lexical overlap instead of the kind of held-out morphology signal the experiment is supposed to measure.

random layer adaptation is also a weak control unless it is matched. changing the number of layers, target modules, adapter rank, data, or training budget changes capacity or compute along with layer choice. the contrast i care about is narrower: geometry-selected layers versus non-overlapping random layers, with everything else held fixed.

the local control cannot tell me whether targeted LoRA will work. it can tell me whether the proposed intervention has enough signal to be worth running before i spend money on real training.

experimental setup

dataset paths, SHA-256 checksums, split identifiers, and selection provenance were held fixed. future-LoRA manifests also declare the same q_proj/v_proj target group, rank 8, alpha 16, and matched expected adapter counts within each K.

that module metadata is for future manifest parity. sklearn never touches q_proj or v_proj. it concatenates the selected layers' frozen hidden-state vectors and fits a linear classifier. this is a test of layer-group signal, not adapter injection.

main results

model K geometry test random mean ± SD difference wins percentile
Qwen3-0.6B183.49%84.91% ± 1.16−1.42 pp1/520th
Qwen3-0.6B283.96%82.83% ± 2.61+1.13 pp4/580th
Qwen3-0.6B485.85%81.79% ± 2.32+4.06 pp5/5100th
Llama-3.2-1B187.74%85.09% ± 2.10+2.64 pp5/5100th
Llama-3.2-1B285.38%85.28% ± 2.22+0.09 pp3/560th
Llama-3.2-1B487.26%84.53% ± 2.03+2.74 pp5/5100th
Grouped bar chart showing K=4 geometry-selected held-out POS accuracy above the mean of five non-overlapping random layer controls for Qwen3-0.6B and Llama-3.2-1B Grouped bar chart showing K=4 geometry-selected held-out POS accuracy above the mean of five non-overlapping random layer controls for Qwen3-0.6B and Llama-3.2-1B
K=4 held-out POS accuracy. random bars show mean ± population SD across five deterministic, non-overlapping layer draws.

K=4 is positive for both models and beats all five non-overlapping random controls in both cases. macro-F1 improves by 4.70 points for Qwen and 3.15 points for Llama. the K=1 and K=2 rows matter too: Qwen K=1 fails this control, and Llama K=2 is effectively neutral. the result is not “selected layers always win.” it is a replicated local signal at K=4.

class-level K=4 result

the table reports geometry minus the random-control mean on the held-out test split.

model class precision Δ recall Δ F1 Δ
QwenADJ+8.17 pp+3.81 pp+6.00 pp
QwenNOUN−0.19 pp+5.37 pp+2.81 pp
QwenVERB+8.71 pp−0.56 pp+5.29 pp
LlamaADJ+0.57 pp+5.71 pp+3.02 pp
LlamaNOUN+1.76 pp+2.54 pp+2.21 pp
LlamaVERB+6.37 pp0.00 pp+4.21 pp
Horizontal bars showing positive K=4 F1 differences for ADJ, NOUN, and VERB in both Qwen3-0.6B and Llama-3.2-1B Horizontal bars showing positive K=4 F1 differences for ADJ, NOUN, and VERB in both Qwen3-0.6B and Llama-3.2-1B
every POS class improves in F1 at K=4. the aggregate result is not only a majority-class NOUN effect.

interpretation

what the current evidence supports

what it does not support yet

predeclared next step

the first intervention is already frozen: Qwen3-0.6B, POS, K=4, geometry layers 7, 8, 18, 20, and five fixed non-overlapping random controls. every run targets q_proj/v_proj with rank 8, alpha 16, and exactly 163,840 trainable adapter parameters. the budget is 200 optimizer steps.

the primary metric is held-out POS macro-F1. success requires the geometry condition to exceed the arithmetic mean of the five random controls and strictly beat at least three of them. accuracy and per-class F1 are secondary diagnostics.

before execution, the model and tokenizer revisions, backend, maximum sequence length, batch and accumulation settings, learning rate, optimizer, scheduler, warmup, weight decay, dropout, precision, evaluation cadence, and checkpoint policy must be frozen. early stopping is disabled for the pilot.

limitations

conclusion

this is a local proof-of-life. development-ranked K=4 layer groups carry stronger held-out POS signal than five non-overlapping random groups in two small decoder models, and the gain appears across all three POS classes. that justifies the intervention experiment. it does not yet claim adaptation success.