IP Library Granted Patent US 12,333,005
Granted Patent B2
US 12,333,005 · App. 18/157,180 · Granted Jun 17, 2025

Efficient transformer for content-aware anomaly detection in event sequences

Inventors: Yanchi Liu (Monmouth Junction, NJ); Xuchao Zhang (Elkridge, MD); Haifeng Chen (West Windsor, NJ); Wei Cheng (Princeton Junction, NJ); Shengming Zhang (Kearny, NJ)
Assignee: NEC Corporation
G06F21/554
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,333,005
App. No.
18/157,180
Granted
Jun 17, 2025
Kind
B2
Abstract

A method for implementing a self-attentive encoder-decoder transformer framework for anomaly detection in event sequences is presented. The method includes feeding event content information into a content-awareness layer to generate event representations, inputting, into an encoder, event sequences of two hierarchies to capture long-term and short-term patterns and to generate feature maps, adding, in the decoder, a special sequence token at a beginning of an input sequence under detection, during a training stage, applying a one-class objective to bound the decoded special sequence token with a reconstruction loss for sequence forecasting using the generated feature maps from the encoder, and during a testing stage, labeling any event representation whose decoded special sequence token lies outside a hypersphere as an anomaly.

Claims (37)

1. A method for implementing a self-attentive encoder-decoder transformer framework for anomaly detection in event sequences, the method comprising:

feeding event content information into a content-awareness layer to generate event representations;

inputting, into an encoder, event sequences of two hierarchies to capture long-term and short-term patterns and to generate feature maps;

adding, in the decoder, a special sequence token at a beginning of an input sequence under detection;

during a training stage, applying a one-class objective to bound the decoded special sequence token with a reconstruction loss for sequence forecasting using the generated feature maps from the encoder; and

during a testing stage, labeling any event representation whose decoded special sequence token lies outside a hypersphere as an anomaly.

2. The method of claim 1 , wherein the decoder embeds the event sequences into a latent space where anomalies are distinguishable.

3. The method of claim 1 , wherein the special sequence token represents event sequence status.

4. The method of claim 1 , wherein the encoder includes attention blocks, 1-D convolutional filters with activation functions, and MaxPool layers to downsample the inputted event sequences of the two hierarchies.

5. The method of claim 1 , wherein the decoder includes a masked self-attention layer to preserve an auto-regressive property.

6. The method of claim 1 , wherein the decoder performs a one-time interference to predict all events.

7. The method of claim 1 , wherein the input sequence under detection of the decoder includes padded zeroes inferred by a one forward procedure.

8. A non-transitory computer-readable storage medium comprising a computer-readable program for implementing a self-attentive encoder-decoder transformer framework for anomaly detection in event sequences, wherein the computer-readable program when executed on a computer causes the computer to perform the steps of:

feeding event content information into a content-awareness layer to generate event representations;

inputting, into an encoder, event sequences of two hierarchies to capture long-term and short-term patterns and to generate feature maps;

adding, in the decoder, a special sequence token at a beginning of an input sequence under detection;

during a training stage, applying a one-class objective to bound the decoded special sequence token with a reconstruction loss for sequence forecasting using the generated feature maps from the encoder; and

during a testing stage, labeling any event representation whose decoded special sequence token lies outside a hypersphere as an anomaly.

9. The non-transitory computer-readable storage medium of claim 8 , wherein the decoder embeds the event sequences into a latent space where anomalies are distinguishable.

10. The non-transitory computer-readable storage medium of claim 8 , wherein the special sequence token represents event sequence status.

11. The non-transitory computer-readable storage medium of claim 8 , wherein the encoder includes attention blocks, 1-D convolutional filters with activation functions, and MaxPool layers to downsample the inputted event sequences of the two hierarchies.

12. The non-transitory computer-readable storage medium of claim 8 , wherein the decoder includes a masked self-attention layer to preserve an auto-regressive property.

13. The non-transitory computer-readable storage medium of claim 8 , wherein the decoder performs a one-time interference to predict all events.

