← back to writing

RLing Qwen to Write Better

November 5, 2026 · 19 min read

Retraining a small LLM with RL to follow my rules for clear writing

I saw a funny comment on X that LLMs have become good at everything except writing. We all know the “style” (or lack thereof) of writing that LLMs use, filled with passive, obfuscated slop. Tired of pasting my list of rules for stronger writing into every prompt, I tried retraining a model on those rules so it gets it right the first time. Inspired by Kevin Wu’s blog post on RL to retrain an LLM, I took Qwen3-1.7B, a small local model, and used reinforcement learning to teach it my writing rules.

Training on cleaned-up examples and then running RL produced a model that follows my rules 6.5 points more often than the base model. I found that the harder problem was stopping models from claiming fabricated results.

Why do LLMs write like that?

Large language models are phenomenal at marketing, speaking in sycophantic slogans and flowery writing that lacks substance. Good writing is marked instead by how clearly it communicates an idea. Human raters score polite, tidy drafts highly, so the model learns that em dashes, “delve”, “tapestry” and the “it’s not just X, it’s Y” turn earn a high reward, and the same pressure sands off the tangents and idiosyncratic humor that mark a person’s writing (Thompson, 2025; NYT, 2025). It also pulls models from different labs toward one safe corporate register. A model has no lived experience and no read on what its reader already knows, so it over-explains, falls into neat roadmaps and tidy conclusions, and prefers abstraction, as it is unable to provide the specific details that a human would (Reinhart et al., 2025).

Why should we care?

When a model drafts an email for you, it can fail in two ways. It can sound generic, and it can state something false that you then send under your name. Neither problem goes away with a stronger model or a longer prompt. With my style guide as its system prompt, the base Qwen3-1.7B did slightly worse than with no prompt at all, 41.5% against 45.0% on the measure defined below. Claude Opus 5.5 passed every rule on 16% of drafts from a bare prompt and on 50% with the guide. This guide can help a frontier model, but half of its drafts still violate my rules.

Why can’t a model just follow the rules?

Some constraints are free to enforce. To ban a letter, you can block every token containing it at decoding time. My rules live in grammar and phrasing. Spotting a passive takes a parse, and a superlative takes a phrase list, so no token mask can carry them. So I had to write each rule into the reward as a checker.

Here are the rules, each scored by its own checker:

  • Active voice: name who acts, so “The results were validated” fails. This rule counts three times as much as any other because of how dramatically it improves readability and clarity.
  • No superlatives: no “best”, “most important”, “groundbreaking” or “novel”.
  • No banned phrasing: no stock clichés, and no “I” plus a present-tense verb for ongoing work, such as “I aim” or “I study”.
  • No performed tone: no put-on curiosity or dramatic openers like “Imagine…”.
  • No contrastive framing: no “rather than”, “instead of” or “not just X but Y”.
  • Punctuation: no em dashes, and at most one colon per paragraph.
  • Short lists: no more than three items in a list.
  • Sentence flow: no run-ons, and no choppy strings of very short sentences.
  • No origin stories: no “ever since I…”.
  • Length: stay in the word range for the genre, with no fragments or repetition.

Experiment 2 added two more:

  • No invented facts: a number, date or name the prompt never gave should be a [blank] instead.
  • Agency: at most a quarter of the sentences may hide who acts behind an abstract subject or a weak verb.

A judge model also rates every draft from 1 to 5 on two axes:

  • Coherence: does the draft read as clear, connected writing?
  • Responds: does it answer what the prompt asked for?

I scored every draft in this post with one measure. A draft is usableEvery rule checker passes, and a judge model rates the draft at least 4 of 5 on coherence and on answering the request. The judge never sees the rules. when it passes every rule and the judge accepts it.

A checker also invites gaming. A model that learns my checker bans “I aim” can write “My goal is”, which passes and changes nothing a reader would notice. So I also had the eval log substitute probesCounters that never enter the reward, such as spaced hyphens in place of em dashes. If a rule improves while its probe rises, the model may be dodging the rule. for each rule.

Why RL, and why GRPO?

