Skip to main content
QUICK REVIEW

[Paper Review] Graph Partitioning with Acyclicity Constraints

Orlando Moreira, Merten Popp|arXiv (Cornell University)|Apr 3, 2017
Interconnection Networks and SystemsComputer Science4 references8 citations
TL;DR

This paper introduces a novel graph partitioning approach for heterogeneous embedded multiprocessors that enforces acyclicity in inter-block dependencies—a critical constraint for sequential execution on resource-constrained platforms. The authors prove the problem is NP-complete and propose efficient heuristics (Simple Moves, Adaptive Moves, Greedy Moves) that significantly reduce communication volume and execution time, with up to 30% edge cut reduction and improved scalability on large graphs.

ABSTRACT

Graphs are widely used to model execution dependencies in applications. In particular, the NP-complete problem of partitioning a graph under constraints receives enormous attention by researchers because of its applicability in multiprocessor scheduling. We identified the additional constraint of acyclic dependencies between blocks when mapping computer vision and imaging applications to a heterogeneous embedded multiprocessor. Existing algorithms and heuristics do not address this requirement and deliver results that are not applicable for our use-case. In this work, we show that this more constrained version of the graph partitioning problem is NP-complete and present heuristics that achieve a close approximation of the optimal solution found by an exhaustive search for small problem instances and much better scalability for larger instances. In addition, we can show a positive impact on the schedule of a real imaging application that improves communication volume and execution time.

Motivation & Objective

  • Address the lack of existing algorithms that enforce acyclicity in graph partitioning for heterogeneous embedded multiprocessors used in computer vision and imaging applications.
  • Identify and formalize a new variant of the graph partitioning problem with the constraint that dependencies between blocks must be acyclic to support sequential execution.
  • Develop scalable heuristics that produce high-quality partitions under the acyclicity constraint, improving communication volume and execution time.
  • Demonstrate the practical impact of the proposed method on a real imaging application, showing measurable improvements in schedule efficiency and reduced gang count.

Proposed method

  • Transform the application graph from OpenVX (DAG) to a Synchronous Dataflow (SDF) representation, where nodes represent kernels and edges represent data buffers with annotated sizes.
  • Enforce acyclicity in the quotient graph by ensuring no cycles exist between blocks after partitioning, which is essential for sequential execution on the target hardware.
  • Design and implement three heuristics—Simple Moves (SM), Adaptive Moves (AM), and Greedy Moves (GM)—to iteratively improve partition quality by minimizing edge cut while respecting acyclicity.
  • Use a time budget of one minute per heuristic run and gradually increase the program size tolerance (ε) to accommodate compiler optimizations that reduce final program memory usage.
  • Apply the heuristics in two passes: first to partition the graph into blocks with balanced size and minimal inter-block communication, then to group blocks into scheduling gangs with minimal external memory transfers.
  • Evaluate scalability using random geometric graphs (rggX) with up to 2^22 nodes, directed from lower to higher node IDs to ensure acyclicity, and measure performance across varying problem sizes.

Experimental results

Research questions

  • RQ1Is the graph partitioning problem with acyclicity constraints between blocks NP-complete?
  • RQ2Can efficient heuristics be designed to approximate the optimal solution under this constraint, especially given the lack of existing solutions?
  • RQ3To what extent do the proposed heuristics reduce communication volume and execution time compared to manual partitioning in real imaging workloads?
  • RQ4How do the heuristics scale with increasing graph size, particularly in terms of runtime and edge cut reduction?
  • RQ5Can the reduction in number of scheduling gangs (due to lower edge cut) lead to improved execution time, even when bandwidth is not the bottleneck?

Key findings

  • The acyclicity-constrained graph partitioning problem is proven to be NP-complete, and it is also hard to approximate, justifying the need for heuristic solutions.
  • All proposed heuristics (SM, AM, GM) reduce the 1-level edge cut by at least 30% compared to the baseline, significantly lowering communication volume.
  • The Adaptive Moves (AM) heuristic reduces the number of scheduling gangs due to lower edge cut, leading to improved execution time even in compute-limited scenarios.
  • The Greedy Moves (GM) heuristic achieves further edge cut reduction but poorly balances compute-intensive kernels, resulting in no improvement in schedule time.
  • The heuristics scale linearly with problem size on large random geometric graphs (up to 2^22 nodes), with execution time growing proportionally and maintaining consistent edge cut improvements.
  • In a real imaging application, the heuristics yield schedules that are superior on bandwidth-limited platforms and potentially faster on compute-limited ones, demonstrating practical impact.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.