Manuscript Offprint
arXiv:2610.28569ECHO: Efficient Cascade with Homogeneous Operators for Distillation-Guided 100K-Sequence Modeling
Abstract
Modeling lifetime user behavior sequences is essential for capturing long-range preferences in industrial recommendation, yet 100K-length user sequences make target-aware ranking prohibitively expensive. Search-based methods that retrieve from raw sequences incur candidate-dependent costs that grow with sequence length, whereas latent compression methods reduce computation at the expense of item-level addressability. We propose ECHO (Efficient Cascade with Homogeneous Operators), a framework that balances efficiency and fine-grained retrieval by retaining a subset of original event records per user via a Distilled Selector (DS) and retrieving a smaller set of target-relevant records per candidate via a Target-aware Fine-grained Retriever (TFR). DS is supervised by a candidate-aware full-history teacher via per-target distillation, enabling target-aware user-level selection without incurring full-history computation for every candidate. The retriever and target-attention scorer share the teacher's learned relevance parameters, ensuring consistent relevance estimation across the cascade. At a sequence length of , ECHO reduces online sequence-branch FLOPs by approximately compared with a representative end-to-end model. Three deployment optimizations—common user inputs, compact record encoding, and key-side projection absorption—further reduce memory, storage, and data-movement overhead. Experiments on KuaiRand-1K and an industrial-scale short-video platform demonstrate relative GAUC improvements of 0.113%–1.520% over state-of-the-art (SOTA) baselines across multiple tasks. Furthermore, online A/B testing shows a 0.613% improvement in app usage time.
ACM Reference Format:
Wenhao Li, Qinglin Jia, Chenghou Jin, Zihong Xian, Jiezhou Ji, Yanzhi Liu, Zezheng Wang, Ruiming Tang, Chaoyi Ma , Liu Zhaojie , Wenwu Ou. 2018. ECHO: Efficient Cascade with Homogeneous Operators for Distillation-Guided 100K-Sequence Modeling. In Proceedings of (Conference acronym 'XX). ACM, New York, NY, USA, 12 pages. https://doi.org/XXXXXXX.XXXXXXX
Corresponding authors.
However, directly modeling raw behavior sequences during ranking is prohibitively expensive [7, 9]. A ranking request typically needs to score multiple candidate items for the same user, and target-aware history modeling must evaluate historical behaviors with respect to each individual candidate [14, 15]. As user behavior sequences grow to events or more, this candidate-dependent computation becomes prohibitively expensive under strict industrial latency and throughput constraints.
To make long-history modeling practical, a line of search-based methods adopts a two-stage paradigm. A lightweight General Search Unit (GSU) first retrieves a small subset of target-relevant behaviors from the long history, and an Exact Search Unit (ESU) then applies more expressive target attention over the retrieved behaviors. Representative methods such as SIM and TWIN [3, 23] are attractive because they preserve the original item records selected from the user's history. The downstream ranker can therefore still perform fine-grained target-to-item matching and trace its evidence back to concrete historical behaviors. However, the GSU must still search over the original behavior sequence for each candidate, causing its online computation cost to grow with the sequence length. Consequently, scaling search-based methods to histories containing around 100K events remains challenging under real-world industrial ranking constraints.
Another line of work reduces the cost of ultra-long history modeling through compression. These methods summarize user histories into a compact set of latent states, sketches, or interest vectors, and perform target-conditioned reasoning over the compressed representations [26, 35]. SequenceO1 [11], for example, scales to sequences of up to 100K events using a fixed-size user-only sketch and cache reuse, alongside a recent-history branch. Its sketch branch bounds candidate-dependent computation without repeatedly scanning the full history. However, compressing diverse behaviors into a finite-capacity representation before observing the target may
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
Conference acronym 'XX, Woodstock, NY
© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM. ACM ISBN 978-1-4503-XXXX-X/2018/06 https://doi.org/XXXXXXX.XXXXXXX
Li et al.
blend interest-specific details and attenuate sparse behavioral evidence. This is a particular concern for users with dispersed interests or long-tail targets whose relevance depends on only a few historical interactions. Within the compressed sketch, such interactions are no longer individually searchable. Retaining original records offers an alternative, allowing downstream matching to directly access the concrete behaviors that survive selection.
A natural way to combine the advantages of the two directions is to first compress the search space and then retrieve from it. TWIN V2 [24] demonstrates this compress-then-retrieve paradigm by compressing lifelong behaviors into a cluster-structured representation and performing online retrieval through cluster-aware target attention. This design extends the searchable range beyond what a direct GSU can efficiently handle. However, because compression operates at the granularity of behavior clusters, original behaviors grouped into the same cluster are no longer independently accessible to the online retriever. This motivates us to explore a complementary form of compression that reduces the search space while preserving the retained state as original event records.
Our goal is to shorten the history before target-aware ranking while preserving as much prediction-relevant evidence of user interests as possible and keeping retained behaviors individually searchable. We pursue this goal by selecting original event records with their item identities and side features intact, guided by relevance signals learned from downstream prediction rather than solely by recency heuristics or offline structure.
We propose ECHO, a distillation-guided framework for lifetime behavior modeling with item-level evidence. Its name stands for Efficient Cascade with Homogeneous Operators. During training, a user-level Distilled Selector (DS) retains K original event records from each user's history and materializes them for reuse across requests and candidates. For each target item, a Target-aware Fine-grained Retriever (TFR) searches only the retained records and selects at most M behaviors for final interest aggregation. With and in our production setting, candidate-dependent online computation is confined to the retained history rather than the full 100K-event sequence. The selector is supervised by a candidate-aware full-history teacher trained with the prediction objective. Following TWIN's scoring-consistency strategy [3], the retriever and target-attention scorer also share the teacher's learned relevance parameters, aligning selection supervision with downstream matching.
The main contributions of this work are summarized as follows:
-
We propose ECHO, a distillation-guided cascade that combines user-level selection with target-aware retrieval to efficiently model lifetime user behaviors. By distilling target-aware relevance from a full-history teacher and retaining original event records with their item identities and side features intact, ECHO enables candidate-specific matching while preserving item-level addressability.
-
We reduce online sequence-branch FLOPs by approximately relative to a representative end-to-end model at , and describe three deployment optimizations that reduce memory, storage, and data-movement costs.
-
Extensive experiments on KuaiRand-1K and an industrial-scale short-video platform demonstrate relative GAUC improvements of 0.113%–1.520% over state-of-the-art baselines across multiple tasks. Online A/B testing further shows a 0.613% improvement in app usage time.
2 Related Work
User behavior sequence modeling has evolved from short-history interest models such as DIN [34], DIEN [33], and BST [6] to user lifelong behavior modeling under industrial efficiency constraints. Existing approaches to long-sequence modeling can be categorized by how they process historical behaviors [36]: end-to-end encoding, retrieval-based modeling, compression-based modeling, and hybrid approaches that combine retrieval and compression.
End-to-end long-sequence modeling. These methods extend the ranker's capacity to encode longer behavior sequences directly. LONGER [2] reduces the effective sequence length through cross-attention before deeper self-attention, STCA [12] employs stacked target-to-history cross-attention with batching and length extrapolation to support 10K histories, and HSTU [30] improves sequential modeling through efficient attention operators and sample organization. Despite these advances, computation remains dependent on the full history length, and target-aware encoding may incur additional candidate-dependent costs. Consequently, efficient attention mechanisms alone do not eliminate the computational challenges of modeling histories at the scale.
Retrieval-based long-sequence modeling. These methods retrieve target-relevant behaviors from the original history before applying more expressive interest modeling. SIM [23] establishes this paradigm, while ETA [5] improves retrieval efficiency through approximate matching. TWIN [3] aligns the relevance metric used in coarse retrieval with that used in downstream target attention. More recent work extends the paradigm in complementary directions: TransAct V2 [28] improves interactions among retrieved behaviors, while MUSE [27] incorporates multimodal semantics into retrieval and fine-grained modeling. By retaining original behavior records, these methods preserve item-level addressability for downstream target-to-item matching. However, retrieval still operates over the long input history for each candidate, leaving its online cost dependent on sequence length and limiting scalability to histories containing around 100K events.
Compression-based methods. These methods reduce ultralong histories into compact representations before downstream ranking. C-Former [26] and DV365 [21] compress long behavior sequences into learned interest states or progressively reduced representations, enabling efficient interaction with candidate items. SequenceO1 [11] further scales this paradigm to histories containing up to 100K events by constructing a fixed-size user-only sketch with cache reuse and performing target-conditioned reasoning over the sketch and recent behaviors. By bounding the size of the representation, these methods effectively decouple candidate-dependent computation from the raw history length. However, compression replaces individual behavior records with aggregated representations, potentially limiting direct access to specific historical interactions. Moreover, because the compressed representation is constructed before the target is observed, its finite capacity requires the model

Figure 1: The end-to-end framework of ECHO. DS selects and writes K original records during real-time training. Online requests read this shared user state and perform target-aware retrieval and aggregation. The full-history teacher supervises DS and supplies relevance-scoring parameters to both downstream operators.
to determine which behavioral details to preserve in advance. This can be particularly challenging for long-tail targets whose relevance depends on a small number of scattered interactions.
Hybrid retrieval-and-compression methods. These methods combine search and compression to balance efficiency and effectiveness. DILN [1] first selects relevant interactions by action type and then compresses the selected subsequences using CNN-based encoders, following a search-then-compress paradigm. In contrast, TWIN V2 [24] compresses lifelong behaviors into a cluster-structured representation and performs cluster-aware target attention, extending the searchable range beyond direct online GSU retrieval. ADFM [20] pre-stores top-k user behaviors selected by a behavior selection unit for reuse during inference. Although these designs reduce the amount of information processed online, their effectiveness depends on the granularity and criteria of the offline selection or compression process. In particular, when behaviors are represented at the cluster or subsequence level, the online retriever may have limited access to individual records within each unit. Furthermore, because the retained representation is constructed before the target is known, it may not preserve the specific evidence required for subsequent target-aware matching when the offline selection criterion differs from the downstream relevance measure.
3 Methodology
3.1 Problem Formulation
Let denote a target item, and let denote the user's chronologically ordered lifetime behavior sequence, where is the sequence length, contains the item identity and side features of the -th historical event, and is its timestamp. Repeated interactions with the same item occupy distinct sequence positions. Given the user and request context , target features , and history , the ranker estimates the probability of each behavior label for task . We focus on ultra-long histories with lengths on the order of , as considered in recent work [11].
Throughout, C denotes the number of target items scored per request, K the number of original event records retained by the user-level selector, and M the number of records passed to final interest aggregation, where .
3.2 Framework Overview
ECHO is an end-to-end framework that connects real-time sequence selection with target-aware ranking through two nested budgets (Figure 1). During real-time training, a Distilled Selector (DS) scores each user's lifetime history using user features independent of the candidate item and writes K retained event records to an intermediate store. The ranking graph reads these records during both training and online inference. A Target-aware Fine-grained Retriever (TFR) selects M records for each target using TWIN-style retrieval [3], and Candidate-aware Interest Aggregation summarizes them for the multi-task ranker. Online requests only read the retained history; they do not execute DS or rescan the full sequence. A typical configuration in our system uses K = 10,000 and M = 100.
3.3 User-Level Sequence Compression
DS reduces the searchable history from L to K before target-aware ranking; the empirical basis for compressing -level histories to retained records is examined in Sec. 4.3. Its input a contains only user features, such as user identity embeddings, and does not depend on the candidate item. The selection is user-only, so the stored records are reused across requests and candidates.
3.3.1 Selection. DS embeds each historical event from its features and timestamp as and the user from profile features as . The score is the mean inner product over heads:
All equations range over real events; padded positions in batched tensors are masked out of selection and normalization. DS retains the highest-scoring positions,
Li et al.
where is a score-ordered list of event positions. Unlike latent-token compression, which represents history through mixtures of features, this operation retains original records with their item IDs, timestamps, and side features intact. They remain individually addressable for downstream target-to-item matching, including evidence for long-tail targets and dispersed interests.
3.3.2 Target-aware distillation. A selector conditioned only on user features cannot adapt to the target, yet relevance in ranking is target-dependent. We bridge this gap with a candidate-aware teacher trained over the full history in the selector graph. The teacher uses its own event encoder , with embeddings and transformations independent of the student's. For each training target , it averages relevance logits over heads:
where encodes context and target features. Distillation aligns the student's selection with the teacher's per-target relevance.
Distribution matching. For a batch , let index a user-target sample with user , target , and history length . Write for Eq. (3) evaluated at , and for the user-only student score of , which Eq. (1) shares across all samples of that user. With temperature , we define and . The distillation loss is
where sg denotes stop-gradient. Rather than using only a binary indication of whether each record belongs to the teacher's Top-K, the soft targets encode how strongly the teacher prefers each position in the history.
Boundary-targeted auxiliary term. Matching the full distribution can still leave teacher-preferred records outside the student's Top-K. We therefore add a ranking objective across the selection boundary: it raises the student scores of missed records preferred by the teacher relative to those of less relevant retained records, encouraging their inclusion in the selected history.
For each sample , form a sharper teacher distribution , with . Against the user's student-selected set , mine up to positions in each region:
Missed positions are ordered by decreasing teacher mass and selected positions by increasing teacher mass. Rank-aligned pairs form the set ; for , the weights are
The batch-normalized loss is
Algorithm 1 Real-time training of ECHO
Require: user-target training stream; histories ; budgets ; weights
Ensure: DS; relevance parameters ; multi-task ranker Selector graph (concurrent with the ranking graph)
1: for each batch , grouped by user do 2: Encode each history independently as and 3: Compute user-only and by Eqs. (1), (2) 4: Form student distribution at temperature 5: for each user-target sample do 6: Compute head-mean teacher logits by Eq. (3) 7: Form detached at and at 8: Mine highest-mass missed and lowest-mass selected positions using by Eq. (5) 9: Rank-align pairs; form detached gap weights by Eq. (6) 10: end for 11: Compute over all valid history positions 12: Compute from weighted student-logit differences by Eq. (7) 13: Update teacher by 14: Update DS by 15: Write retained records to the shared store 16: Synchronize teacher to TFR and aggregation 17: end for Ranking graph (concurrent with the selector graph) 18: for each batch of user-target samples do 19: Read from the shared store for each user 20: for each target do 21: Retrieve using (Sec. 3.4) 22: Aggregate with target attention using 23: Predict behavior probabilities with the ranker 24: end for 25: Train the ranking graph with 26: end for
where the margin encourages a missed positive's student score to exceed its paired negative's score by , controls the ranking scale, and stabilizes the denominator. Invalid pairs are excluded through , and weights vanish whenever the teacher does not prefer the missed position. Mining and weights are detached, while gathered student logits remain differentiable. Thus each target contributes its own pairs without propagating gradients through discrete selection or into the teacher.
3.4 Target-Aware Retrieval and Aggregation
TWIN [3] uses consistent relevance-scoring parameters in its general and exact search units (GSU/ESU). We follow this strategy and extend parameter reuse to the full-history teacher: its learned query/key relevance parameters, denoted by , are exported to both TFR and the target-attention scorer.
Given and target v, TFR selects M records by their relevance scores using TWIN-style multi-head retrieval. Denote their positions by . The retrieved records are then aggregated with TWIN-style target attention and fed into the final ranker.
3.5 Training Objectives
The selector graph trains the full-history teacher and DS with
where is the teacher's multi-task prediction loss over behavior labels. The objective covers the whole selector graph: only updates the teacher, while KD and auxiliary supervision train DS. Independent embeddings and detached teacher targets prevent student losses from updating the teacher. The teacher is therefore a live prediction branch rather than a separately pretrained, frozen model.
The ranking graph uses its own multi-task prediction objective , with no additional distillation loss. Both graphs train on the same real-time dataset and share the intermediate store: the selector graph writes retained records and the ranking graph reads them. Algorithm 1 summarizes the two concurrent training processes.
3.6 Complexity Analysis
We separate training from online inference and count the main sequence-interaction operations, excluding feature projections, discrete selection/mining, store access, and the rest of the ranker. Let , , , be the head counts of DS, teacher, retrieval, and aggregation. The corresponding widths , , , reflect the operators actually executed; in particular, is the deployed per-head scoring width, and the per-head width used inside aggregation.
Training. For a group of B targets sharing one user's length-L history, DS scoring costs , while full-history teacher interactions cost , with covering teacher scoring and value aggregation. Distribution matching adds and the loss over at most n mined pairs adds ; these do not include pair mining itself. The ranking graph operates on the retained K records. Thus training still includes length-dependent work, even though user-only computation is shared.
Online inference. A request reads the stored K records and evaluates C targets. Its principal sequence-interaction cost is
The shared record read transfers data at fixed record width. Neither DS nor the full-history teacher executes online, so for fixed K and M the online branch is independent of the original history length L. In contrast, applying direct target-aware retrieval, as in TWIN [3], to the full length-L history incurs an interaction cost linear in both C and L.
3.7 Deployment Optimizations
Beyond the sequence budgets, deployment must control repeated feature processing, storage, and data movement. We use three complementary optimizations.
3.7.1 Common-feature sharing. We group multiple training samples from the same user within a batch and load their common user-side features, including the long behavior history, into GPU memory only once per user group. All samples in the group share this in-memory copy instead of materializing a separate copy for each user-target sample. This reduces the GPU memory occupied by duplicated common features, which is particularly costly for ultra-long histories. Target-specific features and computations remain sample-specific. This organization follows the user-level batching principle used by recent ultra-long-sequence systems [11, 12].
3.7.2 Compact record encoding. The record schema depends on the application. In our production example, eight fields represented as int64 values require bytes per event, or 640 KB at K = 10,000. Rather than reserving 64 bits for every field, we assign each field a fixed storage width sufficient for its value range and pack the fields consecutively into a record. The field widths are fixed by the application schema, not chosen separately for each event. In our deployed schema, the packed fields total 43 bytes per event, giving approximately 0.43 MB of record payload per user, about a third less than the int64 layout. The sequence is stored as one contiguous user-keyed value, enabling a single logical store operation. At a scale of one billion users, each with 10,000 stored records, this encoding would reduce single-copy record payload from 640 TB to 430 TB, saving approximately 210 TB before replication and storage-system overhead.
3.7.3 Key-side projection absorption. Computing target–history relevance conventionally projects both query and history vectors. Since each history position requires a key projection, repeating this work for every request introduces sequence-length-dependent computation on the online path. Caching projected keys avoids repeated projection but requires a cache whose size also grows with the number of history positions. We instead transfer the key projection to the query side through the identity
This avoids explicitly projecting each retained history vector into a key and materializing the resulting per-position tensor, eliminating the need to maintain a projected-key cache.
4 Experiments
4.1 Experimental Settings
In this section, we evaluate the performance of ECHO using public and industrial datasets through a series of experiments, mainly to answer four research questions as follows:
• RQ1: How does ECHO perform compared to state-of-the-art methods on real-world datasets?
• RQ2: How effectively does ECHO select and preserve relevant behaviors from ultra-long user histories?
• RQ3: How efficiently does ECHO scale to longer user behavior sequences?
• RQ4: How do different components and hyperparameters affect ECHO’s performance?
Datasets and metrics. We evaluate ECHO on the KuaiRand-1K benchmark [10] and Kuaishou's industrial short-video recommendation platform, which is the largest recommendation scenario in Kuaishou and serves more than 400 million daily active users, generating over 50 billion interaction logs per day. For the
Li et al.
KuaiRand-1K benchmark, we evaluate on four tasks: Click, Long-view, Like, and Comment. For the Kuaishou industrial dataset, we follow practical deployment requirements and focus on four key prediction tasks: Effective-view, Long-view, Like, and Comment. We adopt the GAUC [31, 34] to evaluate the performance of our model, which is the most critical offline metric in our short-video service. Notably, given the stability provided by the massive scale of training samples, a relative GAUC improvement of 0.05% is regarded as highly significant and can bring substantial business impact [31].
Baselines. We compare six representative sequence models: DIN [34], SIM [23], TWIN [3], STCA [12], TWIN V2 [24], and SequenceO1 [11]. More details about baseline descriptions and implementation are provided in Appendix A.1 and Appendix A.2, respectively.
4.2 Overall Performance (RQ1)
Table 1 compares ECHO with six representative sequence modeling methods on KuaiRand-1K and the industrial dataset. ECHO consistently achieves the best GAUC across all eight prediction tasks, with relative improvements of 0.227%–1.520% on KuaiRand-1K and 0.113%–0.345% on the industrial dataset over the strongest baseline for each task. These results demonstrate the effectiveness of ECHO across different datasets and feedback objectives.
Among the baselines, search-based methods such as SIM and TWIN generally outperform DIN, which models only recent user behaviors, highlighting the importance of incorporating longer interaction histories for accurate user interest modeling. More advanced methods, including STCA, TWIN V2, and SequenceO1, achieve further improvements on several tasks through end-to-end long-sequence modeling or history compression. These results suggest that effectively exploiting historical information under constrained computational budgets is critical to improving recommendation performance as user behavior sequences grow longer.
ECHO further improves upon these methods across all tasks. In particular, on KuaiRand-1K, ECHO increases the Comment GAUC from 0.6252 to 0.6347, achieving a relative improvement of 1.520%. On the industrial dataset, the corresponding GAUC increases from 0.7824 to 0.7851, representing a 0.345% improvement. Unlike methods that truncate historical sequences or compress historical behaviors into aggregated representations, ECHO learns a user-level behavior selection strategy through target-aware distillation. This design reduces the online retrieval space while preserving original behavior records for fine-grained target matching. Furthermore, the shared relevance metric aligns the subsequent retrieval and interest aggregation stages, enabling ECHO to exploit prediction-relevant historical evidence within a bounded computational budget.
The improvements are also consistent across different feedback objectives. On KuaiRand-1K, ECHO achieves relative gains of 0.589% and 1.520% on Like and Comment, respectively. Similar improvements are observed on the industrial dataset, with gains of 0.297% and 0.345% on the corresponding tasks. ECHO also improves viewing-related predictions, achieving relative gains of 0.113% on Effective-view and 0.119% on Long-view in the industrial dataset. These results demonstrate that the benefits of ECHO extend beyond specific interaction signals, supporting its effectiveness across diverse recommendation objectives.
4.3 Selected History Analysis (RQ2)
To understand how ECHO benefits from ultra-long user histories, we investigate the effectiveness of the Distilled Selector (DS) from three perspectives: downstream prediction performance, preservation of relevant historical behaviors, and sensitivity to the selection budget. We compare DS with recency-based truncation and uniform random selection, using the target-aware teacher as a reference for evaluating the quality of retained historical evidence.
We first examine how the benefit of learned selection varies with history length. As shown in Figure 2, ECHO consistently outperforms TWIN with a recent 10K history, and the improvement becomes more pronounced as the available history grows. Specifically, the relative GAUC gain increases from 0.045% for histories shorter than 10K to 1.279% for histories exceeding 50K. This trend suggests that a fixed recent-history window increasingly overlooks useful historical evidence as user behaviors accumulate, whereas ECHO can identify relevant interactions from a broader history. The advantage persists under smaller sequence budgets. With retention and retrieval budgets of 5K and 50, respectively, ECHO achieves a GAUC of 0.6618, compared with 0.6603 for recent-5K TWIN. Even when the budgets are reduced to 2K and 20, ECHO maintains an improvement from 0.6585 to 0.6599. These results indicate that the effectiveness of ECHO stems not only from accessing longer histories, but also from allocating the limited sequence budget to more informative behaviors.
We next investigate whether DS successfully preserves the historical behaviors favored by the target-aware teacher. Figure 3(a) reports the recall of the teacher's Top-100 relevant behaviors within the 10K retained events. DS achieves an average recall of 99.976%, substantially outperforming recency-based and random selection, which achieve 57.905% and 49.443%, respectively. Notably, its recall remains above 99.9% across all history-length groups, while recency-based selection deteriorates considerably as history length increases. Figure 3(b) further evaluates the proportion of the teacher's relevance distribution preserved by the selected events. DS retains 98.509% of the total relevance mass on average, compared with only 55.913% for recency-based selection, and maintains 95.74% even for the longest histories. These results demonstrate that target-aware distillation enables the candidate-agnostic selector to preserve most of the historical evidence emphasized by the teacher, despite substantially reducing the searchable history.
We further analyze the temporal distribution of selected behaviors and their agreement with the teacher. As illustrated in Figure 5, 46.08% of the behaviors retained by DS fall outside the most recent 10K interactions, with this proportion increasing to 75.09% for the longest-history group. This confirms that DS does not simply approximate recency-based truncation, but actively selects informative interactions from older portions of the history. Meanwhile, Figure 4(a) compares DS and the teacher under identical Top-k selection budgets. Their overlap reaches 67.58% at k = 100 and 82.45% at k = 10K. Together with the near-perfect recall of the teacher's Top-100 behaviors within the retained 10K events, these findings suggest that DS need not reproduce the teacher's exact fine-grained ranking. Instead, it can preserve a sufficiently broad set of relevant original behaviors, allowing the subsequent target-aware retriever to perform more precise matching for each candidate.
Table 1: Performance comparison among different methods on KuaiRand-1K and Industrial Dataset.
| Method | KuaiRand-1K | Industrial Dataset | ||||||
|---|---|---|---|---|---|---|---|---|
| Click | Like | Comment | Long-view | Effect-view | Like | Comment | Long-view | |
| DIN [34] | 0.6574 | 0.6479 | 0.6004 | 0.6917 | 0.7050 | 0.7334 | 0.7738 | 0.7498 |
| SIM [23] | 0.6592 | 0.6585 | 0.6034 | 0.6929 | 0.7055 | 0.7383 | 0.7791 | 0.7522 |
| TWIN [3] | 0.6607 | 0.6594 | 0.6185 | 0.6943 | 0.7057 | 0.7399 | 0.7805 | 0.7511 |
| STCA [12] | 0.6612 | 0.6226 | 0.6944 | 0.7069 | 0.7388 | 0.7822 | 0.7540 | |
| TWIN V2 [24] | 0.6611 | 0.6613 | 0.6243 | 0.7070 | 0.7527 | |||
| SequenceO1 [11] | 0.6607 | 0.6942 | 0.7389 | 0.7818 | ||||
| ECHO | 0.6630 | 0.6656 | 0.6347 | 0.6967 | 0.7085 | 0.7424 | 0.7851 | 0.7553 |
| Impro. | +0.227% | +0.589% | +1.520% | +0.317% | +0.113% | +0.297% | +0.345% | +0.119% |
Here, the best and second best results are marked in bold and underlined, respectively.

Figure 2: Click GAUC of TWIN and ECHO across different user history lengths on KuaiRand-1K. Relative improvements are shown by the line.
Finally, we investigate how effectively DS preserves attention mass under different retention budgets. As shown in Figure 4(b), using the teacher's Top-10K behaviors as the reference, DS captures 70.84%, 91.65%, and 99.38% of the reference attention mass with retention budgets of 100, 1K, and 10K, respectively. In contrast, recency-based selection retains only 0.43%, 5.14%, and 55.93% under the same budgets. The substantial gap indicates that learned selection can concentrate teacher-attended historical evidence into a much smaller subset of original behavior records. This property is particularly important for ECHO's cascaded design: the user-level selector reduces the searchable history while preserving high-relevance events, and the subsequent target-aware retriever performs fine-grained matching within the retained set. Overall, these results validate the effectiveness of distillation-guided selection in balancing historical evidence preservation and bounded online retrieval costs.
4.4 Efficiency and Length Scaling (RQ3)
To evaluate the computational efficiency and scalability of ECHO for ultra-long user behavior modeling, we compare it with STCA, an end-to-end long-sequence modeling method, in terms of computational cost and predictive performance. STCA directly models

(a)
(b)
User History Length
Distilled Selector
Recency
Uniform Random
Figure 3: Preservation of teacher-relevant behaviors by 10K retained records across user history lengths. (a) Recall of the teacher's Top-100 behaviors. (b) Fraction of the teacher's full-history KD probability mass preserved.

(a)
(b)
Retention Budget k
Distilled Selector
Recency
Uniform Random
Figure 4: Selection quality under different retention budgets. (a) Overlap between selector and teacher Top-k sets at equal budgets. (b) Recall of the teacher's Top-10K attention mass.
historical behaviors through stacked target-aware attention layers, whereas ECHO adopts a cascaded architecture that combines user-level behavior selection with target-aware retrieval, restricting downstream computation to a bounded set of historical events. We estimate the training and inference FLOPs based on the sequence modeling architectures of both methods, with detailed calculations and configuration assumptions provided in Appendix A.3.
Figures 6(a) and (b) illustrate the computational costs of both methods as the history length increases. While the training and
Li et al.

Figure 5: Temporal distribution of behaviors retained by the distilled selector. Age is measured by the number of preceding interactions rather than elapsed time.
inference costs of STCA grow substantially with sequence length, ECHO exhibits much slower growth. This advantage stems from decoupling user-level behavior selection from candidate-dependent interest modeling, allowing subsequent retrieval and attention operations to process only a bounded number of historical events. At a history length of 100K, ECHO reduces the estimated sequence-branch FLOPs by approximately and during training and inference, respectively, compared with STCA. These results demonstrate the computational efficiency of the cascaded architecture when scaling to ultra-long behavior sequences.
We further investigate how predictive performance scales with history length. As shown in Figure 6(c), both ECHO and STCA achieve consistent GAUC improvements as the available history length increases, indicating that longer histories provide additional information for user interest modeling. Specifically, the GAUC of ECHO increases from 0.6614 at 10K to 0.6630 at 50K, while STCA improves from 0.6598 at 5K to 0.6645 at 50K. Although STCA has a slight advantage at longer histories by directly modeling the full history, ECHO continues to benefit from longer sequences by preserving informative historical behaviors through its distilled selector and performing target-aware retrieval within a bounded sequence budget.
Overall, ECHO effectively reduces candidate-dependent sequence computation while retaining the predictive benefits of long-history modeling. By shifting history selection to a reusable user-level stage, ECHO enables efficient access to increasingly long behavior histories without requiring full-history target-aware interactions for every candidate. These results highlight its potential for scalable ultra-long sequence modeling under the computational constraints of industrial recommendation systems.
4.5 Ablation Study (RQ4)
To further investigate the effectiveness and applicability of ECHO, we conduct experiments from three perspectives: training objectives, distillation temperature, and downstream ranking architectures.
(a)

(b)

(c)

Figure 6: History-length scaling. (a,b) Analytical training and inference sequence-branch FLOPs. (c) GAUC from a separate length study.
Table 2: Training-objective ablation on KuaiRand-1K (GAUC). The prediction-only variant removes both KD and auxiliary losses. Improvements are relative to this variant.
| Method | Click | Like | Comment | Long-view |
|---|---|---|---|---|
| ECHO (full) | 0.6630 | 0.6656 | 0.6347 | 0.6967 |
| Prediction loss only | 0.6612 | 0.6595 | 0.6200 | 0.6945 |
| Impro. | +0.272% | +0.925% | +2.371% | +0.317% |
To examine the contribution of distillation supervision, we remove both the knowledge distillation loss and the boundary-targeted auxiliary loss , equip the student with an independent prediction head, and train it using prediction loss alone. As shown in Table 2, the full ECHO model consistently outperforms the prediction-only variant across all four tasks on KuaiRand-1K, achieving relative GAUC improvements of 0.272%, 0.925%, 2.371%, and 0.317% on Click, Like, Comment, and Long-view, respectively. The largest improvement is observed on Comment, where GAUC increases from 0.6200 to 0.6347. These results demonstrate the importance of distillation-based supervision for effective history selection. By transferring target-aware relevance knowledge from the teacher to the user-level selector, the distillation objective guides the preservation of informative historical behaviors, while the boundary-targeted auxiliary objective further encourages teacher-preferred events to be included in the retained set. Together, these objectives improve the quality of selected histories and downstream prediction performance.
Furthermore, we investigate the sensitivity of ECHO to the distillation temperature and evaluate its applicability across different downstream architectures. Due to space limitations, detailed experimental results are provided in Appendix A.4.
4.6 Online A/B Testing
To assess the practical effectiveness of ECHO, we conduct a seven-day online A/B test in Kuaishou's largest short-video recommendation scenario (serves more than 400 million daily active users, generating over 50 billion interaction logs per day), with 5% of production traffic assigned to the treatment bucket.
Notably, the existing production system already incorporates advanced long-sequence modeling techniques, including TWIN-based behavior retrieval and sequence compression mechanisms similar to C-Former and SequenceO1. Rather than replacing a simple short-history baseline, ECHO is integrated into this established recommendation system to further enhance the utilization of ultra-long user histories. During online inference, the ranking system reads the retained historical records and performs target-aware retrieval and interest aggregation, while the user-level selector is maintained by the real-time training pipeline. The deployment is further supported by shared user inputs, compact record encoding, and key-side projection absorption, as detailed in Section 3.7. Compared with the existing production system, ECHO achieved a +0.613% increase in Total App Usage Time and a +0.640% increase in Total App Usage Time per user, demonstrating its benefit to user engagement in a production environment.
5 Conclusion
In this paper, we propose ECHO, a distillation-guided framework for ultra-long user behavior sequence modeling in industrial recommendation systems. ECHO employs a user-level Distilled Selector to identify and retain informative original behavior records from user histories of up to 100K events, followed by a Target-aware Fine-grained Retriever for downstream interest modeling. Through target-aware distillation and relevance parameter sharing, ECHO reduces candidate-dependent computation while preserving fine-grained matching capabilities over historical behaviors. We conducted extensive experiments on KuaiRand-1K and an industrial dataset. ECHO achieves the best GAUC across all eight prediction tasks. Further analyses demonstrate the effectiveness of the distilled selector in preserving highly relevant historical behaviors, as well as the computational efficiency and scalability of ECHO for ultra-long sequence modeling. Moreover, we conducted a seven-day online A/B test in Kuaishou's largest short-video recommendation scenario. Compared with the existing production system, ECHO achieved a +0.613% increase in Total App Usage Time and a +0.640% increase in Total App Usage Time per user, demonstrating the practical effectiveness of ECHO in large-scale recommendation systems.
Li et al.
References
[1] Yinjiang Cai, Jiangpan Hou, Yangping Zhu, and Yuan Nie. 2025. Interest Changes: Considering User Interest Life Cycle in Recommendation System. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval. doi:10.1145/3726302.3730215
[2] Zheng Chai, Qin Ren, Xijun Xiao, Huizhi Yang, Bo Han, Sijun Zhang, Di Chen, Hui Lu, Wenlin Zhao, Lele Yu, et al. 2025. LONGER: Scaling Up Long Sequence Modeling in Industrial Recommenders. In Proceedings of the Nineteenth ACM Conference on Recommender Systems. 247–256.
[3] Jianxin Chang, Chenbin Zhang, Zhiyi Fu, Xiaoxue Zang, Lin Guan, Jing Lu, Yiqun Hui, Dewei Leng, Yanan Niu, Yang Song, et al. 2023. TWIN: TWo-Stage Interest Network for Lifelong User Behavior Modeling in CTR Prediction at Kuaishou. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 3785–3794.
[4] Bo Chen, Jinlong Jiao, Tijian Hu, Ruihao Zhang, Yanzhi Liu, Chenghou Jin, Qinglin Jia, Baixuan He, Hechang Pan, Yiwu Liu, et al. 2026. UniFormer: Efficient and Unified Model-Centric Scaling for Industrial Recommendation. arXiv preprint arXiv:2606.27058 (2026).
[5] Qiwei Chen, Changhua Pei, Shanshan Lv, Chao Li, Junfeng Ge, and Wenwu Ou. 2021. End-to-End User Behavior Retrieval in Click-Through Rate Prediction Model. arXiv preprint arXiv:2108.04468 (2021).
[6] Qiwei Chen, Huan Zhao, Wei Li, Pipei Huang, and Wenwu Ou. 2019. Behavior Sequence Transformer for E-Commerce Recommendation in Alibaba. In Proceedings of the 1st International Workshop on Deep Learning Practice for High-Dimensional Sparse Data. 1–4.
[7] Zhimin Chen, Chenyu Zhao, Ka Chun Mo, Yunjiang Jiang, Jane H Lee, Shouwei Chen, Khushhall Chandra Mahajan, Ning Jiang, Kai Ren, Jinhui Li, et al. 2025. Massive Memorization with Hundreds of Trillions of Parameters for Sequential Transducer Generative Recommenders. arXiv preprint arXiv:2510.22049 (2025).
[8] Jiaxin Deng, Shiyao Wang, Kuo Cai, Lejian Ren, Qigen Hu, Weifeng Ding, Qiang Luo, and Guorui Zhou. 2025. Onerec: Unifying retrieve and rank with generative recommender and iterative preference alignment. arXiv preprint arXiv:2502.18965 (2025).
[9] Qin Ding, Kevin Course, Linjian Ma, Jianhui Sun, Ruochen Liu, Zhao Zhu, Chunxing Yin, Wei Li, Dai Li, Yu Shi, et al. 2026. Bending the scaling law curve in large-scale recommendation systems. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 7162–7173.
[10] Chongming Gao, Shijun Li, Yuan Zhang, Jiawei Chen, Biao Li, Wenqiang Lei, Peng Jiang, and Xiangnan He. 2022. Kuairand: An unbiased sequential recommendation dataset with randomly exposed videos. In Proceedings of the 31st ACM international conference on information & knowledge management. 3953–3957.
[11] Lin Guan, Jia-Qi Yang, Zhishan Zhao, Jiaqiang Huang, Hangyu Wang, Longbin Li, Beichuan Zhang, Haonan Jiang, Jinan Ni, Xiangyu Fan, et al. 2026. SequenceO1: End-to-End Ultra-Long (100K) Sequence Modeling in Recommendation with Low-Rank Caching. In Proceedings of the 20th ACM Conference on Recommender Systems. doi:10.1145/3773078.3831864
[12] Lin Guan, Jia-Qi Yang, Zhishan Zhao, Beichuan Zhang, Bo Sun, Xuanyuan Luo, Jinan Ni, Xiaowen Li, Yuhang Qi, Zhifang Fan, et al. 2026. Make it long, keep it fast: End-to-end 10k-sequence modeling at billion scale on Douyin. In Proceedings of the ACM Web Conference 2026. 7989–7998.
[13] Zhicheng He, Weiwen Liu, Wei Guo, Jiarui Qin, Yingxue Zhang, Yaochen Hu, and Ruiming Tang. 2023. A survey on user behavior modeling in recommender systems. arXiv preprint arXiv:2302.11087 (2023).
[14] Xu Huang, Hao Zhang, Zhifang Fan, Yunwen Huang, Zhuoxing Wei, Zheng Chai, Jinan Ni, Yuchao Zheng, and Qiwei Chen. 2026. MixFormer: Co-Scaling Up Dense and Sequence in Industrial Recommenders. arXiv preprint arXiv:2602.14110 (2026).
[15] Yunwen Huang, Shiyong Hong, Xijun Xiao, Jinqiu Jin, Xuanyuan Luo, Zhe Wang, Zheng Chai, Shikang Wu, Yuchao Zheng, and Jingjian Lin. 2026. HyFormer: Revisiting the Roles of Sequence Modeling and Feature Interaction in CTR Prediction. arXiv preprint arXiv:2601.12681 (2026).
[16] Wenhao Li, Zihan Lin, ZhengXiao Guo, Jie Zhou, Shukai Liu, Yongqi Liu, and Chuan Luo. 2026. An Action-Aware Generative Sequence Modeling for Short Video Recommendation. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval (Melbourne, VIC, Australia) (SIGIR '26). Association for Computing Machinery, New York, NY, USA, 958–968. doi:10.1145/3805712.3809728
[17] Wenhao Li, Jie Zhou, Chuan Luo, Chao Tang, Kun Zhang, and Shixiong Zhao. 2024. Scene-wise adaptive network for dynamic cold-start scenes optimization in ctr prediction. In Proceedings of the 18th ACM Conference on Recommender Systems. 370–379.
[18] Xinchun Li, Ning Zhang, Qianqian Yang, Fei Teng, Wenlin Zhao, Huizhi Yang, Heng Shi, Linlan Chen, Yixin Wu, Zhen Wang, et al. 2026. IAT: Instance-As-Token Compression for Historical User Sequence Modeling in Industrial Recommender Systems. arXiv preprint arXiv:2604.08933 (2026).
[19] Xinchun Li, Duoru Zheng, Wenlin Zhao, Haoran Ding, Ziyi Zhou, Jingxuan Tan, Huizhi Yang, Yuchen Jiang, Zhe Chen, Yuchao Zheng, et al. 2026. Teacher Retains Full Tokens, Student Merges Efficiently: TM20K for E-Commerce Sequence Modeling in Ad Recommendation. arXiv preprint arXiv:2608.07055 (2026).
[20] Xiaochen Li, Rui Zhong, Jian Liang, Xialong Liu, and Yu Zhang. 2022. Adversarial Filtering Modeling on Long-Term User Behavior Sequences for Click-Through Rate Prediction. In Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval. 1969–1973. doi:10.1145/3477495.3531788
[21] Wenhan Lyu, Devashish Tyagi, Yihang Yang, Ziwei Li, Ajay Somani, Karthikeyan Shanmugasundaram, Nikola Andrejevic, Ferdi Adeputra, Curtis Zeng, Arun K Singh, et al. 2025. DV365: Extremely Long User History Modeling at Instagram. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 4717–4727.
[22] Li-Wei Pan, Wei-Ke Pan, Mei-Yan Wei, Hong-Zhi Yin, and Zhong Ming. 2026. A survey on sequential recommendation. Frontiers of Computer Science 20, 3 (2026), 2003606.
[23] Qi Pi, Guorui Zhou, Yujing Zhang, Zhe Wang, Lejian Ren, Ying Fan, Xiaoqiang Zhu, and Kun Gai. 2020. Search-Based User Interest Modeling with Lifelong Sequential Behavior Data for Click-Through Rate Prediction. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management. 2685–2692.
[24] Zihua Si, Lin Guan, ZhongXiang Sun, Xiaoxue Zang, Jing Lu, Yiqun Hui, Xingchao Cao, Zeyu Yang, Yichen Zheng, Dewei Leng, et al. 2024. TWIN V2: Scaling Ultra-Long User Behavior Sequence Modeling for Enhanced CTR Prediction at Kuaishou. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management. 4890–4897.
[25] Shuli Wang, Junwei Yin, Changhao Li, Senjie Kou, Chi Wang, Yinqiu Huang, Yinhua Zhu, Haitao Wang, and Xingxing Wang. 2026. Sample Is Feature: Beyond Item-Level, Toward Sample-Level Tokens for Unified Large Recommender Models. arXiv preprint arXiv:2604.15650 (2026).
[26] Xingmei Wang, Shiyao Wang, Wuchao Li, Jiaxin Deng, Song Lu, Defu Lian, and Guorui Zhou. 2025. Transformers are Good Clusterers for Lifelong User Behavior Sequence Modeling. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management. 3123–3132.
[27] Bin Wu, Feifan Yang, Zhangming Chan, Yu-Ran Gu, Jiawei Feng, Chao Yi, Xiang-Rong Sheng, Han Zhu, Jian Xu, Mang Ye, et al. 2025. MUSE: A Simple Yet Effective Multimodal Search-Based Framework for Lifelong User Interest Modeling. arXiv preprint arXiv:2512.07216 (2025).
[28] Xue Xia, Saurabh Joshi, Kousik Rajesh, Kangnan Li, Yangyi Lu, Nikil Pancha, Dhruvil Badani, Jiajing Xu, and Pong Eksombatchai. 2025. TransAct V2: Lifelong User Action Sequence Modeling on Pinterest Recommendation. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management. 6881–6882.
[29] Songpei Xu, Shijia Wang, Da Guo, Xianwen Guo, Qiang Xiao, Bin Huang, Guanlin Wu, and Chuanjiang Luo. 2025. Climber: Toward efficient scaling laws for large recommendation models. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management. 6193–6200.
[30] Jiaqi Zhai, Lucy Liao, Xing Liu, Yueming Wang, Rui Li, Xuan Cao, Leon Gao, Zhaojie Gong, Fangda Gu, Michael He, et al. 2024. Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative Recommendations. arXiv preprint arXiv:2402.17152 (2024).
[31] Yukun Zhang, Si Dong, Xu Wang, Bo Chen, Qinglin Jia, Shengzhe Wang, Jinlong Jiao, Runhan Li, Jiaqiang Liu, Chaoyi Ma, et al. 2026. SMES: Towards Scalable Multi-Task Recommendation via Expert Sparsity. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 8522–8531.
[32] Zhaoqi Zhang, Haolei Pei, Jun Guo, Tianyu Wang, Yufei Feng, Hui Sun, Shaowei Liu, and Aixin Sun. 2025. OneTrans: Unified Feature Interaction and Sequence Modeling with One Transformer in Industrial Recommender. arXiv preprint arXiv:2510.26104 (2025).
[33] Guorui Zhou, Na Mou, Ying Fan, Qi Pi, Weijie Bian, Chang Zhou, Xiaoqiang Zhu, and Kun Gai. 2019. Deep Interest Evolution Network for Click-Through Rate Prediction. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 33. 5941–5948.
[34] Guorui Zhou, Xiaoqiang Zhu, Chenru Song, Ying Fan, Han Zhu, Xiao Ma, Yanghui Yan, Junqi Jin, Han Li, and Kun Gai. 2018. Deep Interest Network for Click-Through Rate Prediction. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. 1059–1068.
[35] Rui Zhou, Bo Chen, Qinglin Jia, Jiezhou Ji, Chaoyi Ma, Ruiming Tang, Hao Wang, and Enhong Chen. 2026. SITA: Semantic Interest Tokens for Target-Aware Compression in Long-Sequence Recommendation. arXiv preprint arXiv:2608.03692 (2026).
[36] Rui Zhou, Qinglin Jia, Bo Chen, Peng Xu, Yijia Sun, Siyuan Lou, Chaoxin Fu, Mengyuan Fu, Guoming Shen, Zheli Zhou, et al. 2026. A Survey of User Lifelong Behavior Modeling: Perspectives on Efficiency and Effectiveness. (2026).
A Additional Experimental Details
A.1 Baselines
To comprehensively evaluate ECHO, we compare it with six representative user behavior sequence modeling methods, categorized according to how they process historical interactions.
(1) Short-history modeling. DIN [34] employs target-aware attention to capture user interests from recent interactions. Due to the computational cost of attention over long sequences, it typically models a limited window of recent behaviors.
(2) Retrieval-based long-sequence modeling. SIM [23] introduces a two-stage framework consisting of a General Search Unit (GSU) and an Exact Search Unit (ESU), which first retrieves target-relevant behaviors from long-term histories and then performs fine-grained interest modeling. TWIN [3] further aligns the relevance metrics between the GSU and ESU, addressing the inconsistency between retrieval and downstream interest modeling.
(3) End-to-end long-sequence modeling. STCA [12] employs stacked target-aware cross-attention layers, together with batching optimizations and sequence-length extrapolation, to efficiently model user behavior histories at the 10K scale.
(4) Compression-based ultra-long sequence modeling. TWIN V2 [24] compresses lifelong user behaviors into cluster-structured representations and performs cluster-aware target attention to extend the range of historical interactions available for modeling. SequenceO1 [11] constructs a fixed-size user history sketch and combines low-rank caching with recent-history modeling, enabling efficient modeling of user behavior sequences at the 100K scale while bounding candidate-dependent computation.
A.2 Implementation Details
In offline experiments, we configure the history length of each method according to its modeling characteristics. For DIN, the maximum history length is set to 100. For SIM and TWIN, the input history length of the General Search Unit (GSU) is limited to 10K behaviors. STCA is trained with an average sequence length of 2K and extrapolates to 10K during inference. TWIN V2 clusters the most recent 50K behaviors into approximately 10K representative units. SequenceO1 compresses the same behaviors into a fixed-size sketch of 100 tokens and uses cache reuse to support ultra-long sequence modeling. For ECHO, the maximum raw history length is set to 50K, from which the Distilled Selector (DS) retains 10K original behavior records for downstream target-aware retrieval. For all two-stage retrieval methods, the final retrieval budget is set to 100 behaviors for subsequent interest modeling.
In industrial online deployment, we further extend the maximum raw history length of ECHO to 100K behaviors to accommodate ultra-long user histories in real-world recommendation scenarios. The DS retains 10K original behavior records, while the Target-aware Fine-grained Retriever (TFR) retrieves 100 relevant behaviors for each candidate item. This configuration expands the accessible history range while keeping the downstream retrieval and interest modeling budgets fixed.
All experiments are conducted on NVIDIA A800 GPUs using a hybrid distributed training framework. For KuaiRand-1K, we adopt the Adam optimizer with a learning rate of and a batch size of 256. For the industrial dataset, both sparse embedding parameters and dense network parameters are optimized using Adam, with learning rates of 0.001 and 0.0005, respectively, and a batch size of 3,000.
A.3 Computational Cost Analysis
We provide the analytical FLOPs estimates used in Fig. 6(a) and (b). We count dense matrix operations, with one multiply–accumulate equal to two FLOPs. Let denote the history length, the retention budget, and the number of candidates sharing the same user history. Candidate-independent computations are amortized over , while target-dependent operations are counted per candidate. We set and , with assumed selection-cache hit rates and . Cached selections are reused only for unchanged selector versions and history snapshots, while trainable attention activations are recomputed at each training step.
STCA. We reconstruct the single-query attention reordering and fusion architecture of STCA [12] with m = 4 layers, hidden width d = 128, H = 4 heads, and SwiGLU expansion ratio r = 4. Each SwiGLU block costs FLOPs, yielding mFL/R per target for historical feed-forward networks. Under reordered attention, each head performs scoring and weighted reduction over the original d-dimensional history, contributing 4mHLd FLOPs. The remaining query-side projections and fusion operations contribute
The resulting forward FLOPs per target are
Both training and inference estimates use the full history length L, rather than the shorter average training length used for STCA's length extrapolation.
ECHO. The counted ECHO computation consists of amortized selector refresh and retained-history attention. The frozen selector uses a input projection and grouped query-side transformations of , where the final dimension includes a bias coordinate. The input projection precedes user grouping, while the subsequent transformations and history scan are shared. With linear history-side projections absorbed into the query side, the expected refresh cost is
where the three terms correspond to the input projection, grouped query-side transformations, and history scan. The frozen selector incurs only forward computation when a refresh is required. This represents amortized user-state maintenance rather than per-candidate selector execution during online ranking.
The retained-history attention layer uses four heads with total width 128 and a 256-dimensional target query. Including query
Li et al.

Figure 7: Effect of distillation temperature on ECHO's Click GAUC.
projection, shared key/value projections, and target-aware scoring and aggregation over K events, its forward cost is
Absorbing the input transformation into the key/value projections requires a parameter composition cost of FLOPs. These parameters are precomputed for inference but recomposed during training. With U user groups per microbatch, the amortized cost is per target, we set U = 1.
Training and inference costs. We approximate forward and backward computation for trainable matrix operations as three times the forward FLOPs, while frozen selector refresh remains forward-only. The total estimated costs are
At and , STCA and ECHO require 14.262927 and 0.088960 GFLOPs per target during training, and 1.346437 and 0.008456 GFLOPs during inference, respectively. The corresponding ratios are and , computed from unrounded values. For , the attention cost remains fixed, while selector refresh adds only FLOPs per additional historical event. Thus, ECHO's estimated cost grows slowly with .
A.4 Additional Experimental Results
We investigate the sensitivity of ECHO to the distillation temperature T, which controls the smoothness of the teacher's relevance distribution and consequently affects the supervision provided to the selector. We vary T over and evaluate Click GAUC on KuaiRand-1K. As illustrated in Figure 7, GAUC increases from 0.6617 at T = 1 to 0.6630 at T = 4, before decreasing to 0.6613 at T = 8. This indicates that the sharpness of the distillation distribution plays an important role in learning effective behavior selection. A lower temperature concentrates supervision on a small
TWIN ECHO

Figure 8: Model-agnostic evaluation on KuaiRand-1K. Click and Long-view GAUC of TWIN and ECHO with different downstream backbones. Curved arrows indicate relative GAUC improvements over TWIN.
number of highly relevant behaviors, potentially overlooking useful relevance information from other interactions. Conversely, an excessively high temperature produces a smoother distribution that may weaken the distinction between behaviors of different relevance levels. An intermediate temperature provides a better balance between emphasizing highly relevant behaviors and preserving richer relevance information, leading to improved prediction performance.
Finally, we evaluate the applicability of ECHO across different downstream ranking architectures. Since ECHO performs user-level history selection while preserving original behavior records, its selection mechanism can be integrated with different feature interaction networks. We compare ECHO with TWIN using three downstream backbones: MLP, RankMixer, and MixFormer. As shown in Figure 8, ECHO consistently outperforms TWIN across all three architectures, achieving relative GAUC improvements of 0.15%–0.35% on Click and 0.09%–0.35% on Long-view. In particular, ECHO improves Click GAUC from 0.6607 to 0.6630 with MLP and from 0.6629 to 0.6640 with MixFormer. Despite variations in improvement across backbones, the consistent gains across all six comparisons indicate that ECHO can provide informative historical evidence for different downstream models, demonstrating its flexibility and model-agnostic applicability.
Overall, these experiments validate the effectiveness of distillation-based supervision, highlight the importance of an appropriate distillation temperature, and demonstrate that ECHO can effectively complement diverse downstream ranking architectures.
B Limitations
Long-tail limitations. Compressing 100K events to 10K may discard history relevant to extremely long-tail targets, making it unavailable to downstream retrieval. Unlike SequenceO1 [11], which compresses sequences into tokens, ECHO retains original records, allowing direct access to item identities, timestamps, and side features when relevant events survive selection and are retrieved. However, long-tail items can still be discarded during compression.
Adaptation latency. The selector adapts through training, not to individual online targets. Recovering excluded events for long-tail targets requires relevant training signals, model updates, and selection refreshes.
Received 20 February 2007; revised 12 March 2009; accepted 5 June 2009