TL;DR
FocalSwap is a new auditing protocol that reveals a "hidden degree of freedom" in search-augmented recommenders: the choice of baseline. The paper shows that while these models appear to benefit from search when compared to blank "neutral masks," this benefit often vanishes when compared to realistic, "matched" search replacements, suggesting they may not be using the specific intent of the latest search as much as previously thought.
What Problem Does This Paper Address?
Search-augmented recommendation (SAR) models aim to improve suggestions by incorporating a user's search history. A key claim of these models is that they can capture immediate user intent from the latest search episode.
However, evaluating this claim is tricky. Standard "ablation" studies—where search inputs are simply removed or masked—don't necessarily prove the model is using the content of the search. A model might perform better with search data simply because a blank mask is an "out-of-distribution" input that confuses the scorer, or because the model is reacting to the general "search state" (the fact that search happened) rather than the specific query. The authors identify a gap in search attribution: we don't actually know if the latest search helps rank the target beyond what the model could already infer from the user's broader history.
Methods
The authors introduce FocalSwap, a protocol for fixed-row counterfactual testing. The core idea is to keep the recommendation context (pre-search history, target item, candidate set, and model parameters) completely fixed while intervening only on the search inputs.
Key components of the protocol include:
- Intervention Scopes: Testing the "latest-slot" (just the most recent search) versus "all-source" (the entire search history).
- Controls:
- Neutral Mask ($C_0$): Replacing search content with a neutral ID (the standard approach).
- Matched Replacement ($C_1, C_2$): Replacing the true search with a "donor" search from the data that matches the original in terms of category, profile, or length.
- Metrics: The protocol measures Rank Response (how often the target's rank changes), Signed Contribution (change in Reciprocal Rank, $\Delta RR$), and Replacement Preference (whether the model actually prefers the true search over a matched one).
- Calibration: The authors use "planted signals" (synthetic data where search definitely matters) and GenSAR’s native tasks to verify that FocalSwap can actually detect search dependence when it exists.
Datasets
The study evaluates behavioral and lexical evidence across several settings:
- KuaiSAR: A large-scale dataset of anonymized behavioral tokens (search and recommendation interactions).
- Qilin: A dataset providing real query and item text, allowing for lexical analysis (e.g., using BM25).
- SESRec & UniSAR: The authors use released code and checkpoints for these state-of-the-art SAR models to perform their audit on "live" recommendation logic.
Key Insights and Ideas
- The "Masking Artifact": The most striking insight is that neutral masking is a misleading baseline. In UniSAR, masking all search inputs yields a positive contribution, but replacing them with matched observed searches does not. This suggests the "gain" from search seen in standard ablations might be an artifact of removing data rather than a benefit of using it.
- Control-Sensitive Attribution: Attribution is not a single number; it depends on the control. If a model performs equally well with a random (but category-matched) search as it does with the user's actual search, it isn't truly capturing specific intent.
- Latest-Slot Ambiguity: Across multiple models, a positive contribution from the latest search episode specifically could not be established. The models seem to rely more on the broader, accumulated search state than the immediate "focal" search.
- Local vs. Global Specificity: Lexical models (like BM25 on Qilin) only show a clear preference for the true search in very specific subsets, such as when there is high taxonomy overlap between the query and the item.
Key Results
- UniSAR Checkpoints: On a shared set of 66,139 rows, neutral masking ($C_0$) showed positive RR gains (ranging from $+2.0$ to $+5.4 \times 10^{-3}$). However, when using matched replacements ($C_2$), these gains disappeared, with one checkpoint even showing a negative mean contribution.
- Latest-Slot Contribution: For both SESRec and UniSAR, the 95% confidence intervals for the latest-slot contribution crossed zero. This means the audit could not confirm that the most recent search actually helps the recommendation.
- Rank Volatility: Neutral masks changed the target rank in roughly 60% of cases, while matched replacements changed them in about 44%. This high volatility shows that models are sensitive to search inputs, but not necessarily in a way that consistently improves ranking.
Limitations and Future Work
- Candidate Retrieval: This study focuses on the scoring/ranking stage and keeps the candidate set fixed. It does not account for how search might help in the initial retrieval phase to bring better items into the pool.
- Semantic Equivalence: While "matched" donors are behaviorally similar, they aren't semantically identical. Future work could explore using LLMs to generate more nuanced counterfactual queries.
- Scope of Models: The audit was performed on specific released checkpoints of SESRec and UniSAR. While these are representative, the results might differ for models trained on different objectives or much larger proprietary datasets.
Summary updated