加载中…
加载中…
Fine-tuned BART-large (facebook/bart-large) for AI → Human rewriting (“humanization”). This model is designed for constrained rewriting: preserve meaning while shifting style toward human-authored text.
humanize: {ai_text} → {human_text}“Rewriting the Machine: Encoder-Decoder vs. Decoder-Only Transformers for AI-to-Human Text Style Transfer”
Authors: Utsav Paneru et al.
arXiv: https://arxiv.org/abs/2604.11687v1
Status: Preprint (2026)
@misc{paneru2026makesoundlikehuman,
title={Please Make it Sound like Human: Encoder-Decoder vs. Decoder-Only Transformers for AI-to-Human Text Style Transfer},
author={Utsav Paneru},
year={2026},
eprint={2604.11687},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2604.11687},
}
pip install -U "transformers>=4.40.0" torch sentencepiece
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = "cive202/humanize-ai-text-bart-large"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
ai_text = "Large language models often produce fluent, structured prose with recognizable regularities..."
inputs = tokenizer("humanize: " + ai_text, return_tensors="pt", truncation=True)
out = model.generate(
**inputs,
max_new_tokens=256,
num_beams=4,
)
print(tokenizer.decode(out[0], skip_special_tokens=True))
Full fine-tuning (no adapters) with a standard seq2seq cross-entropy objective:
5e-5, cosine scheduler0.1per_device_train_batch_size = 2, gradient_accumulation_steps = 8)Parallel chunk pairs created via sentence-aware chunking:
Preprocessing details (high-level):
doc_id overlap between splits)All metrics computed on the same 1,390-example test subset.
Qualitative note:
Part of an unpublished manuscript (2026):
“Rewriting the Machine: Encoder-Decoder vs. Decoder-Only Transformers for AI-to-Human Text Style Transfer”
MIT is a placeholder here—set this repo’s license to what you intend to distribute under, consistent with the base model’s terms.
facebook/bart-large