Open Access iconOpen Access

ARTICLE

COPA: Confidence-Guided Orthogonality-Constrained Prompt Adaptation for Few-Shot Relation Classification

Shunran Duan, Meijuan Yin*, Xiangyang Luo, Lunchong Cui, Chenyu Wang

Henan Provincial Key Laboratory of Cyberspace Situational Awareness, Information Engineering University, Zhengzhou, China

* Corresponding Author: Meijuan Yin. Email: email

Computers, Materials & Continua 2026, 89(1), 23 https://doi.org/10.32604/cmc.2026.084290

Abstract

Few-shot relation classification aims to identify semantic relations between entity pairs under limited annotated data. Although recent prompt learning-based methods have achieved promising performance, they often rely on manually crafted, domain-specific prompt templates, which restrict their transferability across domains. In this paper, building upon the multi-task prompt transfer paradigm of MPT, we propose a Confidence-guided Orthogonality-constraint Prompt Adaptation framework for few-shot relation classification, named COPA. The proposed framework learns a shared domain-invariant prompt matrix together with domain-specific low-rank prompt matrices via multi-domain soft prompt tuning, enabling the transfer of domain-invariant relational knowledge across domains. Unlike MPT, to explicitly disentangle domain-invariant and domain-specific information, we further introduce an orthogonality constraint that encourages the shared prompt to capture invariant relational semantics while forcing the domain-specific prompt to model complementary domain residuals. For target domain adaptation, we reuse the shared prompt as prior knowledge and combine it with a target domain-specific low-rank matrix, followed by a confidence-guided prompt adaptation strategy that encourages domain-invariant knowledge preservation while facilitating efficient adaptation to the target domain. Experiments on four public Chinese datasets demonstrate that COPA achieves consistently competitive and stable results, with 1.09%–2.08% absolute Micro-F1 improvements over the strongest MPT-based baseline in representative settings and overall gains ranging from 0.83% to 8.72% across all compared baselines.

Keywords

Natural language processing; relation classification; orthogonality constraint; confidence-guided prompt adaptation

Cite This Article

APA Style
Duan, S., Yin, M., Luo, X., Cui, L., Wang, C. (2026). COPA: Confidence-Guided Orthogonality-Constrained Prompt Adaptation for Few-Shot Relation Classification. Computers, Materials & Continua, 89(1), 23. https://doi.org/10.32604/cmc.2026.084290
Vancouver Style
Duan S, Yin M, Luo X, Cui L, Wang C. COPA: Confidence-Guided Orthogonality-Constrained Prompt Adaptation for Few-Shot Relation Classification. Comput Mater Contin. 2026;89(1):23. https://doi.org/10.32604/cmc.2026.084290
IEEE Style
S. Duan, M. Yin, X. Luo, L. Cui, and C. Wang, “COPA: Confidence-Guided Orthogonality-Constrained Prompt Adaptation for Few-Shot Relation Classification,” Comput. Mater. Contin., vol. 89, no. 1, pp. 23, 2026. https://doi.org/10.32604/cmc.2026.084290



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 261

    View

  • 62

    Download

  • 0

    Like

Share Link