+++ Meet us at SCCON in Berlin, 13–15 October +++ Experience Kolibri, our new sovereign model, live in action for the public sector +++ Hall 26A, Booth 126 +++

Aleph Alpha
Abstract red neural network visualization on a light background
Research

Selen Erkan

Soft-Prompt Tuning for Fair and Efficient LLM Benchmark Evaluation

TL;DR

The LLM Evaluation Problem and Soft-Prompt Tuning as a Solution

Problem & proposed approach: a practical example

model
question · GSM8K

Mimi picked up 2 dozen seashells on the beach. Kyle found twice as many shells as Mimi and put them in his pocket. Leigh grabbed one-third of the shells that Kyle found. How many seashells did Leigh have?

expected answer format: #### 16
model output
2 dozen seashells is 2 x 12 = 24 seashells. Kyle found 24 x 2 = 48 seashells. Leigh had 48 / 3 = 16 seashells.correct · not captured
Question: Mimi picked up 2 dozen seashells on the beach. Kyle found twice as many shells as Mimi and put them in his pocket. Leigh grabbed one-third of the shells that Kyle found. How many seashells did Leigh have?
Answer: 8wrong answer
Explanation: 2 dozen seashells is 2 x 12 = 24 seashells. Kyle found 24 x 2 = 48 seashells. Leigh had 48 / 3 = 16 seashells.
Question: Mimi picked up 2 dozen seashells...
full ground truth
Mimi has 2 x 12 = <<2*12=24>>24 sea shells.
Kyle has 24 x 2 = <<24*2=48>>48 sea shells.
Leigh has 48 / 3 = <<48/3=16>>16 sea shells.
#### 16
score 0/1

Although the base model initially calculates the correct answer (16), it fails to provide the answer in the expected format and terminate. Instead, it gets stuck in a loop of re-asking itself the prompt, generating incorrect intermediate answers even though the correct number is present in its underlying reasoning.

What is soft-prompt tuning?

Z = [ S ; E(X) ]input to layer 1S: 10 trainable vectorsMimipickedup…E(X) — frozen token embeddings
trainable params40,960
total params (7B)7,000,000,000
share of a 7B model0.0006%
Soft-prompts live in embedding space. The input to the first layer is Z = [S ; E(X)]: L trainable vectors S (red) prepended to the frozen token embeddings E(X) (grey). Only S is optimised.

Soft-prompt tuning maximizes format following and does not show additional knowledge gains

Closed-ended (multiple choice)
knowledge (what the model knows)format-following (can the model say the answer in correct structure)Zero-Shot Format-Following BaselineFew-Shot Format-Following Baseline
step80
format-following99%
knowledge64%
zero-shot10%
few-shot30%
All results are aggregated across 3 closed-ended & 4 open-ended datasets, 7 models and 3 seeds. Knowledge (green) stays flat while format-following (red) climbs to ~100% for both base and post-trained models.

Soft-prompt-tuned base models strongly predict post-trained model rankings

Click a ranking method to compare
Zero-shot (base)ground truth (post-trained)Qwen3-4BLlama-3.1-8BMinistral-3BOLMo-3-7BQwen3-8BLlama-3.2-1BMinistral-14BMinistral-14BLlama-3.1-8BQwen3-8BMinistral-3BQwen3-4BOLMo-3-7BLlama-3.2-1B
swaps to match ground truth11 / 21

Badly scrambled (~11 swaps): with scores near zero on most datasets, the ranking is noise — Ministral-14B drops to last.

Ranking alignment. Lines connect each base-model ranking to the ground-truth post-trained ranking; crossings (amber) are swaps. Soft-prompt tuning needs the fewest number of swaps.
0510152025↑ accuracy gap (pts)Zero-shotFew-shotSoft-prompt (ours)

Smaller is better — the gap is how far the base model sits from its post-trained counterpart in task accuracy. Only soft-prompt tuning closes it.

Base vs. post-trained accuracy gap. Average absolute task-accuracy gap between each base model and its post-trained counterpart, aggregated over 7 datasets and 3 seeds. Soft-prompt tuning (red) shrinks the gap to just a few points.

The takeaway

More blog posts