Papers › SeBot: Structural Entropy Guided Multi-View Contrastive Learning for Social Bot Detection

SeBot: Structural Entropy Guided Multi-View Contrastive Learning for Social Bot Detection

18 May 2024arXiv:2405.11225archive 2025-07-28

Yingguang Yang, Qi Wu, Buyun He, Hao Peng, Renyu Yang, Zhifeng Hao, Yong Liao

Recent advancements in social bot detection have been driven by the adoption of Graph Neural Networks. The social graph, constructed from social network interactions, contains benign and bot accounts that influence each other. However, previous graph-based detection methods that follow the transductive message-passing paradigm may not fully utilize hidden graph information and are vulnerable to adversarial bot behavior. The indiscriminate message passing between nodes from different categories and communities results in excessively homogeneous node representations, ultimately reducing the effectiveness of social bot detectors. In this paper, we propose SEBot, a novel multi-view graph-based contrastive learning-enabled social bot detector. In particular, we use structural entropy as an uncertainty metric to optimize the entire graph's structure and subgraph-level granularity, revealing the implicitly existing hierarchical community structure. And we design an encoder to enable message passing beyond the homophily assumption, enhancing robustness to adversarial behaviors of social bots. Finally, we employ multi-view contrastive learning to maximize mutual information between different views and enhance the detection performance through multi-task learning. Experimental results demonstrate that our approach significantly improves the performance of social bot detection compared with SOTA methods.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.11225")

Code

Syntology Ran 13 of 13 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

846468230/sebot officialmentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 13 ran; 1 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
1ran · fixture could not drive it
8ran

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 846468230/sebot. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

child_tree_deepth 846468230/sebot/SEPG/utils.py official repository ran · honoured contract Apache-2.0 (permissive) · b16d0d091d08f27f · report
cut_volume 846468230/sebot/SEPG/utils.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 721b31dc7e862365 · report
edge_dropping 846468230/sebot/main_mgtab.py official repository ran Apache-2.0 (permissive) · fc042c73717f4575 · report
edge_mask 846468230/sebot/main_mgtab.py official repository ran Apache-2.0 (permissive) · cedc2ce0919049da · report
extract_tree 846468230/sebot/SEPG/data.py official repository ran Apache-2.0 (permissive) · 7816de9206821783 · report
feature_mask 846468230/sebot/main_twibot20.py official repository ran fingerprinted Apache-2.0 (permissive) · e025810519395dbd · report
get_layer_graph 846468230/sebot/SEPG/data.py official repository ran Apache-2.0 (permissive) · 3626d54c9c119c8f · report
graph_parse 846468230/sebot/SEPG/utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 21dda7ecf92b5b2c · report
integrate_label 846468230/sebot/SEPG/data.py official repository ran Apache-2.0 (permissive) · 2f01cf160b34a636 · report
relatioal_edge_adding 846468230/sebot/main_mgtab.py official repository ran Apache-2.0 (permissive) · 96b35c8a743ef57b · report
relational_undirected 846468230/sebot/main_twibot20.py official repository ran Apache-2.0 (permissive) · be48e44dbf661266 · report
trans_to_adj 846468230/sebot/SEPG/trans_graph.py official repository ran · our draft was wrong Apache-2.0 (permissive) · cb653477a7fefad1 · report
update_node 846468230/sebot/SEPG/trans_graph.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 1bc1bd0cbe71477b · report

Tasks

Contrastive LearningMulti-Task Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections