Научный журнал «Вестник науки»

Режим работы с 09:00 по 23:00

zhurnal@vestnik-nauki.com

Информационное письмо
  1. Главная
  2. Архив
  3. Вестник науки от 19 апреля 2026 г.
  4. Научная статья № 81
Просмотры  20 просмотров

SESSION-AWARE PROBABILISTIC RANKING UNDER OPERATIONAL CONSTRAINTS: A UNIFIED BAYESIAN FRAMEWORK FOR COLD-START AND LONG-FORM CONTENT RECOMMENDATION

Abstract: modern high-load content recommenders face two concurrent challenges: data scarcity for newly introduced items (cold-start) and systematic mis-ranking of long-form content caused by point-estimate utility functions. These problems are typically addressed in isolation, producing brittle production systems. We propose a unified Bayesian framework in which the session outcome is decomposed into click, completion, and return random variables with explicit posterior distributions. Ranking is formulated as a constrained optimization problem with hard operational budgets and chance constraints on latency, solved via Lagrangian relaxation and constrained Thompson sampling. We establish a regret bound of order O(√T) under constraint feasibility and introduce a joint calibration protocol based on the probability integral transform. Empirical evaluation on three public datasets with injected operational constraints demonstrates consistent improvements in cumulative utility and constraint compliance over point-estimate and unconstrained exploration baselines.

Keywords: recommender systems, probabilistic ranking, Thompson sampling, constrained optimization, cold start, watch time modeling, calibration, operational constraints.

https://doi.org/10.24412/2712-8849-2026-497-720-739

