Detecting semantic failures in production recommendation and search systems is hard: behavioral metrics lag by days, manual review does not scale, and most LLM evaluation frameworks are designed for offline, fixed datasets rather than continuous operational monitoring. We present Model Sanity Service (MOSS), a production framework that addresses this operational gap by embedding LLM-based relevance scoring into a recurring monitoring loop with targeted sampling, strategy-aware prompting, structured alerting, and diagnostic follow-up prompting that categorizes failures into actionable root causes. MOSS has been running in production at a large U.S. retailer for over six months across recommendation, search, and offer surfaces, and has surfaced two confirmed serving defects. For one of these, a backfill blending defect, MOSS quantified the impact of the proposed fix offline as a 76.4% relative reduction in alert rate. On a 498-pair human-annotated recommendation benchmark, frontier LLM judges achieve higher F1 and AUC point estimates than non-LLM baselines (internal production embeddings and SBERT), with the largest gains on strategy-dependent tasks requiring intent-level relational reasoning. The same judge, score scale, and threshold transfer to a 466-pair search benchmark spanning 21 queries with only a surface-specific prompt adaptation, achieving strong F1 and AUC without retuning. These results show that a single LLM monitoring framework can provide useful, actionable quality signals across multiple product discovery surfaces in a large-scale e-commerce setting.
Figures & tables
Seed item
Low-scored outputs
MOSS judgment
BRAND_A SIZE_A PRODUCT_NAME_A (specific type of flavored beer, 6pk)
Diapers; oven cleaner
Scores: all 1/10. Items are unrelated household or party supplies rather than beverages.
Scores: 2/10 and 1/10. Items are off-season or off-theme for Christmas tree decor.
BRAND_G SIZE_G PRODUCT_NAME_G (pacifier gift set for baby)
Teen fiction novel; adult skincare set; board game for ages 12+ (among 10 items with scores <5 )
Scores: all ≤4/10 across the 10 flagged outputs. Failure modes span category mismatches (non-baby products), intent mismatches with infant-care essentials, and attribute mismatches around age group and product function.
Fig. 3: Recommendation score distributions by LLM judge from a diagnostic run using the o3-calibrated prompt. Different judges use the 1–10 scale differently under the same scoring guidance, motivating judge-specific calibration. Production deployment uses the calibrated o3 configuration.
Model
N
T
Prec.
Rec.
F1 [95% CI]
FPR
AUC [95% CI]
LLM judges
o3 (original)
421
3
0.574
0.753
0.652 [0.561, 0.726]
0.126
0.871 [0.827, 0.911]
o3 (calibrated, deployed)
419
3
0.529
0.584
0.556 [0.458, 0.646]
0.117
0.829 [0.779, 0.879]
GPT-5
421
2
0.527
0.766
0.624 [0.535, 0.698]
0.154
0.836 [0.785, 0.879]
Gemini 2.5 Pro
421
2
0.573
0.714
0.636 [0.543, 0.710]
0.119
0.856 [0.809, 0.898]
Mixtral 8 × 7B
397
5
0.380
0.721
0.497 [0.409, 0.577]
0.243
0.769 [0.707, 0.826]
TABLE II: Performance on the 421-pair coverage matched subset (F1-maximized thresholds, bootstrap 95% CIs, 2 000 resamples). The calibrated o3 row is the production-deployed configuration (N=419 due to two missing scores); Mixtral 8 × 7B is evaluated on N=397 pairs due to 24 missing judge outputs; remaining LLM rows use the original prompt (N=421). See Section III-E for prompt details.
Model
T
Prec
Rec
F1
FS-F1
Opt-F1
o3
3
0.616
0.739
0.648
0.652
0.652
GPT-5
2
0.554
0.756
0.622
0.624
0.624
Gemini
2
0.623
0.713
0.633
0.636
0.636
TABLE III: LOSO threshold generalization for original-prompt judges on the 421-pair coverage subset (macro-average over 3 strategy folds, defined in Section IV-B1 ). “FS-F1” = full-set F1 at LOSO T; “Opt-F1” = full-set F1-maximized optimum.
Fig. 4: ROC comparison between LLM judges and non-LLM baselines on the 421-pair coverage matched subset. AUC estimates and 95% bootstrap confidence intervals are reported in Table II .
Strategy
Model
T
Prec.
Rec.
F1
FPR
Related
Prod. emb.
0.603
0.627
0.821
0.711
0.207
SBERT
0.264
0.684
0.667
0.675
0.130
o3
3
0.525
0.821
0.640
0.315
GPT-5
2
0.571
0.821
0.674
0.261
Gemini
2
0.727
0.821
0.771
0.130
Bundles
Prod. emb.
0.603
0.250
0.421
0.314
0.188
TABLE IV: Per-strategy performance on the 421-pair coverage subset using global thresholds from Table II (original prompt).
Fig. 5: Retrospective threshold sensitivity on the human-labeled evaluation set (original prompt). Operating points differ by judge, reinforcing that threshold selection is a deployment parameter.
Strategy
N
Mean
Median
Alert rate
Related
1,065
5.26
6.0
32.8%
Substitutes
461
6.54
7.0
13.0%
Bundles
247
4.88
5.0
38.5%
All
1,773
5.54
6.0
28.4%
TABLE V: Calibrated o3 production run: score statistics and alert rates by strategy (1,773 pairs, threshold ≤3 ).
Fig. 6: Calibrated o3 score distribution by recommendation strategy in the 1,773-pair production monitoring run. Strategy-specific distributions explain why alert rates should be interpreted relative to task intent.
Task
Reviewed
Actionable
Wrong/unclear
Rate
Bundles
46
36
10
78.3%
Related
53
45
8
84.9%
Substitutes
17
17
0
100.0%
Total
116
98
18
84.5%
TABLE VI: Expert triage of 116 second-stage alerts (o3 original prompt, T=2 ).
Placement
Seeds
Pairs
Mean score
Pair alert rate
Legacy (live)
99
995
4.68
41.6% [35.5, 48.4]
Enriched (fix)
99
348
6.93
9.8% [5.4, 14.8]
TABLE VII: Paired MOSS comparison across legacy and enriched bundle placement configurations (99 shared seeds, calibrated o3, threshold ≤3 , bootstrap 95% CIs from 2,000 resamples).
Surface
N
Positives
Rate
Rate type
Scope
Recs alerts
116
98
84.5%
confirmation
Second-stage follow-up alerts, original prompt, T=2
Recs benchmark
498
87
17.5%
prevalence
Human-labeled benchmark; production-embedding comparison on 421-pair coverage subset
TABLE VIII: Cross-surface MOSS evaluation summary. “Rate” is alert-confirmation rate for alert-enriched sets and alert-worthy prevalence for human-labeled benchmarks. Search results (F1, AUC) are detailed in Table IX .
Prec.
Rec.
F1 [95% CI]
Overall
0.762
0.914
0.831 [0.791, 0.868]
AUC [95% CI]
0.884 [0.852, 0.911]
PR-AUC [95% CI]
0.742 [0.678, 0.804]
Macro-F1 (21 queries)
0.597
Selected per-query F1 (N, human alerts)
Query S1 (20, 9)
1.000
TABLE IX: Search benchmark results (N=466, 21 anonymized queries, o3, T≤3 , bootstrap 95% CIs). F1-max threshold T=5 (F1=0.836). Selected per-query F1 is reported using anonymized query IDs; raw query strings are omitted for confidentiality.
Large language models are increasingly used as interactive recommender assistants. Their evaluation should therefore go beyond plausible item recommendation and test whether they can recognize flawed recommendation requests. Existing recommender benchmarks mainly assess ranking, generation, or preference satisfaction, while existing error-detection benchmarks are usually not grounded in recommendation-specific user and candidate evidence. To address this gap, we introduce RPCBench, a benchmark for evaluating Recommender-Premise Critique: the ability to detect, diagnose, and properly handle faulty premises in natural-language recommendation requests. RPCBench contains evidence-grounded test instances from five recommendation domains and covers ten types of premise failures. Each instance provides a visible recommendation context and a corrupted user query. We further design a fine-grained evaluation framework that measures proactive detection, error localization, post-detection handling strategy, and evidence faithfulness. Through a systematic evaluation of 11 LLMs, we find that proactive detection is the main bottleneck in Recommender-Premise Critique, and models perform worst on underspecified-premise errors. We also observe that target-critical information density matters more than redundant evidence, and that longer reasoning does not monotonically improve critique quality: performance peaks at intermediate reasoning length, while overly long reasoning is accompanied by an overthinking penalty. The code is available at https://github.com/ZhongruChen/RPCBench.
Zhongru Chen, Yuan Wu, Yi Chang
School of Artificial Intelligence, Jilin University · Engineering Research Center of Knowledge-Driven Human-Machine Intelligence, MOE, China · International Center of Future Science, Jilin University
Large language models are commonly evaluated by generating a small number of stochastic responses for each prompt in a benchmark. Because inference budgets are limited, this shallow evaluation may fail to observe low-probability but operationally important failures. A prompt that produces no failures in a small sample may therefore appear reliable despite having a nonzero latent probability of failure under repeated inference. We formulate LLM reliability evaluation as a budget-constrained discovery problem in which each prompt is associated with an unknown per-generation failure probability. We propose a budgeted discovery framework that first performs shallow evaluation across the prompt set and then uses trial-level failure outcomes together with prompt-derived representations to learn a feature-based ranking of failure propensity. The resulting scores prioritize prompts with zero observed shallow failures for deeper evaluation, concentrating the deep-evaluation budget where hidden failures are more likely to be discovered. We evaluate this approach on AIRBench and StrongREJECT across multiple model and system-prompt conditions. The central empirical test asks whether models fit without access to deep-evaluation outcomes can rank prompts with zero observed shallow failures according to their likelihood of producing failures under deeper evaluation. On AIRBench, the highest-ranked 10% of unresolved prompts achieves 2.54x hidden-failure lift for Qwen 2.5 7B and 1.87x for Gemma 3n E4B, recovering 25.4% and 18.7% of subsequently observed hidden failures, respectively, compared with 10% expected under random allocation. Semantic-neighborhood and feature-ablation analyses further show that this predictive signal can be recovered from multiple representations of prompt content and relationships.
Keita Broadwater, Akin Broadwater
Independent Researcher San Jose, CA USA · Bellarmine College Prepatory San Jose, CA USA
LLM agents fail mid-episode -- they loop, cascade tool errors, drift off goal, fabricate results, or silently absorb corrupted content -- and the standard remedy, judging every step with a second LLM, costs more than the agent itself. We ask how much detection is achievable from observable step telemetry alone, using monitors costing microseconds per step and trained only on healthy runs. On 2,823 committed agent episodes across three frameworks, three local models (qwen2.5 7b/3b, llama3.1 8b) and a commercial API (gemini-2.5-flash), a one-class echo-state-network ensemble with CUSUM alarms detects 0.71 of failures at a 5% false-alarm budget (AUROC 0.872). Its advantage over a memoryless baseline is a monotone function of post-onset horizon (+0.09 at <=3 steps, +0.40 at >=9), predicting its own failure region out of sample on AFTraj-2K. Ranking transfers with no retraining to two corpora from other groups (AFTraj-2K 0.745, ATBench 0.779). Monitors carry two burdens: a per-deployment healthy null (they do not transfer -- AUROC 0.527 cold against 0.885 recalibrated) and a residual false-alarm rate. We add a layer carrying neither: deterministic verification, which recomputes a run's stated total from the tool results it actually received and confirms every required call was made. Head-to-head it catches 60% of failures (96% with the coverage check) at 0 of 63 false positives against the monitor's 54% at 17%, transfers unchanged to llama3.1:8b (110 of 110 at 0 of 10), and trips on 0 of 1825 healthy episodes. Detection is then closed into repair: each flagged run is rolled back and re-run live, recovering 45% of failures against a 16% resampling control (p=0.0005) and lifting task success from 52% to 73% for about one extra model call per run. The system runs at ~200 microseconds per step, three orders of magnitude below a judge call. Code, traces and results are released.