Enterprise knowledge · Research feature

AI Framework Improves Patent Drafting Through Logic-Guided Structure

The study evaluates LogicTree-RAG, a framework designed to enhance long-form patent drafting by constructing a hierarchical logic tree that organizes technical content.

Adapted from research by Jiaqi Zhu, Naili Xing, Hexiang Pan and colleagues.

arXiv preprint revision · 2026-09-25 · Attribution & reuse
In this article
Editorial illustration of stacked plates.

Editor’s introduction

The study evaluates LogicTree-RAG, a framework designed to enhance long-form patent drafting by constructing a hierarchical logic tree that organizes technical content. Each node in the tree represents a technical element and is built through evidence-guided recursive generation, ensuring logical consistency across the document. The system maps this structure into patent sections using a hybrid traversal mechanism, improving both content quality and language conformity compared to baseline LLM approaches. The research focuses specifically on patent drafting as a benchmark for complex, structured technical text generation. Findings show consistent improvements in structured output and token efficiency, though the framework is presented as a support tool rather than a replacement for expert review.

Introduction

Patents are a cornerstone of intellectual property protection, safeguarding technological innovations and enabling their translation into practical applications. Drafting a patent, however, is a highly specialized task that requires both a comprehensive understanding of the underlying technical contribution and a detailed knowledge of the formal and legal conventions of patent documents. In practice, this process often involves close collaboration between inventors, who possess the technical expertise but typically lack familiarity with patent law, and patent attorneys, who are well-versed in legal conventions but may not fully understand the technical intricacies of the invention. Consequently, such multi-expert collaboration often necessitates repeated discussion and iterative refinement, making the drafting process labor-intensive and time-consuming.

Recent advances in large language models (LLMs), which have demonstrated remarkable performance across a wide range of natural language processing (NLP) tasks, open up new possibilities for automating and accelerating patent drafting. Prior work in this area has primarily focused on generating specific sections of patent applications, such as title, abstract, or claims, rather than producing a complete document. While useful for targeted drafting assistance, such partial generation fails to address the core challenge of producing a logically structured patent application in its entirety, where interdependencies across sections are essential.

While a few recent studies have explored full-patent generation, they typically rely on substantial manual pre-design and drafting efforts. For instance, AutoPatent presupposes user-provided draft information, while Pap2Pat assumes a detailed outline of each patent section written in advance. In their task setups, both methods approximate such user-provided inputs by extracting supervision from reference patents, which distances their designs from real-world patent drafting conditions and ultimately limits automation and scalability.

To address the above-mentioned problems, we formulate patent drafting as a long-text generation task, focusing on producing a complete and logically structured patent application from a pre-publication research paper serving as a proxy for the invention report (IR). This formulation captures the practical scenario in many research environments, where research papers frequently serve as the initial disclosure for patent drafting. Despite its practical relevance, advancing toward fully automated patent drafting entails several non-trivial challenges. First, patent applications are inherently long-form technical documents, requiring the generation of substantially long and complete texts that remain challenging for LLMs to sustain. Second, beyond producing long outputs, effective patent drafting demands globally consistent logical organization and balanced elaboration, a constraint that becomes increasingly difficult to maintain as generation length grows. Third, robust automation requires minimizing dependence on manually crafted priors, as such reliance limits scalability and generalization across drafting scenarios.

To tackle these challenges, we propose LogicTree-RAG, a logic tree-guided retrieval-augmented generation framework for long-form patent drafting. Unlike prior methods that depend on flat-generation LLMs with manually crafted outlines or templates, LogicTree-RAG introduces a structured generative paradigm in which logic precedes content: it automatically derives a hierarchical logic tree from the input research paper as a global organizational backbone and progressively transforms it into well-formed patent sections in a principled and controllable manner.

Preliminaries

Patents and Patent-Paper Pairs. A patent is a structured legal-technical document, typically consisting of claims, which define the legally enforceable scope of protection, and a description, which discloses the invention in sections such as Background, Summary, and Detailed Description. In many research domains, patents are filed alongside scientific publications, producing Patent-Paper Pairs, where a pre-publication paper serves as the IR for the patent. Patent-paper pairs align scientific discourse with legal–technical documentation, offering a valuable yet underexplored resource for studying long-form technical text generation with LLMs.

