TL;DR
This paper introduces "Draft2Patent," a new task and benchmark for automatically generating full-length patent documents from initial drafts. They propose "AutoPatent," a multi-agent framework that uses specialized LLM agents for planning, writing, and reviewing, achieving impressive results that even rival human-generated patents.
What Problem Does This Paper Address?
The process of drafting patents is complex, time-consuming, and expensive, typically requiring skilled human patent agents. While Large Language Models (LLMs) have shown promise in various text generation tasks, generating complete, high-quality patent documents is particularly challenging due to their specialized language, intricate structure, and significant length (averaging 17K tokens). Existing LLM research in this domain has largely focused on simpler tasks like classification or summarization, leaving the full patent generation process largely unaddressed. This paper aims to bridge this gap by automating the creation of comprehensive patent documents from an inventor's initial draft.
Methods
The core of the proposed solution is the AutoPatent framework, a multi-agent system designed to mimic the real-world patent drafting process. It comprises eight specialized LLM agents categorized into three types:
- Writer Agents: Six agents responsible for generating specific patent components (title, abstract, background, summary, claims, and detailed description). These agents are further divided into "short component writers" for the initial sections and a "description writer" for the lengthy detailed description.
- Planner Agent: This agent generates a PGTree (Patent Writing Guideline Tree), a two-layer multiway tree that acts as a detailed outline and instruction set for generating the complex "detailed description" section.
- Examiner Agent: This agent plays a crucial quality control role, reviewing generated subsections for accuracy, logic, comprehensiveness, clarity, coherence, and consistency, providing feedback for refinement.
The framework operates in three main steps:
- Short Components Generation: Initial patent sections (title, abstract, background, summary, claims) are generated from the draft.
- PGTree Building: The Planner Agent creates a detailed outline for the "detailed description" section.
- Reference-Review-Augmented Generation (RRAG): The Description Writer uses the PGTree and retrieved information from the initial components to generate the detailed description, with the Examiner Agent providing iterative feedback and refinement.
Datasets
The paper introduces the D2P benchmark, a new dataset containing 1,933 draft-patent pairs. These pairs were constructed by simulating an inventor's draft using GPT-40-mini and then refining it through a process involving GPT-40 as an examiner. The source patents for this dataset are derived from the HUPD dataset.
Key Insights and Ideas
- Multi-agent approach is key for complex generation: The paper strongly suggests that breaking down the complex task of patent generation into specialized roles for different LLM agents is crucial for achieving high quality.
- PGTree as a structural guide: The PGTree, acting as a hierarchical outline, is vital for managing the complexity and length of the detailed description, enabling more structured and coherent generation.
- Iterative review and refinement are essential: The Examiner Agent's role in providing feedback and guiding refinement is critical for ensuring the generated patent meets stringent quality standards.
- Smaller models can excel with the right framework: Surprisingly, the Qwen2.5-7B model, when used within the AutoPatent framework, outperformed larger, more powerful LLMs like GPT-4o and LLAMA3.1-70B in human evaluations. This highlights the effectiveness of the framework itself.
- SFT can be misleading: Supervised Fine-Tuning (SFT) on patent data can lead to artificially high scores on n-gram-based metrics (like ROUGE) due to repetition, masking poor actual quality and leading to meaningless content.
Key Results
- AutoPatent significantly improves patent generation: Across various LLMs, the AutoPatent framework consistently enhanced the quality and comprehensiveness of generated patents.
- Qwen2.5-7B with AutoPatent outperforms larger models: In human evaluations, patents generated by Qwen2.5-7B using AutoPatent were rated higher than those from GPT-4o, Qwen2.5-72B, and LLAMA3.1-70B.
- Generated patents are comprehensive: AutoPatent-generated patents were found to be more complete, often including elements like flowcharts, which other methods failed to produce.
- Reduced repetition errors: The framework effectively mitigates repetition errors, a common issue in SFT-generated patents.
- Average patent length: AutoPatent generates patents averaging over 17K tokens, with the detailed description alone averaging over 14K tokens.
Limitations and Future Work
- Human evaluation is costly and slow: The authors acknowledge that human evaluation, while crucial for assessing patent quality, is time-consuming and expensive. They plan to explore automated patent evaluation methods in the future.
- Limited fine-tuning for larger models: Due to computational constraints, they could not fully fine-tune LLMs with parameter sizes of 14B or larger.
- Future work: The paper suggests exploring more concise methods for automated patent evaluation and potentially extending the framework to handle even larger LLMs.
Summary updated