Papers
Topics
Authors
Recent
Search
2000 character limit reached

HorizonRec: Cross-Domain Sequential Recommendation

Updated 8 July 2026
  • HorizonRec is a cross-domain sequential recommendation framework that integrates source, target, and mixed-domain preferences to enhance next-item prediction.
  • It employs a diffusion process conditioned on mixed-domain behavior to dynamically refine and fuse user representations.
  • The framework improves recommendation accuracy in sparse settings while mitigating noise compared to traditional align-then-fusion models.

Searching arXiv for the HorizonRec paper and closely related benchmark context. Calling arXiv search. HorizonRec is a cross-domain sequential recommendation framework introduced in “Align-for-Fusion: Harmonizing Triple Preferences via Dual-oriented Diffusion for Cross-domain Sequential Recommendation” (Zha et al., 7 Aug 2025). It addresses the next-item prediction problem in a target domain by modeling three coupled preference signals: a source-domain sequence, a target-domain sequence, and a mixed-domain sequence obtained by chronologically merging behaviors from both domains. Its central claim is that cross-domain recommendation should not merely align representations before a separate fusion step; rather, alignment should occur during fusion in distribution space, using diffusion-based refinement conditioned on mixed-domain behavior. In this formulation, the mixed sequence acts as a semantic bridge that guides the denoising and fusion of source- and target-domain preferences, with the objective of improving fine-grained target-aware recommendation under sparsity and interest drift (Zha et al., 7 Aug 2025).

1. Problem setting and conceptual position

HorizonRec is formulated for cross-domain sequential recommendation (CDSR), where a user has a source sequence Su=[i1(S),,ip(S)]S_u = [i_1^{(S)}, \ldots, i_p^{(S)}], a target sequence Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}], and a mixed sequence Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}] obtained by chronological merge. The target task is to predict the next target-domain item,

argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),

with training performed through cross-entropy over dot products between a fused user representation and candidate target-item embeddings (Zha et al., 7 Aug 2025).

The model is positioned against what the paper calls an “align-then-fusion” paradigm. In that baseline view, representation-level alignment across domains is optimized first, and domain representations are then combined mechanically, such as by concatenation or averaging. HorizonRec instead advances an “align-for-fusion” formulation in which source and target representations are denoised iteratively while conditioned on the mixed-domain representation. The paper’s interpretation is that this better preserves domain-specific nuances while suppressing noise during preference combination (Zha et al., 7 Aug 2025).

A useful way to understand the model is through its “triple preferences”: source-domain preference, target-domain preference, and mixed-domain preference. The mixed preference is not an auxiliary summary in a loose sense; it is the conditioning signal that organizes the other two. This suggests that HorizonRec treats cross-domain transfer less as explicit representation matching and more as guided distributional harmonization.

2. Triple-domain representation and the role of the mixed sequence

HorizonRec instantiates two explicit domains, source SS and target TT, and additionally constructs a mixed domain MM by merging source and target events according to timestamps. Item embeddings are defined in each domain, and per-domain sequence representations are produced by SASRec encoders operating over source, target, and mixed histories (Zha et al., 7 Aug 2025).

The mixed sequence is the defining structural element. Because it reorders behaviors from both domains in chronological order, it encodes cross-domain transitions as they occur in user behavior rather than as post hoc alignments of separately encoded sequences. The paper characterizes MM as the “horizon”: a globally focused semantic bridge that guides fine-grained fusion. In the model’s architecture, the mixed representation hMh_M is concatenated with noisy source or target representations and a diffusion-step embedding before denoising. Conditioning vectors are

  • ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}],
  • Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]0, and both are processed by the same attention-based denoiser for their respective orientations (Zha et al., 7 Aug 2025).

This design matters because CDSR often fails when auxiliary information is transferred without regard to target relevance. HorizonRec’s claim is that mixed-domain chronology provides a behaviorally grounded context for deciding which source-side patterns are useful to the target task. The model therefore does not assume that all cross-domain overlap is beneficial. Instead, it attempts to make source and target information mutually informative only after conditioning them on the mixed-domain trajectory.

3. Diffusion formulation and uncertainty injection

HorizonRec adopts a DDPM-style diffusion process on user representations. The forward process adds Gaussian noise to a clean vector Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]1:

Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]2

with marginal

Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]3

and reparameterization

Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]4

The reverse model reconstructs the clean representation conditionally:

Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]5

and the diffusion objective is an MSE reconstruction loss,

Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]6