LogicTree-RAG Workflow for Patent Generation

Remark. LogicTree-RAG enables scalable and controllable long-form generation through an explicit hierarchical intermediate representation. By decomposing the source document into a logic tree and constraining generation to structurally relevant subtrees, the computational cost is bounded by the tree size and traversal budget, enabling fine-grained control over content expansion. Moreover, by localizing evidence retrieval via node-aware semantic search, LogicTree-RAG reduces redundant context consumption and improves token efficiency for long and complex technical documents.

Experimental Setup

Baselines. We compare LogicTree-RAG with 13 baselines across three categories: (i) Heuristic Skyline, including ground-truth patents as an oracle upper bound and a case where the source paper is treated as the generated document. (ii) Single LLM-Call, where open and proprietary long-context LLMs (Kimi K2, Qwen3-80B, Qwen3-Max, DeepseekV3, and GPT-5 and Gemini-2.5 Pro under deep thinking mode) are prompted to generate patents from the full paper. (iii) Agentic Framework, including COPGEN, along with its SFT-tuned variant, LongWriter, and LongWriter-Zero, as well as agentic paradigms ReAct and Plan-then-Execute for step-wise planning and tool use. See Appendix F.2 for baselines and implementation details.

Implementation. LogicTree-RAG is implemented in Python with Pytorch 2.0.1, with Milvus v2.4.7 as the document knowledge base for document indexing and retrieval. All methods are evaluated under identical LLM decoding configurations to ensure a fair comparison. Detailed prompts and implementation settings are provided in Appendices E and F.

Broader Implications and Limitations

This work advances controllable and evidence-grounded generative AI for long-form technical document drafting. By framing patent drafting as a representative high-stakes structured generation task, LogicTree-RAG can assist practitioners in organizing complex technical disclosures into coherent and structured drafts, potentially reducing manual effort in early-stage drafting. However, the framework is intended to assist rather than replace domain experts, and its outputs should be treated as preliminary drafts and reviewed by qualified professionals before any formal use. Beyond patents, the logic-centric paradigm extends naturally to broader long-text generation tasks that require global organization and factual grounding. While LCFO results support such generalization, further validation on diverse long-form generation settings remains an important direction for future work.

Patent-related Benchmarks. Recent progress in LLMs has spurred benchmarking of patent-centric capabilities. For example, IPEval evaluates patent law QA, PatentEval targets claims-to-abstract and next-claim generation, and HUPD-DCG measures claim generation from patent descriptions. Complementary to task-specific benchmarks, Pap2Pat extends evaluation to long-text patent drafting, reflecting growing interest in document-level generation. These benchmarks illustrate the evolution of patent-related evaluation from localized capabilities toward holistic long-form technical writing.

Patent-related Generation. Existing patent generation methods can be broadly grouped into three paradigms. (i) Patent-to-patent generates specific sections conditioned on other parts within the same patent. For instance, PGT is pre-trained to support title-to-abstract and abstract-to-claim generation. PatentLMM presents a large multimodal model to write descriptions of patent figures. A cited study proposes a knowledge-tuning approach for initial concept discovery and content generation. (ii) Draft-to-patent expands patent drafts into patent-form text. PatentGPT pre-trains a series of base LLMs and benchmarks them with patent generation from technical disclosure documents draft. AutoPatent designs a multi-agent workflow to migrate a form of answers to technical questions to the corresponding patent draft. (iii) Paper-to-patent targets long-form patent drafting from research papers, exemplified by Pap2Pat with outline-guided generation. However, prior methods either operate under partial-context settings or depend on externally provided (often manually crafted) drafting priors, leaving realistic long-form patent drafting with global logical organization less well addressed. See Appendix B for a comprehensive review.

Conclusions