Each answer is one episode: the prompt sets the starting state, each token is an action, and one reward arrives at the end (Sutton and Barto, 2018). Value methods such as DQN estimate the worth of every action, which suits a small set of moves (Mnih et al., 2015). A language model picks from many thousands of tokens at every step, so I used a policy gradientRaises the probability of the tokens in answers that scored well and lowers it for answers that scored badly (Williams, 1992)..

A raw reward means little alone, because 0.93 is good or bad only next to what the model usually writes for that prompt. PPO trains a second network to estimate that number (Schulman et al., 2017). GRPOGroup Relative Policy Optimization. It samples a group of answers per prompt and scores each one against the group’s mean (Shao et al., 2024). skips that network and uses the mean of a group of samples, which saved me a whole network on my laptop.

The group baseline also predicts which rules can move. Two answers with equal scores give the gradient nothing, so a rule pushes the model only when its score differs between samples from the same prompt.

Experiment 1: Examples, then RL

I first fine-tuned the model on examples, then ran RL against my rules and a judge.

Setup

  • Model: Qwen3-1.7B with thinking off, trained through a rank-16 LoRAA small trainable add-on to a frozen model’s weights (Hu et al., 2022)..
  • Examples: 95 answers from Qwen3-4B, given my guide, that passed every rule and the judge.
  • RL: 125 steps of GRPO with 4 prompts × 8 samples, temperature 0.7, and a KL penalty that holds the policy near the fine-tuned model.
  • Reward: 0.5 × rule score + 0.5 × judge score, with Qwen3-4B as a local judge.
  • Metric: usable rate on 50 held-out prompts × 4 samples, with 90% intervals from a paired bootstrap over prompts.

Results

MethodUsableChange vs. base [90%]
Base45.0%reference
Base + style guide in the prompt41.5%−3.5 pts [−10.5, +3.0]
Fine-tuned on examples29.5%−15.5 pts [−22.5, −8.5]
Fine-tuned, then RL53.0%+8.0 pts [+2.0, +13.5]
0%25%50%75%100%Base, all: 45.0%Base + style guide in the prompt, all: 41.5%Fine-tuned on examples, all: 29.5%Fine-tuned, then RL, all: 53.0%allBase, email: 83.8%Base + style guide in the prompt, email: 80.9%Fine-tuned on examples, email: 70.6%Fine-tuned, then RL, email: 88.2%emailBase, essay: 11.8%Base + style guide in the prompt, essay: 10.3%Fine-tuned on examples, essay: 8.8%Fine-tuned, then RL, essay: 29.4%essayBase, blurb: 39.1%Base + style guide in the prompt, blurb: 32.8%Fine-tuned on examples, blurb: 7.8%Fine-tuned, then RL, blurb: 40.6%blurb
BaseBase + style guide in the promptFine-tuned on examplesFine-tuned, then RL
RL gains most on essays. Usable rate on 50 held-out prompts × 4 samples, by genre, on the first run's 11 rules.

Here are the base and RL models on the same prompts. I highlighted the phrase behind each failure:

