SearcharxivSearch

arXiv subjects

Ritam Pal

Publications and source records attributed to Ritam Pal.

9 recordsLinked to original sources

The Joint Effect of Quantization and Sampling Temperature on LLM Safety Alignment: A Factorial Analysis

Modern LLM deployments often combine quantization with higher sampling temperatures to reduce cost, latency, or repetition, yet safety evaluations usually treat these as fixed implementation details. We test whether models that are safe at FP16 with greedy decoding remain safe after quantization and stochastic sampling, or whether the two factors amplify each other. We evaluate 8 instruction-tuned models from five families across 3 precisions and 6 temperatures, covering 144 configurations on 7 harmfulness benchmarks and generating about 2.0 million responses, which are scored by a six-judge safety ensemble. Contrary to concerns that low-bit deployment erodes alignment, we find that standard quantization is approximately safety-neutral: for 7 of 8 models, AWQ INT4 keeps attack success within about 1.6 percentage points of FP16 or lowers it, with clear degradation only for SmolLM3-3B (34.5% to 44.1%). However, the larger risk comes from sampling: higher temperatures sharply increase decision instability, with DFR reaching 41.9% at T = 1.0, even when average ASR changes only modestly. The two factors do not compound: our Compound Degradation Index remains sub-additive (-0.071 to +0.018), indicating that quantization partially offsets rather than amplifies temperature-induced degradation. Finally, a per-benchmark breakdown shows that single-benchmark evaluation badly understates risk: several models scoring 0% on AdvBench exceed 80% on ManyHarm. Standard INT4/INT8 quantization can therefore be reasonable for well-aligned models, but safety claims should report multi-sample stability across multiple benchmarks rather than rely on a single benchmark at greedy decoding.

cs.LG

LLM Inference at the Edge: Mobile, NPU, and GPU Performance Efficiency Trade-offs Under Sustained Load

Deploying large language models on-device for always-on personal agents demands sustained inference from hardware tightly constrained in power, thermal envelope, and memory. We benchmark Qwen 2.5 1.5B (4-bit quantised) across four platforms: a Raspberry Pi 5 with Hailo-10H NPU, a Samsung Galaxy S24 Ultra, an iPhone 16 Pro, and a laptop NVIDIA RTX 4050 GPU. Using a fixed 258-token prompt over 20 warm-condition iterations per device, we measure throughput, latency, power, and thermal behaviour. For mobile platforms, thermal management supersedes peak compute as the primary constraint: the iPhone 16 Pro loses nearly half its throughput within two iterations, and the S24 Ultra suffers a hard OS-enforced GPU frequency floor that terminates inference entirely. On dedicated hardware, distinct constraints dominate: the RTX 4050 is bounded by its battery power ceiling, while the Hailo-10H is limited by on-module memory bandwidth. The RTX 4050 sustains 131.7 tok/s at 34.1 W; the Hailo-10H sustains 6.9 tok/s at under 2 W with near-zero variance, matching the RTX 4050 in energy proportionality at 19x lower throughput. Results should be interpreted as platform-level deployment characterisations for a single model and prompt type, reflecting hardware and software combined, rather than general claims about hardware capability alone.

cs.DC

Voter Turnouts Govern Key Electoral Statistics

Elections, the cornerstone of democratic societies, are usually regarded as unpredictable due to the complex interactions that shape them at different levels. In this work, we show that voter turnouts contain crucial information that can be leveraged to predict several key electoral statistics with remarkable accuracy. Using the recently proposed random voting model, we analytically derive the scaled distributions of votes secured by winners, runner-ups, and margins of victory, and demonstrating their strong correlation with turnout distributions. By analyzing Indian election data -- spanning multiple decades and electoral scales -- we validate these predictions empirically across all scales, from large parliamentary constituencies to polling booths. Further, we uncover a surprising scale-invariant behavior in the distributions of scaled margins of victory, a characteristic signature of Indian elections. Finally, we demonstrate a robust universality in the distribution of the scaled margin-to-turnout ratios.

physics.soc-ph

Identifying fatigue crack initiation through analytical calculation of temporal compliance calibrated with Computed Tomography

Fatigue failure is ubiquitous in engineering applications. While the total fatigue life is critical to understanding a component's operational life, for safety, regulatory compliance, and predictive maintenance, the characterization of initiation life is important. Traditionally, initiation life is characterized by potential drop method, acoustic emission technique, and strain-based measurements. However, the primary challenge with these methods lies in the necessity of calibration for each new material system. The difficulties become even more aggravated for additively manufactured components, where fatigue properties are reported to vary widely in the open literature. In this work, an analytical methodology is utilized to evaluate the initiation life of two different materials such as AlSi10Mg and SS316L, fabricated via laser-powder bed fusion (L-PBF) technique. The processing parameters are selected such that AlSi10Mg behaves like a brittle material while SS316L shows ductile behavior. A custom fatigue testing apparatus is used inside Computed Tomography (CT) for evaluating fatigue initiation. The apparatus reports load-displacement data, which is post-processed using an analytical approach to calculate the evolution of material compliance. The results indicate that crack initiation during fatigue loading is marked by a noticeable change in compliance. The analytical technique shows a maximum difference of 4.8% in predicting initiation life compared to CT imaging. These findings suggest that compliance monitoring can effectively identify fatigue initiation in various materials.

cond-mat.mtrl-sci

Surface roughness-informed fatigue life prediction of L-PBF Hastelloy X at elevated temperature

