SearcharxivSearch

arXiv subjects

Sergii Voloshyn

Publications and source records attributed to Sergii Voloshyn.

2 recordsLinked to original sources

L-RAG: Balancing Context and Retrieval with Entropy-Based Lazy Loading

Retrieval-Augmented Generation (RAG) has emerged as the predominant paradigm for grounding Large Language Model outputs in factual knowledge, effectively mitigating hallucinations. However, conventional RAG systems operate under a "retrieve-always" assumption, querying vector databases for every input regardless of query complexity. This static approach incurs substantial computational overhead and inference latency, particularly problematic for high-throughput production deployments. We introduce L-RAG (Lazy Retrieval-Augmented Generation), an adaptive framework that implements hierarchical context management through entropy-based gating. L-RAG employs a two-tier architecture: queries are first processed with a compact document summary, and expensive chunk retrieval is triggered only when the model's predictive entropy exceeds a calibrated threshold, signaling genuine uncertainty. Through experiments on SQuAD 2.0 (N=500) using the Phi-2 model, we demonstrate that L-RAG provides a tunable accuracy-efficiency trade-off: at a conservative threshold (tau=0.5), L-RAG achieves 78.2% accuracy, matching Standard RAG (77.8%), with 8% retrieval reduction; at a balanced threshold (tau=1.0), retrieval reduction increases to 26% with modest accuracy trade-off (76.0%). Latency analysis shows that L-RAG saves 80-210ms per query when retrieval latency exceeds 500ms. Analysis of entropy distributions reveals statistically significant separation (p < 0.001) between correct predictions (H=1.72) and errors (H=2.20), validating entropy as a reliable uncertainty signal. L-RAG offers a practical, training-free approach toward more efficient RAG deployment, providing system architects with a configurable knob to balance accuracy and throughput requirements.

cs.IR

Polyakov loop model with exact static quark determinant in the 't Hooft-Veneziano limit: SU(N) case

We construct an exact solution of the $d$-dimensional $SU(N)$ Polyakov loop model with the exact static quark determinant at finite temperature and non-zero baryon chemical potential in the 't~Hooft--Veneziano limit. In the joint large-$N$, large-$N_f$ limit with fixed ratio $\kappa = N_f/N$, the mean-field approximation becomes exact, and the core of the Polyakov loop model reduces to a deformed unitary matrix model, which we solve analytically. In particular, we compute the free energy and its derivatives, the expectation values of the Polyakov loop, and the baryon density, and we describe the phase diagram of the model in detail. We show how the $SU(N)$ case differs from the corresponding $U(N)$ model and how the three-phase structure known from one-dimensional QCD at finite density extends to non-zero coupling.

hep-lat