# HieraNTP: Structured Risk Representations for Time-Series Anomaly Detection via Hierarchical Next-Token Prediction

DevFeed: [HieraNTP: Structured Risk Representations for Time-Series Anomaly Detection via Hierarchical Next-Token Prediction](<https://devfeed.tech/articles/hierantp-structured-risk-representations-for-time-series-anomaly-detection-via-hierarchical-next-token-prediction-114467.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00945>)

Author: Yujie Li, Zezhi Shao, Boyu Diao, Zhulin An, Yongjun Xu, Xueqi Cheng, Fei Wang

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [Time Series](<https://devfeed.tech/topics/time-series.md>), [Temporal data](<https://devfeed.tech/topics/temporal-data.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [anomaly-detection](<https://devfeed.tech/tags/anomaly-detection.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [next-token-prediction](<https://devfeed.tech/tags/next-token-prediction.md>), [prediction](<https://devfeed.tech/tags/prediction.md>), [risk](<https://devfeed.tech/tags/risk.md>), [structured](<https://devfeed.tech/tags/structured.md>), [time-series](<https://devfeed.tech/tags/time-series.md>)

## AI overview

HieraNTP separates temporal prediction from task-specific anomaly judgment, addressing the risk that one anomaly score treats the same deviation as anomalous across different tasks. It pretrains a hierarchical tokenizer and causal next-token predictor, then keeps prediction discrepancies as structured evidence across temporal scales in token, local-statistic, and observation spaces. A detector uses anomaly labels to select and combine that evidence for a target task. The abstract reports VUS-PR gains of 12.0% on TSB-AD-U and 15.5% on TSB-AD-M over the strongest baselines, plus the highest composite score on both TAB tracks. Controlled comparisons support retaining distinct evidence.

## Source excerpt

arXiv:2611.00945v1 Announce Type: new Abstract: Time-series anomaly detection commonly converts deviations from learned temporal regularities into anomaly scores. This practice can conflate violations of temporal regularity with task-specific anomaly judgments: the same deviation may be anomalous under one task definition and benign under another. Aggregating heterogeneous deviations into a single score before task-specific adaptation can obscure the evidence needed to distinguish these cases. We introduce HieraNTP, a Hierarchical Next-Token Prediction framework that separates self-supervised predictive modeling from task-specific risk interpretation. HieraNTP pretrains a hierarchical tokenizer and a causal next-token predictor to capture temporal regularities at multiple scales. It then organizes prediction discrepancies into a structured risk representation, preserving complementary evidence across temporal scales in token, local-statistic, and observation spaces. A task-adaptive detector uses anomaly labels to select and combine this evidence for the target task. Across anomaly detection benchmarks, HieraNTP improves VUS-PR by 12.0% on TSB-AD-U and 15.5% on TSB-AD-M relative to the strongest baselines, and achieves the highest composite score on both TAB tracks, with controlled comparisons supporting the value of retaining distinct evidence. Our code is available at https://github.com/blisky-li/HieraNTP.