On this page

Gemma 4 31B: QASPER QLoRA results

The QASPER adapter passes every registered task and retention gate on the project's custom text-only evaluation. Strict primary Answer F1 is 0.640 against a 0.000 format floor. In the lenient diagnostic, Answer F1 improves from 0.334 to 0.640, with gain interval [0.251, 0.362]. This is a reused cross-family project evaluation, not a fresh held-out study or the full official QASPER benchmark.

The adapter package is public and independently reload-verified; see the public verification receipt. The completed quality result below is separate from that release verification. The recorded demonstration already shows the same saved question used for Qwen, with no live inference.

Format compliance and answer quality

All 403 baseline answers used Markdown code fences. The frozen strict parser rejects that format, giving a strict Answer F1 of zero. That is a format floor, not evidence that the unadapted model cannot answer paper questions. The lenient diagnostic recovers those answers and separates part of the content comparison from format compliance.

Primary subset, 309 questions Unadapted base Development-selected prompt Adapter
Strict Answer F1, registered primary metric 0.000 0.000 0.640
Lenient Answer F1, diagnostic 0.334 0.334 0.640
Lenient Evidence F1, diagnostic 0.723 0.723 0.717

The three fixed prompts tied at strict development F1 zero on 35 questions. The registered tie rule selected the base prompt; the prompted final arm is therefore an alias of the baseline, with no duplicate final generation. Three frozen prompts do not establish the best achievable Gemma-specific prompting baseline.

The strict Answer F1 gain is 0.640, with 95% paired paper-bootstrap CI [0.588, 0.692]. The lenient gain is 0.306, CI [0.251, 0.362]. Both use 10,000 resamples of the 109 papers carrying the 309 primary questions. The lenient comparison is descriptive and cannot replace a failed registered gate. Here the registered gates passed. Evidence superiority was not established. On the 267-question evidence-strict subset, lenient Evidence F1 is 0.734 for the baseline and 0.747 for the adapter; the primary-subset evidence comparison above is slightly lower for the adapter. Answers became much shorter: the median non-abstaining answer length fell from 35 to 3 words. Overlap gains can reflect concision and reference matching; improved underlying comprehension was not established.

The adapter produced 5 strict-invalid answers out of 403 (1.24%, below the registered 2% limit). It marked 4 of 293 answerable primary questions unanswerable (1.37%, within the registered increase limit). No final QASPER answer reached the 512-token cap. These counts, parser definitions and intervals come from the canonical result and were independently reproduced in the outcome audit.

Retention checks

Fixed task Base correct Adapter correct Allowed net loss Gate
General multiple choice, 128 items 108 105 5 Pass
GSM8K numeric fallback, 128 items 126 126 5 Pass
IFEval strict, 32 items 26 26 3 Pass

These are fixed point-estimate regression limits on small samples, not non-inferiority tests or proof that general ability is unchanged. GSM8K strict format diagnostics are retained in the original score artifacts; the registered gate uses numeric fallback, matching the earlier project method.

Model and training

The base is Google's instruction-tuned gemma-4-31B-it, revision 842da3794eaa0b77d5f08bae87a17459d91ff475. Only its text decoder is loaded; vision components are excluded. The shared LoRA/QLoRA background explains the low-rank update and frozen quantized base.

Setting Executed study
Base representation On-load NF4 with double quantization and BF16 compute
Train / development Same 482 / 101 selected examples as the Qwen task study
Adaptation 410 decoder projections; rank 16, alpha 32, dropout 0.05; 122,429,440 trainable LoRA parameters
Optimization One epoch, 61 steps; microbatch 1, accumulation 8, final group 2; AdamW, learning rate 5e-5, weight decay 0.01
Checkpoint selection Lowest token-weighted development NLL at steps 21 / 41 / 61; selected 61
Precision PEFT FP32 preparation and Adam states, outer BF16 autocast, FP32 cross-entropy
Runtime SDPA, one GPU per job, batch 1, greedy cached generation, repetition penalty 1.0
Boundaries Native no-thinking prefix, response-only supervision, one terminal turn token 106; generation stops on 1 or 106
Context and answer cap At most 8,192 total tokens; QASPER generation cap 512; no truncation
Software Torch 2.12.0+cu130, Transformers 5.23.0, PEFT 0.21.0, bitsandbytes 0.49.2, Accelerate 1.12.0

