alphaFeedback

WorksComputer Science

Rethinking Positional Encoding and Interaction Granularity for CTR Prediction

AI contributions
Not recorded for this paper
View details

Abstract

Click-through rate (CTR) prediction relies on historical behaviors and contextual features to estimate clicks on a target item. Existing Transformer-based CTR models often adopt index-based or temporal positional encodings and token-level causal interaction. However, we observe that most existing positional encodings do not outperform NoPE, while relaxing causal constraints within target-relative temporal groups also yields gains. These observations motivate a fundamental question: what positional encoding and interaction granularity does CTR prediction actually require? To address this question, we propose TRIP, which combines target-aware rank–time positional encoding with temporal-group interaction modeling. Specifically, Factorized Rank Encoding represents each behavior's ordinal position within the historical sequence through a low-rank factorization, while Target-Relative Time Encoding characterizes its temporal distance to the target on a coarse-to-fine scale. This joint design grounds each behavior's positional representation in its sequence context and temporal relation to the current target. Furthermore, Temporal Group-Causal Interaction enriches intra-group representations through bidirectional interaction and masked reconstruction while preserving inter-group causal order. Finally, behavior representations are condensed into compact group summaries for efficient group-level modeling in subsequent layers. Experiments on four public benchmarks show that TRIP improves AUC by up to 4.45% relative to the strongest baseline.

Introduction

Click-through rate (CTR) prediction estimates the probability that a user clicks a target item based on historical behaviors, user and item features, and contextual information [19, 30]. By modeling heterogeneous feature interactions and historical behavior sequences, CTR prediction provides engagement estimates that guide candidate ranking and exposure [19, 22, 30]. CTR models are widely used in e-commerce recommendation [9], personalized content delivery [24], and online advertising [30]. These applications support personalized information access and discovery on the Web [6, 24].

Transformer-based modeling has achieved substantial progress and become an important paradigm for CTR prediction [2, 4, 10, 19, 28].

Recent approaches unify feature interaction and behavior-sequence modeling within shared Transformer architectures [12, 13, 16, 28, 31]. Current methods typically inherit index-based positional encodings and token-level causal attention from language modeling [4, 28, 31]. Positional encodings represent behaviors by their physical indices in the input sequence, while causal attention restricts historical interactions to preceding context. For example, OneTrans [28] processes historical behaviors and non-sequential features as a unified token sequence with learned absolute positional embeddings (APE) through stacked causal Transformer blocks. However, the suitability of these positional encodings and interaction granularities for CTR prediction remains unclear.

Empirical Observations. We examine positional encoding and interaction granularity in OneTrans [28] and observe two phenomena. (1) As shown in Figure 1(a), none of the six positional encoding configurations of OneTrans yields better performance than its NoPE counterpart on KuaiRand. (2) Figure 1(b) shows that bidirectional interaction within target-relative temporal groups outperforms both event-level causal and global bidirectional interaction in AUC under all four encodings. Together, these findings motivate reconsidering: What positional information should CTR models encode, and at what granularity should historical behaviors interact?

Performance of OneTrans on KuaiRand under different positional encodings and interaction granularities

