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.
Figures & tables
Figure 1: Overview of SPECTRA. Training (left). Domain continued pretraining (CPT) followed by LoRA supervised fine-tuning (SFT). Inference (middle). SPECTRA reads a per-category score vector from the model’s softmax via likelihood probing or generative classification, then normalizes to a category-level preference distribution. A hierarchical variant handles large taxonomies. Application (right). The preference distribution supports reranking, long-tail discovery, and interpretable user profiles.
Figure 2: Jensen-Shannon divergence to the empirical category distribution on MovieLens ( K=19 ) and Yelp L1 ( K=26 ). Bars compare DG, Qwen3-Reranker, and SPECTRA. Numerical values with bootstrap 95% confidence intervals (CIs) are in Table 4 .
A: tail mass
B: head ECE
C: head bias
Dataset
K
SPECTRA
DG
value
ratio
SPECTRA
DG
MovieLens
19
0.239
0.222
0.041
9.4×
0.040
0.068
Yelp L1
26
0.278
0.277
0.066
2.3×
0.087
0.142
Table 1: Head-tail mass redistribution. Anchor configuration. (A) probability mass on the tail bucket. (B) head-bucket ECE and its ratio to aggregate ECE. (C) mean absolute per-category bias on the head bucket ( ↓ ).
Figure 3: Per-category bias θS−θ∗ on MovieLens ( K=19 ), sorted by true frequency. Orange marks head under-prediction ( θS<θ∗ ); blue marks tail over-prediction ( θS>θ∗ ). Yelp L1 panel in Figure 8 .
Figure 4: Per-user JS divergence to truth by tail-preference quartile. Quartiles are sorted by share of true future mass on tail categories. Q1 = head-leaning users, Q4 = tail-leaning users. (a) MovieLens, K=19 . (b) Yelp L1, K=26 , with Q1 and Q4 shown. Estimates and bootstrap 95% CIs for Q1 and Q4 are in Table 6 .
Figure 5: (a) Category-ranking NDCG@ 10 on MovieLens and Yelp L1 ( ↑ ). (b) Long-tail NDCG@ 20 gap on the deployed short-video platform. The annotated gain is (0.197−0.024)/0.024 . Public-dataset estimates and bootstrap 95% CIs are in Table 5 .
Figure 6: Context-window robustness on MovieLens (Qwen3-8B). NDCG@ 10 ( ↑ , left) and JS divergence ( ↓ , right) for SPECTRA’s two scoring variants, DG, and Qwen3-Reranker-8B across context windows {1,3,5,8} . Top row is the long-term horizon; bottom row is short-term.
Log loss ↓
AUC ↑
SPECTRA ( Section 3.2 )
0.312
0.936
Other LLM-based classification models
Jev 1 ( Almeida, 2026 )
0.422
0.874
Kev-4B ( Palmer, 2026 )
0.640
0.608
Other readouts of the same fine-tuned LLM
Answer-code rotation ( Zhang et al., 2026a )
0.465
0.840
Table 2: Predicting whether a user views a category on the short-video platform (78 categories). SPECTRA, Kev-4B, and the three other readouts use the same 500-user test panel after calibration on held-out validation users. 1 Jev is evaluated separately by cross-fitting on 261 validation users.
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
Job
Hardware
Wall-clock
MovieLens Qwen3-8B (E1–E4)
8 × L40S
∼ 10–14 h
Yelp Qwen3-8B (L1 + L2)
8 × L40S
∼ 10 h
DeepSeek base-model (E5)
8 × L40S
∼ 12 h
Downstream item-utility demo
16-core CPU
∼ 4 min
Calibration / fairness re-analysis
16-core CPU
∼ 30 min
Appendix
Table 3: Per-job wall-clock for the inference and re-analysis runs reported in this submission. Training wall-clock for the LoRA adapters used as inputs is reported in Section A.1 (C3).
Method
MovieLens (K=19)
Yelp L1 (K=26)
Direct generation
0.510±.006
0.530±.008
Qwen3-Reranker-8B
0.406±.006
0.434±.008
SPECTRA (probe)
0.316±.005
0.298±.007
Appendix
Table 4: Distributional alignment (numerical detail for Figure 2 ). Jensen-Shannon divergence to the empirical category distribution, in bits ( ↓ ). Anchor configuration. Subscripts are bootstrap 95% CI half-widths from 1,000 user-level resamples ( n=19,293 MovieLens, n=9,755 Yelp L1).
MovieLens (K=19)
Yelp L1 (K=26)
Method
NDCG@5
NDCG@10
NDCG@5
NDCG@10
Direct generation
0.530±.006
0.613±.006
0.512±.008
0.598±.008
Qwen3-Reranker-8B
0.701±.006
0.721±.006
0.683±.008
0.720±.008
SPECTRA (probe)
0.822±.005
0.863±.005
0.842±.007
0.871±.007
Appendix
Table 5: Category-ranking quality (numerical detail for Figure 5 ). NDCG@ k ( ↑ ) under the anchor configuration. Subscripts are bootstrap 95% CI half-widths from 1,000 user-level resamples.
Dataset
K
ΔQ1 head
ΔQ4 tail
ratio Q4/Q1
nQ4
pQ4
MovieLens
19
−0.300±.007
−0.383±.009
1.28
4,823
<10−100
Yelp L1
26
−0.288±.005
−0.325±.023
1.13
330
7.62×10−56
Appendix
Table 6: User-level fairness differential (numerical detail for Figure 4 ). Δ = mean per-user (JSSPECTRA−JSDG) to truth, in bits ( ↓ ), paired per user. Subscripts are within-quartile bootstrap 95% CI half-widths. Yelp Q4 is a small cohort ( n=330 ).
Dataset
Stratum
range
cells wins
MovieLens
user activity (5 strata)
−0.325 to −0.373
5/5
MovieLens
context window (6 strata)
−0.342 to −0.376
6/6
Yelp L1
user activity (5 strata)
−0.280 to −0.305
5/5
Yelp L1
context window (6 strata)
−0.234 to −0.362
6/6
Appendix
Table 7: Per-stratum range of the per-user JS reduction (SPECTRA minus DG), ↓ . Within-cell paired Wilcoxon p<10−20 throughout.
Figure 7: Soft-label reliability diagram on (left) MovieLens (K=19) and (right) Yelp L1 (K=26). Each point is a 0.05-wide bin of predicted category-level probability; the x-axis is the mean predicted probability in the bin and the y-axis is the mean true probability. Point size scales with bin count n . The highest predicted-probability bins systematically lie above the diagonal — SPECTRA under-predicts the head categories.
Figure 8: Per-category bias of SPECTRA, θˉS−θˉ∗ , on Yelp L1 ( K=26 ). Categories are sorted by true frequency θˉ∗ descending; orange bars indicate SPECTRA under-prediction, blue bars indicate over-prediction. The dominant Food & Restaurants category ( 63.9% true mass) is under-predicted by 55.2% , dwarfing the other shifts. Companion MovieLens panel is Figure 3 in the main text.
Dataset / stratum
ECE
n pairs
categories
MovieLens, overall
0.0043
379,962
19
MovieLens, head
0.0407
119,988
6
MovieLens, mid
0.0163
119,988
6
MovieLens, tail
0.0209
139,986
7
Yelp L1, overall
0.0286
259,896
26
Yelp L1, head
0.0658
79,968
8
Appendix
Table 8: Soft-label ECE, aggregate and stratified by head/mid/tail buckets. Head/mid/tail buckets are defined by tertiles of the aggregate empirical mass θ∗(c) ; counts of category-user pairs n are reported per stratum.
Taxonomy
CW
LT NDCG@10 / JS
ST NDCG@10 / JS
K=19 (canonical)
5
0.825 / 0.315
0.781 / 0.460
K=15
5
0.87 / 0.32
0.84 / 0.43
K=10
5
0.90 / 0.25
0.86 / 0.36
Appendix
Table 9: Taxonomy granularity robustness on MovieLens (Qwen3-8B, CPT+SFT, CW =5 ). K=19 is the original taxonomy. K=15 and K=10 merge semantically related categories. The support changes with K , so the metrics describe different prediction tasks.
Setting
CW = 3 LT
CW = 3 ST
CW = 5 LT
CW = 5 ST
DG
0.79
0.56
0.76
0.70
SPECTRA (canon.)
0.86
0.76
0.86
0.77
SPECTRA (paraphrase)
0.86
0.76
0.86
0.77
SPECTRA (simpl. verb.)
0.85
0.77
0.86
0.78
Appendix
Table 10: Prompt-paraphrase and simplified-verbalizer robustness on MovieLens (NDCG@ 10 ). N=1 paraphrase and a single simplified verbalizer set are reported; the canonical SPECTRA row reproduces the main-text headline.
Setting
Top-1 ECE
CW = 3, long-term
0.0036
CW = 3, short-term
0.0047
CW = 5, long-term
0.0022
CW = 5, short-term
0.0022
Appendix
Table 11: Top- 1 ECE for SPECTRA logit-probing on MovieLens, four operating points.
Method
Per-query latency
Notes
DG (uniform-on-top- 5 )
0.101 s
single fwd + k -token decode
SPECTRA, no prefill cache
≈0.10⋅K s
K probing prompts
SPECTRA, with prefill cache
≈0.05⋅K s
shared history prefix
Appendix
Table 12: Wall-clock latency for DG and SPECTRA, measured on a single A100-80G. The K -linear scaling of likelihood probing is the cost of the distributional read-out; production deployments amortize this in batched offline pipelines. The inference jobs reported elsewhere in this submission use L40S, not A100; the relative cost of probing versus DG is preserved across GPU families.
Method
JS divergence
SPECTRA
0.47
Production behavior-sequence ranker
0.70
Appendix
Table 13: Cohort-level JS divergence ( ↓ ) on the proprietary short-video subset, using 30 days of history and a 14-day prediction window.
Backbone / slice
base alone
+ SPECTRA
p
SASRec, neg99
0.2472
0.2483
<10−12
SASRec, neg999
0.1253
0.1265
<10−12
GRU4Rec, neg99
0.2916
0.3003
<10−23
GRU4Rec, neg999
0.1466
0.1474
∼0.04
SASRec mid, neg99
0.0356
0.0497
<10−12
GRU4Rec mid, neg99
0.0369
0.0596
<10−23
Appendix
Table 14: SPECTRA as a fused category prior on MovieLens. NDCG@ 10 with λ=0 (base ranker alone) versus λ=0.5 (best fusion weight). Paired-Wilcoxon p -values are within-user, npaired=17,498 .
Long-term
Short-term
Training stage
NDCG@10
JS-Div
NDCG@10
JS-Div
Pretrain-only
0.889
0.338
0.727
0.498
SFT-only (no CPT)
0.893
0.366
0.807
0.499
CPT + SFT (main paper)
0.863
0.316
0.780
0.462
Appendix
Table 15: Stage-wise ablation on MovieLens (Qwen3-8B, CW=8). NDCG@10 ( ↑ ) and Jensen-Shannon divergence ( ↓ ) for the SPECTRA Logit-Probing readout under three training pipelines. Long-term (LT) and short-term (ST) prediction horizons.