HorizonRec: Cross-Domain Sequential Recommendation
- 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 , a target sequence , and a mixed sequence obtained by chronological merge. The target task is to predict the next target-domain item,
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 and target , and additionally constructs a mixed domain 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 as the “horizon”: a globally focused semantic bridge that guides fine-grained fusion. In the model’s architecture, the mixed representation is concatenated with noisy source or target representations and a diffusion-step embedding before denoising. Conditioning vectors are
- ,
- 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 1:
2
with marginal
3
and reparameterization
4
The reverse model reconstructs the clean representation conditionally:
5
and the diffusion objective is an MSE reconstruction loss,
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 7 is implemented as a lightweight attention block,
8
where 9, 0, and 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:
2
Each candidate subsequence is encoded by a position-aware low-pass filter,
3
where 4 increases early-position importance and 5 controls decay (Zha et al., 7 Aug 2025).
These filtered subsequence embeddings form a global retrieval database. For each domain representation 6 with 7, the model retrieves the top-8 nearest mixed-domain subsequences by cosine similarity. It then defines a domain-specific noise distribution through
9
and samples
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 1. For each domain 2, the forward process is
3
and the reverse denoising process reconstructs the representation using the mixed-domain condition:
4
After reverse diffusion, the denoised source and target reconstructions are summed,
5
and then combined with the original target representation through a gate 6:
7
The total objective is
8
where 9 is the next-item cross-entropy and
0
The recommendation loss itself is
1
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,
2
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 3, 4, and 5. Third, for each of the source and target branches, MDR retrieves top-6 mixed subsequences, constructs the domain-specific perturbation, and applies forward diffusion over 7 steps followed by reverse denoising conditioned on 8. 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 9, embedding dimension 0, batch size 1, max sequence length 2, sliding window length 3, low-pass parameters 4 and 5, retrieval 6, and fusion gate 7 and diffusion weight 8 searched over 9. 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 0, with retrieval scan reducible via ANN indexing. Compared to Tri-CDR’s 1, HorizonRec is described as asymptotically similar and empirically faster because 2 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 Book3Music, HorizonRec reports 4, 5, 6, 7, 8, and 9, with consistently positive relative gains over strong CDSR baselines. On Douban Music0Book, it reports 1, 2, 3, 4, 5, and 6, with gains reported as statistically significant under paired 7-tests with 8 across five random seeds. The paper also reports Amazon Game9Toy and Amazon Toy0Game results, including relative gains of approximately 1–2 on Toy3Game compared to strong CDSR baselines (Zha et al., 7 Aug 2025).
The efficiency analysis reports, for Douban Music, total training time of 4 for HorizonRec versus 5 for Tri-CDR and 6 for ABXI, with inference latency of approximately 7 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: 8 degenerates to Gaussian noise, moderate 9 in the range 0–1 is best, large 2 introduces conflicting sequences, and performance peaks at diffusion steps 3, with larger 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 5 categories, covers 6 users, 7 items, and 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).