Skip to main content
QUICK REVIEW

[Paper Review] Greed is Good: Optimistic Algorithms for Bipartite-Graph Partial Coloring on Multicore Architectures

Mustafa Kemal Taş, Kamer Kaya|arXiv (Cornell University)|Jan 10, 2017
Scheduling and Timetabling SolutionsDecision Sciences18 references6 citations
TL;DR

This paper presents highly optimized, greedy, and optimistic parallel algorithms for bipartite-graph partial coloring (BGPC) and distance-2 graph coloring (D2GC) on shared-memory multicore systems. By employing aggressive conflict resolution and costless online balancing heuristics, the proposed algorithms achieve up to 4.71× speedup over the ColPack library on 16 cores while increasing the number of colors by only 8%, and significantly reduce load imbalance in color set cardinalities without performance penalty.

ABSTRACT

In parallel computing, a valid graph coloring yields a lock-free processing of the colored tasks, data points, etc., without expensive synchronization mechanisms. However, coloring is not free and the overhead can be significant. In particular, for the bipartite-graph partial coloring (BGPC) and distance-2 graph coloring (D2GC) problems, which have various use-cases within the scientific computing and numerical optimization domains, the coloring overhead can be in the order of minutes with a single thread for many real-life graphs. In this work, we propose parallel algorithms for bipartite-graph partial coloring on shared-memory architectures. Compared to the existing shared-memory BGPC algorithms, the proposed ones employ greedier and more optimistic techniques that yield a better parallel coloring performance. In particular, on 16 cores, the proposed algorithms perform more than 4x faster than their counterparts in the ColPack library which is, to the best of our knowledge, the only publicly-available coloring library for multicore architectures. In addition to BGPC, the proposed techniques are employed to devise parallel distance-2 graph coloring algorithms and similar performance improvements have been observed. Finally, we propose two costless balancing heuristics for BGPC that can reduce the skewness and imbalance on the cardinality of color sets (almost) for free. The heuristics can also be used for the D2GC problem and in general, they will probably yield a better color-based parallelization performance especially on many-core architectures.

Motivation & Objective

  • To reduce the high sequential coloring overhead—often in the order of minutes—for BGPC and D2GC on real-world graphs.
  • To improve parallel performance of BGPC and D2GC on shared-memory multicore architectures through more aggressive and optimistic coloring strategies.
  • To design costless, online balancing heuristics that minimize color set cardinality skew without increasing computational cost.
  • To extend the proposed techniques to D2GC and evaluate their performance across diverse graph workloads.
  • To enable efficient, scalable, and load-balanced parallelization for numerical optimization and scientific computing workloads relying on graph coloring.

Proposed method

  • Adopt a greedy, optimistic coloring strategy where vertices are assigned colors in parallel, assuming validity, with conflict resolution performed in a post-processing phase.
  • Use a net-based conflict detection mechanism, inspired by net-based coloring in distributed systems, to efficiently identify and resolve color conflicts.
  • Introduce two online balancing heuristics: B1, which avoids increasing the number of colors while improving balance; and B2, which allows up to 11% more colors to achieve significantly better load balance.
  • Apply the same optimistic and greedy techniques to the D2GC problem, reusing conflict resolution and balancing mechanisms.
  • Implement the algorithms using OpenMP on shared-memory systems, targeting high thread-level parallelism and low synchronization overhead.
  • Use normalized performance metrics and color set cardinality distributions to evaluate speedup and load balancing improvements across multiple real-world graphs.

Experimental results

Research questions

  • RQ1Can more aggressive and optimistic coloring strategies significantly reduce the execution time of BGPC on multicore systems compared to existing shared-memory implementations?
  • RQ2To what extent can the proposed balancing heuristics reduce load imbalance in color set cardinalities without incurring significant computational cost?
  • RQ3Can the same optimistic and greedy techniques used for BGPC be effectively adapted to D2GC with similar performance gains?
  • RQ4How do the proposed algorithms compare in performance and color count to the only publicly available parallel BGPC library, ColPack?
  • RQ5What is the impact of load imbalance on the overall parallel performance of graph coloring in scientific computing workloads, and can it be mitigated effectively during coloring?

Key findings

  • On 16 cores, the proposed BGPC algorithms achieve a 4.71× speedup over the parallel ColPack library, using only 8% more colors on average across eight UFL matrices.
  • The performance improvement is achieved through a combination of basic optimizations (1.47× speedup) and more aggressive, optimistic coloring techniques (2.81× speedup).
  • The balancing heuristics B1 and B2 reduce the standard deviation of color set cardinalities by up to 0.62× and 0.25×, respectively, with minimal cost—only 11% more colors on average for B2.
  • For D2GC, similar speedups were observed on five out of eight square, structurally symmetric matrices, indicating the generalizability of the approach.
  • The proposed heuristics are costless and online, meaning they can be applied during coloring without additional passes or significant overhead.
  • The results demonstrate that load imbalance in color sets can be significantly reduced without increasing the number of colors or degrading performance, especially beneficial for many-core architectures.

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.