Manuscript Offprint

arXiv:2610.01553

From Rules to Neural Graphs: Scalable Structured Prediction for Patent Prior Art Search

Nikolai Zenovkin, Sebastian Björkqvist

Nikolai Zenovkin 1^{1}[0009-0007-6283-427X] (✉) and Sebastian Björkqvist 1^{1}[0009-0006-9039-8623]

IPRally Technologies Oy, Helsinki, Finland {nikolai.zenovkin,sebastian}@iprally.com

Abstract. Patent search requires processing documents routinely exceeding tens of thousands of tokens. Most neural retrieval approaches operate on truncated inputs, limiting their effectiveness. Graph-based retrieval addresses this by representing each patent as a structured invention graph, but constructing these graphs relies on brittle rule-based parsers. We present the neural parser, which adapts biaffine attention from dependency parsing to predict invention graphs directly from patent text. Our local biaffine attention restricts pairwise scoring to a sliding window, reducing complexity from O(n2)O(n^2) to O(n⋅w)O(n \cdot w). Since local and global scoring share the same weights, the model trains on short sequences and deploys on documents exceeding 40,000 tokens without retraining. Distilled from 1 million rule-parsed documents, it surpasses its teacher at 3×3 \times lower inference cost: neural graphs improve citation recall by 0.5% on short queries and 1.1% on full documents in a downstream Graph Transformer retrieval system.

Keywords: Patent search · Prior art search · Information retrieval · Dense retrieval · Structured prediction · Long document processing · Biaffine attention · Knowledge distillation · Natural language processing

1 Introduction

Patent prior art search—identifying existing publications that may anticipate or render obvious a patent application’s claims—is essential in intellectual property law. Traditional Boolean keyword search [4, 6] requires substantial domain expertise and multiple iterations, as similar concepts may use entirely different terminology across patent documents.

This preprint has not undergone peer review or any post-submission improvements or corrections. The Version of Record of this contribution is published in Machine Learning and Knowledge Discovery in Databases. Applied Data Science Track (ECML PKDD 2026), LNAI 16949, and is available online at https://doi.org/10.1007/978-3-032-37682-4_31.

N. Zenovkin and S. Björkqvist

Figure

Fig. 1. End-to-end patent prior art search pipeline. Patent documents and user queries are parsed into invention graphs, encoded by a Graph Transformer [5] into dense vectors, and matched via nearest neighbor search. This work replaces the rule-based parser with a neural alternative (highlighted).

Dense Retrieval for Patents. Neural dense retrieval models overcome terminology variation by learning semantic representations [11, 1, 9], but face a fundamental length constraint: patent documents are extremely long. In our training corpus of 1 million patent documents, descriptions average 55,000 characters (median: 40,000), with the 90th percentile at 104,000 characters. Current models process only truncated inputs—typically titles and abstracts [11, 1, 9]—sacrificing coverage of claim-relevant content in the full text.

Graph-Based Compression. Invention graphs address this by extracting core technical features and organizing them hierarchically [3], compressing patents into structured representations suitable for neural processing. Graph Transformers [5] process these structures via sparse attention over graph edges, enabling effective handling of documents exceeding 40,000 tokens—far beyond what standard dense retrieval supports [22].

The Rule-Based Bottleneck. Existing graph-based patent search systems [3, 5] rely entirely on rule-based parsers with extensive hand-crafted patterns. While achieving high precision on matched patterns, these parsers suffer from brittleness: they fail silently on novel linguistic constructions and require continuous manual curation as patent language evolves. A natural alternative is a learned graph induction model, but standard neural structured prediction methods—such as biaffine dependency parsers [7]—require scoring all O(n2)O(n^{2}) token pairs, making them intractable for documents with tens of thousands of tokens. Obtaining labeled training data at corpus scale is a further obstacle: manually annotating graph structures across millions of documents is impractical.

We address both challenges with the following contributions:

– Scalable structured prediction: We extend sliding-window biaffine attention [17] from flat span extraction to structured prediction (tree/DAG induction) over full-length patent documents. Crucially, local and global scoring share the same weight matrix, so the model trains on short sequences with global attention and deploys on long documents with local attention—no retraining required.

– Student surpasses teacher: Via knowledge distillation on 1 million rule-parsed documents, our neural parser generalizes beyond hand-crafted patterns, yielding better graph quality and improved downstream prior art search, while offering 3×3\times lower inference cost and flexibility for diverse data sources (human annotation, LLM-generated labels).

To support reproducibility, we release: (1) the evaluation set of 5,000 annotated patent documents used for intrinsic evaluation, (2) a 5,000-document sample from the training set, and (3) the evaluation framework for computing the graph quality metrics reported in this paper. 1^{1}

References (22)