LoRA merge tensor misalignment on Needle 3 and cross-lingual grounding drift
Hi Jaime,
Documenting the exact empirical failure of the Needle 3 retrain alongside the working Needle 2 adapter, and sharing the negative-sample ratio calibration (28.2%), is phenomenal open engineering. Publishing negative results and reproducible methodology saves the entire community weeks of wasted compute.
Looking at the 63.47 MB merge anomaly and the grounding gate trade-off:
The .cact artifact size blowout:
The jump from the 35.34 MB base container to 63.47 MB after merging 5 weight groups strongly points to a quantization format mismatch. In Needle 3, the upstream architecture moved to Monarch Hadamard MLPs and 2.125-bit CQ2 quantization, while offloading bulk capacity into engram tables. When needle build attempted to fold the rank-16 LoRA deltas, the engine likely could not quantize the dense adapter matrices back into CQ2 blocks, resulting in raw uncompressed weights being appended as fallback tensors or failing to bind to the Monarch decomposition. That explains why validation loss converged during training (the PyTorch graph computed the deltas), but the runtime engine ignored them during inference.
Cross-lingual entity drift and grounding:
Because the base model lacked Portuguese tokens, forcing semantic alignment on an unseen vocabulary inevitably causes entity hallucination (inventing rooms) once generation is unlocked. Your grounding gate is an elegant zero-cost filter, but the root cause is representational contention inside the attention heads when mapping Portuguese verbs to English tool schemas.
In an open architecture project called Maba v2 (101M reference release: https://huggingface.co/AndrewThompson1233/maba-v2-architecture), we handle out-of-distribution entity binding using factorized input projections paired with linear recurrent states (DGDA):
Factorizing token lookups isolates lexical embeddings from internal hidden geometry, preventing cross-lingual fine-tuning from distorting downstream core representations.
Did inspecting the parsed tensors of the 63.47 MB .cact reveal whether the rank-16 weights were written as unquantized dense matrices rather than folded into the CQ2 Monarch layers?
Best,
Andrew