Pointwise Distance Distributions for detecting near-duplicates in large materials databases

Daniel Widdowson, Vitaliy Kurlin · DOI

Abstract

Many real objects are modeled as discrete sets of points, such as corners or other salient features. For our main applications in chemistry, points represent atomic centers in a molecule or a solid material. We study the problem of classifying discrete (finite and periodic) sets of unordered points under isometry, which is any transformation preserving distances in a metric space. Experimental noise motivates the new practical requirement to make such invariants Lipschitz continuous so that perturbing every point in its epsilon-neighborhood changes the invariant up to a constant multiple of epsilon in a suitable distance satisfying all metric axioms. Since the given points are unordered, the key challenge is to compute all invariants and metrics in a near-linear time of the input size. We define the Pointwise Distance Distribution (PDD) for any discrete set and prove, in addition to the properties above, the completeness of PDD for all periodic sets in general position. The PDD can compare nearly 2 million crystals from the world's five largest databases within 2 hours on a modest desktop computer. The impact is upholding data integrity in crystallography because the PDD will not allow anyone to claim a 'new' material as a noisy disguise of a known crystal.

Introduction: The Ambiguity of Crystal Representation

In materials science and chemistry, identifying whether two crystal structures are the same is surprisingly difficult. A single crystal can be described by infinitely many different "unit cells" (the repeating geometric box) or coordinate systems. Furthermore, experimental data is always "noisy"—atoms vibrate or measurements are slightly off.

A single lattice can be represented by infinitely many different unit cells (U, U', U''), which makes identifying duplicates based on coordinates alone extremely difficult.

Traditional methods for detecting duplicates often rely on rigid symmetry groups or iterative alignment (like the COMPACK algorithm), which are either too sensitive to tiny perturbations or too slow to handle the "Big Data" explosion in materials science. The challenge is to find a descriptor that is isometry invariant, Lipschitz continuous (robust to noise), complete (uniquely identifies a structure), and efficient to compute.

The Pointwise Distance Distribution (PDD) Framework

The authors propose the Pointwise Distance Distribution (PDD) as a mathematically rigorous and computationally efficient "fingerprint" for molecules and crystals.

The PDD framework applies to a wide hierarchy of discrete sets in metric spaces, from finite molecules to complex periodic solids.
  • The Descriptor: For every point (atom) in a structure's repeating motif, the algorithm calculates the distances to its $k$ nearest neighbors. This creates a matrix where each row represents an atom's local environment. To make this invariant to the order of atoms, identical rows are collapsed into a single row with a "weight" representing its frequency.
  • Comparison: To compare two PDDs, the authors use the Earth Mover’s Distance (EMD). This metric treats the PDD as a distribution of local environments and calculates the minimum "work" needed to transform one distribution into another.
  • Mathematical Foundations: The paper provides rigorous proofs that PDD is Lipschitz continuous and "generically complete," meaning it can uniquely reconstruct almost any crystal structure from its distances alone. By utilizing compressed cover trees for nearest-neighbor searches, the descriptor can be computed in near-linear time relative to the number of atoms.

Large-Scale Database Analysis

The authors evaluated their method by cross-referencing the world's five largest crystal databases (as of late 2024/2025):

  • CSD: Cambridge Structural Database (organic/metal-organic).
  • COD: Crystallography Open Database (open-access).
  • ICSD: Inorganic Crystal Structures Database.
  • MP: Materials Project (computed structures).
  • GNoME: Google DeepMind’s database of 2.2 million new (predicted) materials.

The total pool consisted of approximately 1,847,462 periodic crystals.

Key Insights and Results

Historically, researchers could claim a "new" material simply by choosing a non-standard unit cell or slightly perturbing coordinates. PDD makes these disguises transparent, upholding data integrity across the field. By moving from quadratic or exponential comparison algorithms to near-linear ones, the authors transformed a task that would take years of CPU time into one that takes minutes.

  • Speed: The PDD can compare 2 million crystals in under 2 hours on a modest desktop computer. For a single pair of crystals, the PDD + EMD calculation takes roughly 7.5 milliseconds.
  • Redundancy Discovery: The study revealed that even well-curated databases like the CSD contain near-duplicates (0.9%), while others like the ICSD have a staggering amount of redundancy (over 30% are near-duplicates). Furthermore, 80% of the COD overlaps with the CSD.
  • Geometric vs. Chemical Duplicates: The authors found 235 pairs of structures that were geometrically identical but had different chemical labels—pointing to significant labeling errors or "mixed site" modeling issues in the source data.

Conclusion and Future Directions

While PDD is "generically complete" (working for almost all structures), the authors acknowledge that certain highly symmetrical or "pathological" cases might still exist where different structures yield the same PDD. Additionally, while a PDD is a set of distances, not every arbitrary set of distances can be mapped back to a physical crystal in 3D space. Future work will investigate this "realizability" problem and aim to extend these rigorous proofs to truly aperiodic or disordered materials, such as glasses.

Summary updated

BibTeX
@misc{widdowson2021pointwise,
  author = {Daniel Widdowson and Vitaliy Kurlin},
  title = {{Pointwise Distance Distributions for detecting near-duplicates in large materials databases}},
  year = {2021},
  eprint = {2108.04798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.04798},
}
Figure