A method and system for selecting context examples based on factorial latent variables and common factors.

By constructing a factorial latent state space and training with a multi-head variational encoder, task features are decoupled into independent latent factors. Combining coverage number theory and centroid approximation strategy, the bias problem of example selection in large language models is solved, improving the inference performance and accuracy of example selection in complex tasks.

CN121920353BActive Publication Date: 2026-05-26CENT SOUTH UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CENT SOUTH UNIV
Filing Date
2026-03-25
Publication Date
2026-05-26

Smart Images

  • Figure CN121920353B_ABST
    Figure CN121920353B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for selecting contextual examples based on factorial latent variables and common factors. By constructing a factorial latent state space, this invention performs refined modeling of task features, decoupling abstract task concepts into mutually independent latent factors. Through common-cause causal modeling, it abandons the binary causal assumption, treating the input text and output labels as observations jointly generated by latent factors. During the training phase, a fully correlated decoupling penalty term is introduced to optimize the variational lower bound, training a multi-head encoder to identify and separate each independent factor. During the inference phase, by calculating the demand distribution of the test input text in each factor space, a complementary example set covering all target factors is retrieved and combined from the candidate pool. This effectively solves the problem of biased example selection in complex context learning tasks, significantly improves the few-shot inference performance of large language models, achieves accurate example selection, and enhances the matching degree between examples and test input text.
Need to check novelty before this filing date? Find Prior Art