Dynamic windowing for processing event streams
Abstract
A method and apparatus to classify processor events is provided. The apparatus includes a reference generator, a warping unit, a correlation unit and a detector. The reference generator provides a self-reference for an event vector stream based on a history of the event vector stream and the warping unit dynamically aligns the event vector stream with the self-reference to generate a warped event vector stream. The correlation unit determines a window-by-window correlation of event vectors of the warped event vector stream, and the detector passes a window of event vectors of the warped event vector stream to a behavioral classifier when the window-by-window correlation achieves a threshold value. The behavioral classifier may use machine learning. A sample reservoir may be used to store dynamically selected event vectors of the event vector stream that are used, at least in part, to generate the self-reference.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 31 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
An apparatus to classify processor events, comprising a processing system executing programming instructions stored in memory to operate: a sample reservoir configured to store event vectors dynamically selected from an event vector stream, where each event vector of the event vector stream is generated from an event signal stream of a processor and includes associated event time information; a statistics unit configured to determine one or more statistical measures of the selected event vectors; a reference generator configured to: generate, as a self-reference sequence, a sequence of event vectors based on the one or more statistical measures; a warping unit configured to: receive the event vector stream and the self-reference sequence; dynamically align a window of event vectors of the event vector stream with the self-reference sequence, said dynamically aligning including: receiving a new event vector of the event vector stream; and adding the new event vector to the window of eve
- Claim 2Depends on #1
The apparatus of claim 1, where the one or more statistical measures include a variance of the selected event vectors in the sample reservoir.
- Claim 3Depends on #2
The apparatus of claim 2, where the reference generator is configured to generate, the self-reference sequence by drawing samples according to a Gaussian distribution with the variance of the selected event vectors in the sample reservoir.
- Claim 4Depends on #1
The apparatus of claim 1, further comprising: a timer to provide the event time information associated with events of the event signal stream; and an event encoder, operably coupled to the timer, to generate the event vector stream based on the event signal stream.
- Claim 5Depends on #1
The apparatus of claim 1, further comprising the behavioral classifier configured to classify the processor events into one or more categories based on the feature vector.
- Claim 6Depends on #1
The apparatus of claim 1, where the samples stored in the sample reservoir approximate samples taken randomly with uniform probability from the event vector stream.
- Claim 7Depends on #1
The apparatus of claim 1, where the reference generator is configured to generate, as the self-reference sequence, a proxy measurement based on the one or more statistical measures of event vectors in the sample reservoir.
- Claim 8Depends on #1
The apparatus of claim 1, further comprising an arithmetic logic circuit for performing “ one-hot ” arithmetic, where an event vector is of the form {right arrow over (v)} i =[t i,{right arrow over (e)} i ] T, where t i, is the time of the i th event, and {right arrow over (e)} i =[e i 0, e i 1, . . . , e i N-1 ] T, where e i j =1 when event j occurs at time t i, and e i j =0 otherwise.
Technical Overview & Description
BACKGROUND Computer-based analysis of time series has a large number of applications. A time series may be split into individual window segments for analysis and classification. When time series is received as a data stream, dynamic windowing may be desired to enable real-time analysis and classification. For example, operations executed in a Central Processing Unit (CPU) or other circuit produce a series of “ events ” . The event can be a negative event, such as a branch miss or a cache miss, or positive events, such as a completed (retired) instruction or data store, for example. Tracking and analyzing these results can provide an indication of the performance or characteristic of an application executed on the CPU. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings provide visual representations which will be used to describe various representative embodiments more fully and can be used by those skilled in the art to better understand the representative embodiments disclosed and their inherent advantages. In these drawings, like reference numerals identify corresponding or analogous elements. FIG. 1 is a block diagram of a data processing system, in accordance with various representative embodiments. FIG. 2 is a block diagram illustrating a warping and window selection circuit, in accordance with various representative embodiments. FIG. 3 is a flow chart of a method of warping a stream of event events and selecting a window of warped vectors to pass to a classifier, in accordance with various representative embodiments. DETAILED DESCRIPTION The various apparatus and devices described herein provide mechanisms for dynamically windowing high-throughput, sparse time series, yielding higher information density for classification tasks. The mechanisms can be used, for example, to classify the behavior of a processing system based on timed events occurring on the processor. The mechanisms normalize trends and accentuate anomalies or outliers in a robust manner
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (31)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Morrill, James et al.,
- “
- A Generalised Signature Method for Multivariate Time Series Feature Extraction,
- ”
- Feb. 6, 2021, 22 pages, arXiv.
- Tobiyama et al.,
- “
- A method for estimating process maliciousness with Seq2Seq model,
- ”
- 2018 International Conference on Information Networking (ICOIN), Chiang Mai, Thailand, 2018, pp. 255-260, doi: 10.1109/ICOIN.2018.8343120.