Embedding Formal Contexts Using Unordered Composition

Esteban Marquer, Ajinkya Kulkarni, Miguel CouceiroFCA4AI@ECAI 2020

TL;DR

This paper introduces "Bag of Attributes" (BoA), a novel neural embedding framework for formal contexts that unifies object and attribute representations in a shared space. BoA addresses scalability issues in Formal Concept Analysis (FCA) by enabling efficient knowledge discovery tasks like clustering and link prediction.

What Problem Does This Paper Address?

Formal Concept Analysis (FCA) is a powerful tool for understanding complex data by identifying formal concepts (relationships between objects and attributes). However, traditional FCA methods struggle with scalability for large datasets. While recent neural network approaches like FCA2VEC embed formal contexts, they often have limitations: embeddings for objects and attributes are in separate spaces, and models are context-specific, lacking generalization. This paper aims to bridge this gap by proposing a general, data-agnostic neural embedding framework that can represent both objects and attributes in a unified embedding space, facilitating downstream tasks.

Methods

The core of the proposed method is the Bag of Attributes (BoA) framework. BoA takes a formal context as input and generates embeddings for both attributes and objects. Its key components include:

  • Attribute Encoder (Self-Other Encoder): This component generates embeddings for individual attributes. It compares an attribute's column (its "self") with an unordered composition (average-pooling) of all other attributes ("other") for each object. This comparison is then processed by a bidirectional LSTM (BLSTM) to capture contextual information.
  • Object Encoder: Object embeddings are computed by applying max-pooling over the embeddings of attributes present in the object's intent (i.e., the attributes associated with that object).
  • VAE Framework: BoA is trained as a Variational Auto-Encoder (VAE). This involves a reconstruction loss (predicting the original context) and a KL divergence loss on attribute embeddings.
  • Metric Learning: BoA also incorporates metric learning objectives to predict:
  • Co-intent Similarity: A novel measure for attribute similarity, defined as the ratio of intents containing both attributes over intents containing either attribute. This helps overcome the scarcity of "equal" attributes in real-world contexts.
  • Number of Concepts: Predicting the number of concepts in a context.

The training process is conducted in two phases, gradually introducing the metric learning objectives.

Datasets

  • Randomly Generated Formal Contexts: The primary dataset for training and initial evaluation consists of 6000 randomly generated formal contexts (5000 for training, 1000 for testing). These contexts are generated with varying densities and sizes, and their corresponding intents are computed using the Coron system.
  • SPECT Heart Dataset: Used for attribute clustering experiments.
  • ICFCA Dataset: Used for co-authorship prediction (link prediction) experiments.

Key Insights and Ideas

  • Unified Embedding Space: The most significant insight is the creation of a single embedding space for both objects and attributes. This unification is crucial for tasks that require reasoning about the relationships between objects and attributes simultaneously.
  • Co-intent Similarity: The introduction of co-intent similarity is a clever way to define attribute similarity in FCA, addressing the challenge of sparse co-occurrences in real-world contexts.
  • Data Agnosticism and Generalization: BoA's design aims for data agnosticism, meaning it can handle contexts of varying dimensions and is trained on randomly generated data but shows promising generalization to real-world datasets.
  • Scalability Potential: By leveraging neural networks and a unified embedding space, BoA offers a potential solution to the scalability limitations of traditional FCA methods.

Key Results

  • Reconstruction Performance: BoA demonstrates good reconstruction performance, with AUC ROC scores generally stable across different context densities. Performance degrades for larger contexts (beyond 50x50 objects/attributes), indicating a current limitation.
  • Metric Learning Performance: The model shows a strong correlation (Pearson coefficient of 0.9) for predicting the number of concepts. Co-intent similarity prediction is less clear-cut, with some random-like predictions for intermediate similarities.
  • Real-World Experiments:
    • Link Prediction (ICFCA): BoA variants show significantly different performance compared to existing object2vec (o2v) methods, with one variant achieving a competitive F1 score. However, the paper notes difficulty in reproducing previous results on this sparse dataset.
  • Attribute Clustering (SPECT Heart): BoA performs comparably to or better than existing attribute2vec (a2v) methods for 2 and 5 clusters, showing significant improvement. For 10 clusters, a2v CBOW performs better.

Limitations and Future Work

  • Scalability for Very Large Contexts: The reconstruction performance drops significantly for contexts larger than 50x50, suggesting that further architectural improvements or training strategies are needed for massive datasets.
  • Co-intent Similarity Prediction Clarity: The prediction of co-intent similarity for attributes that are neither identical nor completely dissimilar remains somewhat unclear.
  • Random Context Generation Biases: The authors acknowledge that their random context generation method introduces biases and suggest exploring more accurate generation algorithms.
  • Future Work:
    • Addressing biases in random context generation.
  • Improving the scalability of concept lattice construction using neural methods.
  • Further exploring the use of BoA for generation processes.

Summary updated

BibTeX
@inproceedings{marquer2020embedding,
  author = {Esteban Marquer and Ajinkya Kulkarni and Miguel Couceiro},
  title = {{Embedding Formal Contexts Using Unordered Composition}},
  booktitle = {FCA4AI@ECAI},
  year = {2020},
  url = {https://openreview.net/forum?id=uLN5LDki8n},
}
Figure