Skip to main content
QUICK REVIEW

[Paper Review] Log anomaly detection via Meta Learning and Prototypical Networks for Cross domain generalization

Krishna Sharma, Vivek Yelleti|arXiv (Cornell University)|Jan 20, 2026
Data Stream Mining TechniquesComputer Science0 citations
TL;DR

The paper presents a meta-learning framework combining Drain3 log parsing, drift-based labeling, BERT embeddings, MAML, and Prototypical Networks to enable cross-domain log anomaly detection with imbalanced data.

ABSTRACT

Log anomaly detection is essential for system reliability, but it is extremely challenging to do considering it involves class imbalance. Additionally, the models trained in one domain are not applicable to other domains, necessitating the need for cross-domain adaptation (such as HDFS and Linux). Traditional detection models often fail to generalize due to significant data drift and the inherent absence of labeled anomalies in new target domains. To handle the above challenges, we proposed a new end-to-end framework based on a meta-learning approach. Our methodology first gets the data ready by combining a Drain3 log parsing mechanism with a dynamic drift-based labeling technique that uses semantic and fuzzy matching to move existing anomaly knowledge from one source to another. BERT-based semantic embeddings are obtained, and the feature selection is invoked to reduce the dimensionality. Later, Model Agnostic Meta-Learning (MAML) and Prototypical Networks models are trained to adapt quickly and effectively. The SMOTE oversampling method is employed to handle imbalances in the data. All the results are obtained by employing the leave-one-out source method, and the corresponding mean F1 scores are reported. Our empirical findings validate that the proposed meta-learning-driven approach yielded the highest mean F1 score and proved to be effective for cross-domain settings.

Motivation & Objective

  • Motivate robust log anomaly detection under domain shift and class imbalance.
  • Develop a cross-domain framework that transfers anomaly knowledge across sources (e.g., HDFS and Linux).
  • Leverage meta-learning and prototypical networks for fast adaptation to new domains.
  • Integrate label drift handling and semantic embeddings to prepare data for learning.
  • Evaluate using a leave-one-out source protocol to assess generalization.

Proposed method

  • CombineDrain3-based log parsing with a drift-based labeling technique using semantic and fuzzy matching.
  • Obtain BERT-based semantic embeddings of logs and perform feature selection to reduce dimensionality.
  • Train Model-Agnostic Meta-Learning (MAML) and Prototypical Networks for rapid cross-domain adaptation.
  • Use SMOTE oversampling to address class imbalance in the data.
  • Evaluate via leave-one-out source setup and report mean F1 scores.

Experimental results

Research questions

  • RQ1Can meta-learning-based approaches achieve better cross-domain detection of log anomalies than baseline methods?
  • RQ2How effective are MAML and Prototypical Networks in adapting to unseen domains with imbalanced data?
  • RQ3What is the impact of semantic drift-aware labeling on cross-domain performance?
  • RQ4Does SMOTE oversampling improve anomaly detection without harming generalization?

Key findings

  • The meta-learning-driven approach yields the highest mean F1 score in cross-domain settings.
  • The framework effectively facilitates cross-domain generalization across domains with data drift.
  • Dimensionality reduction via feature selection improves learning efficiency.
  • Drift-aware labeling helps transfer anomaly knowledge between sources.
  • SMOTE helps address class imbalance in the anomaly detection task.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.