NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhancing User Behavior Sequence Modeling by Generative Tasks for Session Search

Haonan Chen, Zhicheng Dou, Yutao Zhu, Zhao Cao, Xiaohua Cheng, Ji-Rong Wen · DOI

Abstract

Users' search tasks have become increasingly complicated, requiring multiple queries and interactions with the results. Recent studies have demonstrated that modeling the historical user behaviors in a session can help understand the current search intent. Existing context-aware ranking models primarily encode the current session sequence (from the first behavior to the current query) and compute the ranking score using the high-level representations. However, there is usually some noise in the current session sequence (useless behaviors for inferring the search intent) that may affect the quality of the encoded representations. To help the encoding of the current user behavior sequence, we propose to use a decoder and the information of future sequences and a supplemental query. Specifically, we design three generative tasks that can help the encoder to infer the actual search intent: (1) predicting future queries, (2) predicting future clicked documents, and (3) predicting a supplemental query. We jointly learn the ranking task with these generative tasks using an encoder-decoder structured approach. Extensive experiments on two public search logs demonstrate that our model outperforms all existing baselines, and the designed generative tasks can actually help the ranking task. Besides, additional experiments also show that our approach can be easily applied to various Transformer-based encoder-decoder models and improve their performance.

Introduction

In modern web search, users rarely find what they need with a single query. Instead, they engage in "session search," a process of iterative refinement involving multiple queries and document interactions. While historical behavior provides context for current intent, these sequences are often cluttered with "noise"—irrelevant queries or clicks that deviate from the primary search goal. For instance, a user might check a sports score in the middle of a session dedicated to software troubleshooting. Traditional context-aware models struggle to distinguish between this noise and the true signal of user intent.

The Auto-Session-Encoder (ASE) Framework

To address the noise in session sequences, this research introduces the Auto-Session-Encoder (ASE). Unlike standard models that simply encode the history to rank documents, ASE utilizes an encoder-decoder architecture (based on the BART transformer) to perform auxiliary generative tasks during training.

The core philosophy of ASE is that the future of a session is more informative than its past. As a user progresses through a session, their queries typically become more specific and their clicks more relevant. By training the encoder to provide enough information to "predict the future," the model learns to prioritize the underlying intent over transient noise.

Generative Tasks for Intent Refinement

ASE incorporates three specific generative tasks to guide the encoder during the training phase:

  1. Predicting Future Queries: The model attempts to generate the subsequent queries the user will type. This forces the encoder to capture the trajectory of the user's information need.
  2. Predicting Future Clicked Documents: Since document content is often richer than short queries, predicting future clicks helps the model understand the ultimate "destination" of the search session. This task was found to be the most impactful in ablation studies.
  3. Predicting a Supplemental Query: To leverage cross-session knowledge, the authors mine "perfect" queries from other successful sessions that share similar intents. The model is tasked with generating this idealized query, effectively learning from the collective behavior of other users.

Training and Inference

ASE is trained using a multi-task learning approach, balancing the standard ranking loss with the losses from the three generative tasks. A key efficiency of this model is that the decoder is discarded during inference. The generative tasks serve as "scaffolding" during training to sharpen the encoder's representations; once trained, the encoder can rank documents independently, avoiding the high computational cost of text generation during live search.

Experimental Results

The model was evaluated on two large-scale search logs: the AOL Search Log and Tiangong-ST (a Chinese commercial search log with human-annotated relevance labels).

  • AOL: ASE achieved an NDCG@1 of 0.4144, a significant improvement over the previous state-of-the-art model, COCA (0.4024), and the vanilla BART baseline (0.3908).
  • Tiangong-ST: On this high-precision dataset, ASE reached an NDCG@1 of 0.7884, outperforming all existing baselines.

These results demonstrate that forcing the model to "predict the future" creates a much sharper understanding of underlying user intent than traditional auto-encoding methods.

Conclusion and Future Work

ASE demonstrates that generative tasks can significantly enhance the quality of user behavior modeling in session search. By looking forward in the session sequence, the model effectively filters out noise and focuses on the core search intent. While the model shows strong performance, future work may involve more sophisticated methods for mining supplemental queries (such as using Sentence Transformers) and addressing the performance decay observed in exceptionally long, exploratory sessions.

Summary updated

BibTeX
@inproceedings{chen2022enhancing,
  author = {Haonan Chen and Zhicheng Dou and Yutao Zhu and Zhao Cao and Xiaohua Cheng and Ji-Rong Wen},
  title = {{Enhancing User Behavior Sequence Modeling by Generative Tasks for Session Search}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  doi = {10.1145/3511808.3557310},
}
Figure