Qwen2.5-3B-HTR
Outputs are synthetic reconstructions. They are a model's estimate of pre-2018-style scientific prose given an LLM rewrite. They are not the original text and not evidence of human authorship or of AI use. Do not use this model for AI-text detection, authorship attribution, grading, or academic-integrity decisions, and do not present its output as human-written.
Part of UQO Working Paper WP-AI-0002, "Human Text Reconstruction: Learning the Inverse of LLM-Induced Transformations in Scientific Writing"
(Simon-Pierre Boucher, Université du Québec en Outaouais, 2026). Try it at https://htr.spboucher.ai (model id qwen2.5-3b-htr).
| Field | Value |
|---|---|
| Family | hf-causal (pretrained backbone fine-tuned on the HTR pairs (STRAP-style inverse paraphrase)) |
| Parameters | 3,085,938,688 |
| Base model | Qwen/Qwen2.5-3B |
| Speed (Apple M4 Pro GPU, greedy) | ≈3–5 s per paragraph (greedy, bf16, Apple GPU) |
| Exported | 2026-11-11 |
What it does
Given a paragraph of scientific prose that a large language model has rewritten, the model produces a passage closer to the
register of the pre-2018 human original: it reverses part of the LLM's lexical and stylistic transformation while keeping numbers,
citations (as [[C1]]/⟦C1⟧ placeholders), equations and URLs unchanged. Gains are measured against the identity baseline
(returning the input unchanged), which is itself a strong baseline because reconstruction from a paraphrase is non-identifiable.
Results (paired differences vs identity, chrF++, ± 1.96 SE)
| Split | Δ chrF++ vs identity (B0) |
|---|---|
| Validation (3 000 pairs) | +2.42 ± 0.13 |
| Test (15 649 pairs) — exploratory | +2.27 ± 0.06 |
| Held-out disciplines (physics, earth sciences; 2 493) | +2.05 ± 0.13 |
| Held-out period (books < 1900; 2 574) | +1.91 ± 0.14 |
Preservation on the test split: number recall 0.998, placeholder (citation/equation/URL) exactness 0.999. Pangram 4.1 detector sensitivity (54 test passages; input rewrites 46 % flagged): 49/54 labelled Human, mean AI-likelihood 0.0257. This measures one commercial detector's behaviour on a 54-passage sample. A low AI-likelihood is not evidence of human authorship, and HTR must not be used to evade AI-text detection or for integrity decisions.
Training data
Supervised fine-tuning on the same 72 698 validated Haiku rewrite → original pairs (Medium stage of WP-AI-0002, same document-safe splits; loss on the original only), 6 000 steps of effective batch 16 on one H100, best validation CE 0.701; placeholders spelled [[C1]]. Weights stored in bfloat16. The originals are rights-verified scientific passages published before 2018 (PMC Open Access, CC BY economics and finance journals, arXiv, public-domain books, NCBI Bookshelf, OpenStax); the rewrites were produced by Claude Haiku 5.5 (Anthropic) with five prompt variants. The pairs are not released. Caveat (pretrained backbone): its pretraining corpus may contain pre-2018 scientific text; the paper's memorisation audits cover only the HTR training pairs.
How to use
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("spboucher04/qwen2.5-3b-htr"); model = AutoModelForCausalLM.from_pretrained("spboucher04/qwen2.5-3b-htr", dtype="bfloat16")
prompt = ("Below is a passage of scientific prose that was rewritten by a language model. Reconstruct the original passage as the "
"human author wrote it before 2018, keeping every number, citation placeholder and fact unchanged.\n\n"
"<disc:economics> <era:2010s> <role:results> <src:local>\n### Rewritten passage:\n" + rewritten_passage + "\n\n### Original passage:\n")
enc = tok(prompt, return_tensors="pt", add_special_tokens=False)
out = model.generate(**enc, max_new_tokens=768, do_sample=False)
print(tok.decode(out[0, enc.input_ids.shape[1]:], skip_special_tokens=True).split("\n### ")[0])
Limitations and intended use
- Research on how LLM rewriting transforms scientific prose, stylometric analysis, benchmarking inverse-paraphrase models, and drafting suggestions that must be checked by the author. Not for AI-text detection, authorship attribution or integrity decisions.
- The model can change meaning; the inference code returns warnings when numbers, citations, negations or hedges differ from the input.
- Trained on English scientific prose of 60–400 words; other genres and languages are out of scope.
- Pretrained backbone: its pretraining corpus may contain pre-2018 scientific text; memorisation controls cover only the HTR training pairs (see the paper's threats-to-validity section).
- Highest number and placeholder fidelity of all systems (99.8 % / 99.9 % on the test split); second-best lexical gain after Flan-T5-XL (exploratory system LLM_qwen2.5-3b of the paper).
- Decoder-only model: the rewritten passage is given in a prompt and the reconstruction is generated after it; greedy decoding only.
Licence
Weights: Qwen Research Licence (inherited from Qwen2.5-3B) and CC BY-NC 4.0 — non-commercial research use (the training pairs include CC BY-NC sources and LLM outputs). Base model: Qwen/Qwen2.5-3B under its own licence.
Citation
@techreport{boucher2026htr,
title = {Human Text Reconstruction: Learning the Inverse of LLM-Induced Transformations in Scientific Writing},
author = {Boucher, Simon-Pierre},
institution = {Université du Québec en Outaouais},
series = {UQO Working Papers}, number = {AI-0002}, year = {2026}
}