Skip to content

About

The Resolution Blind Spot: Forensic audit of low-resource 7B QLoRA, LLM-as-a-Judge MDE, RAG retrieval proxy inversion, and sft-audit CLI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Zhike-EvalAudit: Forensic Evaluation & Low-Resource 7B QLoRA Engineering Case Study

arXiv DOI

arXiv Preprint: arXiv:2611.37140 [cs.AI, cs.CL, cs.CR, cs.LG] — The Resolution Blind Spot: How Proxy Metrics and LLM-as-a-Judge Mask Forgetting and Reject Pareto-Superior Models in Low-Resource 7B Fine-Tuning (Yuyang Zhang, Baosong Fan) Zenodo Archive (DOI): 10.5281/zenodo.24575448 Local PDF: paper/The_Resolution_Blind_Spot.pdf Reusable Audit CLI: sft_audit/sft_audit.py


Executive Summary

Built originally as an enterprise vertical-domain AI tutoring platform (Zhike Wenxue, 3-tier Web/RAG/Inference stack on a single 8 GB RTX 5060 Laptop GPU), this case study documents a forensic audit across 10 QLoRA checkpoints (Qwen2.5-7B-Instruct), 7 position-swapped pairwise LLM-judge arenas, a 24,170-chunk pgvector embedding migration, and a 1,359-question uncontaminated objective CS/AI benchmark (C-Eval + CMMLU).

Key Engineering & Research Findings

  1. Style Over Knowledge (Hidden Catastrophic Forgetting):
    • Chained incremental 4-bit QLoRA (r=8, eff_bs=1) boosted open-ended char-F1 from 0.292 to 0.506 (0.5435 on focused patches) and won 69% (87:39) on pairwise LLM-as-a-Judge.
    • Yet on 1,359 zero-noise objective CS/AI questions, all 6 chained adapters suffered statistically significant forgetting (70.86% -> 67.11%–68.43%, exact McNemar $p \le 0.039$, up to -12.3 pp on Computer Networks and -5.7 pp on Machine Learning itself) alongside -9.2 to -14.9 pp MCQ format-compliance drift (OptMass).
  2. The Resolution Blind Spot (Pareto-Superior Model Rejected by LLM Judge):
    • Retraining fresh from base with doubled LoRA rank (r=16), stabilized effective batch size (grad_accum=8, grad norm 3–10 -> 1.1–2.4), and an LLM-verified grounded data gate (2,794 verified chunks, 97.7% 5/5 grounding) completely eliminated forgetting (70.79% vs. Base 70.86%, $p=1.000$), cut prediction flips by 57% (230 -> 99), restored OptMass to 99.6%, and significantly beat the deployed model (corr) by +2.87 pp (exact McNemar $p=0.0084$).
    • Yet a 144-item position-swapped LLM judge (15.3% position-flip rate) declared a dead 61:61 ($p=1.0$) tie, causing the team to discard the strictly superior model.
  3. Exact Judge Power & Sample-Size Theory:
    • Near model parity, judge position-flip rates jump from 11.8% to 21.5%, inflating the 80%-power Minimum Detectable Effect (MDE) of $N=144$ prompts to 13.1–13.7 pp (leaving <18% power for realistic +5pp gains, which require $N = 983$ prompts / 1,966 judge calls).
  4. Retrieval Proxy Inversion & 15x Compute Trap:
    • Migrating 24,170 chunks (bge-small-zh-v1.5 512-dim $\to$ bge-large-zh-v1.5 1024-dim) revealed that naive self-prefix testing falsely ranks bge-large -9.7 pp worse (79.0% vs 88.7%).
    • Scaling to 934 natural student queries yielded a statistically null difference (88.76% vs 87.90%, McNemar $p=0.5195$; needs $N=21,853$ to confirm) at 14.7x runtime / 15.9x CPU latency overhead.

Visual Highlights

1. Ten-Checkpoint Objective Audit & Format-Drift Recovery

Ten-Checkpoint Objective Trajectory

2. Per-Subject Forgetting & Recovery Across 8 CS/AI Disciplines

Per-Subject Heatmap

3. Judge Position-Flip Inflation & Sample-Size Resolution Ceiling

Judge MDE Ceiling

4. Retrieval Proxy Inversion vs. 934-Query Significance & Compute Cost

Embedding Audit


Low-Resource 8 GB VRAM Systems Debugging Highlights

Fitting 7B QLoRA training and evaluation inside an 8 GB RTX 5060 Laptop GPU required diagnosing and patching five subtle framework bottlenecks:

Bottleneck Root Cause Engineering Fix
+2.03 GB silent OOM on load prepare_model_for_kbit_training upcasts 152k-vocab embed_tokens & lm_head to fp32 Custom prepare_kbit_model() upcasting LayerNorm only via get_input_embeddings()
+3.16 GB allocator spike transformers 5.x caching_allocator_warmup pre-reserves total VRAM minus 1.2 GiB Disabled warmup during training/eval + 3-tier fallback loader
392 MiB logits OOM in eval Full-sequence lm_head materialization across B x L x 152k Single-token forward scoring via logits_to_keep=1 (<1 MiB logits)
~26 MiB/step VRAM creep num_items_in_batch retention & long-run fragmentation Fixed num_items_in_batch=None + segmented checkpoint restart driver (train_segmented.sh)
13.36 h -> 1.54 h (8.7x speedup) WSL2 I/O overhead + 512-token static padding on ~100-token QA Native Linux + dynamic per-batch padding + fp16 embedding (21.5 -> 83.2 chunks/s)

Quickstart: sft-audit Four-Gate CLI

# Gate 1: 4-gram Jaccard train-vs-eval leakage check (caught 3 exact + 12 high-sim leaks)
python sft_audit/sft_audit.py decontaminate --train train.jsonl --eval eval.jsonl --field instruction

# Gate 2: Exact Judge MDE & required prompt budget at observed indecisive rate eta
python sft_audit/sft_audit.py mde --n 144 --eta 0.20 --target-delta 0.05

# Gate 3: Paired exact McNemar test + Wilson 95% CI + representational drift rate
python sft_audit/sft_audit.py mcnemar --results objective_bench_results.json --model-a corr --model-b verified

Repository Contents

Citation

@article{zhang2026resolution,
  author        = {Zhang, Yuyang and Fan, Baosong},
  title         = {The Resolution Blind Spot: How Proxy Metrics and LLM-as-a-Judge Mask Forgetting and Reject Pareto-Superior Models in Low-Resource 7B Fine-Tuning},
  journal       = {arXiv preprint arXiv:2611.37140},
  year          = {2026},
  eprint        = {2611.37140},
  archivePrefix = {arXiv},
  primaryClass  = {cs.AI},
  doi           = {10.48550/arXiv.2611.37140},
  url           = {https://arxiv.org/abs/2611.37140}
}

About

The Resolution Blind Spot: Forensic audit of low-resource 7B QLoRA, LLM-as-a-Judge MDE, RAG retrieval proxy inversion, and sft-audit CLI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages