[Paper Review] Entity Embedding-based Anomaly Detection for Heterogeneous Categorical Events
This paper proposes APE (Anomaly Detection via Probabilistic Pairwise Interaction and Entity Embedding), a unified probabilistic model that embeds heterogeneous categorical entities into a shared latent space to model event likelihoods. By leveraging weighted pairwise interactions of entity embeddings and Noise-Contrastive Estimation with context-dependent noise, APE efficiently learns from large event spaces and outperforms state-of-the-art methods in detecting anomalies on real enterprise surveillance data.
Anomaly detection plays an important role in modern data-driven security applications, such as detecting suspicious access to a socket from a process. In many cases, such events can be described as a collection of categorical values that are considered as entities of different types, which we call heterogeneous categorical events. Due to the lack of intrinsic distance measures among entities, and the exponentially large event space, most existing work relies heavily on heuristics to calculate abnormal scores for events. Different from previous work, we propose a principled and unified probabilistic model APE (Anomaly detection via Probabilistic pairwise interaction and Entity embedding) that directly models the likelihood of events. In this model, we embed entities into a common latent space using their observed co-occurrence in different events. More specifically, we first model the compatibility of each pair of entities according to their embeddings. Then we utilize the weighted pairwise interactions of different entity types to define the event probability. Using Noise-Contrastive Estimation with "context-dependent" noise distribution, our model can be learned efficiently regardless of the large event space. Experimental results on real enterprise surveillance data show that our methods can accurately detect abnormal events compared to other state-of-the-art abnormal detection techniques.
Motivation & Objective
- To address the challenge of unsupervised anomaly detection in heterogeneous categorical event data, where traditional methods rely on heuristics due to lack of intrinsic distance measures and exponentially large event spaces.
- To develop a unified, principled probabilistic framework that directly models event likelihood instead of relying on heuristic anomaly scoring.
- To learn meaningful entity representations that capture semantic similarities and compatibilities across different types of categorical entities.
- To enable efficient training on large-scale event data despite the combinatorial explosion of possible event combinations.
- To improve detection accuracy for unknown or previously unseen anomalous events in real-world security applications.
Proposed method
- Entity embedding is learned by modeling co-occurrence patterns of entities across events, projecting heterogeneous categorical entities into a shared low-dimensional latent space.
- Pairwise compatibility between entities is quantified using the dot product of their learned embedding vectors, capturing interaction strength.
- Event probability is defined as a weighted sum of pairwise interactions across different entity types, enabling flexible modeling of complex event structures.
- Noise-Contrastive Estimation (NCE) with context-dependent noise distribution is used to train the model efficiently, avoiding exhaustive computation over the full event space.
- The model is trained end-to-end to maximize the likelihood of observed normal events, with anomaly scores derived from the inverse of predicted event probability.
- t-SNE is used to visualize learned embeddings, validating that semantically similar entities cluster together in the latent space.
Experimental results
Research questions
- RQ1Can a unified probabilistic model effectively learn event likelihoods in heterogeneous categorical event data without relying on heuristic anomaly scores?
- RQ2Can entity embeddings capture meaningful semantic relationships and compatibilities between different types of categorical entities in event data?
- RQ3Can Noise-Contrastive Estimation with context-dependent noise enable efficient training on large-scale event data with exponentially large event spaces?
- RQ4Does the proposed APE model detect unknown anomalous events more accurately than existing state-of-the-art techniques?
- RQ5Can the learned entity embeddings reveal interpretable patterns, such as distinguishing working hours or root user behavior, that aid in anomaly detection?
Key findings
- The APE model achieves superior anomaly detection performance compared to state-of-the-art methods on real enterprise surveillance data, demonstrating higher accuracy in identifying abnormal events.
- t-SNE visualization confirms that learned entity embeddings capture meaningful semantics: similar user types cluster together, and root users are distinctly separated from others.
- The model successfully learns temporal patterns, such as clear separation between working hours and non-working hours in the hour embedding space, even without prior knowledge.
- The performance of APE is robust to the number of negative samples, with marginal improvements observed as negative sample size increases, indicating stable learning.
- The use of context-dependent noise in NCE enables efficient training without exhaustive enumeration of the full event space, making the method scalable.
- The weighted pairwise interaction mechanism reduces overfitting and improves interpretability compared to models that consider all possible interactions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.