Figure 1. Performance of OneTrans on KuaiRand under different positional encodings and interaction granularities. (a) NoPE versus index-based encodings (learned APE, sinusoidal APE, and rank RoPE [20], time-based encoding (T-RoPE [17]), joint index–time encoding (TO-RoPE [23]), and target-aware encoding (CAPE [25]). (b) Causal, target-relative temporal-group bidirectional, and global bidirectional attention under NoPE, rank RoPE, CAPE, and TO-RoPE.

Understanding the Observations. To understand these observations, we examine historical behavior sequences in the context of the current prediction target. Figure 2 provides an illustrative example for the following two-part analysis.

An illustrative example of positional information and interaction granularity in CTR histories

Figure 2. An illustrative example of positional information and interaction granularity in CTR histories. (a) Sequence rank, event timestamps tit_i, and target-relative time Tk−tiT_k-t_i, where TkT_k is a prediction timestamp. (b) Target-relative temporal groups, with bidirectional interaction within groups and causal interaction across groups.

  • Positional information. As illustrated in Figure 2(a), historical behaviors in CTR prediction have three positional views: sequence rank, event timestamp, and target-relative time. Sequence rank characterizes a behavior’s ordinal context, whereas its timestamp specifies when it occurred. For a fixed history, ranks and timestamps remain unchanged across prediction requests, but the target-relative coordinates change from T1−tiT_1-t_i to T2−tiT_2-t_i with the prediction timestamp. Moreover, the same rank can correspond to different target-relative times, while temporally adjacent behaviors can occupy distinct ordinal positions. Thus, effective CTR positional modeling should jointly capture behavioral order, temporal information, and target-relative context, rather than relying on any single positional signal alone.

  • Interaction granularity. As illustrated in Figure 2(b), the same history is partitioned into different temporal groups as the prediction time changes, and is thus modeled at different scales for different targets. Within a group, behaviors mutually enrich one another to characterize the user’s interest during that period, while successive groups reveal how interests evolve toward the current request. Event-level causal interaction limits this within-group enrichment, whereas global bidirectional interaction removes the directed order across groups.

Our Solution. Based on the above observations and analysis, we propose TRIP, which combines target-aware rank–time positional encoding with temporal-group interaction modeling. Factorized Rank Encoding (FRE) represents each behavior’s ordinal position through a low-rank factorization with rank-specific coefficients over shared basis vectors. This preserves rank distinctions with a lightweight parameterization. Target-Relative Time Encoding (TRTE) encodes each behavior’s temporal distance to the target on a coarse-to-fine scale. Based on these target-anchored coordinates, it constructs density-corrected learnable temporal potentials as attention biases to guide time-aware history reading. Using the same target-relative temporal reference, Temporal Group-Causal Interaction (TGCI) partitions the history into temporal groups, where behaviors enrich one another through bidirectional interaction, while causal interaction across groups preserves interest evolution toward the current request. Furthermore, we use masked item reconstruction to strengthen contextual representations within each temporal group. Finally, contextualized behavior states are condensed into compact group summaries for efficient modeling of interest evolution in subsequent layers.

We evaluate TRIP against eleven baselines on four public CTR benchmarks. TRIP outperforms the best-performing baseline on each dataset, achieving an average relative AUC improvement of 1.47% and a maximum of 4.55% on Taobao. The joint target-aware rank–time encoding also transfers to other Transformer-based CTR models, achieving relative AUC improvements of up to 4.20% over the best of eight alternative positional encoding configurations on the same backbone. Ablation studies further confirm the importance of behavior rank and target-relative time, as well as the effectiveness of temporal-group interaction modeling. The main contributions of this work are as follows:

  • We identify limitations of existing positional and temporal encodings and uniform interaction structures in CTR prediction through empirical comparisons and behavioral analysis.

  • We propose target-aware rank–time positional encoding through FRE and TRTE, coupling lightweight ordinal representations with target-relative temporal potentials.

  • We develop TGCI for within-group mutual enrichment and cross-group causal interest evolution, with masked reconstruction for contextual learning and group summaries for efficient modeling.

Preliminaries

CTR prediction is a supervised binary classification task that estimates the probability of a click on a displayed target item. Each sample corresponds to an impression of item v∗v_* to user uu at prediction time TT. Let xNS=[x(1),…,x(F)]\boldsymbol{x}^{\mathrm{NS}}=[\boldsymbol{x}^{(1)},\ldots,\boldsymbol{x}^{(F)}] denote the associated user, target-item, and contextual features across FF fields. These heterogeneous fields include categorical identifiers and attributes, as well as numerical features. The user’s observed behavior history is

Hu(T)=[(vi,fi,ti)]i=1n,t1≤⋯≤tn<T,(1)\mathcal{H}_u(T)=\left[(v_i,f_i,t_i)\right]_{i=1}^{n},\qquad t_1\leq\cdots\leq t_n<T, \tag*{(1)}

where nn is the history length, and viv_i, fif_i, and tit_i denote the item, associated features, and timestamp of the ii-th event, respectively. Historical behaviors provide sequential evidence of user interests, while the target item and impression context specify the prediction instance. The label y∈{0,1}y\in\{0,1\} indicates whether the displayed item is clicked. Conditioned on these inputs, the model estimates

y^=fθ(Hu(T),v∗,xNS,T).(2)\hat{y}=f_{\theta}\left(\mathcal{H}_u(T),v_*,\boldsymbol{x}^{\mathrm{NS}},T\right). \tag*{(2)}

The model parameters θ\theta are learned from labeled interactions by minimizing the binary cross-entropy loss. Following unified CTR models [12, 13, 28], we map each historical event to a token hi=Tokenizer⁡(vi,fi,ti)h_i=\operatorname{Tokenizer}(v_i,f_i,t_i) and tokenize the embedded user, target-item, and contextual fields into NNSN_{\mathrm{NS}} non-sequential tokens. The resulting matrices are HS∈RL×D\boldsymbol{H}_{\mathrm{S}}\in\mathbb{R}^{L\times D} and HNS∈RNNS×D\boldsymbol{H}_{\mathrm{NS}}\in\mathbb{R}^{N_{\mathrm{NS}}\times D}, where LL is the history capacity and DD the hidden dimension. Non-sequential tokens can combine multiple fields, so NNSN_{\mathrm{NS}} need not equal the field count FF.

Methodology

Figure 3 illustrates TRIP, a unified CTR framework for joint behavior-sequence modeling and non-sequential feature interaction. TRIP jointly represents behavioral rank and target-relative time, then organizes interactions within target-relative temporal groups. FRE injects a lightweight ordinal representation into each history token. TRTE uses the event’s distance to the target to guide attention through either learnable temporal potentials or temporal rotations. TGCI contextualizes events within temporal groups, supplies masked-item reconstruction supervision, and compresses the history into group summaries for subsequent modeling.

Overview of TRIP

Figure 3. Overview of TRIP. FRE and TRTE encode sequence rank and target-relative time (learnable temporal potentials in TRIP-B or temporal rotations in TRIP-R). TGCI performs intra-group bidirectional and inter-group causal interaction, with masked reconstruction and group-summary compression for subsequent CTR modeling.

Factorized Rank Encoding

Observations. In CTR prediction, sequence rank provides an item’s ordinal context, which elapsed time alone cannot fully characterize under irregular user activity. Since the predictive role of a historical behavior can vary across sequence positions, we adopt learnable rank embeddings that allow CTR supervision to determine position-specific representations without imposing a predefined positional geometry. Interestingly, we observe that these learned embeddings exhibit an approximately low-rank structure. As shown in Figure 4, reconstructing them with only a few principal directions largely preserves prediction performance. Motivated by this observation, we design FRE with rank-specific coefficients over shared basis vectors, enabling flexible yet compact ordinal representations.

Performance after PCA reconstruction of learned history position embeddings on TAAC and KuaiRand

Figure 4. Performance after PCA reconstruction of learned history position embeddings on TAAC and KuaiRand. Full learned APE is the uncompressed history-only position table.

FRE parameterizes the rank representation with a common vector μ∈RD\mu\in\mathbb{R}^{D}, position-specific coefficients A∈RL×KA \in\mathbb{R}^{L \times K}, and shared basis vectors B∈RK×DB \in\mathbb{R}^{K \times D}. Here, KK is the factorization width. We center the coefficients across ranks to separate the shared offset from rank-specific variation and define the rank representation as

Ac=A−1L11⊤A,pr=γμμ+γRarcB.(3)A_c = A - \frac{1}{L}\mathbf{1}\mathbf{1}^{\top}A,\qquad p_r = \gamma_{\mu}\mu+ \gamma_R a_r^c B. \tag*{(3)}

where arca_r^c is row rr of AcA_c, and γμ\gamma_{\mu} and γR\gamma_R control the shared and rank-dependent components, respectively. The parameters μ\mu, AA, and BB are jointly learned end-to-end, allowing each rank to learn a distinct linear combination of shared basis vectors for CTR prediction.

For event ii with sequence rank rir_i, FRE adds the corresponding rank embedding to its input representation:

xi=hi+pri,Xin=[HS+P;ZNS],(4)x_i = h_i + p_{r_i},\qquad X_{\mathrm{in}} = [H_S + P; Z_{\mathrm{NS}}], \tag*{(4)}

where PP collects the rank embeddings, and concatenation is along the token axis. To represent ordinal context within the behavior sequence, we only apply FRE to the history tokens. Compared with full learned APE, FRE reduces the positional parameter count from LDLD to D+LK+KDD + LK + KD, corresponding to a 3.8–21.6× reduction under our benchmark configurations. This lightweight design provides effective rank representations within the behavior history.

Target-Relative Time Encoding

Sequence rank captures behavioral order but overlooks temporal intervals, while event timestamps alone do not explicitly characterize temporal relationships to the current prediction target. Moreover, the temporal relevance of a historical behavior varies with the current target, even when the history remains unchanged. Therefore, we propose TRTE to encode each behavior’s temporal position relative to the target.

Target-Anchored Temporal Coordinates. Temporal distinctions are not equally informative across the history: recent behaviors often reflect immediate interests and benefit from finer temporal resolution, whereas distant behaviors can be modeled at coarser scales. We therefore adopt a fine-grained logarithmic time scale to preserve detailed temporal distinctions near the target while compactly representing the distant past. The temporal coordinate is defined as

ui=⌊mlog⁡2(1+δi)⌋m,(5)u_i = \frac{\left\lfloor m\log_2(1+\delta_i)\right\rfloor}{m}, \tag*{(5)}

where δi=T−ti\delta_i = T - t_i is the elapsed time in seconds from event ii to the prediction timestamp TT, m≥1m \ge1 specifies the number of subdivisions per logarithmic interval, and uiu_i is the resulting discretized logarithmic time coordinate. Increasing mm refines temporal resolution while preserving the logarithmic scaling.

Learnable Temporal Potentials. We map each target-relative coordinate uiu_i to a discrete temporal interval index jij_i and introduce a head-specific learnable function ϕh(ji;θh)\phi_h(j_i; \theta_h). This allows different attention heads to respond differently to the same temporal interval. Combined with the fine-grained logarithmic time scale, these head-specific preferences enable flexible aggregation of behaviors from both recent and distant history. Historical behaviors are unevenly distributed across temporal intervals. Since softmax assigns weights to individual events, intervals containing more behaviors may accumulate greater attention mass simply through event multiplicity. We therefore correct the temporal potential using the event distribution within each sample. For positive elapsed times, the corrected potential is

βh,i=ϕh(ji;θh)−λcntlog⁡nji,(6)\beta_{h,i} = \phi_h(j_i; \theta_h) - \lambda_{\mathrm{cnt}}\log n_{j_i}, \tag*{(6)}

where njn_j counts valid history events in interval jj for the current sample, and λcnt\lambda_{\mathrm{cnt}} controls the correction strength. This correction mitigates quantity-driven amplification while retaining content relevance and learned temporal preferences.

For prediction-side queries q∈NSq \in\mathrm{NS} and history keys k∈Sk \in S, we add the corrected potential to the attention scores:

ℓh,q,k=⟨qh,q,kh,k⟩dh+βh,k.(7)\ell_{h,q,k} = \frac{\langle q_{h,q}, k_{h,k}\rangle}{\sqrt{d_h}} + \beta_{h,k}. \tag*{(7)}

Here, qh,qq_{h,q} and kh,kk_{h,k} denote query and key vectors, ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle is their inner product, and dh=D/Hd_h = D/H is the dimension of each of HH heads. Other query–key pairs retain the standard content-based scores. The attention weights are obtained by softmax:

αh,q,k=exp⁡(ℓh,q,k)∑k′∈V(q)exp⁡(ℓh,q,k′),(8)\alpha_{h,q,k} = \frac{\exp(\ell_{h,q,k})}{\sum_{k' \in\mathcal{V}(q)} \exp(\ell_{h,q,k'})}, \tag*{(8)}

