A LoRA adapter for Qwen3-14B that translates the claims of a Japanese patent application into English claims in the form used for US filings. Besides translating, it restructures the claim set as US practice expects, for example by rewriting multiple-dependent claims to depend on a single claim.
Demo: Japanese Patent Claim Translator
Producing a first English draft of US claims from the claims of a Japanese application, for review by a patent professional.
978 patent families in which the same invention was filed first in Japan and then in the United States.
209 held-out families, greedy decoding, compared with the untuned base model and with the US claims as filed.
| Metric | US claims as filed | Base model | This adapter |
|---|---|---|---|
| US claim format | 100% | 0% | 100% |
| Outputs containing multiple-dependent claims | 0% | 86.6% | 0% |
| Outputs violating 37 CFR 1.75(c) | 0% | 67.5% | 0% |
| chrF against the US claims as filed | 100 | 61.5 | 64.9 |
| Numerical values retained | 93.2% | 96.0% | 93.7% |
| Drawing reference signs retained | 13.5% | 100% | 12.5% |
| Claim count equal to the US claims as filed | 100% | 56.5% | 56.5% |
| Generations stopped at the length limit | 0 | 0 | 2 |
Numerical values are the quantities, ranges and ordinals in the Japanese claims; claim references are excluded. Drawing reference signs are normally removed from US claims, so a low value is expected. Claim counts often differ because counsel adds claims that have no Japanese counterpart.
Use the prompt below exactly as written, with Qwen3's thinking mode turned off.
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-14B")
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-14B", dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, "yuyangchee98/qwen3-14b-jp-us-claims-lora").merge_and_unload()
PROMPT = ("Translate the following Japanese patent claims into English claims for the "
"corresponding US patent application.")
claims = "【請求項1】…\n【請求項2】請求項1に記載の…" # one claim per line, each starting with 【請求項N】
msgs = [{"role": "user", "content": f"{PROMPT}\n\n{claims}"}]
text = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True, enable_thinking=False)
ids = tok(text, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**ids, max_new_tokens=3000, do_sample=False)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))
Apache 2.0, the same as the base model.
Qwen/Qwen3-14B