Manuscript Offprint

arXiv:2608.23816

AQLoRA: A Zero-Search Recipe for Fast Quantized LoRA Fine-Tuning

Md Romyull Islam

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Quantized fine-tuning (QLoRA) saves memory but not time. It dequantizes every 4-bit weight on the fly, so it trains more slowly than fp16 LoRA. We present AQLoRA (Adaptive-Quantization LoRA), a recipe that buys part of that time back. One CPU pass over the weights sets everything, with no search and no calibration data. The pass ranks layers by NF4 reconstruction error and keeps the top-K in fp16 under a memory budget. Those layers skip dequantization, which is where the speed comes from. A quality setting adapts every layer. A speed setting adapts only the top blocks, so the backward pass stops early. The rule reproduces Unsloth's hand-curated dynamic-4bit selection exactly, in seconds, where search-based allocation needs repeated passes over calibration data.

We evaluate on Commonsense-170K across six models and four architecture families, from 1.4B to 14B. The speed setting trains 11.1±2.7%11.1 \pm 2.7\% faster than well-tuned QLoRA and gives up about one accuracy point. It was faster in every one of nine independent timing sessions, at worst by 7%. The quality setting trains 4.8±2.4%4.8 \pm 2.4\% faster. Its accuracy is level with QLoRA on every model and within a point of fp16 LoRA, for 0.2 GiB more memory. These error bars are measured between independent sessions, not within one. Earning them taught us three rules for timing on shared hardware. Fix the measurement duration, not the step count. Measure the noise floor from a duplicated arm, not a nearly identical method. Repeat whole sessions: a floor computed inside one sweep understates the real uncertainty several times over, and the random seed controls almost none of it.

We validate the recipe with controls and report the two that failed. Choosing adapter layers by weight density is no better than random. Choosing protected layers by quantization error is not either. The count of protected layers, not their identity, carries the speed effect.

Code and the raw per-run artifacts: https://github.com/Romyull-Islam/AQLoRA

1 Introduction

Low-rank adaptation (LoRA) (Hu et al., 2022) and its quantized form QLoRA (Dettmers et al., 2023) made large-language-model fine-tuning cheap on memory. A frozen 4-bit NF4 backbone with a small adapter fits a billion-parameter model on one commodity GPU. But cheap on memory is not the same as fast. QLoRA dequantizes every 4-bit weight block back to half precision on each forward and backward pass, and that cost makes it slower than fp16 LoRA. Several studies put NF4 QLoRA at 0.7 to 0.8 times the training throughput of plain LoRA (Ko, 2025; Khaki et al., 2025; Huang et al., 2025). People who quantize to fit a model at all, whether on an older datacenter card, a laptop, or a phone, then pay a speed penalty on top of the memory saving.

Part of that penalty can be bought back. An fp16 layer in an otherwise-quantized model skips dequantization, so every layer kept in fp16 converts a little memory into a little speed. The natural question is which layers to keep, and the sensitivity literature suggests an answer: NF4 error concentrates unevenly across layers, so keep the most damaged ones. We adopt that rule, and we also test it, which turns out to matter. The count of protected layers drives everything we can measure. Our control cannot show the identity of those layers.

doing any work ( §7.2§7.2). The rule survives on different grounds, being deterministic, data-free, and identical to a selection industry already ships by hand. Layer protection itself is already in use. Uncloth's dynamic 4-bit models (Uncloth team, 2024) keep chosen layers in 16-bit to restore QLoRA accuracy, and QEFT (Lee et al., 2024a) keeps sensitive columns in fp16 with custom kernels and reports both quality and speed gains. What is missing is a stated rule, free of calibration data, that runs on the stock HuggingFace and bitsandbytes stack with no custom kernels. Also missing is a comparison against the search-based bit-and-rank allocators (Zhou et al., 2025a; 2026) that define the rest of this space.

AQLoRA fills that gap. One CPU pass over the weights takes a few seconds, with no data and no forward pass. It produces two maps. A precision map keeps the top-K most NF4-damaged layers in fp16 within a memory budget. A placement map adapts every layer for quality, or only the top blocks for speed, so the backward pass stops early. The recipe composes with rank-stabilized scaling (Kalajdzievski, 2023). We apply every generic speed lever (length-grouped batching, a fused optimizer, the attention backend) to all baselines alike, so any gain we measure comes from AQLoRA's own parts and not from tuning.

On Commonsense-170K with the 8-task benchmark, across six models and four architecture families from 1.4B to 14B, AQLoRA's quality setting matches QLoRA everywhere and comes within a point of the fp16 LoRA reference; the same parity holds on GSM8K math reasoning. Accuracy is a parity result, not a win; the gain is speed. We are careful about credit: sensitivity-based protection and early backward stopping have prior work, which we cite; our part is the zero-search precision rule and a speed result that holds where kernel- and FP8-based methods cannot run. We also checked a weight-density rule for which layers to adapt, found it no better than random, and report that. A rank sweep ( r∈{4,8,16,32}r \in \{4, 8, 16, 32\}) confirms the method ordering is not an artifact of one adapter size. It also turns up a failure worth flagging: rsLoRA, the strongest baseline at r=8r=8, collapses to chance accuracy at r=32r=32 under the shared learning rate while its training loss still looks healthy.

References (62)