Automated patent drafting exposes a fundamental bottleneck in long-form technical text generation, where sustaining globally consistent logical structure and faithful technical reasoning remains challenging. In this paper, we propose LogicTree-RAG, a logic tree-guided retrieval-augmented generation framework for long-form patent drafting that introduces a hierarchical logic tree as a global organizational backbone, where each node represents a technical element and is grounded by retrieved evidence via an evidence-guided recursive generation mechanism. To ensure precise and balanced tree construction, we develop node-aware semantic search with discriminative relevance scoring and design a hybrid traversal strategy that maps the logic tree into structurally coherent patent sections. Extensive experiments show that LogicTree-RAG consistently improves content quality and language conformity over strong long-context and multi-stage LLM-based baselines, enabling longer structured generation with high token efficiency.

Long-text Generation

Recent advances in long-text generation have explored structured prompting, hierarchical decomposition, and personalization to improve coherence over extended outputs. Early approaches, such as recursive and outline-based generation, introduce hierarchical planning to maintain narrative consistency across long contexts. More recent work further incorporates personalization and reasoning-oriented training, enabling models to better align outputs with user intent.

With growing demand for ultra-long generation (e.g., beyond 2k tokens), new datasets and training paradigms have emerged. For instance, large-scale instruction-following datasets constructed via back-translation support long-context learning but often rely on synthetic supervision and remain limited in output length. Other approaches, such as LongWriter, leverage supervised and preference-based optimization on agent-generated long-form data to extend output length, but may inherit biases from teacher models and lack explicit control over global structure. LongWriter-Zero further explores reinforcement learning from scratch to induce ultra-long generation without relying on synthetic supervision, improving length control and structural consistency. Overall, despite notable progress, existing approaches lack explicit global structure modeling and fine-grained evidence grounding, limiting their ability to ensure coherent, factual, and controllable generation over ultra-long contexts.

Beyond long-form generation, domain-specific LLM systems have explored complementary mechanisms for evidence organization, contextual reasoning, and output verification. Data-centric generative systems can organize heterogeneous knowledge through semantic vector search, contextual querying, and agentic retrieval backends. Fine-grained evidence alignment and verification have also been studied through global-to-local semantic alignment, compact visual-evidence interfaces for intermediate reasoning, and claim-level counter-evidence verification for hallucination detection and correction. These studies collectively illustrate the broader value of explicitly organizing and validating evidence during model reasoning and generation.

Patent Drafting

Patent-related Benchmarks. With the advancements of LLMs, the effort of testing their abilities in patent-related tasks has emerged. Recent progress in LLMs has spurred benchmarking of patent-centric capabilities. For example, IPEval tests LLMs for patent law QA. PatentEval focuses on the tasks of claims-to-abstract and next-claim generations. HUPD-DCG measures patent claim generation performance from patent descriptions. Complementary to task-specific benchmarks, Pap2Pat extends evaluation to long-text patent drafting, reflecting growing interest in document-level generation. These benchmarks illustrate the evolution of patent-related evaluation from localized capabilities toward holistic long-form technical writing.

Patent-related Generation. Existing patent generation methods can be broadly grouped into three paradigms. First is patent-to-patent, where a section of the patent content is generated from those of specific parts in the same patent. For instance, PGT is pre-trained to support multiple patent-related tasks, e.g., title-to-abstract, abstract-to-claim. PatentLMM presents a large multimodal model to write descriptions of patent figures. A cited study proposes a knowledge-tuning approach for initial concept discovery and content generation. Second is draft-to-patent, where a draft of a patent is expanded and aligned with patent format and wording. PatentGPT pre-trains a series of base LLMs and benchmarks them with patent generation from technical disclosure documents draft. AutoPatent generates patents from draft information, where the draft is constructed through multiple rounds of iterative question–answering with an LLM under the guidance of a reference patent document. Third is paper-to-patent, where an end-to-end process is studied from the original research paper to the patent draft. For example, Pap2Pat leverages ground-truth patent-derived outlines to guide the full-text patent migration. However, prior methods either operate under partial-context settings or depend on externally provided (often manually crafted) drafting priors, leaving realistic long-form patent drafting with global logical organization less well addressed.

Evaluation Metrics

