IP Library › Granted Patent US 12,725,406
Granted Patent B2
US 12,725,406 · App. 18/330,709 · Granted Sep 1, 2026

Task-oriented clustering using prompt learning

Inventors: Zhong Fang Yuan (Xi'an, CN); Tong Liu (Xi'an, CN); Han Qiao Yu (Xi'an, CN); Yuhong Zou (Shanghai, CN); Xiang Yu Yang (Xi'an, CN)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
G06V10/774G06V10/762
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,725,406
App. No.
18/330,709
Granted
Sep 1, 2026
Kind
B2
Abstract

Systems, computer-implemented methods, and computer program products to facilitate capturing relative importance of relational entities for building database embedding models are provided. According to an embodiment, a system can comprise a processor that executes components stored in memory. The computer executable components can comprise a template component that utilized natural language as a prompt template to describe a perspective of clustering and assembles description information into the prompt template to generate a base model. The computer executable components can comprise a training component that can utilize data in the prompt template to automatically build training data of an adapter to generate a final model. The computer executable components can comprise a vector generator component that inputs the prompt template to the final model to generate one or more hidden layer vectors highlighting characteristics of the natural language.

Claims (37)

1 . A system, comprising:

a processor that executes computer-executable components stored in a non-transitory computer-readable memory, wherein the computer-executable components comprise:

a template component that utilizes natural language as a prompt template to describe a perspective of clustering, and assembles description information into the prompt template to generate a base model that defines a clustering objective expressed in natural language;

a training component that utilizes data in the prompt template to automatically build training data derived from the prompt template itself, generating a final model by training an adapter of the base model using the automatically-built training data, without requiring externally labeled clustering, wherein the adapter comprises a neural network; and

a vector generator component that inputs the prompt template to the final model after the adapter training to generate one or more latent vectors from an intermediate representation of the final model highlighting characteristics of the natural language,

wherein the one or more latent vectors are used to perform a final clustering in latent space based on the clustering objective defined by the prompt template.

2 . The system of claim 1 , wherein the latent vectors comprise one or more hidden layer vectors generated by an intermediate layer of the neural network, and the one or more hidden layer vectors are used as a highlighted feature by the prompt template for the final clustering.

3 . The system of claim 2 , wherein the prompt template outputs a hidden state that is restored to an image enhanced with visual information.

4 . The system of claim 3 , wherein the hidden state reduces the visual information of the image in accordance with the natural language of the prompt template.

5 . The system of claim 4 , wherein the prompt template enlarges the visual information of the image in accordance with the natural language of the prompt template.

6 . The system of claim 1 , wherein the training component fine-tunes the base model with less than 1% of trainable parameters while freezing a backbone of the base model.

7 . The system of claim 2 , wherein the final model dynamically adjusts generation of the one or more hidden layer vectors in real time.

8 . A computer implemented method for utilizing prompt learning to perform topic-wise clustering of data, the computer implemented method comprising:

utilizing, by a device operatively coupled to a processor, natural language as a prompt template to describe a perspective of clustering by encoding semantic distinctions associated with a plurality of topics;

assembling, by the device, description information into the prompt template to generate a base model configured to respond to variations in the prompt template;

utilizing, by the device, data in the prompt template to automatically build training data derived from the prompt template itself;

generating a final model by training an adapter of the base model using the automatically-built training data, without relying on externally annotated topic labels to adapt the base model for topic-wise differentiation, wherein the adapter comprises a neural network;

inputting, by the device, the prompt template to the final model after the adapter training to generate one or more intermediate representations comprising vectors highlighting one or more characteristics of the natural language associated with respective topics; and

performing, by the device, a final clustering in latent space by grouping data based on similarities among the vectors highlighting the one or more characteristics of the natural language.

9 . The computer implemented method of claim 8 , further comprising: using, by the device, latent vectors that comprise one or more hidden layer vectors generated by an intermediate layer of the neural network, and using the one or more hidden layer vectors as a highlighted feature by the prompt template for the final clustering.

10 . The computer implemented method of claim 9 , further comprising: outputting, by the device, a hidden state from the prompt template that is restored to an image enhanced with visual information.