where V(q)\mathcal{V}(q) contains all valid keys visible to query qq, including permitted prediction-side keys. The corrected scores guide history reading through head-specific target-relative temporal preferences. This learned-potential variant is denoted TRIP-B.

Target-Relative Temporal Rotations. As an alternative to learnable temporal potentials, we introduce a rotary formulation, denoted TRIP-R, that incorporates target-relative temporal information into query/key interactions. Reusing the logarithmic coordinate in (5), we place historical behaviors with δi>0\delta_i > 0 on the negative time axis and prediction-side tokens at the origin:

pitime=−min⁡(Crot,1+ui),pqtime=0(q∈NS).(9)p_i^{\mathrm{time}} = -\min(C_{\mathrm{rot}}, 1 + u_i), \qquad p_q^{\mathrm{time}} = 0 \quad(q \in\mathrm{NS}). \tag*{(9)}

Here, uiu_i is evaluated with resolution m=mRm = m_R, and CrotC_{\mathrm{rot}} bounds the coordinate magnitude. This arrangement expresses each historical behavior’s temporal position relative to the current prediction time. Following RoPE [20], we rotate queries and keys:

q~h,i=R(pitime)qh,i,k~h,i=R(pitime)kh,i,(10)\widetilde{q}_{h,i} = R(p_i^{\mathrm{time}})q_{h,i}, \qquad\widetilde{k}_{h,i} = R(p_i^{\mathrm{time}})k_{h,i}, \tag*{(10)}

where R(⋅)R(\cdot) denotes the rotary transformation. The resulting attention scores are

ℓh,q,k=⟨q~h,q,k~h,k⟩dh,(11)\ell_{h,q,k} = \frac{\langle\widetilde{q}_{h,q}, \widetilde{k}_{h,k}\rangle}{\sqrt{d_h}}, \tag*{(11)}

and are normalized using (8). This formulation encodes target-relative temporal relationships through query/key rotations, while FRE retains ordinal context in the input representations. TRIP-B and TRIP-R are alternative variants of TRTE. TRIP-B biases prediction-side history reading only in the first Transformer block, while TRIP-R applies temporal Q/K rotations in all Transformer blocks. Implementation details are provided in Appendix A.2.

Temporal Group-Causal Interaction

TGCI organizes the history into temporal groups defined by distance to the current prediction, so that behaviors within a group exchange context bidirectionally while information across groups flows causally toward the target. Sharing the target-relative reference of TRTE with its own resolution, we partition historical behaviors as

gi=min⁡(Cgrp,1+⌊log⁡2(1+δi)⌋),(12)g_i = \min(C_{\mathrm{grp}}, 1 + \lfloor\log_2(1 + \delta_i) \rfloor), \tag*{(12)}

where CgrpC_{\mathrm{grp}} caps the group index and Gc={i:gi=c}\mathcal{G}_c = \{i : g_i = c\} denotes a nonempty temporal group. For valid history events ordered chronologically, we define the additive attention mask as

