LogFiT: Log Anomaly Detection Using Fine-Tuned Language Models
Open accessPublished version of a preprint
The DOI matches its Crossref record; 60 of the 60 references it cites were found in a registry or an index.
Abstract
System logs are a valuable source of information for monitoring and maintaining the security and stability of computer systems. Techniques based on Deep Learning and Natural Language Processing have demonstrated effectiveness in detecting abnormal behavior from these system logs. However existing approaches are inflexible and impractical: techniques that rely on log templates are unable to handle variability in log content, while classification-based approaches require labeled data for supervised training. In this paper, a novel log anomaly detection model named LogFiT is proposed. The LogFiT model is robust to changes in log content and only requires self-supervised training. The LogFiT model uses a pretrained BERT-based language model fine-tuned to recognise the linguistic patterns of the normal log data. The LogFiT model is trained using masked token prediction on the normal log data only. Consequently when presented with the new log data, the model's top-k token prediction accuracy is used as threshold for determining whether the new log data has deviated from the normal log data. Experimental results show that LogFiT's F1 score exceeds that of baselines on the HDFS, BGL and Thunderbird datasets. Critically, when variability in the log data is introduced during evaluation, LogFiT's effectiveness surpasses that of the baseline models.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures




Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“The selection of these models aligns with the existing literature [6,14,15,22] and supports a balanced comparison between unsupervised and supervised approaches.”
From Log anomaly detection in AIOps: A real-world implementation using Large Language Models (2026) · cites this paper as [22]
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 1×
“It inherits Transformer’s [19] self-attention mechanism which helps it avoid local bias, and its use of bidirectional context allows it to capture complex and ambiguous contextual relationships.”
BackgroundExploiting Generative AI to Scale up Intelligent Tutoring Systems
Jakubův, J., Chvalovský, K., Goertzel, Z., Kaliszyk, C., Olšák, M., Piotrowski, B., Schulz, S., Suda, M., & Urban, J. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.itp.2023.19 · Cited by 76,658
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173 · cited 5×
“In recent research, there has been a growing interest in the use of pretrained language models (LMs) such as BERT [18] to improve anomaly detection in system logs.”
BackgroundMethodInfluentialBERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 54,325 · cited 5×
“In recent research, there has been a growing interest in the use of pretrained language models (LMs) such as BERT [18] to improve anomaly detection in system logs.”
BackgroundMethodInfluentialRoBERTa: A Robustly Optimized BERT Pretraining Approach
Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., & Stoyanov, V. (2019) · arXiv · doi:10.48550/arxiv.1907.11692 · Cited by 16,515 · cited 1×
“It employs pretrained foundation models [38], specifically fine-tuning RoBERTa [39] or Longformer [40] to learn the linguistic and sequential properties of normal log data.”
MethodWordNet: a lexical database for English
Miller, G. A. (1995) · Communications of the ACM · doi:10.1145/219717.219748 · Cited by 14,015 · cited 1×
“Log Content Variability: To test the models’ ability to handle variation in the syntactic structure of the log data, the evaluation set is dynamically modified during model evaluation on the BGL dataset, so that the top 10% most commonly occurring verbs are replaced with their WordNet [48] lemmas.”
MethodUMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
McInnes, L., Healy, J., & Melville, J. (2018) · arXiv · doi:10.48550/arxiv.1802.03426 · Cited by 7,101 · cited 1×
“Furthermore, the semantic vectors of the training set did not form distinct clusters, after dimensionality reduction via the UMAP algorithm [51], as shown in Figure 4.”
MethodUniversal Language Model Fine-tuning for Text Classification
Howard, J., & Ruder, S. (2018) · Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p18-1031 · Cited by 4,100
Deep Learning for Anomaly Detection: A Review
Pang, G., Shen, C., Cao, L., & Hengel, A. V. D. (2022) · ACM Computing Surveys · doi:10.1145/3439950 · Cited by 2,837
On the Opportunities and Risks of Foundation Models
Bommasani, R., Hudson, D. A., Adeli, E., Altman, R., Arora, S., von Arx, S., Bernstein, M. S., Bohg, J., Bosselut, A., Brunskill, E., et al. (2021) · arXiv · doi:10.48550/arxiv.2108.07258 · Cited by 2,676 · cited 1×
“It employs pretrained foundation models [38], specifically fine-tuning RoBERTa [39] or Longformer [40] to learn the linguistic and sequential properties of normal log data.”
Method
Research works printed but not linked: 3
- RiskIQ, The evil internet minute 2019, 2019. [Online]. Available: https : / / www . riskiq . com / resources / infographic/evil-internet-minute-2019.
- International Business Machines, Cost of a data breach report 2022, 2022. [Online]. Available: https : / / www. ibm.com/security/data-breach.
- 10.3390/INFOo11020108 · doi:10.3390/infoo11020108
Cited by
Items 101–117 of 117
Leveraging LLMs for Sequential Data Augmentation in Insider Threat Detection
Chung, J. Z. A., Yong, K. S. C., Han, J., & Then, P. (2026) · Lecture notes in networks and systems · doi:10.1007/978-3-032-25638-6_18
Explanation-Bound Alerts for Incident Detection in Large-Scale Cloud Data Systems
Venkatesan, V., Saha, P., Nandi, S. P., Patel, T., Ranganathan, V., & Nimmala, R. (2026) · IEEE International Conference on Big Data Security on Cloud, IEEE International Conference on High Performance and Smart Computing, and IEEE International Conference on Intelligent Data and Security (BigDataSecurity/HPSC/IDS) · doi:10.1109/ids69480.2026.00018
Ariyanto, Y., Syaifudin, Y. W., Saputra, P. Y., Setiadi, C., Fatmawati, T., & Muhtaram, M. I. (2026) · Journal of Evrimata · doi:10.70822/journalofevrmata.vi.148
“A third body of work explores intelligent, analyst-oriented analysis log anomaly detection with fine-tuned language models [17], ensemble-based behavioural anomaly detection [18], real-time reliability anomaly detection [19], and AI-driven log correlation for forensics [2], which improves detection…”
Alnuaimi, M., & Khan, W. A. (2026) · International Conference on Innovation Management and Information Systems (ICIMIS) · doi:10.1145/3821966.3822020
From Machine Learning to LogBERT: A Survey of Web Log Anomaly Detection for APT and Botnet Threats
Altmimi, S., & Alomari, E. S. (2026) · Al-Noor Journal of Engineering Management and Computer Science · doi:10.71229/7tzh0144
Chen, T., & Sun, K. (2026) · Cybernetics and Intelligence · doi:10.26599/cai.2026.9390018 · Cited by 1
Dual view explainability-aware log preprocessing for robust anomaly detection toward ER-CyRIS
Mahardika, F., Utami, E., Kusrini, K., & Wibowo, F. W. (2026) · Indonesian Journal of Electrical Engineering and Computer Science · doi:10.11591/ijeecs.v43.i3.pp871-879
“LogRobust [8] explicitly addresses unstable log data, whereas LogFiT [9] and LogGT [10] improve semantic representation and cross-system transfer, respectively.”
Knowledge-Augmented Log Anomaly Detection with Large Language Models
Tao, Y., Zhang, H., Le, V.-H., & Xiao, Y. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3773248 · Cited by 1
“We note that there exist several LLM-based log anomaly detection approaches [1, 12, 28] that rely on fine-tuning model parameters.”
Omoighe, J. A., Atoyebi, T. O., Kolapo, R., & Kirubakaran, P. A. (2026) · Iconic Research and Engineering Journals · doi:10.64388/irev10i3-1723220
Anomaly Detection in Software System Logs Using Machine Learning
Han, J. (2026) · Theoretical and Natural Science · doi:10.54254/2753-8818/2026.37416
Bio-to-Cyber Knowledge Transfer: NLP-Based Generation of IDS Rules from Medical Diagnostic Protocols
Syropiatov, O. A., & Tymoshenko, L. (2026) · International Conference on Advanced Computer Information Technologies (ACIT) · doi:10.1109/acit69831.2026.11699990
“Deep learning: BERT-based models [20] outperform template-based approaches for log anomaly detection; IoT automation rule classification [21] surpasses information flow analysis on 76,000+ rules.”
Arunvinodh, C., & Rao, N. V. (2026) · International Conference on Innovations in Mechanical, Robotics, Computing and Biomedical Engineering (ICIMRBE) · doi:10.1109/icimrbe70745.2026.11709915
“The use of log FiTs in order to develop anomaly-detection performance via log-contextual understanding [13] represents an extension of these efforts.”
Expanding Guard Reach: Online Learning-Driven Incremental Kernel Panic Diagnosis
Sui, Y., Wang, X., Zhang, H., Zhang, S., Jiang, B., Zheng, H., Sun, Y., Zhang, Y., Zhang, Y., Wu, X., et al. (2026) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3832783.3834474
“Formally, we denote the resulting segmented log sequence as 𝑆 = { 𝑠 1 ,𝑠 2 , . . . 𝑚 } , where each 𝑠 𝑖 represents a coherent log segment defined by a range of line numbers ( e.g. , [[1–3], [4–11]]).”
LogRD: A Robustness-Enhanced Framework for Log Anomaly Detection with Dynamic Masking
Liang, X., Zou, X., Ren, J., Su, Z., Zheng, C., & Xu, W. (2026) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn69854.2026.11728675
“Clustering-based methods, e.g., PLELog [23] and OC4Seq [24], detect anomalies via distance to cluster centroids, yet high semantic diversity limits stability, as shown by LogFit [2].”
InfluentialBollimuntha, A., Vijayaraghavan, K. S., & Abhi, S. (2026) · International Conference on Next-Gen Intelligent Computing and Applications (ICONICA) · doi:10.1109/iconica70605.2026.11736853
“Almodovar et al. [1] demonstrate that domain-fine-tuned transformer language models substantially outperform classical anomaly-detection baselines on structured log data; their LogFiT system shows that even modest supervised fine-tuning produces recall improvements that translate directly into…”
InfluentialA Mathematical Modeling Framework for Semantic–Temporal Graph Learning in Log Anomaly Detection
Gao, S., & Wang, X. (2026) · Mathematics · doi:10.3390/math14213866
MGL-log: Multi-modal Gated Linear Transformer for Log Anomaly Detection
Yan, R., Cai, J., & Su, Y. (2026) · International Conference on Computer Systems (ICCS) · doi:10.1109/iccs71313.2026.11739821
“LogBERT [17] learns the context of log key sequences through masked language modeling, while NeuralLog [18] and LogFit [19] attempt to directly process raw log text.”
Metadata
- Authors
- Almodovar, C., Sabrina, F., Karimi, S., & Azad, S.
- Affiliations
- Central Queensland University (AU)
- Data61 (AU)
- Venue
- IEEE Transactions on Network and Service Management
- Published
- 2024-04
- Volume
- 21
- Issue
- 2
- Pages
- 1715-1723
- ISSN
- 1932-4537 (ISSN-L)
- 2373-7379
- OpenAlex
- W4391235307
- Semantic Scholar
- 781fa8bb5ab3af8de29b7674e44648aa40bd5e77
- Cited by
- 111
- References
- 53
- Citations by year
- 2026: 45 · 2025: 53 · 2024: 12
- FWCI
- 18.31
- Type
- journal article
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- Locations
- IEEE Transactions on Network and Service Management (publishedVersion, cc-by-nc-nd)
- Figshare (submittedVersion, cc-by)
- Figshare (submittedVersion, cc-by-nc-nd)
- Funders
- Central Queensland University’s School of Graduate Research
- Commonwealth Scientific and Industrial Research Organisation (CSIRO)’s Data61 unit
- Topics
- Physical Sciences › Computer Science › Computer Networks and Communications › Software System Performance and Reliability
- Physical Sciences › Computer Science › Computer Networks and Communications › Network Security and Intrusion Detection
- Physical Sciences › Computer Science › Artificial Intelligence › Anomaly Detection Techniques and Applications
- Keywords
- log anomaly detection, system logs, self-supervised learning, masked language modeling, BERT fine-tuning, threshold-based anomaly detection, HDFS logs
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.