Training used 4.84 GPU-hours. The complete job ledger sums to 15.60 GPU-hours, with about 8.96 hours wall time using two RTX A6000 GPUs. Times include model loads and coexistence with the recorded small idle CUDA context from another project; they are not exclusive-device benchmarks. The timing ledger binds each completed job's elapsed-time record. Wall time ends at the original analysis stop; the later CPU-only reporting correction is excluded.

The earlier feasibility preflight used dropout zero and no outer autocast. Its synthetic memory/timing observations describe that earlier profile. The actual study's no-update longest-row check used 7,044 tokens, took 49.12 seconds and had all 820 adapter gradients finite; peak allocation/reservation was 36.97 / 39.31 decimal GB, before Adam moments were allocated. The separate steady-state preflight measured those moments.

Short native full/compact forward logits matched exactly. Shared-logit loss and indexing-gradient checks also matched. Native BF16 full-versus-compact parameter gradients differed, while repeating the compact path gave identical gradients. That diagnostic is consistent with shape-dependent BF16 rounding; no native gradient-equivalence claim is made. The registered plan and source/mechanics review retain the failed early check and the validation redesign before training.

Use the adapter

The frozen adapter card provides the exact environment pins, eight-file Google-base download and numbered-paragraph formatter. Use adapter revision b3ca7a48aa6a95245c5778e2c2473d8129f58bbb and release-manifest SHA256 4e06c0de10fd97b262bd032f34bc6481fa0d27fbd138b301befbc05e2cb8bdac, bound by the public verification receipt.

From the downloaded adapter directory, keep ../question.json outside the reviewed bundle. Its paragraphs and question fields use the card's exact frozen formatter; supply only the intended context paragraphs in display order.

CUDA_VISIBLE_DEVICES=0 HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 \
python -B -m runtime.example --bundle . --base ../gemma-base \
  --manifest-sha256 4e06c0de10fd97b262bd032f34bc6481fa0d27fbd138b301befbc05e2cb8bdac \
  --question-json ../question.json

Independent package verification used a fresh anonymous adapter download, exact reload of all 820 adapter tensors, and 11 logit/token cells including 7 full saved-row token-and-decoded-output replays. The base was the reused, content-hash-verified Google cache at 842da3794eaa0b77d5f08bae87a17459d91ff475; this was not a fresh full-base download. These are functional checks, not a new quality experiment. Use the bundled helper rather than generic PEFT automatic loading to preserve the studied text-only mapping and FP32 preparation. The package does not retrieve papers.

Release evidence covers criteria, source, card usability, local reload and public verification.

Evidence, correction and scope

The original registration preceded training and generation. All GPU jobs completed on 2026-11-20. The first final analysis stopped because it expected an outdated multiple-choice method label, although both retention runs correctly included Gemma's native BOS token. The registered CPU-only correction changed that expected description only; every source, job output, statistical method and threshold from the study remains preserved. Training and generation were not repeated. The amendment review and final independent audit bind the corrected report and original failure evidence.

The primary subset contains 309 questions with complete text, from the 403 sampled questions; 267 form the evidence-strict subset. These questions were previously used in Qwen evaluations. Public papers may be in pretraining. There is one model configuration and seed, and only 16 primary questions are unanswerable. Answer F1 rewards reference overlap and concision; supported extra details can lower it. The selected examples are illustrations, not representative samples or factuality validation. This study supports a within-Gemma adaptation result under its registered method, not a broad Gemma-versus-Qwen ranking.

The project owner chose to finish the Gemma showcase with this QASPER study and drop Gemma PRL adaptation. No Gemma PRL study was started.