Recommendation training combines this term with a cross-entropy loss for next-item prediction (Zha et al., 7 Aug 2025).

A central motivation for HorizonRec is the instability caused by user-agnostic Gaussian perturbations in DM-based recommenders. The paper argues that purely random noise can disrupt subtle source-target dependencies, exacerbate inter-domain distribution shift, and push representations in semantically irrelevant directions. In this account, the problem is not diffusion per se, but unconstrained uncertainty injection (Zha et al., 7 Aug 2025).

The denoiser Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]7 is implemented as a lightweight attention block,

Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]8

where Tu=[i1(T),,iq(T)]T_u = [i_1^{(T)}, \ldots, i_q^{(T)}]9, Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]0, and Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]1 are learned from linear projections of the concatenated inputs. This architectural choice makes the reverse process explicitly conditional on mixed-domain information rather than treating conditioning as a weak side signal.

4. Mixed-conditioned distribution retrieval

To replace generic Gaussian perturbation with behaviorally grounded uncertainty, HorizonRec introduces mixed-conditioned distribution retrieval (MDR). For each user, the model builds a candidate pool from contiguous subsequences of the mixed sequence that end with a target-domain item:

Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]2

Each candidate subsequence is encoded by a position-aware low-pass filter,

Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]3

where Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]4 increases early-position importance and Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]5 controls decay (Zha et al., 7 Aug 2025).

These filtered subsequence embeddings form a global retrieval database. For each domain representation Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]6 with Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]7, the model retrieves the top-Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]8 nearest mixed-domain subsequences by cosine similarity. It then defines a domain-specific noise distribution through

Mu=[i1(M),,ip+q(M)]M_u = [i_1^{(M)}, \ldots, i_{p+q}^{(M)}]9

and samples

argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),0

The paper describes this as “mixed-conditioned” noise because it is retrieved from the user’s authentic mixed-domain behavioral logic and steered toward target-ending trajectories (Zha et al., 7 Aug 2025).

The intended effect is twofold. First, the perturbation is user-specific rather than generic. Second, the direction of perturbation is constrained by retrieved mixed-domain subsequences that already exhibit target relevance. The paper further summarizes theoretical intuitions: the retrieved distribution has lower variance than standard Gaussian in expectation, and the mean direction points toward trajectories ending in target items. A plausible implication is that MDR changes the role of noise from stochastic regularization to semantically anchored exploration in representation space.

5. Dual-oriented preference diffusion and fusion

The second major component is dual-oriented preference diffusion (DPD). Diffusion is applied separately to source and target representations, but both orientations are conditioned on the mixed-domain representation argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),1. For each domain argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),2, the forward process is

argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),3

and the reverse denoising process reconstructs the representation using the mixed-domain condition:

argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),4

After reverse diffusion, the denoised source and target reconstructions are summed,

argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),5

and then combined with the original target representation through a gate argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),6:

argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),7

The total objective is

argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),8

where argmaxiITp(iSu,Mu,Tu),\arg\max_{i \in I_T} p(i \mid S_u, M_u, T_u),9 is the next-item cross-entropy and

SS0

The recommendation loss itself is

SS1

All parameters are updated with Adam (Zha et al., 7 Aug 2025).

The paper’s argument is that noise suppression and target emphasis emerge from conditioning and reconstruction, rather than from explicit contrastive or KL regularization. It also states an alignment advantage,

SS2

to express that conditioning on the mixed sequence reduces cross-domain misalignment (Zha et al., 7 Aug 2025).

A common misconception in CDSR is that better cross-domain recommendation necessarily follows from stronger global alignment. HorizonRec explicitly rejects that assumption. Its design presumes that over-alignment can wash out domain-specific signals and that the more relevant operation is target-aware harmonization during fusion.

6. Training pipeline, complexity, and empirical behavior

The training pipeline proceeds in four stages. First, source and target sequences are timestamp-sorted and merged into mixed sequences, from which contiguous mixed subsequences ending in target items are extracted and low-pass filtered to build the retrieval database. Second, SASRec encoders compute SS3, SS4, and SS5. Third, for each of the source and target branches, MDR retrieves top-SS6 mixed subsequences, constructs the domain-specific perturbation, and applies forward diffusion over SS7 steps followed by reverse denoising conditioned on SS8. Fourth, the denoised representations are fused, the recommendation and diffusion losses are computed, and the model is optimized (Zha et al., 7 Aug 2025).

