Method and apparatus for few-shot relation classification and filtering, and device

US12380180B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12380180-B2
Application numberUS-202418815286-A
CountryUS
Kind codeB2
Filing dateAug 26, 2024
Priority dateAug 25, 2023
Publication dateAug 5, 2025
Grant dateAug 5, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method and an apparatus for few-shot relation classification and filtering, and a device are provided. The method includes: constructing a coarse-grained filter for filtering an unlabeled corpus to obtain candidate instances with a same entity as a seed instance and with similar semantics to the seed instance; constructing a fine-grained filter for filtering the candidate instances to obtain a candidate instance with a same relation concept as the seed instance; defining the candidate instance as a positive instance set, and defining candidate instances with different relation concepts from the seed instance as a negative sample set; constructing a false positive instance correction module for adjusting and controlling a proportion of the negative sample set used by a classifier during training; training the classifier based on a small number of obtained labeled instances belonging to a newly emerging relation and the adjusted positive instance set and negative sample set.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for few-shot relation classification and filtering, comprising, executed by a processor: constructing a coarse-grained filter, the coarse-grained filter being configured for filtering an unlabeled corpus to obtain a first candidate instance with a same entity as a seed instance and a second candidate instance with semantics to the seed instance; constructing a fine-grained filter, the fine-grained filter being configured for filtering the first candidate instance and the second candidate instance to obtain a third candidate instance with a same relation concept as the seed instance; pre-training the coarse-grained filter, the fine-grained filter and the classifier respectively based on obtained labeled instances that meet occurring relations; filtering the corpus based on the pre-trained coarse-grained filter and fine-grained filter to obtain the positive instance set and the negative sample set; training the pre-trained classifier based on the positive instance set, the negative sample set and the small number of labeled instances belonging to the newly emerging relation; defining the third candidate instance as a positive instance set, and defining a candidate instance among the first candidate instance and the second candidate instance with a different relation concept from the seed instance as a negative sample set, the relation concept being configured for describing a relation between different instances; constructing a false positive instance correction module, the false positive instance correction module, executed on the processor, being configured for adjusting and controlling a proportion of the negative sample set used by a classifier during training; training the classifier based on a number of obtained labeled instances belonging to a newly emerging relation and the positive instance set and the negative sample set adjusted by the false positive instance correction module; and performing relational classification on few-shot data based on the trained classifier, wherein the constructing the coarse-grained filter comprises: providing an entity alignment module, executed on the processor, which is configured for identifying the first candidate instance in the corpus with the same entity as the seed instance; providing a relation siamese network, which is configured for filtering out the second candidate instance with similar semantics to the seed instance by measuring distances between instances in the corpus and a word vector in the seed instance; and forming the coarse-grained filter based on the entity alignment module and the relation siamese network; wherein there are a plurality of seed instances, and the filtering out the second candidate instance with similar semantics to the seed instance by measuring distances between instances in the corpus and the word vector in the seed instance comprises: determining a similarity score between two instances by measuring Euclidean distances between the instances in the corpus and the word vector in the seed instance by the relation siamese network; S RSN ( x s i , x u i ) = σ ⁡ ( w p ( f p ( x s i ) - f p ( x u i ) ) 2 + b p ) calculating an average similarity score based on similarity scores between respective instances in the corpus and respective seed instances; and filtering out the second candidate instance with similar semantics to the respective seed instances based on a plurality of the average similarity scores; wherein σ(·) is a sigmoid activation function, ƒ p (·) is used to encode a sentence vector, and a range of S RSN (·) is from 0 to 1, a weight w p and deviation b p are trainable parameters, x s i is the seed instance in the corpus; and wherein the classifier is facilitated to understand a relation between an input text and the seed instance by changing the input text into a new text that meets the requirements of an input template, thereby improving accuracy of the classifier in few-shot relation classification, and the classifier has a classification effect under a condition of resources, and a recall rate and a F1 value (namely, F1-score, which is a measure of a classification problem, and is a harmonic average of an accuracy rate and the recall rate) has also been improved relative to a baseline, thus overcoming limitation related to information in the input data, and realizing that the classifier is able to learn text semantics and carry out relation classification regardless of a length of an input text sequence, a number of seed instances, or interference from false positive instances, thus addressing shortage of few-shot training data and improving few-shot recognition accuracy; wherein the pre-training the coarse-grained filter, the fine-grained filter and the classifier respectively based on obtained labeled instances that meet occurring relations comprises: pre-training the coarse-grained filter based on any two of the labeled instances that meet occurring relations, combined with a cross entropy loss; constructing different input templates, and pre-training the fine-grained filter based on the different input templates and the labeled instances that meet occurring relations, the input templates containing template format content, the text descriptions in candidate instances, the relation concept and the label column; and pre-training the classifier based on a few-shot learning mode and the labeled instances that meet occurring relations; wherein the constructing the different input templates comprises: constructing an input template with text description and a relation concept at different positions, an input template which is absence of part or all of template format content, and an input template which forms a negative template by changing a relation concept; correcting parameters of the classifier and a loss function by the false positive instance correction module to be:

Assignees

Inventors

Classifications

  • Machine learning · CPC title

  • Combinations of networks · CPC title

  • Energy efficient computing, e.g. low power processors, power management or thermal management · CPC title

  • Transformation · CPC title

  • Templates · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12380180B2 cover?
A method and an apparatus for few-shot relation classification and filtering, and a device are provided. The method includes: constructing a coarse-grained filter for filtering an unlabeled corpus to obtain candidate instances with a same entity as a seed instance and with similar semantics to the seed instance; constructing a fine-grained filter for filtering the candidate instances to obtain …
Who is the assignee on this patent?
National Univ Of Defense Technology
What technology area does this patent fall under?
Primary CPC classification G06F18/2415. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 05 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).