The Densest SWAMP Problem: Subhypergraphs with Arbitrary Monotonic Partial Edge Rewards

Vedangi Bengali, Nikolaj Tatti, Iiro Kumpulainen, Florian Adriaens, Nate Veldt

Abstract

Finding dense regions in networked data is a fundamental task in graph mining, with applications ranging from fraud detection to biological functional module discovery. While the Densest Subgraph Problem (DSG) is well-studied for pairwise graphs, real-world relationships often involve group interactions best modeled by hypergraphs. Furthermore, traditional hypergraph density metrics often rely on binary "all-or-nothing" rewards for edge participation. This paper introduces the Subhypergraph With Arbitrary Monotonic Partial edge rewards (SWAMP) problem, a generalization that allows for flexible, non-convex reward systems. We establish the NP-hardness of SWAMP for non-convex rewards and propose two $1/k$-approximation algorithms. Our empirical evaluation demonstrates that these methods are orders of magnitude faster than exact solvers while maintaining high solution quality in practice.

Introduction

In the world of graph mining, identifying "dense" regions—clusters where members are tightly interconnected—is a cornerstone of network analysis. Traditionally, this is addressed via the Densest Subgraph Problem (DSG), which seeks a subset of nodes maximizing the ratio of edges to nodes. However, many modern datasets are better represented as hypergraphs, where a single edge can connect an arbitrary number of nodes (e.g., authors on a research paper, students in a study group).

A significant limitation of existing hypergraph density models is their reliance on binary rewards: a reward is typically only granted if every node in a hyperedge is included in the selected subset. This paper addresses this gap by introducing the SWAMP framework, which permits partial rewards for partial participation, providing a more nuanced and realistic definition of density for complex group dynamics.

The SWAMP Framework

The SWAMP problem generalizes the densest subgraph objective by allowing for partial rewards. In this model, including a subset of nodes from a hyperedge $e$ yields a reward based on a monotonic function. For example, in a five-person committee, a reward might be granted if at least two members are present, with increasing returns as more members are added.

Prior research successfully addressed this problem for convex reward functions—where the marginal gain of adding a node increases with the number of nodes already present. However, many real-world scenarios involve non-convex rewards (e.g., a "diminishing returns" model or a simple threshold model). This paper explores these challenging non-convex reward structures, which are more representative of diverse applications but significantly harder to optimize.

Complexity and Methodology

1. Complexity Analysis

The authors provide a rigorous complexity analysis, proving that the SWAMP problem is NP-hard for nearly all non-convex reward functions. This result effectively defines the theoretical boundaries of the problem, shifting the focus toward efficient approximation algorithms.

2. Modified Peeling Algorithms

In standard DSG, a $1/2$-approximation can be found using a greedy "peeling" approach that iteratively removes the node with the lowest degree. However, the authors demonstrate that this standard approach lacks theoretical guarantees for non-convex rewards. To remedy this, they designed a new peeling strategy guided by a specific bound function ($s_e$). This modified algorithm makes locally suboptimal choices to secure a provable $1/k$-approximation, where $k$ is the maximum size of a hyperedge.

3. Projection to Convexity

A second algorithmic approach involves "projecting" the difficult non-convex reward function onto its nearest convex counterpart—the lower convex hull. By solving this simplified convex problem exactly using flow-based methods, the authors achieve another $1/k$-approximation. This method leverages the efficiency of convex optimization while maintaining a theoretical safety net for non-convex inputs.

4. Exact Solutions

For smaller datasets where optimality is paramount, the authors provide an Integer Linear Programming (ILP) formulation. This serves as a baseline to evaluate the performance of the approximation algorithms.

Empirical Evaluation

The proposed algorithms were tested on five real-world hypergraph datasets:

  • CHS & CPS: Student contact patterns in high schools and primary schools.
  • SC & HC: Committee memberships in the US Senate and House of Representatives.
  • Triv: User browsing sessions from the Trivago dataset.

Key Results

  • Efficiency: The approximation algorithms (Greedy and ProjFlow) are significantly faster than the exact ILP. On the CPS dataset, the ILP required 29 minutes to reach a solution, whereas the approximation methods finished in less than one second.
  • Solution Quality: Despite the theoretical $1/k$ guarantee (which could be as low as $1/16$ for $k=16$), the algorithms consistently found solutions with density ratios exceeding $0.95$ of the optimal value.
  • Reward Sensitivity: The choice of reward function significantly impacts the results. Quadratic (convex) rewards tend to identify small, highly cohesive clusters, while "at-least-two" (non-convex) rewards identify larger, more inclusive subgraphs.

Conclusion and Future Work

This work settles the complexity of the SWAMP problem and provides practical, high-performance algorithms for finding dense subhypergraphs with arbitrary rewards. While the $1/k$-approximation is robust in practice, the authors identify several avenues for future research, including the exploration of the hardness of approximation to determine if a better factor than $1/k$ is theoretically possible. Additionally, the empirical success of standard greedy peeling—despite its lack of theoretical guarantees—suggests that there are underlying structural properties of real-world hypergraphs that warrant further investigation.

Summary updated

BibTeX
@inproceedings{bengali2025densest,
  author = {Vedangi Bengali and Nikolaj Tatti and Iiro Kumpulainen and Florian Adriaens and Nate Veldt},
  title = {{The Densest SWAMP Problem: Subhypergraphs with Arbitrary Monotonic Partial Edge Rewards}},
  booktitle = {ECML/PKDD},
  year = {2025},
  doi = {10.1007/978-3-032-06066-2\_5},
}
Figure