We evaluate patent generation performance from both content-level and language-level perspectives. Given the length and specialized nature of patent documents, automatic evaluation requires disentangling semantic content quality from linguistic realization. We therefore adopt established metrics that are well-suited for long-form technical text generation.

Baseline Methods

Single LLM-call baselines generate the entire patent document in a single LLM invocation by conditioning on the full input paper using long-context prompting. All baselines support 128k-token contexts, enabling full-paper ingestion and long-text drafting. No intermediate structure or iterative refinement is employed. Specifically, Kimi K2 adopts a Mixture-of-Experts (MoE) architecture with 1T total parameters and 32B activated per token, and is pre-trained on 15.5T tokens with carefully engineered optimization strategies to ensure stable training at scale. Qwen3-80B follows the Qwen3-Next design and integrates hybrid attention mechanisms and high-sparsity MoE layers, enabling efficient context modeling under ultra-long context lengths while maintaining computational efficiency. Qwen3-Max is a proprietary flagship model exceeding one trillion parameters, pre-trained on 36T tokens, and inherits the MoE-based design of the Qwen3 series with enhanced load balancing and stability-oriented training strategies. DeepseekV3 is an MoE model with 671B total parameters and 37B activated per token, combining Multi-head Latent Attention and DeepSeekMoE architectures, and is pre-trained on 14.8T tokens with multi-token prediction objectives to support efficient and stable large-scale training. GPT-5 and Gemini-2.5 Pro are proprietary frontier LLMs evaluated under deep thinking mode, which enables stronger deliberative reasoning and more careful long-context synthesis. They serve as strong closed-source baselines for assessing whether advanced reasoning-oriented prompting alone can produce coherent and complete long-form patent drafts without explicit structural orchestration. Collectively, these models provide strong capacity for long-context representation and serve as competitive backbone LLMs for single LLM-call patent generation. Unless otherwise specified, these baselines use the same decoding configurations as LogicTree-RAG.

Furthermore, we include Chunk-based Outline-guided Patent Generation (COPGEN) and its supervised fine-tuned (SFT) variant as representative multi-stage LLM-based patent generation methods. Specifically, COPGEN chunks the outline, selects the most relevant parts of the source paper depending on the chunks’ outline bullet points, and prompts an LLM to generate the patent text for that chunk. To ensure a fair comparison under our problem setting, where no ground-truth patent outline is available at inference time, we report two variants of COPGEN. The first follows the outline-empty configuration, where only section titles are provided. For completeness, we also report results obtained using the long-version outlines provided by the Pap2Pat benchmark. For the SFT variant, only the backbone LLM is fine-tuned on the Pap2Pat training set (1,000 paper-patent pairs), and no test data is used during training.

In addition, we consider recent long-form generation frameworks LongWriter and LongWriter-Zero, which decompose long-form generation into multi-stage processes to improve global coherence and content planning. We also include general-purpose agentic paradigms, including ReAct and Plan-then-Execute, which enable LLMs to perform step-wise planning and tool use without relying on hard-coded structural templates. To adapt them to our setting, we expose our core components, i.e., semantic chunking, node-aware retrieval, and evidence-guided generation, as callable tools, and replace the logic-tree-based orchestration with generic agent planning strategies.

Experimental Environment

All experiments are conducted on a server equipped with an AMD EPYC 9334 CPU @ 2.7 GHz (32 cores), 128 GB of memory, and an NVIDIA H100 NVL with CUDA 12.9. The operating system is Ubuntu 24.04 running Linux kernel 6.8.0-79-generic. LLMs used in our experiments are accessed via standardized cloud-based inference APIs provided by Alibaba Cloud Bailian.

Human Expert Study

We conduct a human expert evaluation with three patent practitioners to assess the practical quality of generated patents. We randomly select 10 samples from the test set. For each sample, practitioners are provided with the source paper, the generated patent, and the reference patent, along with the corresponding outlines (long version) to ensure fair comparison. Experts perform pairwise comparisons (win/loss/tie) between LogicTree-RAG and each baseline. We adopt five evaluation criteria covering both legal correctness and technical quality, as defined in Listing. All evaluations are conducted in a blinded manner, where the identities of methods are anonymized.