1. Introduction. High-load content recommender systems operate under a set of pressures that are rarely articulated together in a single formal framework. On the one hand, the catalog is continuously refreshed: new tracks, videos, articles, or product offerings are added daily, and the system is expected to surface them before their relevance signal is statistically reliable. This is the well-known cold-start regime, traditionally addressed through content features, collaborative priors, or dedicated exploration mechanisms [12, 16]. On the other hand, modern streaming and content platforms increasingly optimize not for a simple click, but for long-form consumption signals: watch-time, listening-time, session depth, and return frequency [6, 20]. These quantities are composite: they decompose into several random events along the session trajectory, and their aggregate behavior is heavy-tailed. Both problems share a common underlying object, the uncertainty of the predicted session outcome, but they are almost always treated in isolation. Cold-start is handled by bandit algorithms that explore aggressively on high-variance items, long-form ranking is handled by regression models that output a point estimate of expected watch-time. The former ignores the decomposition of the outcome into its structural components, the latter ignores the posterior variance that drives exploration. Production systems are then forced to glue together two partially overlapping stacks, each with its own quality gates and monitoring. The result is brittle: algorithmic seams become operational risk points, especially under tight SLA budgets and rapidly changing traffic patterns. A further complication is the role of operational constraints. Industrial recommenders operate under hard ceilings on inference latency, serving cost per impression, exploration budget per session, and catalog-level exposure fairness [1, 14]. These constraints are usually encoded as post-hoc rules layered on top of the ranker, rather than as first-class citizens of the optimization problem. This creates an opaque interaction between the learned scores and the hand-crafted rule stack, making it difficult to reason about the systems behavior under stress. This paper argues that cold-start and long-form ranking are two manifestations of the same underlying problem: Bayesian decision-making over structured, uncertain session outcomes under operational constraints. When the posterior over the outcome is wide because of data scarcity, the framework naturally reduces to a constrained exploration algorithm. When the posterior is narrow but the outcome is a composition of several random events, the same framework reduces to calibration-aware probabilistic ranking. The unification yields both theoretical and practical benefits: a single regret bound applies across regimes, and a single decision layer can be audited, monitored, and governed in production. The contributions of this paper are fourfold. First, we formalize the session outcome as a product of click, completion, and return random variables with explicit posterior distributions, and derive an adjusted ranking score that incorporates both expected utility and risk. Second, we embed this score into a constrained optimization problem with Lagrangian relaxation, obtaining an online algorithm based on constrained Thompson sampling, presented in pseudocode. Third, we establish a regret bound of order O(√T) under constraint feasibility, with cumulative violation bounded at the same rate. Fourth, we introduce a joint calibration protocol based on the probability integral transform (PIT) and validate the framework on three public datasets (MIND, MovieLens-25M, Spotify Million Playlist Dataset) with injected operational constraints, comparing against point-estimate and unconstrained exploration baselines through comprehensive experiments, including ablation and sensitivity analysis. 2. Materials and Methods. 2.1. Problem Formulation. Let U denote the set of users, I the item catalog, and C the space of session contexts (device, time of day, session history, intra-session position). At interaction step t, an upstream retrieval stage produces a candidate set I_t ⊆ I. The system must return an ordered list π_t = (i_1, …, i_K) of K items to the user. The session outcome of presenting item i to user u in context c is the watch-time (or listening-time) random variable. W(u, i, c) = C(u, i, c) · D(u, i, c) · R(u, i, c), (1)where C ∈ {0, 1} is the click indicator, D ∈ [0, 1] is the completion ratio conditional on a click, and R ∈ {0, 1} is the return-within-horizon indicator for horizon τ. The ranking objective is to maximize expected cumulative session utility while respecting a set of operational constraints defined below. 2.2. Bayesian Decomposition of Session Outcome. Instead of estimating the expectation E[W(u, i, c)] as a single point value, we model each component as a random variable with an explicit posterior distribution conditioned on the observed history H_t. In the base parametric formulation each component parameter follows a Beta conjugate posterior: p_C ~ Beta(α^C, β^C), p_D ~ Beta(α^D, β^D), p_R ~ Beta(α^R, β^R), (2)with posterior parameters updated incrementally after each observation (y, z, r) ∈ {0,1} × [0,1] × {0,1} according to α ← α + y and β ← β + (1 − y) for the click component, and analogously for the others. For richer parameterizations involving contextual neural encoders we replace closed-form conjugates with a variational approximation q_φ(p_C, p_D, p_R | u, i, c), trained by maximizing the evidence lower bound (ELBO). L_ELBO(φ) = E_q[ log p(y, z, r | p_C, p_D, p_R) ] − KL( q_φ || p_prior ), (3)where the KL term acts as a regularizer against the informative prior p_prior obtained from global popularity statistics. A key structural observation is that the posterior variance of each component captures epistemic uncertainty driven by data scarcity. For cold-start items with sparse H_t, the posteriors are wide, for well-observed items the posteriors concentrate. This provides a unified source of exploration signal across regimes. The induced watch-time distribution F_W is obtained by Monte Carlo composition from the component posteriors, and we are interested not only in its mean but also in its quantiles q_γ(W) and tail behavior. 2.3. Operational Load and Constraints. Let L(u, i, c) ∈ R^d denote an operational load vector associated with presenting item i, with components such as inference latency, serving cost, per-session exploration budget consumption, and exposure-mass contribution towards catalog-level fairness. Let B_t ∈ R^d denote the remaining budget at session step t, and SLA_ℓ the hard latency ceiling. The constrained ranking problem at step t is. max_{π_t ⊆ I_t, |π_t|=K} E[ Σ_{i ∈ π_t} W(u, i, c) ] (4)s.t. Σ_{i ∈ π_t} L(u, i, c) ≤ B_t, Pr( latency(π_t) > SLA_ℓ ) ≤ δ. (5)The first constraint is a deterministic per-session budget, the second is a chance constraint on latency, which we approximate via quantile surrogates: replacing Pr(· > SLA_ℓ) ≤ δ with q_{1−δ}(latency) ≤ SLA_ℓ. 2.4. Lagrangian Relaxation and Adjusted Score. Applying Lagrangian relaxation with multipliers λ ∈ R^d_{≥0} for budget constraints and μ ≥ 0 for tail-risk, the per-item adjusted score becomes. S(u, i, c) = E[W(u, i, c)] − λᵀ · E[L(u, i, c)] − μ · ρ(W(u, i, c)), (6)where ρ(·) is a risk functional. In this work we use the Conditional Value-at-Risk of the negative outcome at level α ∈ (0, 1): ρ(W) = CVaR_α(−W) = E[ −W | −W ≥ VaR_α(−W) ], (7)which penalizes items with heavy left tails in the induced watch-time distribution. Each component λ_j admits a shadow-price interpretation: it is the marginal utility a unit of resource j buys in equilibrium, providing product teams with an explicit, auditable exchange rate between engagement and operational cost. 2.5. Constrained Thompson Sampling. For each candidate item the policy draws a posterior sample of each outcome component and forms a sampled score. S̃(u, i, c) = p̃_C · E[D | p̃_D] · (1 + η p̃_R) − λᵀ · L(u, i, c), (8)where η controls the weight of the return component. Candidates are sorted by S̃ and selected greedily until the budget B_t is exhausted. The Lagrange multipliers λ are updated online via projected dual ascent on the observed constraint slack. λ_{t+1} = Π_{R^d_{≥0}}( λ_t + η_λ · g_t ), g_t = Σ_{i ∈ π_t} L(u, i, c) − B_t, (9)where Π_{R^d_{≥0}}(x) = max(x, 0) is the element-wise projection onto the non-negative orthant and η_λ > 0 is the dual step size. The full procedure is summarized in Algorithm 1. Algorithm 1. Constrained Thompson Sampling for Session Ranking. This construction naturally explores items with wide posteriors when their optimistic sample is competitive, while respecting the load budget through the dual penalty. The dual step size η_λ controls the speed at which constraint violations are corrected and admits a standard O(1/√T) schedule for guaranteed convergence. 2.6. Regret Bound under Constraints. We now establish a regret bound for the proposed policy. Define the oracle cumulative reward W*(t) as the reward achievable by a clairvoyant policy with full knowledge of the outcome distributions, subject to the same constraints. The instantaneous regret at step t is ΔR_t = W*(t) − W^π(t). Under standard regularity assumptions — bounded rewards in [0, 1], sub-Gaussian posterior tails, and Slaters constraint qualification — the policy satisfies, in expectation, R(T) = E[ Σ_{t=1}^T ΔR_t ] ≤ C_1 · √(T · K · log|I|) + C_2 · ||λ*||_2, (10)with cumulative constraint violation bounded byV(T) = E[ Σ_{t=1}^T ||g_t||_+ ] ≤ C_3 · √T. (11)The first term in (10) matches the classical Thompson sampling regret rate [4, 15], the second term reflects the cost of learning the dual variables and depends on the norm of the optimal Lagrange multiplier λ*. The proof follows the line of reasoning developed for constrained linear bandits in [2, 13], adapted to the decomposed-outcome setting through the observation that each of the three Beta posteriors is sub-Gaussian with variance bounded by a function of the posterior sample size. A complete derivation is deferred to an extended version of the paper. 2.7. Joint Calibration Protocol. Point-wise calibration of each posterior component is measured by the Expected Calibration Error (ECE). Predicted probabilities are partitioned into B disjoint bins {I_b}, and for each bin b we compute the average predicted probability and the empirical outcome frequency: p̄_b = (1 / |N_b|) · Σ_{j ∈ N_b} p̂_j, ȳ_b = (1 / |N_b|) · Σ_{j ∈ N_b} y_j, (12)ECE_X = Σ_{b=1}^{B} (|N_b| / N) · | ȳ_b − p̄_b |, X ∈ {C, D, R}. (13)Joint calibration of the induced watch-time distribution is assessed by the probability integral transform (PIT). For each observation (u_j, i_j, c_j, w_j), PIT_j = F_W(w_j | u_j, i_j, c_j), (14)which should be uniformly distributed on [0, 1] under perfect calibration. Deviations from uniformity are quantified by the Kolmogorov–Smirnov statistic KS = sup_{x ∈ [0,1]} | F̂(x) − x |, where F̂ is the empirical CDF of the PIT values. The full calibration monitoring procedure is summarized in Algorithm 2. Algorithm 2. Joint Calibration Monitoring (Probability Integral Transform). 2.8. Datasets and Business Scenarios. We evaluate the framework on three public datasets with injected operational constraints. MIND (Microsoft News) supplies long-form reading signals: dwell time is used as a proxy for completion ratio, and return within a 24-hour horizon as the return indicator [19]. MovieLens-25M is converted to a session-structured dataset by temporal binning of user interactions, completion ratio is proxied by a rating-weighted view probability [9]. The Spotify Million Playlist Dataset is used for listening-time modelling: completion is derived from track duration and skip patterns, with return horizons measured at the session level [5]. On each dataset we construct two contrasting regimes. In the cold-start regime, 30% of items are artificially restricted to fewer than 10 interactions in the training split, forcing the policy to explore. In the long-form regime, the completion ratio variance is high and the induced watch-time distribution is heavy-tailed, stressing point-estimate baselines. Operational constraints — per-request latency budget, per-session exploration budget, and per-provider exposure cap — are injected synthetically with parameter sweeps. 2.9. Evaluation Protocol. The primary metrics are cumulative utility (expected watch-time per session), constraint violation rate (fraction of sessions with budget overrun), per-component ECE, joint PIT Kolmogorov–Smirnov statistic, and regret against an oracle with full outcome information. The baselines are a greedy point-estimate ranker without exploration, a standard unconstrained Thompson sampling policy, a UCB policy with a fixed exploration budget, and a LinUCB policy on concatenated user and item features [11]. Each experiment is repeated over 20 random seeds with 95% confidence intervals reported. 3. Experiments. 3.1. Experimental Setup. All experiments are implemented in Python 3.10 with PyTorch 2.1 for neural variational posteriors and NumPy/SciPy for the Beta-conjugate baseline. Evaluation is performed through a session-replay simulator that streams historical sessions in chronological order and exposes candidate sets of size |I_t| = 200 drawn by a shared retrieval stage (BM25 for news, factorized embeddings for the other two datasets). The slate size is fixed to K = 10 across all experiments. Hyperparameters are tuned on a 10% validation split of each dataset. The default configuration uses return-weight η = 0.5, CVaR level α = 0.05, risk weight μ = 0.3, dual step size η_λ = 0.02, and M = 128 Monte Carlo samples per posterior evaluation. Variational posteriors use a two-layer MLP encoder with 128 hidden units and ReLU activations, trained for 20 epochs with Adam (learning rate 10⁻³, batch size 512). The per-session budget B is calibrated so that the nominal operating point produces a 5% constraint violation rate under the proposed policy, all stress tests scale this budget downward. 3.2. Utility–Violation Trade-off. Pic. 1 plots the utility–violation trade-off across all four policies, obtained by sweeping the Lagrangian weight λ from zero to a large value. Table 1 reports the numerical values at a representative medium-tight operating point. Utility values are normalized against the oracle so that 1.00 corresponds to oracle performance. The proposed constrained Thompson sampling policy dominates the Pareto frontier: at any fixed violation level it achieves higher utility than any baseline, and at any fixed utility level it achieves a lower violation rate. Pic. 1. Utility–violation trade-off across policies on the MIND dataset (representative). The proposed Constrained Thompson Sampling (C-TS) policy dominates the Pareto frontier. The marked point indicates the selected medium-tight operating configuration used in Table 1. Table 1. Normalized cumulative utility and constraint violation rate across datasets and policies at the medium-tight operating point (mean ± 95% CI, 20 seeds). Higher utility and lower violation rate are better. The greedy point-estimate policy achieves a low violation rate because it rarely deviates from well-known high-utility items, but at the cost of substantially lower utility: the policy is unable to accumulate information about under-explored items, which compounds over time. The unconstrained Thompson sampling policy explores too aggressively once the budget becomes tight, producing a violation rate that is operationally unacceptable. LinUCB lies in between but pays a utility penalty from the linear reward assumption. 3.3. Cold-Start and Long-Form Regimes Separately. When evaluation is restricted to the cold-start subset of items, the relative utility advantage of the proposed policy over the greedy point-estimate baseline grows from roughly 24% on the full catalog to approximately 41%. The widening gap is expected: greedy ranking has no mechanism for probing under-observed items, and its utility plateaus rapidly. In the long-form regime, restricted to items with high completion-variance, the advantage over the unconstrained Thompson sampling baseline is primarily driven by the risk term in the adjusted score, which down-weights items with heavy left tails in the induced watch-time distribution. 3.4. Calibration Quality. Pic. 2 shows reliability diagrams for each of the three outcome components, comparing the proposed policy against the greedy point-estimate baseline. The diagonal represents perfect calibration. The proposed policy tracks the diagonal closely across all three components, while the greedy baseline systematically over-predicts in the middle probability range, especially for the completion component. Pic. 2. Reliability diagrams per outcome component (Click, Completion, Return). The proposed Constrained Thompson Sampling policy (blue circles) tracks the perfect calibration line, the greedy point-estimate baseline (red squares) over-predicts in the mid probability range, especially for the completion component. Table 2 reports numerical values of the Expected Calibration Error and the joint Kolmogorov–Smirnov statistic on the PIT histogram, averaged across the three datasets. The proposed policy maintains per-component ECE below 0.03 on all three components, and the joint PIT-KS statistic is well below the 0.05 reliability threshold commonly used in the probabilistic forecasting literature [7]. Table 2. Calibration metrics averaged across datasets (lower is better). The proposed Constrained Thompson Sampling (C-TS) policy maintains well-calibrated posteriors across all components and in the joint watch-time distribution. 3.5. Stress Tests. To assess robustness under operational stress, we simulate peak-hour traffic by progressively shrinking the per-session budget from its nominal value down to 30% of nominal. Pic. 3 reports both the constraint violation rate and the normalized cumulative utility as a function of the budget ratio. The proposed policy degrades gracefully: at 30% of the nominal budget, its violation rate remains close to the 10% SLA threshold, while unconstrained Thompson sampling and LinUCB cross into operationally unacceptable violation levels (0.38–0.52) long before that point. Pic. 3. Stress tests under shrinking operational budget. Left: constraint violation rate. Right: normalized cumulative utility. The proposed policy (dark blue, circles) remains near the SLA threshold and retains higher utility than any baseline across the entire range. 3.6. Ablation Study. To quantify the contribution of each component of the proposed framework, we perform an ablation study on the MIND dataset. We successively remove (i) the return component R, reducing the outcome to W = C · D, (ii) the risk term μ · ρ(W), reducing the score to expected utility minus load penalty, (iii) the posterior variance entirely, using posterior means instead of samples (i.e., reducing to a greedy Bayesian policy). Table 3 reports the results. Table 3. Ablation study on the MIND dataset at the nominal operating point. Each row removes one component of the full framework. The largest utility drop comes from removing posterior sampling, confirming the importance of uncertainty quantification. Removing the return component R lowers utility by 6 percentage points and nearly doubles the PIT-KS statistic, indicating that session-level revisit behavior carries substantial signal beyond the within-session completion. Removing the risk term preserves average utility but degrades calibration on the heavy tail. Replacing posterior sampling with posterior means produces the largest utility drop (9 percentage points), confirming that exploration driven by posterior variance is the primary source of the frameworks advantage. Finally, removing the constraints altogether restores competitive utility but inflates the violation rate by nearly five-fold, in line with expectations. 3.7. Sensitivity Analysis. We next assess sensitivity with respect to two key hyperparameters: the dual step size η_λ and the risk weight μ. Varying η_λ in the range [10⁻³, 10⁻¹] produces smooth degradation of constraint compliance at the boundaries: at η_λ = 10⁻³ the dual variables converge too slowly, producing transient violation spikes in the first 1000 sessions, at η_λ = 10⁻¹ the dual variables oscillate, causing a 3% drop in cumulative utility. The tuned value η_λ = 0.02 lies comfortably inside a wide stability region. Varying μ in [0, 1] trades expected utility for tail-risk protection monotonically, with the best PIT-KS achieved at μ ≈ 0.3. These results indicate that the framework does not require delicate hyperparameter tuning: performance is stable within roughly an order of magnitude around the tuned values. 3.8. Discussion. The empirical results support the central thesis of the paper: cold-start and long-form ranking are two regimes of a single underlying decision problem. The posterior variance produced by data scarcity plays the same structural role as the decomposition variance produced by composite outcomes — both feed into a unified adjusted score, and both are regulated by the same set of Lagrange multipliers. From a production perspective, the shadow-price interpretation of λ is particularly valuable: it gives product and platform teams an explicit exchange rate between business utility and operational cost, which is directly consumable in quality gates and monitoring dashboards [17]. Limitations remain. The bounded-reward assumption underlying the regret analysis is violated in the extreme tail of watch-time distributions, although in practice this is mitigated by the risk functional ρ. The framework as presented assumes stationary preferences within the evaluation horizon, extension to non-stationary regimes is a natural direction for future work, as is the multi-objective extension in which several business utilities are optimized jointly. 4. Conclusion. This paper introduced a unified Bayesian framework for session-aware ranking in high-load content recommendation. By decomposing the session outcome into click, completion, and return random variables, and by embedding the ranking problem into a constrained optimization with Lagrangian relaxation, we obtain a single policy that handles cold-start exploration and long-form probabilistic ranking within the same mathematical structure. The policy, formalized as Algorithm 1, admits an O(√T) regret bound under constraint feasibility, with cumulative violation bounded at the same rate, and is accompanied by a joint calibration protocol (Algorithm 2) based on the probability integral transform. Empirical evaluation on three public datasets with injected operational constraints demonstrates consistent improvements in cumulative utility and constraint compliance over point-estimate and unconstrained exploration baselines, particularly pronounced in cold-start and high-variance long-form regimes. Ablation and sensitivity analyses confirm that the posterior sampling mechanism is the primary source of the frameworks advantage, and that the framework is robust to hyperparameter perturbations within an order of magnitude. The shadow-price interpretation of the dual variables provides an operationally useful exchange rate between business utility and resource consumption, bridging the gap between algorithmic and product-facing views of the system. Future work will extend the framework to non-stationary preferences, multi-objective formulations, and hierarchical constraint structures arising in enterprise multi-tenant recommenders.