The paper reports the following implementation settings: diffusion steps SS9, embedding dimension TT0, batch size TT1, max sequence length TT2, sliding window length TT3, low-pass parameters TT4 and TT5, retrieval TT6, and fusion gate TT7 and diffusion weight TT8 searched over TT9. Hardware is an NVIDIA RTX 4090 with Python 3.10.9 (Zha et al., 7 Aug 2025).

The additional cost of HorizonRec is attributed to retrieval and diffusion. The paper gives per-run overhead as MM0, with retrieval scan reducible via ANN indexing. Compared to Tri-CDR’s MM1, HorizonRec is described as asymptotically similar and empirically faster because MM2 is modest and retrieval is precomputed (Zha et al., 7 Aug 2025).

The empirical evaluation uses four CDSR settings from two platforms: Amazon Toy & Game and Douban Book & Music. Baselines include GRU4Rec, SASRec, CL4SRec, DiffuRec, SSCDR, UniCDR, DMCDR, C2DSR, Tri-CDR, SyNCRec, and ABXI. On Douban BookMM3Music, HorizonRec reports MM4, MM5, MM6, MM7, MM8, and MM9, with consistently positive relative gains over strong CDSR baselines. On Douban MusicMM0Book, it reports MM1, MM2, MM3, MM4, MM5, and MM6, with gains reported as statistically significant under paired MM7-tests with MM8 across five random seeds. The paper also reports Amazon GameMM9Toy and Amazon ToyhMh_M0Game results, including relative gains of approximately hMh_M1–hMh_M2 on ToyhMh_M3Game compared to strong CDSR baselines (Zha et al., 7 Aug 2025).

The efficiency analysis reports, for Douban Music, total training time of hMh_M4 for HorizonRec versus hMh_M5 for Tri-CDR and hMh_M6 for ABXI, with inference latency of approximately hMh_M7 when retrieval is precomputed (Zha et al., 7 Aug 2025).

7. Robustness, limitations, and relation to long-horizon recommendation

The ablation study attributes HorizonRec’s gains to both MDR and DPD. Replacing MDR with Gaussian noise degrades performance, turning off source-side or target-side diffusion harms alignment, and removing diffusion entirely in favor of static fusion performs worst. Alignment visualizations reported in the paper show HorizonRec’s final user representations more tightly co-located with target-item embeddings than those of Tri-CDR and ABXI, and cosine-similarity heatmaps indicate strong alignment to the mixed-domain representation while maintaining similarity to source and target preferences (Zha et al., 7 Aug 2025).

Parameter sensitivity follows a clear pattern: hMh_M8 degenerates to Gaussian noise, moderate hMh_M9 in the range ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]0–ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]1 is best, large ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]2 introduces conflicting sequences, and performance peaks at diffusion steps ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]3, with larger ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]4 leading to over-smoothing and dilution of domain-specific signals (Zha et al., 7 Aug 2025). These findings are consistent with the model’s underlying premise that cross-domain transfer should be selective rather than exhaustive.

The framework also has explicit limitations. It requires users to have interactions in both source and target domains, relies on reliable timestamps to construct the mixed sequence, and depends strongly on retrieval quality. Extremely short sequences or insufficient mixed-domain candidates reduce MDR’s effectiveness, and highly nonstationary domains with abrupt, uncorrelated shifts may challenge the refinement process (Zha et al., 7 Aug 2025).

In a broader research context, HorizonRec addresses CDSR at the model-design level, whereas HORIZON is a benchmark that reformulates user modeling along the axes of dataset, task, and evaluation to test cross-domain, temporal, and user-level generalization (Goel et al., 19 Apr 2026). HORIZON is built from Amazon Reviews 2023 with unified histories across ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]5 categories, covers ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]6 users, ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]7 items, and ctarget=[ht(T);hM;temb]c_{\text{target}} = [h_t^{(T)}; h_M; t_{\text{emb}}]8 interactions, and emphasizes that real-world user modeling requires generalization across domains, users, and time rather than only same-domain next-item prediction (Goel et al., 19 Apr 2026). This suggests a natural interpretive link: HorizonRec proposes a target-aware fusion mechanism for CDSR, while HORIZON defines a large-scale evaluation setting in which long-range temporal generalization and cross-domain robustness become explicit benchmarks. A plausible implication is that methods in the style of HorizonRec may need to integrate stronger semantic grounding and longer-context modeling to remain effective under the distribution shifts emphasized by HORIZON (Goel et al., 19 Apr 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to HorizonRec.