arXiv:2610.33514cs.LGOct 2026

Manuscript Offprint

arXiv:2610.33514

Overlap-Aware Sub-hypergraph Pattern Frequencies for Hypergraph-Level Classification

Nafiul Hasan Anik, Nazira Jesmin Lina, Md Tanvir Alam, Md. Fahim Arefin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Classifying whole hypergraphs requires a fixed-length description of inputs whose numbers of vertices and hyperedges vary. Frequent sub-hypergraph patterns provide such a description, but previous work records only whether each pattern is present, which loses two kinds of information: how large the overlap between two hyperedges is, and how much of a hypergraph each pattern makes up. We extend frequent sub-hypergraph mining with overlap labels, the binned intersection size of two pattern hyperedges inherited from the target hypergraph, and represent each hypergraph by the relative frequency of each mined pattern. The vocabulary is mined from training hypergraphs only and then frozen, and validation and test hypergraphs are matched against it. A support rule that depends on pattern size keeps the vocabulary small. On the six hypergraph-classification datasets of DHG-Bench, with a single configuration chosen on validation scores, the method has a higher mean Macro-F1 than the best published mean on five datasets, by 18.67 points on Twitter-Friend and 10.02 points on Steam-Player; on RHG-3 it is 0.21 points lower. Ablations show that on Steam-Player and Twitter-Friend, replacing relative frequencies with presence lowers Macro-F1 by about 18 points, and that removing overlap labels lowers it by 4 to 9 points.

1 Introduction

A hypergraph extends a graph by allowing an edge, called a hyperedge, to join any number of vertices, so it can represent relations among groups of entities [24]. In hypergraph-level classification, each input is an entire hypergraph, and the goal is to assign one class label to it. For example, in the Steam-Player dataset each hypergraph describes one player. Its vertices are the games the player has played, and its hyperedges connect games that share tags. The task is to predict whether the player prefers single-player or multiplayer games [10, 15]. In this work, we classify hypergraphs from their structure alone, that is, from the vertices, the hyperedges and the incidences between them.

Standard classifiers need a fixed-length input, but hypergraphs differ in their numbers of vertices and hyperedges. Hypergraph neural networks learn a fixed-length representation by aggregating vertex and hyperedge representations [5, 6, 9]. Frequent sub-hypergraph patterns provide a more explicit alternative. These patterns are small labeled sub-hypergraphs that occur in many hypergraphs of a collection [3]. When the data have no vertex or hyperedge attributes, vertices can be labeled by their degree and hyperedges by their cardinality, as in structure-only hypergraph kernels [10]. Each mined pattern then serves as one feature, and previous work has represented a hypergraph by recording which patterns it contains [3, 4].

Presence features lose two kinds of information that matter in hypergraphs. The first is the size of an overlap. A pattern hyperedge may match part of a larger target hyperedge [3], so a pattern records only a lower bound on how many vertices two hyperedges share. For example, a pattern whose two hyperedges share one vertex matches any two target hyperedges that share at least one. Two tags that share one game and two tags that share ten games therefore match the same patterns. Simple graphs have no such information, since two edges share at most one vertex. Hyperedge overlap has been studied as a structural property of real-world hypergraphs [14], and hypergraph motifs describe three connected hyperedges by which of their intersections are empty [13]. The second is frequency. Presence records whether a pattern occurs, but not how much of the hypergraph it makes up. In dense hypergraphs many small patterns occur in almost every example, so their presence is nearly constant. Even where presence varies, two hypergraphs that contain the same patterns can differ in how often each occurs.

We address both losses within frequent sub-hypergraph mining. Each pattern vertex is labeled with the binned degree of the target vertex it matches. Each pattern hyperedge is labeled with the binned cardinality of the target hyperedge it matches, even when the pattern contains only part of that hyperedge. When two pattern hyperedges share a vertex, they also carry the binned size of the intersection of the two target hyperedges they match. Each hypergraph is represented by the number of times each pattern occurs in it, divided by the number of occurrences of the pattern's unlabeled form. These relative frequencies are passed to a standard neural classifier. The patterns are mined from the training hypergraphs. Every pattern of at most two incidences that occurs in at least two of them is kept, while larger patterns must occur in at least a fixed fraction of them (Section 4.3). This keeps the vocabulary bounded.

Building the vocabulary is itself a fitting step. If validation and test hypergraphs take part in mining, their structures affect which patterns are found and which pass the support threshold, even when their class labels are withheld. The procedure then becomes transductive at the mining stage. In our main protocol, the vocabulary is mined from training hypergraphs only and then frozen. Validation and test hypergraphs are matched against it without adding or changing patterns, and all scaling and model fitting use training hypergraphs only. A paired secondary study lets unlabeled validation and test hypergraphs take part in mining, while the classifier is still trained on training hypergraphs only.

We evaluate one configuration, chosen on validation scores alone, on the six hypergraph-classification datasets of DHG-Bench with their published partitions [15]. Its mean Macro-F1 is higher than the best mean reported in DHG-Bench on five datasets, with the largest margins on Twitter-Friend and Steam-Player. On IMDB-Dir-Form and RHG-10 the margin is within about one standard deviation, and on RHG-3 the method is slightly lower, with both close to 100%. The DHG-Bench results are taken from the published paper and were not rerun. Against the hypergraph Weisfeiler–Lehman subtree kernel [10], run on the same partitions, the method's Macro-F1 is higher in every repeat on Steam-Player, Twitter-Friend and RHG-10, and slightly lower on RHG-3, where the kernel classifies every test hypergraph correctly. The ablations show that relative frequencies and overlap labels matter most on Steam-Player and Twitter-Friend, that patterns of three incidences help on the same two datasets at a higher mining cost, and that letting unlabeled held-out hypergraphs take part in mining gives no consistent benefit.

The contributions of this work are:

  • an overlap-aware extension of frequent sub-hypergraph mining, in which pairs of pattern hyperedges are labeled with the binned intersection size inherited from the target;

• a relative occurrence-frequency encoding of the mined patterns;

  • a fully inductive evaluation on the six DHG-Bench hypergraph-classification datasets, in which the vocabulary is built from training hypergraphs only and one configuration is chosen on validation scores;

  • descriptive comparisons with the published DHG-Bench results, and paired comparisons with hypergraph Weisfeiler–Lehman kernels run on the same partitions; and

• ablations of overlap labels, relative frequencies, label resolution, pattern size and vocabulary access, together with the mining cost of each pattern size.