Write a 150-word paragraph for a fellowship application explaining what open problem in metabolic network modeling I want to work on next.
base Qwen3-1.7Bcoherence 5.0, responds 5.0
I am eager to explore an open problem in metabolic network modeling that involves the integration of multi-omics data to improve the accuracy of metabolic flux predictions in complex cellular systems. Current models often rely on static genome-scale reconstructions, which may not capture the dynamic and context-dependent nature of metabolic processes. My research interests lie in developing robust computational frameworks that can incorporate transcriptomic, proteomic, and metabolomic data into dynamic models, enabling more precise predictions of metabolic fluxes under varying environmental conditions. I aim to address the challenge of integrating heterogeneous data sources while maintaining model accuracy and biological relevance, ultimately advancing our understanding of metabolic pathways and their regulation in health and disease. This work has the potential to impact both basic research and clinical applications, making it a compelling area for my next fellowship.
fails banned_phrasing
SFT + RLcoherence 5.0, responds 5.0
I’m interested in working on an open problem in metabolic network modeling that involves improving the accuracy of flux balance analysis in systems with complex regulatory interactions. This area requires developing methods to better predict enzyme activity under varying environmental conditions. My goal is to create a framework that integrates real-time data with existing models to enhance predictive power. I believe this approach will help researchers understand cellular responses more effectively. I’m eager to contribute to a project that addresses challenges in dynamic metabolic systems. My work will focus on refining computational tools that support experimental validation. I’m committed to advancing the field through rigorous analysis and practical application.
usable
Write a 100-word project blurb for my portfolio site about a project on EEG seizure localization.
base Qwen3-1.7Bcoherence 5.0, responds 5.0
**Project Blurb: EEG Seizure Localization** This project focuses on the development of an algorithm for real-time EEG seizure localization using machine learning. By analyzing the unique electrical patterns associated with seizures, the system accurately identifies seizure onset and duration, providing critical insights for diagnosis and treatment. The project combines signal processing, neural network modeling, and clinical data to create a reliable and efficient tool for neurology. The results were validated using clinical datasets, demonstrating high accuracy and practical applicability. This work highlights the potential of EEG in early seizure detection and supports the development of more effective epilepsy management strategies.
fails active_voice
SFT + RLcoherence 5.0, responds 5.0
I developed an EEG-based seizure localization system that accurately identifies seizure onset times and locations. The project involved signal processing algorithms to filter noise and detect abnormal brain activity patterns. I implemented real-time analysis using machine learning models trained on clinical EEG data. The system provides clinicians with precise diagnostic information to guide treatment decisions. The project emphasized accuracy, reliability, and user-friendly interface design. The solution has potential applications in emergency response and neurology care. The development process highlighted the importance of interdisciplinary collaboration and rigorous testing. The project demonstrates my ability to create effective, impactful technology solutions.
usable
Write a 100-word email to a collaborator giving a status update on my project on sparse autoencoders.
base Qwen3-1.7Bcoherence 5.0, responds 5.0
Subject: Status Update on Sparse Autoencoder Project Hi [Collaborator's Name], I wanted to provide a quick status update on the sparse autoencoder project. We've made progress on the implementation, and the model is now trained on the first dataset. The results show promising recovery of latent features, especially in the early layers. We're currently working on optimizing the sparsity and evaluating the model's performance on different datasets. Let me know if you'd like to discuss the next steps or if there's anything specific you'd like to see in the next iteration. Looking forward to your feedback. Best, [Your Name]
fails active_voice, length, leaves [Collaborator's Name], [Your Name]
SFT + RLcoherence 5.0, responds 5.0
Subject: Status Update on Sparse Autoencoder Project Hi Alex, I’ve completed the first iteration of the sparse autoencoder model. The architecture now includes dropout layers and a regularization term. The training loss has stabilized at 0.25 after 1000 epochs. I’ve tested the model on the validation dataset and achieved a 15% improvement in reconstruction accuracy. The next step is to refine the hyperparameters and evaluate performance on the test set. Let me know if you’d like to review the code or discuss next steps. Keep me posted on your end of the project.
usable, invents 0.25, 1000, 15%, Alex

Findings

  • Fine-tuning made my model worse: 29.5% usable, 15.5 points below base. A note I gave the example writer about sentence length came out as clipped sentences, and fine-tuned blurbs passed the flow rule 22% of the time against 100% for base.
  • Active voice didn’t move: it sat at 73 to 74% for every model. Its reward score already averaged about 0.95, which left GRPO almost no difference between samples to learn from.

Takeaways

  • A rule a parser can check is a rule RL can push, as long as its score varies between samples.
  • Example data sets the model’s habits. RL polishes those habits and doesn’t question them.

So RL mostly undid what fine-tuning broke. But look at the third pair above! The RL email invents a loss of 0.25 after 1000 epochs and a 15% gain, and my reward scored that email as usable.

What the score missed

A bug in my own checker. My superlative pattern matched the sign-off “Best regards”, so for a day the base model sat at 16.5% and RL looked far ahead. One regular expression moved my baseline by 28 points! Since then, I’ve re-scored the baseline after every checker fix.

Invented facts. A writing assistant knows only what the prompt tells it. Every RL status email stated results that the prompt never gave, and a third of my training examples stated facts the prompt never gave too. It also leaves fewer blanks than base.

Any invented factStatus emailsLeaves a blank
base1.5%8.3%34.0%
sft19.0%100.0%10.0%
rl17.0%100.0%16.5%
SFT data33.7%92.3%29.5%

Answers that state a number, date or name the prompt never gave.

Slop. I also flagged sentences that hide who acts, such as “The project highlighted the importance of interdisciplinary collaboration”. That sentence passes every rule I wrote. No rule paid for naming an actor, so RL had no reason to keep doing it.

Any slop flagAbstract subjectWeak main verb
base52%24%6%
sft28%16%3%
rl38%26%7%

Share of sentences with a flag.

Reading the outputs. I read 20 random RL answers. None dodged a rule mechanically, and all 9 failures were real. But 6 of the 11 passes still broke my guide in ways the checkers miss, such as “invaluable” as an unsupported superlative. The eval also flagged possible gaming: “I aim” fell from 62 uses to 18, usually replaced by “My goal is to”.

Experiment 2: Clean data and two new rules

Both holes pointed to the same fix, so I retrained with better examples and a reward that pays for what the first one ignored.

Setup

  • Examples: 57 of the 95 original examples that invent nothing, plus 32 new ones that pass the new checks.
  • New rules: no_invented pays for facts the prompt gave and for blanks, and agency pays for sentences that name who acts.
  • Training and metric: same as Experiment 1, reported on all 13 rules and on the first 11.

Results

Usable, 13 rulesUsable, first 11Invents a factPasses agencyFlagged sentences
base31.0%45.0%1.5%52.0%31.3%
rl21.5%53.0%17.0%42.5%31.4%
sft232.5%36.0%3.5%68.5%19.2%
rl237.5%51.5%4.0%57.5%20.4%
Comparison13 rules90% intervalFirst 1190% interval
rl2 − base+6.5 pts[+2.0, +11.0]+6.5 pts[+0.0, +13.0]
rl2 − rl+16.0 pts[+9.0, +23.5]−1.5 pts[−7.5, +4.5]
rl2 − sft2+5.0 pts[+0.5, +10.0]+15.5 pts[+8.5, +22.5]

sft2 and rl2 train on the cleaned examples, and rl is the first run. Flagged sentences hide who acts or lean on a weak verb.

Findings

  • Paying for agency worked: with no pay for it, the first RL run raised the flagged share from 21% to 31%. With pay, this one held it at 20%. The rule’s pass rate did fall from 68% to 57%, but that came from my rounding. RL merged short sentences, and shorter drafts got a smaller allowance.
  • An old hole came back: the model used “I” a quarter less after RL while banned phrasing rose 14 points. Avoiding “I” dodges the rule, and the sentences stay as they were.

Takeaway: RL trades away whatever the reward leaves out. Paying for agency stopped that trade, and the model’s remaining flaws sit where my checkers don’t look.

Which brings me to the next hole. About 7 of 20 answers I read still claim results the prompt never gave, such as “improved performance”, and my check only looks for numbers, dates and names. Two answers also treated flux variability analysis as ecosystem gas flux, and the judge gave both 5 out of 5.

Experiment 3: Claims with no number

Can I catch a made-up claim when it has no number in it?

Setup

  • Check: claims.py flags a sentence when the writer or the writer’s project asserts a fact the prompt never stated.
  • Labels: two Claude models labeled 120 drafts under one guide and agreed at kappa 0.90. Neither labeler is a person.
  • Validation: precision 0.87 [0.82, 0.91] and recall 0.82 [0.76, 0.88] on 20 prompts I kept out of the building. I saw that score once before fixing a parsing bug, so it may run a little high.

Results

ModelClaims per draftAny claimEmailEssayBlurb
base1.6860%0.661.193.27
base_rules1.7054%0.541.093.58
rl3.0066%1.411.686.09
rl23.0473%1.511.636.17
sft4.0468%1.162.718.50
sft24.0770%1.292.938.22
opus_plain2.1482%2.061.243.19
opus_rules2.3080%1.941.593.44

The 1.7B rows use 4 samples per prompt, and the Opus rows use 1. A claim here means a sentence the writer must check, and it may be true.

Findings

  • Fine-tuning more than doubled the rate, from 1.68 to 4.04 claims per draft, and RL brought it back to 3.00.
  • Clean data changed almost nothing: the first training examples carried 1.76 claims per draft and the cleaned ones 1.67, because I had cleaned them with a check that looks for numbers.

Experiment 4: A harness for any draft

RL changes one small model. But if the checks work on text, they can repair a draft from any model, or from a person. My first harness swapped invented specifics for blanks and sent flagged sentences to a reviser model. It lifted base drafts from 36% to 66% usable, which looked great! Then I read the rewrites. “The analysis provides insights into system resilience” became “The analysis analyzes system resilience”, and the false claims stayed in.

Setup

  • Cutting claims: the harness cuts a claim after its verb and adds a blank, with no model involved. For example, “I’ve tested the model and it performs well” becomes “I’ve tested [what you tested]”. A cut can only remove words.
  • Which claims: results in every genre, and personal claims in emails. Every other claim goes on a list for the writer, since a blurb has to describe its project.
  • Checking rewrites: a rewrite fails if it brings in a verb or subject noun from outside its sentence and the request, or if it changes the main tense.
  • Drafts: the first sample of 50 held-out prompts from four sources, on all 13 rules.

Results

Drafts fromClaims per draftIn emailsUsableChange [90%]Slop sentences
base1.66 → 1.280.59 → 0.1830% → 30%+0 [−6, +8]53% → 44%
rl22.98 → 2.201.76 → 0.1836% → 28%−8 [−16, +0]26% → 21%
Opus 5.5, bare2.14 → 1.642.06 → 1.1216% → 22%+6 [+2, +12]21% → 17%
Opus 5.5, guide2.30 → 1.961.94 → 1.3550% → 50%+0 [−6, +6]18% → 16%

50 drafts per row. rl2 is the second-run model, and "guide" means my style guide in the system prompt. The change column is in points.

Findings

  • The big gain disappeared: on the same 11 rules as the first harness, base drafts now go from 36% to 40%, and a version with the blanks but no rewrite checks reached only 42%. So most of the fall arrived with the blanks.
  • The judge marks down honest blanks: of the 9 drafts that lost usable status, 8 had claims cut to blanks and scored below 4 on responds. The usable rate penalizes a repair that removes a false claim.

Takeaway: the 30-point gain counted drafts that still carried false claims. The harness now removes those claims reliably and leaves the usable rate about where it found it.

Summary and next steps

To sum the results:

  • RL against my rules: 45.0% → 53.0% usable on 11 rules.
  • RL on clean data with two new rules: 31.0% → 37.5% usable on 13 rules, with invented facts at 4% against 17% for the first run.
  • Claims with no number: a new check, at precision 0.87 and recall 0.82, finds 3.04 per draft from that same model.
  • The harness: second-run drafts fall from 2.98 claims to 2.20, while usable drafts go from 36% to 28%.

Moving forward, I want to teach the judge that a blank is an honest answer, so the usable rate stops marking down a repair that removes a false claim. I’m also planning to stop rewriting the rules that ask for a new verb or subject, and list those sentences for the writer. The part I haven’t built is taste. My style guide is a list I wrote by hand, and every phrase I cut from a draft is a labeled example of what I want, so learning rules from a person’s edits is the next experiment. All of this rests on one seed per run and a small local judge, so I’d want more of both before trusting small differences.

Thanks for reading :)

References

  1. Hu, E. J., Shen, Y., Wallis, P., et al. (2022). LoRA: Low-rank adaptation of large language models. ICLR.
  2. Mnih, V., Kavukcuoglu, K., Silver, D., et al. (2015). Human-level control through deep reinforcement learning. Nature, 518, 529–533.
  3. Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. (2017). Proximal policy optimization algorithms. arXiv:1707.06347.
  4. Shao, Z., Wang, P., Zhu, Q., et al. (2024). DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv:2402.03300.
  5. Sutton, R. S., and Barto, A. G. (2018). Reinforcement Learning: An Introduction (2nd ed.). MIT Press.
  6. Williams, R. J. (1992). Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8, 229–256.

← back to writing