11 . The computer implemented method of claim 10 , further comprising: reducing, by the device, the visual information of the image in accordance with the natural language of the prompt template.

12 . The computer implemented method of claim 11 , further comprising: enlarging, by the device, the visual information of the image in accordance with the natural language of the prompt template.

13 . The computer implemented method of claim 9 , further comprising: tuning, by the device, the base model with less than 1% of trainable parameters while freezing a backbone of the base model, wherein the final model dynamically adjusts generation of the one or more hidden layer vectors in real time.

14 . A computer program product for utilizing prompt learning to perform topic-wise clustering of data, the computer program product comprising a non-transitory computer readable memory having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:

utilize natural language as a prompt template to describe a perspective of clustering by encoding topic-related semantic distinctions within the prompt template;

assemble description information into the prompt template to generate a base model responsive to semantic variation in the prompt template;

utilize data in the prompt template to automatically build training data derived from the prompt template itself;

generating a final model by training an adapter of the base model using the automatically-built training data, without reliance on externally labeled topic data to adapt the base model for topic-wise clustering, wherein the adapter comprises a neural network;

input the prompt template to the final model after the adapter training to generate one or more hidden layer vectors highlighting one or more topic-dependent characteristics of the natural language; and

perform a final clustering in latent space by grouping data based on similarities among the one or more hidden layer vectors highlighting the one or more topic-dependent characteristics.

15 . The computer program product of claim 14 , wherein the program instructions are further executable to cause the processor to: utilize the one or more hidden layer vectors as a highlighted feature by the prompt template for the final clustering.

16 . The computer program product of claim 15 , wherein the program instructions are further executable to cause the processor to: output a hidden state that is restored to an image enhanced with visual information.

17 . The computer program product of claim 16 , wherein the program instructions are further executable to cause the processor to: reduce the visual information of the image in accordance with the natural language of the prompt template.

18 . The computer program product of claim 17 , wherein the program instructions are further executable to cause the processor to: enlarge visual information of the image in accordance with the natural language of the prompt template.

19 . The computer program product of claim 14 , wherein the program instructions are further executable to cause the processor to: tune the base model with less than 1% of trainable parameters while freezing a backbone of the base model.

20 . The computer program product of claim 14 , wherein the program instructions are further executable to cause the processor to: dynamically adjust generation of the one or more hidden layer vectors in real time via the final model.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 7, 2023
From: YUAN, ZHONG FANG; LIU, TONG; YU, HAN QIAO; ZOU, YUHONG; YANG, XIANG YU
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 063883/0095 →
Continuity (1)
Related Publication 20240412487A1 · Dec 12, 2024
References Cited (12)
US 10671936B2 · Bouveyron et al. · 2020 [cited by applicant]
US 20150248476A1 · Weissinger et al. · 2015 [cited by applicant]
US 20180032606A1 · Tolman et al. · 2018 [cited by applicant]
US 20220365993A1 · Voisin et al. · 2022 [cited by applicant]
US 20230065870A1 · Pyzow · 2023 [cited by examiner]
CN 106708969B · 2020 [cited by applicant]
CN 114970523A · 2022 [cited by applicant]
Cohen, Niv, and Yedid Hoshen. “Language-Guided Image Clustering.” International Conference on Learning Representations. 2022. (Year: 2022). [cited by examiner]
Gao, Peng, et al. “Clip-Adapter: Better Vision-Language Models with Feature Adapters.” arXiv preprint arXiv:2110.04544 (2021). (Year: 2021). [cited by examiner]
Laddecke, Timo, and Alexander Ecker. “Image segmentation using text and image prompts.” Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2022. (Year: 2022). [cited by examiner]
Malladi, Sadhika, et al. “Fine-Tuning Language Models with Just Forward Passes.” arXiv preprint arXiv:2305.17333 (2023). (Year: 2023). [cited by examiner]
Ruiz, Nataniel, et al. “DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation.” arXiv preprint arXiv:2208.12242 (2023). (Year: 2023). [cited by examiner]