Social Content Matching in MapReduce

Gianmarco De Francisci Morales, Aristides Gionis, Mauro Sozio · DOI

Abstract

Matching users to relevant content in massive social networks is computationally expensive. This paper models social content recommendation as a maximum-weight $b$-matching problem and introduces two scalable MapReduce algorithms, StackMR and GreedyMR, that can efficiently approximate solutions across billions of user-item connections.

Introduction

In modern social media, platforms need to distribute user-generated content to interested consumers. This is a classic bipartite matching problem where we aim to maximize overall relevance (edge weight) while respecting capacity constraints—users shouldn't be overwhelmed, and items shouldn't exceed distribution limits. This is formalized as a maximum-weight $b$-matching problem.

While exact algorithms exist, they do not scale to social networks with millions of users and billions of potential connections. This paper explores distributed approximation algorithms designed for the MapReduce framework.

Methods

The authors propose a two-stage pipeline: graph pruning via similarity self-join, followed by one of two novel matching algorithms:

  • StackMR: A primal-dual approach that computes maximal $b$-matchings in parallel. It guarantees a poly-logarithmic number of MapReduce steps and a $1/(6+\epsilon)$ approximation, though it may slightly violate capacity constraints.
  • GreedyMR: A distributed adaptation of the greedy matching algorithm. It offers a $1/2$ approximation guarantee and strictly respects capacity constraints, but lacks theoretical guarantees on the number of iterations.

Experimental Evaluation

The algorithms were evaluated on real-world datasets, including flickr-large with approximately 1.99 billion edges.

Quality vs. Efficiency

A key finding is the trade-off between theoretical iteration bounds and practical performance. GreedyMR consistently produces higher-quality matchings.

Matching value comparison on the flickr-large dataset. GreedyMR consistently achieves higher total matching value than StackMR.

As shown in the figure above, GreedyMR achieved significantly higher matching values compared to StackMR. However, StackMR demonstrates superior scalability in terms of the number of MapReduce iterations required.

Map-Reduce iterations for the flickr-large dataset. StackMR requires significantly fewer iterations than GreedyMR as the graph size increases.

Despite the higher iteration count, GreedyMR converges quickly, reaching 95% of its final value within the first 30-45% of its execution. It also offers the advantage of maintaining a feasible matching at every step, allowing for "any-time" results.

Conclusion

The study highlights a divide between theoretical scalability and practical utility. StackMR provides strong iteration bounds for massive graphs, while GreedyMR offers superior quality and flexibility. Future research aims to combine these strengths into a single distributed algorithm.

Summary updated

BibTeX
@article{morales2011social,
  author = {Gianmarco De Francisci Morales and Aristides Gionis and Mauro Sozio},
  title = {{Social Content Matching in MapReduce}},
  journal = {Proc. VLDB Endow.},
  year = {2011},
  doi = {10.14778/1988776.1988782},
}
Figure