arXiv:2610.29220cs.LGOct 2026

Manuscript Offprint

arXiv:2610.29220

Delay-Guided Attention for Quality Prediction in Multistage Manufacturing

Jiarui Zhang, Zhaoyang Guan, Zhixuan Xia, Naichen Shi

ABSTRACT

Quality prediction in multistage manufacturing is challenging when inter-stage lags vary over time, as measurements taken at the same timestamp may reflect different process states. Existing approaches often preserve production order but fuse timestamp-aligned features or model delayed dependencies implicitly, without identifying the upstream history relevant to each downstream observation. We propose Delay-Guided Attention for Multi-stage Forecasting (DAMF), which explicitly estimates inter-stage lag distributions and uses them to guide cross-stage information transfer for final quality prediction. For each adjacent stage pair, a lag predictor compares the current downstream representation with candidate lagged upstream representations. An occurrence–magnitude factorization separately estimates the probability of a positive lag and its conditional magnitude, yielding a sample-and stage-pair-specific distribution over discrete lag states without requiring plant-specified delays at inference. DelayAlignment incorporates this soft distribution as a temporal prior into differentiable cross-stage attention, while gated residual fusion regulates information propagation across production stages. For interpretation, segment-wise Viterbi decoding converts pointwise lag distributions into temporally coherent lag paths, whereas forecasting retains the soft distributions for alignment. On the real-world LiquidSugar dataset, DAMF improves final quality prediction over the compared baselines. Evaluations on two controlled-delay benchmarks show more accurate and stable lag recovery, and ablation studies support the contributions of lag prediction, delay-guided attention, and structured temporal decoding.

KEYWORDS

Multistage manufacturing; Quality prediction; Lag recovery

1. Introduction

Modern industrial production systems often comprise several physically or functionally connected stages in which raw materials are transformed into a series of intermediate products and the final product (Ceglarek et al. 2004; Du et al. 2015; Filz, Bosse, and Herrmann 2024). Although different stages perform different operations, their process states are not independent. Variations in equipment condition and operating settings at an upstream stage may propagate to downstream measurements and ultimately affect final product quality (Agrawal, Lawless, and Mackay 1999; Cho and Lim 2024; Du et al. 2015; Lawless, Mackay, and Robinson 1999; Yan et al. 2021; Zhang et al. 2022).

† Jiarui Zhang and Zhaoyang Guan contributed equally to this work.

The liquid sugar production process is a representative example. As illustrated in Figure 1, the feed first enters a melter in Stage 1. The resulting intermediate stream is processed by two parallel saturators in Stage 2, whose outputs are combined and transferred to Saturator 3 in Stage 3 before the final product is obtained (Cho and Lim 2024). Sensors associated with individual production stages continuously record stage-specific process variables, providing monitoring signals about the production process (Jiang et al. 2021; Qin 2012).

Figure

Figure 1. Schematic illustration of the sequential multi-stage Liquid Sugar production process.

The objective of this study is to predict the final product quality from the complete multi-stage sensor history with structural understandings that can support process diagnosis. We formulate this objective as two related tasks: forecasting the final quality of the manufacturing system output and describing the signal-propagation structure of the system. The two tasks are connected because final quality depends not only on the states recorded at individual stages, but also on which upstream historical patterns are associated with the current downstream condition.

To understand the cross-stage signal propagation in multi-stage manufacturing, we study the signal lag. Although all measurements are often recorded under a common clock, equal timestamps do not necessarily refer to the same material condition or production event. Transportation, intermediate processing, and equipment response may cause a pattern recorded upstream to appear downstream after a temporal offset (Cattaldo, Ferrer, and Måge 2024; Mejić et al. 2019; Offermans et al. 2024). As a result, timestamp-based alignment is needed to associate a downstream observation with an upstream state (Offermans et al. 2020; Xiong et al. 2017; Yao and Ge 2020). Estimating this offset can also provide evidence about when and at which stage a quality-relevant deviation first becomes observable.

Accurate estimation of inter-stage lags is often challenging for several reasons. Different stage pairs involve different transportation and processing mechanisms, and their effective lags may vary with production rate, operating condition, equipment status, or material characteristics (Reitz et al. 2013; Wang et al. 2021; Zhao et al. 2021). A single global lag or static timestamp shift prescribed by domain knowledge is therefore unlikely to fully capture the dynamics of the multi-stage process (Griesing-Scheiwe et al. 2020; Yang and Li 2017; Yao and Ge 2020). Moreover, not every upstream variation remains equally informative after intermediate processing, as some patterns may be attenuated, whereas others become amplified. Another challenge is that lags are not directly observed and have been estimated from noisy observations. The statistical variations in monitoring signal complicates the estimation of lags across stages (Ni, Xiao, and Shah 2010; Wang, Li, and Cheng 2024; Zheng and Feng 1990).

In literature, a few lag-detection and temporal causal-discovery methods study delayed relationships between time-series variables (Pamfil et al. 2020; Runge et al. 2019). However, these methods often model lag prediction as a task independent of quality prediction. When the two tasks are handled separately, prediction models do not benefit from sample-dependent lag distributions for different consecutive stage, which implicitly discards the interaction patterns across stages.

Can we build a synergistic framework for multi-stage manufacturing signal analysis that transfers the information across the two tasks? Since lag prediction is often a local analysis between two adjacent manufacturing stages, while the quality prediction involves the comprehensive analysis of the entire system, combining them is not easy. To bridge the gap, we propose Delay-Guided Attention for Multi-stage Forecasting(DAMF), which leverages the information from cross-stage lag estimation for final quality prediction. DAMF consists of two stages: lag identification and quality prediction. In the lag identification stage, DAMF compares every current downstream representation with every representation from the upstream stage and estimates a data-dependent distribution of the lag. The resulting distribution serves as a prior in a differentiable DelayAlignment module, which calculates an attention map that prescribes a greater attention to upstream positions supported by the estimated lag. For lag recovery and interpretation, a Viterbi decoder converts the pointwise lag distributions into temporally coherent lag paths. Quality forecasting instead retains the soft distributions and uses them as priors in DelayAlignment. In the quality prediction stage, the quality model inherits the structural information from lag prediction through cross-attention and outputs the final quality label.

The main contributions of this work are summarized as follows:

(1) Delay-aware multi-stage prediction framework. We propose DAMF, a multi-stage quality prediction framework that jointly models inter-stage delays and predicts final product quality.

(2) Inter-stage lag estimate. We develop an inter-stage attention-based lag estimator that compares downstream representations with candidate upstream histories for each adjacent stage pair. The lag estimation module outputs both the occurrence of the lag and the magnitude of the lag, providing flexibility in industrial practice. We also propose a Viterbi filter to stabilize the lag estimates.

(3) Lag-guided time series analysis. We introduce a differentiable DelayAlignment module that incorporates the estimated lag distribution as a temporal prior to the attention map. Based on the attention map, we further propose a gated residual fusion module for final-quality prediction.

(4) Experimental validation. Experiments on the real LiquidSugar dataset and two controlled-delay benchmarks, together with systematic ablation studies, validate the effectiveness of DAMF for both final-quality prediction and inter-stage lag recovery.

References (48)