REFLEX LABS
← Blog

Qwen3.8 thinks 43% less after a 0.00027% weight edit

We made Qwen3.8-27B spend 43% fewer tokens thinking, at the same accuracy, by changing 71,680 of its 26.9 billion weights. We did no training and used no optimizer. Every changed weight was computed by a formula from the model's own activations. The model is released as Qwen3.8-27B-Quickthinker on Hugging Face.

Hand-drawn banner: a long tangled pencil scribble and a short ink arrow lead from the same start to the same answer, titled Qwen3.8-27B-Quickthinker

The work was done by miniml, our in-house research harness, in one night on a single AMD MI300X. We gave it the model, a GPU and one goal: make Qwen3.8-27B think less without getting worse on benchmarks, using weight-space programming instead of training. It framed the problem, built the evaluation, ran the experiments, threw out the ideas that did not hold up, and wrote up the results.

Why thinking length matters

A reasoning model pays for every thought. Each thinking token costs GPU time and adds latency before the answer arrives. Qwen3.8-27B is a strong reasoner, but in thinking mode it keeps checking work it has already got right: “Wait, let me double-check.” “Hmm, maybe I should verify.” On our evaluation set, 4 to 6% of its runs hit the 16,384-token cap and never gave an answer at all.

Cutting that habit makes every answer cheaper and faster. The usual ways to do it are fine-tuning on short traces, reinforcement learning with a length penalty, or a prompt that asks for brevity. We wanted to see how far we could get by editing the weights directly, with no gradient steps.

Results

We scored the edited model once, at the very end, on 450 held-out problems: 150 each from GSM8K, MATH-500 and MMLU-Pro. None of these problems were used to build or choose the edit. Each model ran with 2 sampling seeds, and we compared them problem by problem.

Thinking tokensAccuracy
TaskOriginalEditedChangeOriginalEdited
GSM8K528164−69%0.9800.977
MATH-5001,8971,073−43%0.9630.990
MMLU-Pro3,4292,110−38%0.7970.817
All1,9511,116−42.8%0.9130.928

The cut is significant: 95% confidence interval of −637 to −1,045 tokens per problem. Fewer runs ran out of tokens, 1.6% instead of 3.8%. Excluding the problems where any run was truncated, the cut is even larger, at −50%.

We read the accuracy as the same, not better. The +1.4 points come almost entirely from fewer runs hitting the cap, which count as wrong. On problems where every run finished, accuracy moved by −0.3 points on GSM8K, +0.7 on MATH-500 and 0.0 on MMLU-Pro. With a 32k cap on the 30 hardest validation problems, both models scored the same within noise, and the edited model still used 40% fewer tokens.

Weight-space programming

Training changes a model by showing it examples and letting an optimizer nudge billions of weights. Weight-space programming treats the network more like a program: you read it, find where a behavior lives, and write the change in directly. The edits are small, every one has a formula, and you can explain exactly what changed and why.

The basic move is simple. Run the model on two kinds of input that differ only in the behavior you care about, average its internal activations on each, and take the difference. That difference is a direction in the model's hidden space. Then find a place in the weights where adding that direction has the effect you want, and add it there, permanently.

miniml has a toolkit for this. It can inspect and probe any layer, apply versioned patches and revert them, and score a patch on a cheap proxy before running a real evaluation. Its guardrails enforce the rules programmatically: in this mode the harness blocks optimizers and backpropagation, caps the number of forward passes it may spend on analysis, and locks the held-out test set until the end.

How miniml ran the project

  1. Framed the metric. Mean thinking tokens per problem, with an accuracy guard: any config below 0.87 accuracy is heavily penalized. A run that never closes its thinking counts as wrong.
  2. Split the data. 300 validation problems for choosing between ideas, 450 test problems kept locked until the end, and separate training-split prompts used only to measure directions. The sets do not overlap.
  3. Measured the noise. Three baseline seeds varied by about ±7% in thinking length. Any “win” smaller than that is noise, which mattered: two early single-seed wins of −8% and −13% shrank to almost nothing once more seeds came in.
  4. Searched. 21 experiments in a tree, each one a patch built from saved directions, and about 30 full evaluation runs in vLLM. Promising patches were rerun with more seeds before they counted.
  5. Committed before testing. miniml wrote down its selection rule before touching the test set: accuracy at least the baseline's over 3 seeds, no more truncations than the baseline on MMLU-Pro, and no MMLU-Pro accuracy drop of more than 5 points on finished problems, even at the low end of the confidence interval. It then ran the test once.
  6. Had it reviewed. A separate reviewer agent audited the work twice: no overlap between the problems used to build the edit and the ones used to score it, no training anywhere in the logs, and every number in the report checked against the raw results.