Mi,j={0,j≤i or gi=gj,−∞,otherwise.(13)M_{i,j} = \begin{cases} 0, & j \leq i \text{ or } g_i = g_j,\\ -\infty, & \text{otherwise}. \end{cases} \tag*{(13)}

The mask is added to the attention scores before softmax. It permits bidirectional context exchange within a group while retaining causal information flow across groups. Because groups are defined relative to TT, the same history is regrouped as the target changes.

Masked Contextual Reconstruction. To encourage learning semantic relationships within temporal groups, we introduce masked-item reconstruction as auxiliary supervision. During training, we select historical events for masking at a nominal ratio ρ∈(0,1)\rho\in(0, 1) and replace their item embeddings with a learnable mask embedding. The masked set M\mathcal{M} is selected within temporal groups. We reconstruct the original item embeddings from contextualized event states:

e^i=frec(hi(0)),i∈M,(14)\hat{\mathbf{e}}_i = f_{\mathrm{rec}}(\mathbf{h}_i^{(0)}), \qquad i \in\mathcal{M}, \tag*{(14)}

where M\mathcal{M} is the set of masked events and hi(0)\mathbf{h}_i^{(0)} is the event representation after the first Transformer block. The reconstruction head frecf_{\mathrm{rec}} consists of layer normalization and a two-layer MLP with a SiLU activation. It predicts the original item embedding from each masked event’s contextualized state before group compression. The auxiliary objective encourages recovery of masked behavior content using local context. Reconstruction and CTR prediction share the same masked input and backbone pass during training. At inference, masking and the reconstruction head are disabled.

Group-Level Interest Modeling. After within-group contextualization, we aggregate event representations into a group summary:

sc=1∣Gc∣∑i∈Gchi(0).(15)\mathbf{s}_c = \frac{1}{|\mathcal{G}_c|} \sum_{i \in\mathcal{G}_c} \mathbf{h}_i^{(0)}. \tag*{(15)}

Each summary represents the user’s interest during the corresponding period. The summaries are arranged chronologically and replace the original events, reducing the history length from LL events to GG nonempty group summaries, while prediction-side states are retained. Subsequent causal Transformer blocks model interest evolution across these group-level representations more effectively and at lower computational cost.

The CTR head predicts the click probability from the mean-pooled prediction-side states:

y^=σ(fCTR(1Nns∑q=1Nnszqfinal)),(16)\hat{y} = \sigma\left(f_{\mathrm{CTR}}\left(\frac{1}{N_{\mathrm{ns}}}\sum_{q=1}^{N_{\mathrm{ns}}}\mathbf{z}_q^{\mathrm{final}}\right)\right), \tag*{(16)}

where zqfinal\mathbf{z}_q^{\mathrm{final}} is the final state of prediction-side token qq, fCTRf_{\mathrm{CTR}} is an MLP, and σ\sigma is the sigmoid function.

Optimization

We train TRIP by jointly minimizing the CTR prediction loss and an auxiliary masked-item reconstruction loss. For a minibatch B\mathcal{B},

Experimental Setup

the CTR objective is binary cross-entropy:

LCTR=−1∣B∣∑b∈B[yblog⁡y^b+(1−yb)log⁡(1−y^b)].(17)\mathcal{L}_{\mathrm{CTR}} = -\frac{1}{|\mathcal{B}|} \sum_{b \in\mathcal{B}} \left[y_b \log\hat{y}_b + (1-y_b)\log(1-\hat{y}_b)\right]. \tag*{(17)}

The reconstruction objective encourages contextualized event representations to recover masked item content:

Lrec=1∣MB∣∑i∈MB[1−cos⁡(e^i,sg⁡(ei(item)))].(18)\mathcal{L}_{\mathrm{rec}} = \frac{1}{|\mathcal{M}_{\mathcal{B}}|} \sum_{i \in\mathcal{M}_{\mathcal{B}}} \left[1-\cos\left(\hat{\mathbf{e}}_i,\operatorname{sg}(\mathbf{e}_i^{(\mathrm{item})})\right)\right]. \tag*{(18)}

where MB\mathcal{M}_{\mathcal{B}} denotes the masked events in the minibatch, e^i\hat{\mathbf{e}}_i is the reconstructed item embedding, and sg⁡\operatorname{sg} stops gradients through the original embedding used as the target. The joint objective is

L=LCTR+λrecLrec,(19)\mathcal{L} = \mathcal{L}_{\mathrm{CTR}} + \lambda_{\mathrm{rec}}\mathcal{L}_{\mathrm{rec}}, \tag*{(19)}

where λrec\lambda_{\mathrm{rec}} controls the auxiliary supervision strength. The model parameters are jointly optimized under this objective. Training and implementation details are provided in Appendix A.

Limitations. TRIP defines temporal groups using fixed logarithmic intervals relative to the prediction time, which may not align with individual users’ interest transitions. In addition, mean-pooling contextualized events into group summaries can obscure fine-grained event distinctions in subsequent layers. Adaptive group boundaries and selective retention of event-level representations could address these limitations.

Experiments

Experimental Setup

Datasets. We evaluate on four public benchmarks. KuaiRec [7] contains short-video viewing feedback with a compact catalog; KuaiRand-1K [8] provides short-video logs with randomized exposure interventions and a larger catalog. TAAC-1M [18] contains Tencent advertising sequences, while TaobaoAd [1] combines display-ad impressions with shopping histories. These settings cover different recommendation domains, catalog sizes, history lengths, and feedback distributions (Table 1).

StatisticKuaiRecKuaiRandTAACTaobaoAd
Train samples12,190,18710,911,7704,714,20020,015,245
Val. samples181,130390,961148,6993,234,051
Test samples159,040410,31492,4953,308,665
User ID vocab.7,1761,0001,001,8451,141,729
Item ID vocab.10,7284,369,9534,783,15412,975
User fields313199
Target fields4550145
Max. history200200100300
Train pos. rate7.44%37.83%10.92%5.20%

Table 1. Dataset statistics and input feature configurations.

Baselines. We use two sets of baselines to evaluate overall model performance and the contribution of positional encoding.

  • Overall model performance. We compare TRIP with eleven models: (1) feature-interaction models, including DeepFM [11], DCNv2 [22], Wukong [27], and RankMixer [32]; (2) behavior-sequence models, including DIN [30], DIEN [29], and STCA [10]; and (3) unified feature and sequence models, including TokenFormer [31], OneTrans [28], HyFormer [13], and MixFormer [12].

  • Positional encoding. We compare FRE + TRTE-B and FRE + TRTE-R with eight configurations in four categories: (1) physical-position configurations, including the NoPE reference, learned APE, sinusoidal APE, and rank RoPE [20]; (2) time-based encodings, including T-RoPE [17] and ClockRoPE [5]; (3) target-aware encoding, represented by CAPE [25]; and (4) joint time–position encoding, represented by TO-RoPE [23]. We evaluate them on OneTrans, HyFormer, and MixFormer to assess the contribution and transferability of FRE and TRTE independently of TGCI.

Training and Evaluation. We implement all models in PyTorch and use the same NVIDIA H20 hardware, optimizer, learning rate, batch sizes, and training duration for fair comparison. All baselines retain raw event-time and prediction-time features, so the comparisons do not withhold timestamp information from existing methods. We evaluate predictive performance using AUC and LogLoss, reporting the mean and sample standard deviation over three random seeds. Further training, model, and evaluation details are provided in Appendix A.1.

Overall Performance

Table 2 shows that TRIP-B consistently outperforms the eleven baselines in AUC across all four datasets, with an average relative improvement of 1.47% and a maximum of 4.45% on TAAC. TRIP also achieves the lowest LogLoss on KuaiRec, TAAC, and TaobaoAd, demonstrating strong ranking discrimination and probabilistic prediction performance. These gains reflect the complementary roles of FRE and TRTE in modeling behavioral rank and target-relative time, while TGCI enriches behaviors within target-relative temporal groups and preserves interest evolution across groups. Together, these components provide richer positional context and more effective historical interaction. On KuaiRand, despite its AUC advantage, TRIP-B exhibits a higher LogLoss. KuaiRand contains heterogeneous exposure scenarios with distinct feedback definitions and positive rates, and analysis reveals that TRIP-B substantially overestimates positive-feedback probabilities in certain low-positive-rate scenarios, accounting for much of the LogLoss gap (Appendix B.5).

Evaluation of Positional Encoding

Table 3 evaluates FRE + TRTE against eight positional and temporal configurations on three CTR backbones, without using TGCI. The additive and rotary variants outperform the strongest competing encoding in 10 and 11 of the 12 settings, respectively, with at least one achieving the highest AUC in every setting. On TAAC, FRE + TRTE-R improves AUC by 4.20%, 3.78%, and 3.65% on OneTrans, HyFormer, and MixFormer, respectively. These results demonstrate that the proposed rank–time representation is transferable across backbones independently of the complete TRIP pipeline. The comparisons further highlight the limitations of existing positional encodings. On KuaiRand, learned APE, sinusoidal APE, and rank RoPE underperform NoPE across all three backbones, while time-based T-RoPE and ClockRoPE also trail NoPE on OneTrans. On TAAC, target-aware CAPE and joint order–time TO-RoPE remain below FRE + TRTE across all three backbones. These findings suggest that incorporating positional cues does not by itself guarantee effective modeling. FRE + TRTE instead couples task-adaptive rank representations with prediction-time-anchored temporal encoding, jointly interpreting sequence rank and event time relative to the current prediction.

Rank Encoding Replacements. Table 4 replaces FRE in TRIP-B with other rank encodings while keeping TRTE fixed. The contrast is sharpest on TAAC. Rank encoding alone does not improve over

Positional EncodingKuaiRec OneTransKuaiRec HyFormerKuaiRec MixFormerKuaiRand OneTransKuaiRand HyFormerKuaiRand MixFormerTAAC OneTransTAAC HyFormerTAAC MixFormerTaobaoAd OneTransTaobaoAd HyFormerTaobaoAd MixFormer
NoPE0.84430.84490.84380.76940.76830.77540.60670.60500.60420.62760.62540.6265
Learned APE0.84450.84660.84390.75890.76210.76600.60580.60370.60340.62810.62780.6275
Sinusoidal APE0.84570.84500.84560.76480.76410.76450.60610.60380.60630.62730.62760.6279
Rank RoPE0.84340.84320.84420.76160.76230.70260.60570.60180.60580.62800.62670.6273
CAPE0.84240.84210.81890.76410.76410.64180.60550.60590.57290.62660.62480.6106
TO-RoPE0.84740.84620.84710.76680.76400.67420.60620.60310.60610.62830.62600.6269
T-RoPE0.84970.84530.84520.76680.76870.76750.60540.60350.60210.62920.62610.6225
ClockRoPE0.84880.84640.84960.76580.76430.76480.60560.60360.60530.62840.62740.6267
FRE + TRTE-B0.85040.85020.84950.77560.76930.77580.63190.61370.62770.62910.62790.6286
FRE + TRTE-R0.85020.84900.85280.77470.77080.77190.63220.62880.62840.62960.62850.6282

Table 3. Positional encoding transfer across three CTR backbones (mean AUC). FRE + TRTE is evaluated without TGCI. Best and second-best results are bolded and underlined.

NoPE there, and removing FRE from TRIP-B returns AUC to a similar level, yet with TRTE in place, learned APE and FRE outperform Rank RoPE by about 0.027. Rank RoPE still exposes recency, because histories are right-aligned and prediction-side tokens share a fixed rotary coordinate, but it only changes attention scores. Additive encodings instead write rank into the token representations that TRTE aggregates by target-relative time, consistent with rank and time being complementary when both enter the representations. FRE performs comparably to or better than full learned APE on all four datasets while using 3.8–21.6× fewer positional parameters, since each rank is expressed through a few shared basis vectors.

EncodingKuaiRecKuaiRandTAACTaobaoAd
FRE0.8512 ± 0.00160.7778 ± 0.00080.6337 ± 0.00170.6299 ± 0.0007
Learned APE0.8493 ± 0.00090.7787 ± 0.00120.6323 ± 0.00150.6297 ± 0.0013
Sinusoidal APE0.8504 ± 0.00100.7782 ± 0.00090.6240 ± 0.01210.6292 ± 0.0012
Rank RoPE0.8496 ± 0.00140.7753 ± 0.00100.6061 ± 0.00210.6287 ± 0.0017

Table 4. Rank encoding replacements in TRIP-B with TRTE fixed. The best mean in each column is bolded.

Ablation and Mechanism Analysis

Figure 5 evaluates nine ablated variants of TRIP-B. The full model achieves the highest mean AUC among the displayed variants on all four datasets, demonstrating the benefits of combining rank–time positional modeling with temporal-group interaction.

Ablations of TRIP-B

Figure 5. Ablations of TRIP-B. Bars show mean AUC differences from Full (×103\times10^3). TA, DC, GS, Rec, and M denote target awareness, density correction, group summaries, reconstruction, and masking; TGCA denotes attention within TGCI.

Ordinal and Target-Relative Information. Removing either FRE or TRTE lowers AUC across all four datasets, indicating that each contributes beyond the other. The effect is particularly pronounced on TAAC, where AUC drops from 0.6337 to 0.6066 without FRE and 0.6073 without TRTE. Replacing the prediction-time reference while keeping the other components fixed also reduces AUC across datasets. These results support retaining both ordinal and temporal information, with the current prediction timestamp providing an effective reference for temporal modeling.

Temporal Preferences and Density. Removing density correction lowers mean AUC across all four datasets, supporting occupancy adjustment to counteract the attention advantage of densely populated intervals. Figure 6 further shows dataset- and head-specific temporal patterns: the learned potentials assign higher scores to minute-scale intervals on KuaiRec, exhibit a broad recency preference on KuaiRand, and differ across heads on TAAC. TaobaoAd shows separated high-potential windows rather than uniform recency decay. These curves describe temporal biases, not final attention weights, which also depend on content scores and density correction. Together, these observations support flexible temporal preferences with sample-wise occupancy adjustment.

Learned temporal potentials on four datasets

Figure 6. Learned temporal potentials ϕh\phi_h on four datasets. Curves denote attention heads; dashed lines show the original initialization. Horizontal axes show target-relative elapsed time on a logarithmic scale.

Within-Group Interaction and Group-Level Modeling. Replacing group-causal interaction with token-level causal attention lowers mean AUC on every dataset even when temporal grouping and summaries are retained, supporting the contribution of within-group bidirectional context. Removing summaries also reduces performance, indicating the value of group-level aggregation after event contextualization. Removing reconstruction while retaining masking further lowers AUC, supporting the contribution of auxiliary reconstruction supervision. These controlled comparisons support the roles of within-group enrichment, group summaries, and reconstruction within TGCI. Variant definitions and parameter sensitivity results are given in Appendices B.1 and B.4.

Grouping Strategies. Figure 7 compares temporal grouping with Random and Rank-contiguous alternatives. All strategies preserve per-sample group counts and sizes, keeping the summary compression ratio unchanged. Random redistributes group membership, whereas Rank-contiguous partitions consecutive ranks using reordered temporal-group sizes. Under these matched conditions, temporal grouping achieves the highest mean AUC on all four datasets. This suggests that grouping behaviors by their distance to the prediction is more effective than arbitrary or rank-based partitions, beyond the benefit of compression alone. Construction details are given in Appendix B.1.

Mean AUC under temporal, random, and rank-contiguous grouping

Figure 7. Mean AUC under temporal, random, and rank-contiguous grouping. All strategies preserve the original group counts and sizes for each sample.

Efficiency of Group-Level Modeling

Table 5 shows two benefits of group-summary compression: higher AUC and 6.3–32.8% lower per-step training time. On TaobaoAd, AUC improves from 0.6297 to 0.6304 while time falls from 141.31 to 95.01 ms/step; KuaiRand gains AUC from 0.7753 to 0.7778 with 20.7% time savings. The AUC gains suggest that aggregation suppresses redundant or noisy event-level variation while retaining useful interest signals. Preserving event-level inputs in the first Transformer block allows the model to learn contextual representations from the original behavior features before compression. Subsequent aggregation can therefore consolidate the contextualized interest of each group rather than discard event details before they are encoded. The shorter group-level sequence also reduces later-layer computation, improving accuracy and efficiency together. Further timing comparisons are provided in Appendix B.3.

DatasetAUC (w/o → with)Savedms/step
KuaiRec0.8501 → 0.850820.0%113.95
KuaiRand0.7753 → 0.777820.7%116.54
TAAC0.6355 → 0.63596.3%102.13
TaobaoAd0.6297 → 0.630432.8%95.01

Table 5. Analysis of Group-summary efficiency (single-run results). Time savings are relative to no compression.

Related Work

CTR Modeling

CTR modeling has developed along two lines: feature interaction and sequence modeling. Feature models have progressed from factorization-based and explicit crosses [11, 22] to attention-based interactions [19]. Wukong [27] and RankMixer [32] scale interactions through stacked factorization and token mixing, respectively. Sequence models have evolved from target-conditioned interest aggregation and evolution [29, 30] toward efficient long-history processing with LONGER [3] and STCA [10]. These separate modules increasingly converge toward unified architectures for joint optimization and sequence–feature interaction [12, 13, 16, 28, 31]. OneTrans [28] processes historical and non-sequential tokens with causal Transformer blocks. HyFormer [13] and MixFormer [12] further explore the integration and joint scaling of sequence modeling and feature interaction. However, suitable positional encoding and interaction granularity for Transformer-based Unified CTR prediction remain unclear.

Position Encoding for Sequential Recommendation

Positional encodings represent sequence indices, event time, target relevance, or joint order–time relationships [15, 20, 23, 25]. Index-based learned or rotary encodings remain common [14, 20, 21, 28, 31]. Other methods incorporate event timing or intervals to account for irregular behavior histories [5, 15, 17, 23, 26]. For example, T-RoPE [17] uses multiscale timestamp rotations with prediction-time query alignment, while TO-RoPE [23] combines index and time rotations within shared or separate rotary subspaces. In addition, context-aware CAPE [25] constructs soft positions from target–history item dissimilarity, expressing item relevance rather than elapsed time. TRIP combines task-adaptive rank representations with prediction-time-anchored temporal encoding and target-relative temporal grouping.

Conclusion

In this work, we found that existing positional encodings do not consistently improve CTR prediction, while bidirectional interaction within target-relative temporal groups can outperform both token-level causal and global bidirectional attention. These observations reveal the need to reconsider both historical position representations and interaction granularity. Based on these findings, we proposed TRIP, which jointly models sequence rank, event time, and the prediction-time reference, and organizes history into target-relative temporal groups with intra-group bidirectional and inter-group causal interaction. Experiments on four public datasets demonstrate TRIP’s effectiveness, while positional-encoding transfer experiments across three unified backbones validate the portability of its rank–time design. Detailed ablations and representation analyses further support the component designs.

References

Implementation Details

Training and Evaluation Settings

Common Training Settings. We implement all models in PyTorch and train each run on one NVIDIA H20 GPU. TRIP and all baselines share AdamW, a fixed learning rate of 10−310^{-3}, weight decay 10−210^{-2}, training/evaluation batch sizes of 1024/2048, and 64-dimensional sparse feature embeddings. All models are trained for one epoch with BF16 mixed precision and gradient-norm clipping at 1.0. This single-pass protocol limits the risk of overfitting sparse embeddings through repeated exposure to the same impressions. Hyperparameters are selected using only training and validation data, and checkpoints are selected by validation AUC before final test evaluation. We report the mean and sample standard deviation over seeds 41, 42, and 43, counting only real samples. These shared training and evaluation settings ensure a consistent comparison. The TRIP implementation uses PyTorch 2.5.1, CUDA 12.1, and cuBLAS 12.8.5; timing protocols are detailed in Appendix B.3.

Model and Hyperparameter Settings. TRIP uses four Transformer blocks, hidden dimension 64, four attention heads, and FFN dimension 256. The prediction head mean-pools the final prediction-side states and uses a two-layer MLP. The non-sequential token counts NSN_{\mathrm{S}} are 12, 18, 12, and 12 for KuaiRec, KuaiRand, TAAC, and TaobaoAd, respectively. Most Transformer-based baselines share these block, hidden, attention-head, and FFN settings while retaining their respective architectures. RankMixer [32] retains its 16-head configuration, while MixFormer [12] uses a per-head dimension of 64. Method-specific hyperparameters follow the original model designs and are tuned on validation data. Table 6 lists TRIP’s selected settings. FRE and reconstruction settings are shared by both variants, whereas mBm_{\mathrm{B}}, Jmax⁡J_{\max}, and λcnt\lambda_{\mathrm{cnt}} apply to TRIP-B and mRm_{\mathrm{R}} to TRIP-R. Temporal grouping uses Cgrp=32C_{\mathrm{grp}} = 32 independently of encoding resolution, and TRIP-R uses Crot=32C_{\mathrm{rot}} = 32.

DatasetKKγμ\gamma_{\mu}γR\gamma_{R}ρ\rhoλrec\lambda_{\mathrm{rec}}mBm_{\mathrm{B}}Jmax⁡J_{\max}λcnt\lambda_{\mathrm{cnt}}mRm_{\mathrm{R}}
KuaiRec41.01.00.1510−410^{-4}61920.506
KuaiRand20.751.00.050.0182560.756
TAAC100.251.00.150.011320.502
TaobaoAd41.01.00.050.011320.501

Table 6. Dataset-specific FRE, reconstruction, and time-encoding settings.

Data and Sequence Processing. Histories retain positive-feedback events on KuaiRec and KuaiRand and all events on TAAC and TaobaoAd. KuaiRec uses watch ratio ≥2\ge2 for positive feedback;

TaobaoAd uses category IDs for history–target matching, with ad-group ID as a separate feature. For each target impression, valid history events are ordered chronologically and truncated to the most recent LL events. Shorter histories are left-padded, with valid events right-aligned: the event nearest the prediction-side tokens is the most recent, and events farther to the left occurred earlier. Padding is excluded by the validity mask. All models use the same dataset-specific history construction.

Module Implementation

Encoding Initialization. FRE initializes μ\boldsymbol{\mu} to zero, AA from a normal distribution with standard deviation 1/K1/\sqrt{K}, and BB from a truncated normal distribution with standard deviation 0.02, without PCA initialization. TRIP-B uses ji=min⁡(Jmax⁡,1+⌊mBlog⁡2(1+δi)⌋)j_i = \min(J_{\max}, 1 + \lfloor m_{\mathrm{B}}\log_2(1+\delta_i)\rfloor) to index a learnable embedding table Θ∈R(Jmax⁡+1)×H\Theta\in\mathbb{R}^{(J_{\max}+1)\times H}, with ϕh(ji;θh)=Θji,h\phi_h(j_i;\theta_h) = \Theta_{j_i,h}. Each head shares its temporal potential across prediction-side queries. The table is initialized as Θj,h=−0.005j\Theta_{j,h}=-0.005j, and occupancy is counted over valid events before compression. TRIP-R uses fixed RoPE frequencies with base 10410^4.

Reconstruction and Summary Details. Temporal groups with at least two events retain both masked and visible items. The reconstruction weight increases linearly to λrec\lambda_{\mathrm{rec}} over the first 5% of training steps. FRE is not reapplied after summary compression. For TRIP-R, each summary’s representative timestamp is the rounded mean of its constituent event timestamps, from which target-relative coordinates are recomputed for subsequent blocks.

Supplementary Experiments

Additional Ablation Results

Tables 2 and 4 report overall performance and rank replacements in the main text. Here we specify the variants for ablation analysis.

Variant Definitions. TGCA removal restores event-level causal attention while retaining groups, summaries, and reconstruction. Reconstruction removal retains masking; the joint removal disables both. Target-awareness removal changes only the prediction-time reference while keeping all other components unchanged. All ablated variants are compared with the full TRIP-B model.

Grouping Controls. For the comparison in Figure 7, both alternatives begin with the original temporal grouping and retain each group label’s event count. Random permutes group labels among valid events using a deterministic fixed-seed hash, so an individual sample’s assignment remains unchanged across training steps. Rank-contiguous reorders the original group sizes using a fixed permutation of group labels, then partitions consecutive valid ranks according to those sizes. Its segments are neither equal-sized nor fixed-width; all strategies retain the same number of group summaries.

Learned Positional Representations

Learned Rank Geometry. Figure 8 and Figure 9 show that FRE does not impose a uniform distance-decay geometry. On TaobaoAd, TRIP-B learns nonuniform rank relationships, whereas TRIP-R exhibits more regular diagonal bands and pronounced rank-distance oscillations. The other datasets show weaker oscillatory structure. These differences illustrate how low-rank sharing accommodates dataset-specific positional relationships and rank representations adapted to the temporal formulation.

Centered cosine similarity of learned FRE representations on TaobaoAd

Figure 8. Centered cosine similarity of learned FRE representations on TaobaoAd: (a) TRIP-B and (b) TRIP-R.

Mean centered FRE cosine similarity versus rank distance for KuaiRec, KuaiRand, TAAC, and TaobaoAd

Figure 9. Mean centered FRE cosine similarity versus rank distance (solid: TRIP-B; dashed: TRIP-R).

Temporal Preference and Density Correction. Figure 10 reports biases averaged over events within each interval using 8,192 test samples per dataset. Compared with the raw potentials in Figure 6, occupancy correction changes the relative prominence of temporal windows, showing that learned preference alone does not determine the applied bias. Since the same interval penalty is subtracted across heads, correction preserves their preference differences while reducing event-multiplicity effects. Thus, TRTE separates head-specific temporal preference from sample-specific history density.

Mean density-corrected temporal biases for KuaiRec, KuaiRand, TAAC, and TaobaoAd

Figure 10. Mean density-corrected temporal biases βh,i\beta_{h,i} (dashed: uncorrected initialization).

Efficiency Analysis

On TaobaoAd, TRIP-B takes 72.63 ms/step, compared with 73.78 for OneTrans, 147.23 for HyFormer, 124.20 for MixFormer, and 123.88 for TokenFormer. This measurement uses an optimized temporal-bias implementation; Table 5 compares runs with and without compression under the same standard implementation, so its relative savings are unaffected. TRIP retains OneTrans’s dense-attention formulation: its full-history first block adds positional-encoding and reconstruction overhead, offset by shorter group-summary sequences in later blocks. For NblkN_{\mathrm{blk}} blocks, the dense attention cost is O((L+Nns)2D)+(Nblk−1)O((G+Nns)2D)O((L+N_{\mathrm{ns}})^2D)+(N_{\mathrm{blk}}-1)O((G+N_{\mathrm{ns}})^2D). For candidates sharing a request timestamp and candidate-independent historical inputs, history-side states and key/value projections can in principle be reused, since historical tokens do not attend to NS tokens.

Hyperparameter Analysis

Figure 11 examines seven TRIP-B hyperparameters across four datasets, varying one at a time with the others fixed. Each sweep, including its reference point, is independently rerun with three seeds; reference means may therefore differ across sweeps and from Table 2. Validation-selected settings in Table 6 need not coincide with these test-set peaks. Branch-scale axes retain the original configuration values.

ModelKuaiRec AUC ↑\uparrowKuaiRec LogLoss ↓\downarrowKuaiRand AUC ↑\uparrowKuaiRand LogLoss ↓\downarrowTAAC AUC ↑\uparrowTAAC LogLoss ↓\downarrowTaobaoAd AUC ↑\uparrowTaobaoAd LogLoss ↓\downarrow
DeepFM0.8329 ±\pm0.00210.2261 ±\pm0.00150.7362 ±\pm0.00160.5838 ±\pm0.00080.5729 ±\pm0.00470.1914 ±\pm0.00300.5902 ±\pm0.00240.2119 ±\pm0.0009
DCNv20.8445 ±\pm0.00160.2262 ±\pm0.01850.7730 ±\pm0.00120.5487 ±\pm0.00180.6018 ±\pm0.00160.1838 ±\pm0.00420.6232 ±\pm0.00130.2173 ±\pm0.0086
WuKong0.8448 ±\pm0.00120.2191 ±\pm0.00150.7739 ±\pm0.00280.5506 ±\pm0.00400.6021 ±\pm0.00270.1820 ±\pm0.00540.6251 ±\pm0.00030.1974 ±\pm0.0012
RankMixer0.8449 ±\pm0.00010.2197 ±\pm0.00310.7752 ±\pm0.00080.5481 ±\pm0.00020.6021 ±\pm0.00210.1862 ±\pm0.00430.6241 ±\pm0.00030.1983 ±\pm0.0013
DIN0.8447 ±\pm0.00090.2154 ±\pm0.00040.7705 ±\pm0.00030.5518 ±\pm0.00100.6042 ±\pm0.00190.1875 ±\pm0.00520.6235 ±\pm0.00080.1977 ±\pm0.0011
DIEN0.8449 ±\pm0.00150.2142 ±\pm0.00110.7686 ±\pm0.00070.5593 ±\pm0.00320.6018 ±\pm0.00110.1795 ±\pm0.00290.6257 ±\pm0.00090.1965 ±\pm0.0011
STCA0.8440 ±\pm0.00230.2161 ±\pm0.00040.7705 ±\pm0.00050.5629 ±\pm0.01060.6014 ±\pm0.00080.1888 ±\pm0.00260.6228 ±\pm0.00050.1974 ±\pm0.0006
TokenFormer0.8437 ±\pm0.00110.2181 ±\pm0.00070.7593 ±\pm0.00130.5794 ±\pm0.00620.5981 ±\pm0.00600.1838 ±\pm0.00460.6263 ±\pm0.00050.1964 ±\pm0.0007
OneTrans0.8443 ±\pm0.00120.2163 ±\pm0.00050.7694 ±\pm0.00130.5554 ±\pm0.00200.6067 ±\pm0.00110.1857 ±\pm0.00610.6276 ±\pm0.00150.1966 ±\pm0.0002
HyFormer0.8449 ±\pm0.00050.2151 ±\pm0.00060.7683 ±\pm0.00160.5559 ±\pm0.00080.6050 ±\pm0.00090.1826 ±\pm0.00230.6254 ±\pm0.00120.1962 ±\pm0.0005
MixFormer0.8438 ±\pm0.00340.2210 ±\pm0.00580.7754 ±\pm0.00060.5490 ±\pm0.00140.6042 ±\pm0.00120.1793 ±\pm0.00380.6265 ±\pm0.00080.1977 ±\pm0.0004
TRIP-B0.8512 ±\pm0.00160.2114 ±\pm0.00070.7778 ±\pm0.00080.5692 ±\pm0.00760.6337 ±\pm0.00170.1802 ±\pm0.00840.6299 ±\pm0.00070.1964 ±\pm0.0002
TRIP-R0.8506 ±\pm0.00120.2116 ±\pm0.00110.7731 ±\pm0.00080.5653 ±\pm0.00240.6331 ±\pm0.00130.1753 ±\pm0.00870.6292 ±\pm0.00140.1958 ±\pm0.0009

Table 2. Overall performance comparison on the public KuaiRec, KuaiRand, TAAC, and TaobaoAd datasets in terms of AUC and LogLoss. Best results are bolded and second-best results are underlined.

One-factor sensitivity plots of TRIP-B hyperparameters across four datasets

Figure 11. One-factor sensitivity of TRIP-B on four datasets. The first three rows pair independent parameter sweeps on bottom (solid) and top (dashed) axes; the last row varies density-correction strength. Curves show mean test AUC over three seeds.

Factorization Width. FRE benefits from sufficient rank-specific capacity, but larger KK is not uniformly better. On TAAC, mean AUC rises from 0.6095 at K=1K = 1 to 0.6340 at K=10K = 10, then declines at K=16K = 16. KuaiRec is much less sensitive, with AUC ranging from 0.8502 to 0.8508 across the tested widths; on KuaiRand, K=2K = 2 already approaches the best result. These differences favor a compact, dataset-adaptive factorization: shared basis vectors capture useful ordinal structure, while the required capacity for distinguishing ranks varies across histories.

Temporal Resolution. Finer target-relative coordinates improve temporal discrimination on KuaiRand: increasing mm from 1 to 8 raises mean AUC from 0.7711 to 0.7781. In contrast, TAAC and TaobaoAd attain their best results at m=1m = 1, and KuaiRec shows only small fluctuations. Thus, increasing resolution is useful when finer distinctions help history reading, but does not yield universal gains. Here, mm subdivides TRT’s logarithmic time scale without changing TGCI’s temporal grouping, separating the granularity of temporal reading from that of group-level interaction.

Density-Correction Strength. All four datasets achieve their highest observed AUC with nonzero λcnt\lambda_{\mathrm{cnt}}. The peaks occur at 0.5 on KuaiRec, TAAC, and TaobaoAd, and at 0.75 on KuaiRand. For example, KuaiRec improves from 0.8488 without correction to 0.8510 at 0.5. Moderate correction counteracts the attention-mass advantage of densely populated intervals, allowing temporal preference and content relevance to guide reading. Further increasing the penalty brings no consistent benefit, indicating that occupancy should be corrected without excessively suppressing dense but potentially informative history.

FRE Branch Scales. The shared-offset scale has a comparatively small effect: the AUC range across its tested values is below 0.001 on every dataset. Rank-specific variation is more consequential, particularly on TAAC and KuaiRand. Setting the configured rank-branch scale to zero yields AUCs of 0.6068 and 0.7669, compared with 0.6340 and 0.7777 at configuration scale one. Unlike a shared offset, the rank-specific branch distinguishes ordinal contexts. These results support FRE’s separation of shared structure and rank-dependent variation, with the latter providing the essential positional distinctions on these datasets.

Masking and Reconstruction. The masking-ratio sweeps peak at ρ=0.1\rho= 0.1, 0.05, 0.15, and 0.3 on KuaiRec, KuaiRand, TAAC, and TaobaoAd, respectively. Raising ρ\rho to 0.5 reduces AUC relative to these peaks, particularly on KuaiRec and TAAC. Masking encourages contextual recovery, but excessive removal leaves less item content for both reconstruction and CTR prediction. The reconstruction-weight sweeps similarly favor balanced supervision: λrec=0.01\lambda_{\mathrm{rec}} = 0.01 gives the highest AUC on KuaiRand, TAAC, and TaobaoAd, whereas KuaiRec peaks at 0.05. Increasing the weight to 0.05 reduces AUC on the former three datasets. Together, these patterns favor auxiliary supervision that strengthens contextual learning without overwhelming the prediction objective.

KuaiRand Probability Calibration

Probability diagnostics on KuaiRand (seed 42) show that TRIP-B predicts a mean positive-feedback probability of 46.74%, above the observed rate of 37.67%. This bias is particularly pronounced in tab=0tab=0, which contains 19.03% of test samples: its observed positive rate is 11.64%, compared with a mean prediction of 36.05%. This scenario contributes 69.93% of the sample-weighted net LogLoss gap relative to MixFormer. Such probability overestimation increases the loss on negative examples, despite improved ranking in the dominant scenario. Positive-slope affine logit calibration fitted only on validation data reduces TRIP-B’s LogLoss from 0.5778 to 0.5471 without changing AUC. Applying validation-fitted calibration to both models reduces TRIP-B’s LogLoss gap to MixFormer from 0.0300 to 0.0011 while preserving its AUC advantage. This suggests that the higher uncalibrated LogLoss largely reflects correctable probability miscalibration rather than weaker ranking discrimination.

References

  1. [1]Alibaba Tianchi. 2018. Ad Display/Click Data on Taobao.com. Tianchi dataset. https://tianchi.aliyun.com/dataset/56
  2. [2]Hanan Cao, Jun Guo, Haolei Pei, Zhaoqi Zhang, Tianyu Wang, Ziyang Wang, Youchen Sun, Yue Xue, Yucheng Mao, Lintao Yan, et al. 2026. OneTrans-V2: Unifying Retrieval, Pre-rank, and Fine-rank with One Transformer in Industrial Recommender. arXiv preprint arXiv:2609.28589 (2026). https://arxiv.org/abs/2609.28589
  3. [3]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. Association for Computing Machinery, 247–256.arxiv.org/abs/2505.04421
  4. [4]Jie Chen, Xiangqian Yu, Yanchao Lian, Tan Lu, Run Yang, Zhengchun Shang, Xing Wang, Cheng Chen, Ke Hu, Qiang Li, et al. 2026. From Language to Behavior: Scaling Sequence Transformers for Industrial Recommendation Ranking with Rec-Native Designs. arXiv preprint arXiv:2609.01240 (2026). https://arxiv.org/abs/2609.01240
  5. [5]Yizhen Chen, Joshua Ainslie, Krzysztof Choromanski, Xiang Gao, Su-Lin Wu, Yiping Yuan, and Qian Sun. 2026. ClockRoPE: Random Fourier Rotations for Temporal Routine Modeling. arXiv preprint arXiv:2607.26369 (2026). https://arxiv.org/abs/2607.26369
  6. [6]Abhinandan S. Das, Mayur Datar, Ashutosh Garg, and Shyam Rajaram. 2007. Google News Personalization: Scalable Online Collaborative Filtering. In Proceedings of the 16th International Conference on World Wide Web. Association for Computing Machinery, 271–280.
  7. [7]Chongming Gao, Shijun Li, Wenqiang Lei, Jiawei Chen, Biao Li, Peng Jiang, Xiangnan He, Jiaxin Mao, and Tat-Seng Chua. 2022. KuaiRec: A Fully-Observed Dataset and Insights for Evaluating Recommender Systems. In Proceedings of the 31st ACM International Conference on Information and Knowledge Management. Association for Computing Machinery, 540–550.DOI
  8. [8]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 and Knowledge Management. Association for Computing Machinery, 3953–3957.DOI
  9. [9]Yulong Gu, Zhuoye Ding, Shuaiqiang Wang, Lixin Zou, Yiding Liu, and Dawei Yin. 2020. Deep Multifaceted Transformers for Multi-objective Ranking in Large-Scale E-commerce Recommender Systems. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management. Association for Computing Machinery, 2493–2500.DOI
  10. [10]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. Association for Computing Machinery, 7989–7998.DOI
  11. [11]Huiwen Guo, Ruiming Tang, Yunming Ye, Zhenguo Li, and Xiquiang He. 2017. DeepFM: A Factorization-Machine based Neural Network for CTR Prediction. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence. 1725–1731.
  12. [12]Xu Huang, Hao Huang, 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. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2. Association for Computing Machinery, 7422–7431.
  13. [13]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. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval. Association for Computing Machinery, 590–599.
  14. [14]Wang-Cheng Kang and Julian McAuley. 2018. Self-Attentive Sequential Recommendation. In 2018 IEEE International Conference on Data Mining. IEEE, 197–206.
  15. [15]Jiacheng Li, Yujie Wang, and Julian McAuley. 2020. Time Interval Aware Self-Attention for Sequential Recommendation. In Proceedings of the 13th International Conference on Web Search and Data Mining. Association for Computing Machinery, 322–330.DOI
  16. [16]Mingyang Liu, Yong Bai, Zhangming Chan, Sishuo Chen, Xiang-Rong Sheng, Han Zhu, Jian Xu, and Xinyang Chen. 2026. EST: Towards Efficient Scaling Laws in Click-Through Rate Prediction via Unified Modeling. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2. Association for Computing Machinery, 7656–7666.
  17. [17]Yang Liu, Noel Loo, Ali Khanafer, Shuying Sun, Akshay Soni, Zhong Wu, and Linjun Yang. 2026. T-RoPE: Time-Aware Rotary Position Embedding for Sequential Recommendation. arXiv preprint arXiv:2609.30576 (2026). https://arxiv.org/abs/2609.30576
  18. [18]Junwei Pan, Wei Xue, Chao Zhou, Xing Zhou, Lunan Fan, Yanbo Wang, Haoran Xin, Zhiyu Hu, Yaoxheng Wang, Fengye Xu, et al. 2026. Tencent Advertising Algorithm Challenge 2025: All-Modality Generative Recommendation. arXiv preprint arXiv:2604.04976 (2026). https://arxiv.org/abs/2604.04976
  19. [19]Weiping Song, Chenghe Shi, Zhiping Xiao, Zhijian Duan, Yewen Xu, Ming Zhang, and Jian Tang. 2019. AutoInt: Automatic Feature Interaction Learning via Self-Attentive Neural Networks. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management. Association for Computing Machinery, 1161–1170.DOI
  20. [20]Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. 2024. RoFormer: Enhanced Transformer with Rotary Position Embedding. Neurocomputing 568 (2024), 127063.arxiv.org/abs/2104.09864
  21. [21]Fei Sun, Jun Liu, Ji-Wu Chang, Chua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management. Association for Computing Machinery, 1441–1450.arxiv.org/abs/1904.06690
  22. [22]Ruoxi Wang, Rakesh Shivanna, Derek Cheng, Sagar Jain, Dong Lin, Lichan Hong, and Ed Chi. 2021. DCN V2: Improved Deep & Cross Network and Practical Lessons for Web-scale Learning to Rank Systems. In Proceedings of the Web Conference 2021. Association for Computing Machinery, 1785–1797.DOI
  23. [23]Xiaokai Wei, Jiajun Wu, Daiyao Yi, Reza Shirkavand, and Michelle Gong. 2026. Beyond Index-Only Role: Integrating Time and Order for Generative Recommendation. In Proceedings of the 20th ACM Conference on Recommender Systems. Association for Computing Machinery, 642–646.DOI
  24. [24]Chuhan Wu, Fangzhao Wu, Mingxiao An, Jianqiang Huang, Yongfeng Huang, and Xing Xie. 2019. NPA: Neural News Recommendation with Personalized Attention. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. Association for Computing Machinery, 2576–2584.
  25. [25]Jun Yuan, Guohao Cai, and Zhenhua Dong. 2025. A Contextual-Aware Position Encoding for Sequential Recommendation. In Companion Proceedings of the ACM on Web Conference 2025. Association for Computing Machinery, 577–585.DOI
  26. [26]Jiaq Zhai, Lucy Liao, Xing Liu, Yueming Wang, Rui Li, Xuan Cao, Zhaojie Gong, Fangda Gu, Jiyuan He, et al. 2024. Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative Recommendations. In Proceedings of the 41st International Conference on Machine Learning, Vol. 235. PMLR, 58484–58509.
  27. [27]Buyun Zhang, Liang Luo, Yuxin Chen, Jade Nie, Xi Liu, Shen Li, Yanli Zhao, Yuchen Hao, Yantao Yao, Ellie Dingqiao Wen, et al. 2024. Wukong: Towards a Scaling Law for Large-Scale Recommendation. In Proceedings of the 41st International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 235). PMLR, 59421–59434.
  28. [28]Zhaoqi Zhang, Haolei Pei, Jun Guo, Tianyu Wang, Yufei Feng, Hui Sun, Shaowei Liu, and Aixin Sun. 2026. OneTrans: Unified Feature Interaction and Sequence Modeling with One Transformer in Industrial Recommender. In Proceedings of the ACM Web Conference 2026. Association for Computing Machinery, 8162–8170.arxiv.org/abs/2510.26104
  29. [29]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.arxiv.org/abs/1809.03672
  30. [30]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. Association for Computing Machinery, 1059–1068.arxiv.org/abs/1706.06978
  31. [31]Yifeng Zhou, Yuehong Hu, Zhixiang Feng, Junwei Pan, Kaihui Wu, Hanyong Li, Shangyu Zhang, Shudong Huang, Zhangbin Zhu, Chengguo Yin, et al. 2026. TokenFormer: Unify the Multi-Field and Sequential Recommendation Worlds. arXiv preprint arXiv:2604.13737 (2026). https://arxiv.org/abs/2604.13737
  32. [32]Jie Zhu, Zhifang Fan, Xiaoxie Zhu, Yuchen Jiang, Hangyu Wang, Xintian Han, Haoran Ding, Xinmin Wang, Wenlin Zhao, Zhen Gong, et al. 2025. RankMixer: Scaling Up Ranking Models in Industrial Recommenders. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management. Association for Computing Machinery, 6309–6316.

Paper details

vlnc:W_7mgb5ab8
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents