FCA2VEC: Embedding Techniques for Formal Concept Analysis

Dominik Dürrschnabel, Tom Hanika, Maximilian StubbemannarXiv 2019

Abstract

Formal Concept Analysis (FCA) provides a mathematically rigorous framework for discovering hierarchies and logical implications in data, yet it struggles with scalability and high-dimensional interpretability. This paper introduces fca2vec, a suite of embedding techniques that translate FCA's structural insights into low-dimensional vector spaces. By leveraging concept extents and intents as training contexts, the proposed methods—Object2Vec, Attribute2Vec, and Closure2Vec—enable efficient data representation that preserves relational structures. Experimental results on diverse datasets show that fca2vec outperforms standard methods like node2vec in low-dimensional tasks such as link prediction and structural retrieval.

Introduction

Formal Concept Analysis (FCA) is prized in data science for its "explainable" outputs, identifying clear hierarchies within a formal context—a tabular representation of relationships between objects and attributes. However, FCA faces two significant hurdles: the computational cost of generating full concept lattices for large datasets and the difficulty of visualizing high-dimensional data.

A formal context representing the binary relationships between objects (rows) and attributes (columns).

Modern embedding techniques like word2vec or node2vec offer scalability but often sacrifice interpretability, typically requiring 100+ dimensions to be effective. The authors of "FCA2VEC" propose a middle ground: using the mathematical structure of FCA to guide the creation of highly interpretable embeddings in just two or three dimensions.

Methodology

The fca2vec framework consists of two primary approaches:

1. Object2Vec and Attribute2Vec

Inspired by natural language processing, these methods treat the extents (sets of objects) and intents (sets of attributes) of formal concepts as "sentences" or contexts. In Object2Vec, objects are considered "close" if they frequently co-occur within the same formal concept extent. The authors adapt standard Skip-gram (SG) and Continuous Bag of Words (CBoW) architectures to learn these relationships.

The neural architecture used for Object2Vec and Attribute2Vec, mapping input layers through a hidden layer to an output layer.

2. Closure2Vec

This method addresses the closure operator, which identifies the smallest concept containing a specific set of items. The authors theoretically prove that simple linear maps cannot perfectly represent these operators. Consequently, they employ a Siamese Neural Network to learn the "Closure Hamming Distance," allowing the embedding of the lattice's hierarchical "covering relations" into a visualizable space.

Experimental Evaluation

The researchers tested fca2vec on three datasets: wiki44k (Wikidata extract), Mushroom (binary attribute dataset), and ICFCA (a publication network).

Key Results

  • Superior Low-Dimensional Performance: In 2D and 3D spaces, Object2Vec (O2V-CBoW) consistently outperformed node2vec. For instance, in 3D link prediction on the ICFCA dataset, O2V-CBoW achieved an F1-score of 0.69, significantly higher than node2vec's 0.58.
  • Structural Fidelity: Closure2Vec successfully retrieved direct parent-child links in hierarchies. Concepts linked in the lattice were found to be significantly closer in the vector space than unrelated ones.
  • Logical Clustering: Attribute2Vec effectively clustered attributes such that the resulting groups captured a high percentage of the data's core logical implications (the "canonical base").

Conclusion

FCA2VEC demonstrates that embedding techniques grounded in formal mathematical structures can provide both performance and interpretability. While the current implementation often requires pre-computing the concept lattice—a bottleneck for massive datasets—it opens the door for future research into statistical approximations of lattice structures. This work paves the way for applying FCA to large-scale relational data, such as genealogy graphs and RDF structures, without losing the rigor of the underlying logic.

Summary updated

BibTeX
@misc{durrschnabel2019fca,
  author = {Dominik Dürrschnabel and Tom Hanika and Maximilian Stubbemann},
  title = {{FCA2VEC: Embedding Techniques for Formal Concept Analysis}},
  year = {2019},
  eprint = {1911.11496},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.11496},
}
Figure