The edit

The final patch has three parts. One does almost all of the work.

1. A conciseness instruction, written into the weights

Qwen3.8 already knows how to think briefly when asked. Add the line “Think efficiently: keep your reasoning brief” to the prompt and it thinks much less. So miniml ran the model on 96 training prompts twice, with and without that line, and took the difference in the average activation at layer 52 over the thinking tokens. That vector is what the instruction does inside the model.

To make the effect permanent, it needed a spot in the weights that is active on every token. It found one: neuron 5,247 in layer 52's MLP fires at about 0.79 on almost every thinking token. Adding the conciseness vector to that neuron's output weights means the model adds it to its own residual stream at every step, as if the instruction were always in the prompt. This is one column of 5,120 weights.

# v = mean layer-52 activation with the instruction − mean without it
# neuron 5247 fires at ~0.79 on every thinking token, so it carries v everywhere
W_down[52][:, 5247] += alpha * v / 0.79      # alpha = 7

2. Fewer hedges

Twelve words open most of the model's second-guessing: Wait, Hmm, Maybe, Actually, Alternatively, Perhaps, Hold, and a few more. miniml lowered their output rows in the final projection along the model's average final hidden state, which works out to a penalty of about 4 logits on each. That is 61,440 weights.

3. A nudge at paragraph breaks

Neuron 7,546 in layer 56 fires only on paragraph breaks. Its output weights got the difference between paragraphs that push the solution forward and paragraphs that reflect on it, so each new paragraph leans toward doing rather than doubting. Another 5,120 weights.

On their own, parts 2 and 3 saved only about 4%, which was not significant: banned from saying “Wait”, the model starts its doubts with “What if” or “But” instead. Stacked under the conciseness edit they add about 7% more, and they slightly reduce runaway traces.

How strong to make it

The conciseness edit has one knob, its strength alpha. Turning it up made the model think less with no loss in accuracy, up to a point.

StrengthThinking tokensChangeAccuracy
Original model2,397–0.890
alpha 21,875−22%0.911
alpha 51,538−36%0.922
alpha 7 shipped1,395−42%0.912
alpha 102,330collapses0.843

Validation set, 300 problems, 3 seeds each (1 seed at alpha 10).

Past 7 there is a cliff. At 10 the terse style turns into counting loops on MMLU-Pro (“257? 258? 259?”), a quarter of those runs never finish, and MMLU-Pro accuracy falls to 0.62. miniml shipped 7 because it passed the pre-registered rule; 5 is the safer setting if robustness matters more than the last 6%.

What did not work

  • Banning hedge words harder. Doubling the penalty to 8 logits stalled at about −8%. The model just found other words.
  • Steering at paragraph breaks alone. On the cheap proxy it halved the probability of a hedge. In real generations it saved 1 to 4%, because the model wrote more “Let's” paragraphs instead.
  • A trigger for “stop thinking now”. The model gives the end-of-thinking token almost zero probability everywhere except the true end, so the decision to stop is made earlier, in the closing sentence. The best linear signal for “should have stopped by now” was too weak to act on without cutting some traces short.
  • The conciseness vector at paragraph breaks only. It did nothing. Applied at every token through the always-on neuron, the same vector is the main result. Where an edit is injected mattered more than how much data built it.

Limits

The prompt still wins slightly. Adding the conciseness line to the prompt cut thinking by 48% on validation, against 42% for the edit. The edit's value is that no prompt changes: every client, every chat template and every agent gets the shorter thinking automatically, at no cost at inference time.

Coverage. We tested math and multiple-choice questions. Coding, agentic and long-context tasks were not part of this study; we are now measuring the edited model on agentic coding.

One model, one setting. The results are for Qwen3.8-27B in thinking mode, with temperature 1.0 and a 16k thinking cap.