Introduction
In traditional recommender systems, the interaction is typically unidirectional: a user consumes an item, such as a movie or a product. However, in many real-world scenarios, the "item" is another person with their own preferences and agency. These Reciprocal Recommender Systems (RRS) are foundational to platforms like online recruitment (matching recruiters and candidates) and dating apps.
While standard recommendation has shifted toward sequential modeling to capture evolving user tastes, RRS research has largely remained static, relying on fixed profiles like resumes or bios. A recent study from researchers at Renmin University and BOSS Zhipin introduces ReSeq, a framework that treats reciprocal matching as a dynamic, evolving process where both parties' preferences change over time.
The Dual-Perspective Challenge
The primary difficulty in RRS is that every participant occupies a dual role:
- The Active Selector: The party initiating interest (e.g., a recruiter browsing profiles).
- The Passive Candidate: The party being evaluated (e.g., the candidate whose history is being reviewed).
A recruiter’s current search behavior might reflect an immediate hiring need, while a candidate’s career trajectory reflects long-term professional growth. Modeling these two distinct perspectives simultaneously—and matching them efficiently—is the core problem ReSeq addresses.
The ReSeq Framework
ReSeq (Reciprocal Sequential Recommendation) is the first framework to model this problem as a dual-perspective sequential matching task. It consists of three innovative components:
1. Dual-Perspective Encoding
Instead of a single embedding, ReSeq learns two distinct representations for each user. It utilizes a Transformer-based architecture with specialized masking:
- Unidirectional Masking for Active Roles: Focuses on recent behavior to capture the user's current, shifting intent.
- Bidirectional Masking for Passive Roles: Captures a global view of the user's history to represent stable, inherent traits.
2. Decomposed and Shared Embeddings
To prevent the active and passive representations from drifting too far apart, ReSeq decomposes embedding matrices into shared and role-specific components. This ensures that while the model captures role-specific nuances, both perspectives remain grounded in a common representation space.
3. Multi-Scale Matching with Self-Distillation
The most significant technical contribution is the "micro-to-macro" matching strategy.
- Micro-level matching involves fine-grained co-attention between every time step in the histories of both users. While highly accurate, its computational complexity ($O(n^2d)$) makes it too slow for real-time production.
- Macro-level matching uses simple dot products of global summary vectors ($O(d)$), which is extremely fast but less precise.
- Self-Distillation: During training, the "Micro" module acts as a teacher, transferring its complex understanding of sequence interactions to the "Macro" student module. At inference time, only the efficient Macro module is deployed.
Experimental Evaluation
The researchers evaluated ReSeq across five real-world datasets:
- Online Recruitment: Three proprietary datasets from BOSS Zhipin (Design, Sale, and Technology sectors).
- Question Answering: Two public datasets from Stack Exchange (StackOverflow and AskUbuntu), matching questioners with expert answerers.
Key Results
ReSeq demonstrated substantial improvements over state-of-the-art baselines, including collaborative filtering (LightGCN), sequential models (SASRec), and person-job fit models (DPGNN).
- Accuracy: In the Technology sector recruitment dataset, ReSeq improved the Hit Ratio (HR@5) by over 60% compared to the best baseline.
- Efficiency: The distillation process proved highly effective. While the raw Micro-matching took ~8.7ms per batch, the distilled Macro-version reduced latency to 0.28ms—a 30x speedup. This allows ReSeq to provide high-accuracy sequential matching at the speed of much simpler models.
Conclusion and Future Directions
ReSeq shifts the paradigm of reciprocal recommendation from static profile matching to dynamic sequence interaction. By modeling the dual roles of users and bridging the gap between complex interaction modeling and real-time efficiency via self-distillation, it sets a new benchmark for the field.
Future work may involve incorporating auxiliary textual features (such as resume content or question text) and addressing the "cold start" problem for new users who lack the interaction history required for sequential modeling.
Summary updated