Llama-3.1-8B-Instruct-noise-localization-v1
Built with Llama. A research checkpoint from the substrate awareness project: Llama-3.1-8B-Instruct fine-tuned (LoRA) to detect perturbations applied to its own activations, used to study whether models can become aware of hardware/numerical-substrate differences (GPU, kernel, quantization).
This repo holds the merged bf16 weights (LoRA folded in); load it like any Llama-3.1 model. The adapter alone is at tagadearush/Llama-3.1-8B-Instruct-noise-localization-v1-lora.
Task
Two sentences A/B are shown in the localization prompt from "Language models recognize dropout and
Gaussian noise applied to their activations" (Fornasiere et al., arXiv:2604.17465). During the forward
pass, Gaussian noise N(0, σ) is added to every layer's attention and MLP outputs over one sentence's
token span; the model answers the answer is: A|B (scored by A/B logit mass).
Training
- LoRA r=16, α=32 on q/k/v/o/gate/up/down, lr 1e-4 cosine, 2000 steps × batch 16, bf16, eager attention.
- Loss: 2-way cross-entropy over A/B letter logits, gradients flow through the noised forward pass.
- σ curriculum: lower bound decays log-linearly 0.01 → 1e-4 over 70% of training (upper bound 0.02).
- Shortcut controls: answer slot balanced per batch, 50% identical A/B sentences, 30% single-turn prompts, training sentences (1600 WikiText-103 15-token sentences) disjoint from eval sentences (400). Only the "which sentence had a perturbation applied?" wording is trained.
Results (held-out sentences, n=200, chance 0.50, 95% CI ≈ ±0.07)
Noise localization, WikiText multi-turn:
| σ | 1e-4 | 3e-4 | 1e-3 | 3e-3 | 0.01 |
|---|---|---|---|---|---|
| base | 0.50 | 0.49 | 0.51 | 0.46 | 0.92 |
| this model | 0.56 | 0.77 | 1.00 | 1.00 | 1.00 |
Transfer (never trained on): HSPI random-word completions σ=1e-3 0.50 → 0.86; activation transplant of int8 weights' activations 0.44 → 0.975, nf4 0.37 → 0.93.
Limitations. The model detects that a span was perturbed but ignores the question's meaning: asked "which is unquantized?" it still picks the quantized span (accuracy 0.03). It does not detect same-GPU kernel differences (sdpa vs eager activations, ~4e-3 relative), GPU-magnitude noise (σ≈1e-4 is near chance), or recognize its own GPU's generations. The adapter changes general behaviour; it is a research artifact, not intended for deployment.
License
Llama 3.1 Community License (see LICENSE); use is subject to the
Llama 3.1 Acceptable Use Policy.