Anonymizing Graphs

Tomás Feder, Shubha U. Nabar, Evimaria TerziarXiv 2008

Abstract

Motivated by recently discovered privacy attacks on social networks, we study the problem of anonymizing the underlying graph of interactions in a social network. We call a graph $(k, \ell)$-anonymous if for every node in the graph there exist at least $k$ other nodes that share at least $\ell$ of its neighbors. We consider two combinatorial problems arising from this notion of anonymity in graphs. More specifically, given an input graph we ask for the minimum number of edges to be added so that the graph becomes $(k, \ell)$-anonymous. We define two variants of this minimization problem and study their properties. We show that for certain values of $k$ and $\ell$ the problems are polynomial-time solvable, while for others they become NP-hard. Approximation algorithms for the latter cases are also given.

Introduction

As social networks have become central to modern research, the challenge of sharing interaction data without compromising individual privacy has grown significantly. Simply removing identifying names (anonymization by pseudonymization) is insufficient; the structural properties of a user's connections—the "shape" of their social circle—can act as a unique identifier. For instance, if an adversary knows a target is the only individual in a community connected to two distinct public figures, that target can be easily re-identified in a sanitized graph.

This paper introduces the concept of $(k, \ell)$-anonymity to address these structural vulnerabilities. The goal is to modify a social graph by adding the minimum number of edges such that every node "blends in" with a crowd of at least $k$ other nodes, thereby preserving the utility of the data for researchers while protecting individual identities.

Defining $(k, \ell)$-Anonymity

The core requirement of $(k, \ell)$-anonymity is that for every node in the graph, there must exist at least $k$ other nodes that share at least $\ell$ neighbors with it. The authors distinguish between two primary variants of this problem:

  1. Weak $(k, \ell)$-anonymity: For every node $v$, there are $k$ other nodes sharing at least $\ell$ neighbors with $v$ in the modified graph.
  2. Strong $(k, \ell)$-anonymity: A stricter version where the $k$ other nodes must share at least $\ell$ of $v$’s original neighbors. This provides a more robust guarantee by protecting the user's pre-existing social structure.

The objective is to achieve these states with minimal edge additions to maintain the graph's original statistical properties.

Algorithmic Approaches

The paper explores the complexity of these problems and proposes several algorithmic solutions:

  • Optimal Solutions for $(2, 1)$-Anonymity: The authors provide a linear-time $O(|V| + |E|)$ algorithm for the simplest case. This involves a "deficit assignment" phase to identify unique nodes and a "matching" phase to pair them via edge additions.
  • Greedy Approximation for $(k, 1)$: For larger $k$, the problem becomes significantly harder. The authors employ greedy strategies that iteratively add edges or triplets of edges (forming triangles) to reduce the "residual anonymity" of the graph.
  • Expander Graph Constructions: When $\ell > 1$, the authors utilize randomized techniques to build expander-like structures between nodes requiring more shared neighbors, ensuring the threshold is met efficiently.

Complexity and Key Results

The research identifies a critical "hardness jump" in graph anonymization. While $(2, 1)$-anonymity is solvable in polynomial time, the problem of finding the minimum edge additions for $(k, 1)$-anonymity is proven to be NP-hard for $k \ge 7$ using reductions from the 1-in-3 SAT problem.

Despite this hardness, the authors establish several approximation guarantees:

  • A $2k$-approximation for the Strong $(k, 1)$ problem.
  • A nearly $O(\log n)$ approximation for the Weak $(k, 1)$ problem.
  • For constant $\ell$, anonymity can be achieved by adding approximately $O(\sqrt{k \ell})$ edges per vertex.

Insights and Limitations

A key insight is the "reinforcement effect" in weak anonymity: adding an edge to help anonymize one node may inadvertently assist in anonymizing others. Efficient greedy algorithms must account for this by adding edges in strategic groups rather than individually.

However, the study has limitations. It focuses exclusively on edge additions, whereas edge deletion or node clustering might offer better utility-privacy trade-offs in some contexts. Furthermore, the analysis is performed on static snapshots; future work is needed to address dynamic graphs that evolve over time. Finally, while the paper minimizes the number of changes, it does not empirically measure the impact on specific graph metrics like diameter or clustering coefficients, which are vital for social science utility.

Summary updated

BibTeX
@misc{feder2008anonymizing,
  author = {Tomás Feder and Shubha U. Nabar and Evimaria Terzi},
  title = {{Anonymizing Graphs}},
  year = {2008},
  eprint = {0810.5578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0810.5578},
}
Figure