Additive manufacturing, especially laser powder bed fusion (L-PBF), is widely used for fabricating metal parts with intricate geometries. However, parts produced via L-PBF suffer from varied surface roughness which affects the dynamic or fatigue properties. Accurate prediction of fatigue properties as a function of surface roughness is a critical requirement for qualifying L-PBF parts. In this work, an analytical methodology is put forth to predict the fatigue life of L-PBF components having heterogeneous surface roughness. Thirty-six Hastelloy X specimens are printed using L-PBF followed by industry-standard heat treatment procedures. Half of these specimens are built with as-printed gauge sections and the other half is printed as cylinders from which fatigue specimens are extracted via machining. Specimens are printed in a vertical orientation and an orientation 30 degree from the vertical axis. The surface roughness of the specimens is measured using computed tomography and parameters such as the maximum valley depth are used to build an extreme value distribution. Fatigue testing is conducted at an isothermal condition of 500-degree F. It is observed that the rough specimens fail much earlier compared to the machined specimens due to the deep valleys present on the surfaces of the former ones. The valleys act as notches leading to high strain localization. Following this observation, a functional relationship is formulated analytically that considers surface valleys as notches and correlates the strain localization around those notches with fatigue life, using the Coffin-Manson-Basquin and Ramberg-Osgood equation. In conclusion, the proposed analytical model successfully predicts the fatigue life of L-PBF specimens at an elevated temperature undergoing different strain loadings.

physics.app-ph

Universal Statistics of Competition in Democratic Elections

Elections for public offices in democratic nations are large-scale examples of collective decision-making. As a complex system with a multitude of interactions among agents, we can anticipate that universal macroscopic patterns could emerge independent of microscopic details. Despite the availability of empirical election data, such universality, valid at all scales, countries, and elections, has not yet been observed. In this work, we propose a parameter-free voting model and analytically show that the distribution of the victory margin is driven by that of the voter turnout, and a scaled measure depending on margin and turnout leads to a robust universality. This is demonstrated using empirical election data from $34$ countries, spanning multiple decades and electoral scales. The deviations from the model predictions and universality indicate possible electoral malpractices. We argue that this universality is a stylized fact indicating the competitive nature of electoral outcomes.

physics.soc-ph

Depolarization of opinions on social networks through random nudges

Polarization of opinions has been empirically noted in many online social network platforms. Traditional models of opinion dynamics, based on statistical physics principles, do not account for the emergence of polarization and echo chambers in online network platforms. A recently introduced opinion dynamics model that incorporates the homophily factor -- the tendency of agents to connect with those holding similar opinions as their own -- captures polarization and echo chamber effects. In this work, we provide a non-intrusive framework for mildly nudging agents in an online community to form random connections. This is shown to lead to significant depolarization of opinions and decrease the echo chamber effects. Remarkably, even a mild nudge is seen to be effective in avoiding polarization, though a large nudge leads to another undesirable effect, namely, radicalization. Further, we obtain the optimal nudge factor to avoid the extremes of polarization and radicalization outcomes.

physics.soc-ph

A novel approach to preventing SARS-CoV-2 transmission in classrooms: An OpenFOAM based CFD Study

The education sector has suffered a catastrophic setback due to ongoing COVID-pandemic, with classrooms being closed indefinitely. The current study aims to solve the existing dilemma by examining COVID transmission inside a classroom and providing long-term sustainable solutions. In this work, a standard 5m x 3m x 5m classroom is considered where 24 students are seated, accompanied by a teacher. A computational fluid dynamics simulation based on OpenFOAM is performed using a Eulerian-Lagrangian framework. Based on the stochastic dose response framework, we have evaluated the infection risk in the classroom for two distinct cases: (i) certain students are infected (ii) the teacher is infected. If the teacher is infected, the probability of infection could reach 100% for certain students. When certain students are infected, the maximum infection risk for a susceptible person reaches 30%. The commonly used cloth mask proves to be ineffective in providing protection against infection transmission reducing the maximum infection probability by approximately 26% only. Another commonly used solution in the form of shields installed on desks have also failed to provide adequate protection against infection reducing the infection risk only by 50%. Furthermore, the shields serves as a source of fomite mode of infection. Screens suspended from the ceiling, which entrap droplets, have been proposed as a novel solution that reduces the infection risk by 90% and 95% compared to the no screen scenario besides being completely devoid of fomite infection mode. As a result of the screens, the class-time can be extended by 55 minutes.

cs.CY

Risk Assessment of COVID Infection by Respiratory Droplets from Cough for Various Ventilation Scenarios Inside an Elevator An OpenFOAM based Computational Fluid Dynamic Analysis

Respiratory droplets exhaled during speaking, coughing or sneezing have been responsible for the spread of the ongoing Covid-19 pandemic. The droplet dynamics depend on the surrounding air velocity, temperature and relative humidity. Droplets evaporate to form aerosols which contain the disease spreading virus. In a confined space like an elevator, the risk of transmission becomes higher when there is an infected person inside the elevator with other individuals. In this work, a numerical study is carried out in a 3D domain resembling an elevator using OpenFoam. Different modes of air circulation are considered inside the elevator and the impact of these air circulations on droplet dynamics is investigated. The scenario of the opening of elevator door and the passenger leaving the elevator has also been considered in order to simulate a real life condition. A pedantic analysis of certain risk assessment factors and remedial measures to be adopted has been performed which include the number of aerosols present in the zone of 0.8 to 1.8 m, the radial spread of the suspended droplets around the mouth of the infected person. From these factors, the safe condition can be understood. The time period up to which the elevator will be risk prone has also been investigated in case the person coughs just before leaving the elevator. After conducting these studies, the quiescent environment has been found out to be the most dangerous whereas ventilation with an exhaust fan is the safest.

physics.flu-dyn