Personalized Attention Queries for Sequential Modeling

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 112 papers18 conceptsfrozen 2026-10-04

In standard sequential recommendation, models like Transformers or RNNs treat the relationship between items as a universal law. If a user buys a camera, the model assumes they are likely to buy a tripod next, regardless of who they are. This "one-size-fits-all" approach captures the behavior of the average user but often fails to account for individual quirks, long-term habits, and subjective motivations.

A growing body of research addresses this by transforming the attention mechanism from a global operation into a personalized one. By injecting a unique user identity directly into the attention query, these models allow the system to "see" a sequence of actions through the lens of a specific individual.

From Global to Subjective Relevance

The core intuition behind this shift is that the relevance of a past action to a future one is subjective. In a standard self-attention layer, the importance of a historical item is determined by its relationship to other items in the sequence. However, as Chuhan Wu and colleagues demonstrate in NPA: Neural News Recommendation with Personalized Attention, different users prioritize different aspects of the same content. In their work on news recommendation, they use a unique user embedding to generate a custom attention query. This query "re-weights" the words in a news title, allowing the model to highlight features that align with that specific user’s interests.

This mechanism effectively moves the "intelligence" of the model from a static understanding of item-to-item correlations to a dynamic understanding of user-to-item preferences. As Ehsan Gholami et al. argue in PARSRec, integrating user identity into the attention query allows the model to learn idiosyncratic item relationships that standard sequential models often miss.

Conditioning the Temporal Lens

Personalized attention doesn't just help with what a user likes, but also how their history should be interpreted. In ride-hailing, for instance, the "origin" of a trip is a critical context. Bryan Hooi and the team behind STOD-PPA use personalized attention to selectively weight past trajectories. By conditioning the attention layer on a user embedding, the model can prioritize historical patterns—like a specific Monday morning commute—that are most relevant to the current trip's origin and the user's long-term habits.

Similarly, in the context of job applications, Jun Zhu et al. show in PANAP that using individual identifiers as queries outperforms global models. This is because the importance of a user's past job views is highly subjective; a software engineer's interest in a "Manager" role might be a career pivot, while for another user, it might be a routine search. The personalized query allows the model to weigh these historical data points based on the individual's unique career trajectory.

Overcoming Identity Agnosticism in Transformers

While Transformers are powerful at capturing long-range dependencies, they are often "identity-agnostic," treating every input sequence as if it came from the same hypothetical user. Liwei Wu et al. addressed this in SSE-PT by concatenating user-specific embeddings directly with item representations.

This approach ensures that the attention weights are conditioned on the specific user's identity from the start. To prevent the model from simply memorizing users (overfitting), they introduced Stochastic Shared Embeddings, a regularization technique that allows the model to generalize across similar users while still maintaining individual specificity. This demonstrates that explicitly modeling user identity alongside item sequences can overcome the inherent limitations of general-purpose sequential architectures.

Beyond Recommendation: Experts and Intentions

The utility of personalized attention extends into specialized domains like expert finding and education. In CPEF, Hongtao Liu and colleagues use personalized attention to weight an expert's historical contributions. This allows the system to route questions to the right person by emphasizing past behaviors that align with the current query's specific nuances.

Even in predicting student motivation, Weifeng Deng shows that integrating static demographic traits into behavioral sequences via personalized attention networks helps capture underlying intentions. By conditioning the interpretation of temporal patterns on individual-specific traits, the model moves closer to understanding the "why" behind a sequence of actions, rather than just the "what."

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_personalized_attention_queries_for_seque_95635d21,
  title = {Personalized Attention Queries for Sequential Modeling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/personalized-attention-queries-for-sequential-modeling/rdr_95635d217cb6475b878fd3d46b574a67},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_personalized_attention_queries_for_seque_95635d21_v1,
  title = {Personalized Attention Queries for Sequential Modeling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/personalized-attention-queries-for-sequential-modeling/rdr_95635d217cb6475b878fd3d46b574a67/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}