Reproduce “Legal Documents Drafting with Fine-Tuned Pre-Trained Large Language Model” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Chun-Hsien Lin, Pu-Jen Cheng

Researchers from National Taiwan University developed a method for fine-tuning a 560M-parameter BLOOM model on a local computer using a specialized dataset of Traditional Chinese legal judgments for fraud cases. The fine-tuned model successfully generates coherent and structurally appropriate legal document drafts, adhering to predefined legal constitutive elements, while ensuring information privacy and bypassing the need for Chinese word segmentation.

Key insights

  • Specialized fine-tuning is crucial for LLMs to generate relevant and structured legal content, as general models fail to interpret legal prompts effectively.
  • Local fine-tuning of a relatively small-parameter LLM (BLOOM 560M) on consumer-grade hardware is feasible, enabling privacy-preserving legal document drafting without external server reliance.
  • Effective legal document generation in Traditional Chinese can be achieved without the conventional need for word segmentation preprocessing, simplifying the NLP pipeline.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.