14. The non-transitory computer-readable storage medium of claim 8 , wherein the input sequence under detection of the decoder includes padded zeroes inferred by a one forward procedure.

15. A system for implementing a self-attentive encoder-decoder transformer framework for anomaly detection in event sequences, the system comprising:

a memory; and

one or more processors in communication with the memory configured to:

feed event content information into a content-awareness layer to generate event representations;

input, into an encoder, event sequences of two hierarchies to capture long-term and short-term patterns and to generate feature maps;

add, in the decoder, a special sequence token at a beginning of an input sequence under detection;

during a training stage, apply a one-class objective to bound the decoded special sequence token with a reconstruction loss for sequence forecasting using the generated feature maps from the encoder; and

during a testing stage, label any event representation whose decoded special sequence token lies outside a hypersphere as an anomaly.

16. The system of claim 15 , wherein the decoder embeds the event sequences into a latent space where anomalies are distinguishable.

17. The system of claim 15 , wherein the special sequence token represents event sequence status.

18. The system of claim 15 , wherein the encoder includes attention blocks, 1-D convolutional filters with activation functions, and MaxPool layers to downsample the inputted event sequences of the two hierarchies.

19. The system of claim 15 , wherein the decoder includes a masked self-attention layer to preserve an auto-regressive property.

20. The system of claim 15 , wherein the decoder performs a one-time interference to predict all events.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 13, 2025
From: NEC LABORATORIES AMERICA, INC.
To: NEC CORPORATION
Reel/Frame 071095/0825 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 20, 2023
From: LIU, YANCHI; ZHANG, XUCHAO; CHEN, HAIFENG; CHENG, WEI; ZHANG, SHENGMING
To: NEC LABORATORIES AMERICA, INC.
Reel/Frame 062432/0888 →
Continuity (2)
Provisional Application 63308512 · Feb 10, 2022
Related Publication 20230252139A1 · Aug 10, 2023
References Cited (13)
US 11108787B1 · Shen · 2021 [cited by examiner]
US 20140056391A1 · Lee · 2014 [cited by examiner]
US 20150052090A1 · Lin · 2015 [cited by examiner]
US 20200034566A1 · Zhang · 2020 [cited by examiner]
US 20200285807A1 · Xu · 2020 [cited by examiner]
US 20220335318A1 · Wang · 2022 [cited by examiner]
US 20220342982A1 · Huseynov · 2022 [cited by examiner]
Meng, W., Liu, Y., Zhu, Y., Zhang, S., Pei, D., Liu, Y., . . . & Zhou, R. (Aug. 10, 2019). LogAnomaly: Unsupervised detection of sequential and quantitative anomalies in unstructured logs. In IJCAI (vol. 19, No. 7, pp. … [cited by applicant]
Du, M., Li, F., Zheng, G., & Srikumar, V. (Oct. 30, 2017). Deeplog: Anomaly detection and diagnosis from system logs through deep learning. In Proceedings of the 2017 ACM SIGSAC conference on computer and communications… [cited by applicant]
Wang, Z., Chen, Z., Ni, J., Liu, H., Chen, H., & Tang, J. (Aug. 14, 2021). Multi-scale one-class recurrent neural networks for discrete event sequence anomaly detection. In Proceedings of the 27th ACM SIGKDD Conference … [cited by applicant]
Meng, W., Liu, Y., Huang, Y., Zhang, S., Zaiter, F., Chen, B., & Pei, D. (Aug. 3, 2020). A semantic-aware representation framework for online log analysis. In 2020 29th International Conference on Computer Communication… [cited by applicant]
Guo, H., Yuan, S., & Wu, X. (Jul. 18, 2021). Logbert: Log anomaly detection via bert. In 2021 International Joint Conference on Neural Networks (IJCNN) (pp. 1-8). IEEE. [cited by applicant]
Nedelkoski, S., Bogatinovski, J., Acker, A., Cardoso, J., & Kao, O. (2020, Nov. 17). Self-attentive classification-based anomaly detection in unstructured logs. In 2020 IEEE International Conference on Data Mining (ICDM… [cited by applicant]