IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i19p3083-d1757925.html
   My bibliography  Save this article

Few-Shot Community Detection in Graphs via Strong Triadic Closure and Prompt Learning

Author

Listed:
  • Yeqin Zhou

    (School of Computer Science, Beijing University of Posts and Telecommunications, Beijing 100876, China
    School of Police Information, Shandong Police College, Jinan 250200, China)

  • Heng Bao

    (CNCERT/CC, Beijing 100094, China)

Abstract

Community detection is a fundamental task for understanding network structures, crucial for identifying groups of nodes with close connections. However, existing methods generally treat all connections in networks as equally important, overlooking the inherent inequality of connection strengths in social networks, and often require large quantities of labeled data. To address these challenges, we propose a few-shot community detection framework, S trong T riadic C losure C ommunity D etection with P rompt (STC-CDP), which combines the Strong Triadic Closure (STC) principle, Graph Neural Networks, and prompt learning. The STC principle, derived from social network theory, states that if two nodes share strong connections with a third node, they are likely to be connected with each other. By incorporating STC constraints during the pre-training phase, STC-CDP can differentiate between strong and weak connections in networks, thereby more accurately capturing community structures. We design an innovative prompt learning mechanism that enables the model to extract key features from a small number of labeled communities and transfer them to the identification of unlabeled communities. Experiments on multiple real-world datasets demonstrate that STC-CDP significantly outperforms existing state-of-the-art methods under few-shot conditions, achieving higher F1 scores and Jaccard similarity particularly on Facebook, Amazon, and DBLP datasets. Our approach not only improves the precision of community detection but also provides new insights into understanding connection inequality in social networks.

Suggested Citation

  • Yeqin Zhou & Heng Bao, 2025. "Few-Shot Community Detection in Graphs via Strong Triadic Closure and Prompt Learning," Mathematics, MDPI, vol. 13(19), pages 1-24, September.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:19:p:3083-:d:1757925
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/19/3083/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/19/3083/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:19:p:3083-:d:1757925. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.