Полная версия статьи PDF

Номер журнала «Вестник науки» № 4 (97) том 3


Ссылка для цитирования:

Evdokimov M.A. SESSION-AWARE PROBABILISTIC RANKING UNDER OPERATIONAL CONSTRAINTS: A UNIFIED BAYESIAN FRAMEWORK FOR COLD-START AND LONG-FORM CONTENT RECOMMENDATION // Журнал «Вестник науки» от 19 апреля 2026 г. № 4 (97) том 3. С. 720 - 739. 2026 г. ISSN 2712-8849 // Электронный ресурс: https://www.вестник-науки.рф/article/29848 (дата обращения: 29.11.2026 г.)


Альтернативная ссылка латинскими символами: vestnik-nauki.com/article/29848



Нашли грубую ошибку (плагиат, фальсифицированные данные или иные нарушения научно-издательской этики) ?
- напишите письмо в редакцию журнала: zhurnal@vestnik-nauki.com


Вестник науки © 2026.    16+




* В выпусках журнала могут упоминаться организации (Meta, Facebook, Instagram) в отношении которых судом принято вступившее в законную силу решение о ликвидации или запрете деятельности по основаниям, предусмотренным Федеральным законом от 25 июля 2002 года № 114-ФЗ «О противодействии экстремистской деятельности» (далее - Федеральный закон «О противодействии экстремистской деятельности»), или об организации, включенной в опубликованный единый федеральный список организаций, в том числе иностранных и международных организаций, признанных в соответствии с законодательством Российской Федерации террористическими, без указания на то, что соответствующее общественное объединение или иная организация ликвидированы или их деятельность запрещена.