Luyang Zhang, Jialu Wang, Shichao Zhu, Beibei Li, Zhongcun Wang, Guangmou Pan, Yang Song
原文摘要
Large language models (LLMs) often represent user preferences by generating ranked item lists. These lists can overrepresent frequent categories and omit long-tail interests. We instead treat preference prediction as an LLM classification task, where a fine-tuned LLM assigns a probability to each category. Given a user's interaction history, we estimate the share of future interactions in each category. We propose SPECTRA (Softmax Probing for Extracted Category-level Token Readouts and Analysis), which reads a distribution over interpretable preference categories from a fine-tuned LLM's token scores. We evaluate SPECTRA on MovieLens, Yelp, and a large-scale short-video platform. SPECTRA delivers (i) distributional alignment, reducing Jensen-Shannon divergence to the empirical preference distribution by 38--44% across public datasets; (ii) long-tail recovery with cross-user fairness, raising top-3 category exposure entropy by $23%$ on MovieLens and producing a larger gain on tail-preference users than on head-preference users; and (iii) downstream application value, with a 41--46% category-NDCG boost on MovieLens and Yelp, and an increase in long-tail NDCG@$20$ from $0.024$ to $0.197$ against a production ranker on logged short-video data.
A central goal of mechanistic interpretability is to identify which internal components causally drive a language model's behavior. Because these importance estimates serve as the evidence for identifying circuits, systematic errors can lead to the misidentification of the underlying mechanisms. While activation patching provides a gold-standard causal metric, its computational cost is prohibitive at scale. Practitioners instead rely on attribution patching, a gradient-based, first-order approximation whose reliability remains poorly understood. In this work, we characterize the source of this unreliability, demonstrating that the dominant error stems from the non-linearities in the downstream network rather than local curvature at the patched component. This insight yields three practical tools: (i) a reliability score to detect untrustworthy estimates, (ii) error bounds quantifying potential attribution mis-specifications, and (iii) a Hessian-vector-product (HVP) correction that eliminates the leading-order error with only one additional backward pass. In evaluations across five model families (124M--9B parameters) and both random-token and naturalistic (name-swap) perturbations, HVP is the only second-order correction feasible at larger scale, where standard baselines like Integrated Gradients become computationally prohibitive. In comparative experiments, a multi-step HVP variant matches or exceeds the accuracy of Integrated Gradients at significantly lower compute, outperforming prior second-order baselines. These improvements lead to higher-fidelity circuit recovery on standard benchmarks and support a Screen-Flag-Fix workflow that targets computational effort only toward the components flagged as unreliable.