Overview
Attune fine-tunes a 7B language model on one person's feedback
during a short session to learn the communication style they
prefer. In the app, the user provides a role and a scenario. For each of seven questions, they see four answers and
pick a favorite and a least favorite. Each selection trains a
LoRA adapter with an online DPO update. The tuned model does not require a style prompt, and against simulated users it was
preferred over the base model in 95% of comparisons.
A training round. All four answers contain the same two facts. They differ only in empathy, directiveness, formality, and depth.
Architecture
Browseradvisor + topic
App server
Name gate and private relaysigned cookie · forwards to the GPU service
Serverless CPU function
Draft the setting7 questions + fact sheets · LLM API
GPU service · one live session per user
↻ Repeats for each of the 7 questions
Draw 4 stylesstyle instructions, for variety only
Write 4 answers7B language model + LoRA adapter
Check factsredraw if a fact-sheet point is missing
Browsermark best + worst
DPO updateon the plain prompt · 5 preference pairs per pick
Measure5 unseen questions · LLM API as judge
Package the adapterzip with a run script
Browserresults · try it · download
Browser
Model I host
Call to an external LLM API
Plain code
Training update. The adapter is updated online,
once per feedback round. Each round has four candidate answers,
each generated under a different style instruction drawn from a
menu. The instructions exist only to make the candidates differ.
Each candidate is scored as an answer to the plain question, with
no style instruction, so the update changes how the model
answers by default. One selection yields five preference pairs:
the favorite over each of the other three, and the two middle
candidates over the least favorite. The objective is DPO with the base
model as the reference. Alternate steps
replay a selection from an earlier round. In use, the tuned model
receives no style instruction.
Content control. Each question has a two-point
fact sheet that every candidate must cover. A candidate that
misses a point is regenerated before it is shown, so a selection
reflects style and not a difference in the advice given.
Results
95% win rate against the base model
99.2% of required facts kept
2.5% malformed outputs, against 8.3% for GRPO
Training runs while the user waits, so the method has to learn
from a small number of selections without breaking the text. Two
methods were evaluated: DPO, the standard objective for
preference pairs, and GRPO, a policy-gradient method that treats
each selection as a reward.
The benchmark uses four simulated users in place of people. Each
is a judge model with fixed style preferences, which provides
seven rounds of feedback. Both methods train on
identical selections, with the same learning rate, steps per
round, and seeds. Each tuned model then answers ten questions
it was not trained on, with no style prompt, and the judge rates
every answer for style and fact retention. Settings were chosen
on one set of runs, and the results below are from 12 runs per
method on a separate set.
After seven rounds
DPO
GRPO
Win rate against the base model
95%
95%
Head to head
52%
48%
Fact retention
99.2%
99.2%
Malformed outputs
2.5%
8.3%
Win rates are per answer, with ties counted as half.
The two methods reach the same style quality at seven rounds.
The difference is in longer sessions: GRPO's text breaks down and
DPO's does not. Attune therefore uses DPO.
Session length. DPO learns faster. It leads at
three rounds (88% against 80%), and its win rate levels off at
95% from six. GRPO's malformed outputs rise from 0%
at five rounds to 8.3% at seven and 23% at ten, while DPO's stay
between 2% and 4% at every length. DPO's fact retention holds at
98% or above through eight rounds and falls to 92% at ten.
Sessions are therefore seven rounds, which balances learning
against output quality.
Experience replay. Both methods reuse earlier
selections, and the effect differs by method. For DPO, replay
leaves the win rate unchanged (95% with, 94% without) and
preserves content: without it, fact retention falls from 99.2% to
96.7%. For GRPO, replay raises the five-round win rate from 85%
to 93% and is also what breaks its text.
The results page. It shows where the tuned model lands on
each of the four style scales, compared with the base model.
Stack
Model
Qwen2.5-7B-Instruct LoRA (r = 16) PyTorch Transformers PEFT
Training
DPO GRPO for comparison
Judging
Gemini 3.8 Flash
Infrastructure
Modal L40S GPU FastAPI
Frontend
React 19 TypeScript Vite 7 Tailwind CSS v4
Trade-offs and limits
Every candidate is held to the same fact sheet so that feedback
measures style alone. The trade-off is that the approach depends
on answers keeping to the fact sheet, which was less reliable
outside advice settings.
In a test with non-advisory scenarios, styles carried over but
facts were covered less reliably. Both points appeared in 62% of answers
written as a student and 84% written as a client, against 90%
written as an advisor. The
app therefore recasts each role as an advisor and declines
scenarios it cannot recast.
The simulated users are played by an LLM and select
consistently. Real preferences are noisier.
Seven rounds is where measured gains level off, not a limit on
what could be learned. By ten rounds DPO starts to drop
facts.
The judge has been spot-checked by hand but not validated
against a labeled set. It is least reliable on depth.
The model learns from answers written under the menu's style
instructions and can inherit their habits, such as empathetic
answers that open the same way.
Answers demonstrate a style. They can be wrong and are not
medical, legal, or financial advice.