SearcharxivSearch

arXiv subjects

Prabhat Singh

Publications and source records attributed to Prabhat Singh.

6 recordsLinked to original sources

Adaptive Two-Level Allocation of a Conserved Capacity Budget Across Locations and Service Classes

We study how to share a single conserved capacity budget across many locations and two service classes when demand is uneven, time-varying, and can exceed supply. The shape recurs: an origin's request-rate cap split across its edge locations, a licensed throughput cap across premium and standard tenants, or an egress budget between latency-critical and batch workloads. We present a two-level algorithm. The first level redistributes capacity within a class across locations by proportional deficit and excess redistribution; the second lends capacity elastically between classes when one has surplus and the other deficit. We prove it conserves the budget exactly, preserves non-negativity, and reaches a stable allocation in one iteration under stationary demand because it carries no per-cycle state, at O(KN) cost per cycle for K classes and N locations. We evaluate it defending a CDN's per-domain budget under volumetric attack, where the classes are confirmed-legitimate and not-yet-cleared traffic; across 8 contention scenarios on a 22-location topology it serves 66-93% of high-priority demand, competitive with a single-class linear-programming optimum, while never leaving capacity idle or over-committing whenever aggregate demand meets or exceeds the budget (the contention regime these scenarios evaluate). Two findings carry beyond the application. First, a throughput-maximizing objective is wrong under contention: a two-class LP maximizing total served load serves less high-priority load than our demand-proportional, reservation-respecting allocator in most scenarios, because it cannot tell that some load it serves is the contention. Second, inter-class borrowing earns its complexity under bursty load, improving high-priority service by 1.5 points (isolated by ablation), and is neutral under stationary demand. A 5-location prototype with real HTTP traffic validates the pipeline.

cs.AI

Plasma Dynamics in Higher-Derivative Electrodynamics: A Renormalised Two-Loop Framework

We present a finite-temperature study of Bopp-Podolsky electrodynamics, following electron-proton plasmas through one- and two-loop order with dimensional regularisation and hard-thermal-loop resummation. The higher-derivative operator is found to generate no new ultraviolet divergences; all counter-terms reduce to the single photon wave-function factor of ordinary QED. The static inter-particle force acquires a double-Yukawa profile, the familiar Debye term plus an opposite-signed contribution from the heavy Podolsky pole that removes the Coulomb singularity at sub-femtometre distances, providing an intrinsic ultraviolet completion of electrostatics. Gauge symmetry drives the transverse photon self-energy to zero at vanishing momentum, so no magnetic screening mass appears at any perturbative order. In a covariantly constant background the full two-loop sunset diagram yields a single, dimension-eight operator suppressed by T^2/M^2, implying permille-level shifts in thermodynamic quantities for realistic plasmas. The exact Debye mass and a leading-log calculation show the dc electrical conductivity exceeds its QED value by less than 10^-4. Conditions for observable Podolsky plasmons and cosmological constraints are identified, supplying precise benchmarks for future strong-field, collider and lattice investigations.

hep-ph

Code-Craft: Hierarchical Graph-Based Code Summarization for Enhanced Context Retrieval

Understanding and navigating large-scale codebases remains a significant challenge in software engineering. Existing methods often treat code as flat text or focus primarily on local structural relationships, limiting their ability to provide holistic, context-aware information retrieval. We present Hierarchical Code Graph Summarization (HCGS), a novel approach that constructs a multi-layered representation of a codebase by generating structured summaries in a bottom-up fashion from a code graph. HCGS leverages the Language Server Protocol for language-agnostic code analysis and employs a parallel level-based algorithm for efficient summary generation. Through extensive evaluation on five diverse codebases totaling 7,531 functions, HCGS demonstrates significant improvements in code retrieval accuracy, achieving up to 82 percentage relative improvement in top-1 retrieval precision for large codebases like libsignal (27.15 percentage points), and perfect Pass@3 scores for smaller repositories. The system's hierarchical approach consistently outperforms traditional code-only retrieval across all metrics, with particularly substantial gains in larger, more complex codebases where understanding function relationships is crucial.

cs.SE

Effective field theory of Plasmas in Podolsky corrected Photonic field

A theory for abelian plasma permeated by photons has been developed considering QED (quantum electrodynamics) generalized in Podolsky electrodynamics framework for consideration of higher order terms in electromagnetic theory. The theory traces out photonic degrees of freedom in plasma and accounts for plasma dynamics mediated by photons by calculated effective Hamiltonian. New modes of propagation have been predicted along with suppression of fields and collective behaviour. Non-Markovian behaviour is also discovered for plasma states and interactions in finite plasma system. This finds applicability in solid-state plasma, plasma confinement of magnetic and inertial nature, and laser-plasma interaction when theory is reduced to local interactions.

physics.plasm-ph

LLM Agents Improve Semantic Code Search

Code Search is a key task that many programmers often have to perform while developing solutions to problems. Current methodologies suffer from an inability to perform accurately on prompts that contain some ambiguity or ones that require additional context relative to a code-base. We introduce the approach of using Retrieval Augmented Generation (RAG) powered agents to inject information into user prompts allowing for better inputs into embedding models. By utilizing RAG, agents enhance user queries with relevant details from GitHub repositories, making them more informative and contextually aligned. Additionally, we introduce a multi-stream ensemble approach which when paired with agentic workflow can obtain improved retrieval accuracy, which we deploy on application called repo-rift.com. Experimental results on the CodeSearchNet dataset demonstrate that RepoRift significantly outperforms existing methods, achieving an 78.2% success rate at Success@10 and a 34.6% success rate at Success@1. This research presents a substantial advancement in semantic code search, highlighting the potential of agentic LLMs and RAG to enhance code retrieval systems.

cs.SE

Transforming Software Development: Evaluating the Efficiency and Challenges of GitHub Copilot in Real-World Projects

Generative AI technologies promise to transform the product development lifecycle. This study evaluates the efficiency gains, areas for improvement, and emerging challenges of using GitHub Copilot, an AI-powered coding assistant. We identified 15 software development tasks and assessed Copilot's benefits through real-world projects on large proprietary code bases. Our findings indicate significant reductions in developer toil, with up to 50% time saved in code documentation and autocompletion, and 30-40% in repetitive coding tasks, unit test generation, debugging, and pair programming. However, Copilot struggles with complex tasks, large functions, multiple files, and proprietary contexts, particularly with C/C++ code. We project a 33-36% time reduction for coding-related tasks in a cloud-first software development lifecycle. This study aims to quantify productivity improvements, identify underperforming scenarios, examine practical benefits and challenges, investigate performance variations across programming languages, and discuss emerging issues related to code quality, security, and developer experience.

cs.SE