Manuscript Offprint

arXiv:2608.25370

CRAMER: Control via Request-Aware Masking for Editing Recommenders

Zhiyuan Julian Su, Naihe Feng, Zhen Luther Qin, Ga Wu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Sequential recommendation models, while powerful, have limited flexibility in responding to immediate user requests, making it difficult to adapt their recommendations to the user's timely interests. Unfortunately, existing user request adaptation methods often incur high computational overhead due to either 1) retraining the entire backbone network or 2) leveraging the inference ability of large language models (a.k.a. prompt engineering), limiting their applicability in large-scale recommendation services. This paper presents Control via Request-Aware Masking for Editing Recommenders (CRAMER), a framework that takes users' natural-language requests to immediately change sequential recommendation models' behavior. Specifically, inspired by the model control theory, CRAMER treats user requests as control signals to modulate frozen sequential recommender backbone parameters through masking, achieving instant adaptation to diverse requests while avoiding costly retraining. Experiments on multiple large-scale benchmark datasets show that CRAMER outperforms four state-of-the-art request-aware baselines across multiple recommendation metrics while achieving minimal overhead. Moreover, the proposed framework exhibits enhanced controllability and cross-domain adaptability, establishing a new paradigm for request-aware sequential recommendation.

1. Introduction

Sequential recommendation models have advanced the state-of-the-art in predicting users' next interactions by modeling temporal patterns in behavior, but they remain inflexible when users issue immediate requests (Li et al., 2023; Ye et al., 2025; Shen et al., 2026). Real-world users frequently express on-the-fly intents in response to an initial recommendation list (e.g., "I want more exciting games"), rather than issuing explicit search queries. Handling such reactive, post-recommendation feedback introduces challenges beyond conventional sequential recommendation. First, natural-language requests may emphasize or even contradict historical preferences, requiring the model to dynamically balance immediate intent with long-term behavior patterns (Gao et al., 2021; Radlinski et al., 2022; Jin et al., 2022; Chen et al., 2023). Second, requests often contain rich semantics such as negations, constraints, or fine-grained attribute preferences, which require accurate interpretation and controllable adjustment of recommendations (Jannach et al., 2021; Moradizeyveh, 2022). Finally, real-time adaptation must be achieved efficiently: sequential recommendation backbones are inherently complex, trained and deployed models, so request-aware extensions must rely on lightweight, parameter-efficient mechanisms that preserve responsiveness without full fine-tuning (Houlsby et al., 2019; Prottasha et al., 2024; Shao et al., 2025).

To address these gaps, existing research has primarily viewed request adaptation as either an input-level or output-level problem. Input-level approaches augment historical sequences with control tokens or vectors (He et al., 2022; Li et al., 2023), while output-level strategies employ reranking or filtering logic after the model has generated candidates (Liu et al., 2024; Liao et al., 2026; Zhang et al., 2025). Consequently, these methods face a dilemma: they either rely on shallow representations that cannot capture nuanced user intent, or necessitate domain-specific pretraining and heavyweight inference that disrupt service efficiency. More specifically, the domain-specific pretraining or fine-tuning concern mainly refers to language-to-item representation methods, where textual requests and items are aligned in a shared semantic space or interaction sequences are modeled in language space. In contrast, the heavyweight inference concern mainly refers to LLM-based reranking or reasoning methods; in this case, the additional cost comes from the request-aware inference procedure on top of the sequential backbone, rather than from the backbone itself. Our goal is not to replace periodic or continual retraining in production systems, but to provide short-horizon, request-conditioned behavioral adaptation between model updates, especially

†This work was completed during Zhiyuan’s visit to Dalhousie University. 1^{1}Gaoling School of Artificial Intelligence, Renmin University of China 2^{2}Faculty of Computer Science, Dalhousie University. Correspondence to: Ga Wu ga.wu@dal.ca.

Proceedings of the 43rd43^{rd} International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

when a user issues an immediate natural-language request or post-hoc feedback. This trade-off stems from a fundamental limitation: they treat the recommender backbone as a static black box. Crucially, they lack mechanisms for posterior control—the ability to intervene directly on the internal mechanics of a deployed model to enforce constraints not present during training. Unlike traditional user-controllable recommendation, which relies on ante-hoc conditioning, our setting demands modifying the behavior of a frozen sequential backbone on the fly. This requires moving beyond simple conditioning to actively steering the model's parameters in response to arbitrary and complex natural-language signals, a capability largely absent in current architectures.

We propose Control via Request-Aware Masking for Editing Recommenders (CRAMER), a lightweight framework that treats a user's natural-language request as a control input and instantaneously modulates a frozen sequential recommender backbone via parameter masking. Drawing inspiration from model control theory (Li & Rush, 2020; Li et al., 2022), CRAMER applies learned masks to the backbone's parameters so the model's behavior is steered toward the requested intent with minimum computational overhead (Wen et al., 2016; Frankle & Carbin, 2019). CRAMER begins by mean-pooling across all token embeddings from the request to derive a faithful representation of the user's immediate request (Mosbach et al., 2020). A Gumbel–Top-k step (Kool et al., 2019) then produces a sparse row–column gate vector, which is decomposed into per-matrix row and column gates and converted into entrywise masks applied to the selected matrices of the frozen Transformer-based sequential recommender. For robustness, CRAMER introduces three masking strategies for attention output matrices and feed-forward networks (FFNs) in the Transformer-based backbone. The training objective for the request-to-mask module combines a prediction loss with a KL regularizer that encourages the learned gate distribution to follow a sparsity prior (details in Appendix A). Empirically, this masking-based control achieves adaptation with minimal computational overhead, outperforms four state-of-the-art request-aware baselines on multiple large-scale benchmarks, offering a practical, scalable paradigm for request-aware sequential recommendation.

References (71)