arXiv Science⌕ Search

arXiv subjects

Ankur Gupta

Publications and source records attributed to Ankur Gupta.

At least 19 recordsLinked to original sources

Failure Broadens, Success Sharpens: Continual Adaptation of Tool-Use Agents Across Diverse Tasks with Dual-Polarity Memory

Large language model agents can self-improve over time by utilizing procedural memory derived from prior task trajectories, yet the distinct utilities of memories derived from local successes and failures remain underexplored. This work studies this question in a realistic setting with heterogeneous streams of multi-domain tool-use tasks and various environment constraints common in real-world scenarios. We develop \emph{Dual-Polarity Memory with Periodic Maintenance} (DualPM), a simple, retrieval-free memory workflow characterized by (1) customizable reflection and procedural memory generation from both local successes and failures within each trajectory, and (2) periodic memory consolidation over long task streams under a given memory capacity, preventing memory explosion. Online prequential evaluation with fine-grained metrics reveals that failure memory more strongly broadens coverage, success memory better streamlines execution, while combining both polarities effectively integrates both benefits. Further studies demonstrate that DualPM enables cross-domain memory generalization and continual memory adaptation, while external evaluation on EvoMemBench reveals the portability and effectiveness of DualPM as a general long-term procedural memory method.

cs.CL↗

Switchcraft: AI Model Router for Agentic Tool Calling

Agentic AI systems that invoke external tools are powerful but costly, leading developers to default to large models and overspend inference budgets. Existing model routers target chat responses or end-task success, not the correctness of the individual tool calls on which agent tasks depend; we present Switchcraft, the first (to the best of our knowledge) model router optimized for strict tool-call correctness in agentic workloads. We construct an evaluation framework on six function-calling benchmarks, holding one out entirely, and fine-tune a calibrated DistilBERT-based classifier, deployed inline under a latency budget, to select the lowest-cost model subject to correctness or abstain when none is likely to answer correctly. Switchcraft reaches 78.3% answer accuracy (86.4% when correct abstentions are credited) at 59% lower cost than the best individual model (75.6%), saving over $3,800 per million queries, and outperforms kNN, MIRT, heuristic, and random routers. On the held-out benchmark, it matches or exceeds every individual model at 5--7X lower cost than the strongest ones. We find two counter-intuitive results: larger models do not consistently outperform smaller ones on tool-use tasks, and nominally cheaper models can incur higher total cost due to token-intensive output.

cs.AI↗

The Prime Wavelet Tree: Compressing the Carmichael Numbers

We present two number-theoretic compression techniques. The first is \textit{local}, and compresses individual numbers. The second is \textit{global}, and compresses the entire set of numbers using a \textit{prime wavelet tree}, which is a data structure of independent interest. Our techniques apply to any set of numbers satisfying a Korselt-like criterion. We demonstrate our compression techniques using the recently completed tabulation of all $308{,}279{,}939$ Carmichael numbers less than $10^{24}$ that occupies $18.4$ gigabytes as text. When combined with standard compression techniques and a heuristic choice of divisors, the resulting file is $588.7$ megabytes ($31.2$ times smaller than the text file). The initial $80$-bit numbers now use about $15.3$ bits.

math.NT↗

AI-assisted analytical theory in soft matter and multiphysics: new results and lessons from diffusiophoresis and bipolar membranes

We present a framework to advance analytical theory in the area of soft matter and multiphysics using assistance from AI. The framework emphasizes (i) setting "honesty rules", (ii) focusing on a few key papers that are used to formulate a problem of interest, (iii) specifying checks a priori, (iv) using only one task per session and keeping a running log of tasks, checks, corrections, and sessions so that a mistake is not propagated through a project, and (v) ensuring all decisions are approved by humans while AI focuses primarily on execution. The framework is applied to two distinct problems to create new knowledge, including (i) diffusiophoresis of a spherical particle in the presence of an arbitrary number of electrolytes at arbitrary Debye lengths, and (ii) analytical description of I-V curves, including overlimiting current, in bipolar membranes without including the water dissociation kinetics. Both of these problems are advanced analyses and would each typically require several months to a year's worth of effort, but were solved in a matter of a few days. However, the increased efficiency should be cautiously navigated to avoid cognitive offloading and ensure that AI-assisted results are used to extract human-readable insights instead of just reporting a new mathematical formula. The usage of AI is transparently presented. Finally, we also share brief thoughts on how to integrate AI tools in theoretical research during graduate education.

physics.chem-ph↗

Shape-dependence of electrophoretic mobility: an AI-assisted derivation

The electrophoretic mobility of a spherical particle is well understood, yet how particle shape modifies this mobility at arbitrary Debye length remains an open question. Here, we compute the electrophoretic mobility of a nearly spherical particle whose surface is described by $r_s(θ) = a[1 + \varepsilon f(θ)]$, with $\varepsilon \ll 1$, at arbitrary ratio of particle size to Debye length $κa$. Using a volume-integral formulation combined with domain perturbation techniques, we derive a universal shape correction coefficient $σ_2(κa)$ such that the mobility takes the compact form $C_\parallel = f_H(κa)\,[1 + \varepsilon\,c_2\,σ_2(κa)]$, where $f_H$ is Henry's function. We show that $σ_2$ interpolates between $+1/5$ in the thick-double-layer (Hückel) limit, governed solely by the Stokes drag correction, and zero in the thin-double-layer (Smoluchowski) limit, recovering the classical shape-independence theorem. The perturbation theory agrees quantitatively with exact spheroid solutions for both prolate and oblate orientations. A key finding is that only the $P_2$ (quadrupolar) component of the particle shape affects the mobility at leading order; higher harmonics are electrophoretically silent due to angular selection rules governing the coupling between the dipolar applied field and the shape perturbation. The results in this paper were generated using Claude Code (Anthropic, Opus 4.6 model) with supervision from the authors. Our thoughts on the usage of AI for theoretical research, along with representative prompts from the development process, are provided in the manuscript and Appendix.

physics.flu-dyn↗

A class and home problem on electrolyte transport: constant electric field implies electroneutrality, but electroneutrality does not imply a constant electric field

We present a class and home problem in graduate transport phenomena and electrochemical engineering that clarifies a common misconception: electroneutrality implies the electric field is constant. Starting with one-dimensional Poisson--Nernst--Planck equations for a silver electroplating cell, students obtain concentration and potential profiles. A companion home problem with added background electrolyte introduces a new dimensionless ratio and admits a closed-form solution. Students conclude that electroneutrality is necessary but not sufficient for a constant electric field.

physics.chem-ph↗

Rethinking Balance Sheets: A Poisson-Nernst-Planck Based Approach for Modeling Concentration and Flux Profiles Inside an Electrochemical Cell

Electrochemical cells serve as a building block for producing and storing electrical energy from chemical reactions. The analysis of ion transport in these systems forms the foundation for understanding more complex electrochemical systems that are becoming increasingly present in the broader societal energy infrastructure. From a pedagogical perspective, the ``balance sheets" introduced in Chapter 4 of Electrochemical Methods: Fundamentals and Applications by Alan J. Bard, Larry R. Faulkner and Henry S. White (hereafter referred to as BFW) provides a first-pass approach to analyze ion transport in electrochemical cells. However, the balance sheet approach lacks first-principles justifications from the underlying equations that describe the transport processes in electrochemical cells. In this work, we compare a first-principles approach via the Poisson-Nernst-Planck equations to describe ion transport in electrochemical cells to that of the balance sheet approach. By re-working the examples presented in BFW, we illustrate that the balance sheet approach is only valid in limited scenarios. Furthermore, we show that the PNP equations provide a more physical route to analyze ion transport in electrochemical systems. We hope the approach outlined here will be adopted by electrochemical engineering researchers and instructors.

physics.chem-ph↗

Effect of Nanopore Wall Geometry on Electrical Double-Layer Charging Dynamics

Confinement strongly influences electrochemical systems, where structural control has enabled advances in nanofluidics, sensing, and energy storage. In electric double-layer capacitors (EDLCs), or supercapacitors, energy density is governed by the accessible surface area of porous electrodes. Continuum models, built on first-principles transport equations, have provided critical insight into electrolyte dynamics under confinement but have largely focused on pores with straight walls. In such geometries, a fundamental trade-off emerges: wider pores charge faster but store less energy, while narrower pores store more charge but charge slowly. Here, we apply perturbation analysis to the Poisson-Nernst-Planck (PNP) equations for a single pore of gradually varying radius, focusing on the small potential and slender aspect ratio regime. Our analysis reveals that sloped pore walls induce an additional ionic flux, enabling simultaneous acceleration of charging and enhancement of charge storage. The theoretical predictions closely agree with direct numerical simulations while reducing computational cost by 5-6 orders of magnitude. We further propose a modified effective circuit representation that captures geometric variation along the pore and demonstrate how the framework can be integrated into pore-network models. This work establishes a scalable approach to link pore geometry with double-layer dynamics and offers new design principles for optimizing supercapacitor performance.

physics.chem-ph↗

Imperfect Turing Patterns: Diffusiophoretic Assembly of Hard Spheres via Reaction-Diffusion Instabilities

Turing patterns are stationary, wave-like structures that emerge from the nonequilibrium assembly of reactive and diffusive components. While they are foundational in biophysics, their classical formulation relies on a single characteristic length scale that balances reaction and diffusion, making them overly simplistic for describing biological patterns, which often exhibit multi-scale structures, grain-like textures, and inherent imperfections. Here, we integrate diffusiophoretically-assisted assembly of finite-sized cells, driven by a background chemical gradient in a Turing pattern, while also incorporating intercellular interactions. This framework introduces key control parameters, such as the Péclet number, cell size distribution, and intercellular interactions, enabling us to reproduce strikingly similar structural features observed in natural patterns. We report imperfections, including spatial variations in pattern thickness, packing limits, and pattern breakups. Our model not only deepens our understanding but also opens a new line of inquiry into imperfect Turing patterns that deviate from the classical formulation in significant ways.

cond-mat.soft↗

Continual Learning for Singing Voice Separation with Human in the Loop Adaptation

Deep learning-based works for singing voice separation have performed exceptionally well in the recent past. However, most of these works do not focus on allowing users to interact with the model to improve performance. This can be crucial when deploying the model in real-world scenarios where music tracks can vary from the original training data in both genre and instruments. In this paper, we present a deep learning-based interactive continual learning framework for singing voice separation that allows users to fine-tune the vocal separation model to conform it to new target songs. We use a U-Net-based base model architecture that produces a mask for separating vocals from the spectrogram, followed by a human-in-the-loop task where the user provides feedback by marking a few false positives, i.e., regions in the extracted vocals that should have been silence. We propose two continual learning algorithms. Experiments substantiate the improvement in singing voice separation performance by the proposed algorithms over the base model in intra-dataset and inter-dataset settings.

cs.SD↗

Characterizing Deep Research: A Benchmark and Formal Definition

Information tasks such as writing surveys or analytical reports require complex search and reasoning, and have recently been grouped under the umbrella of \textit{deep research} -- a term also adopted by recent models targeting these capabilities. Despite growing interest, the scope of the deep research task remains underdefined and its distinction from other reasoning-intensive problems is poorly understood. In this paper, we propose a formal characterization of the deep research (DR) task and introduce a benchmark to evaluate the performance of DR systems. We argue that the core defining feature of deep research is not the production of lengthy report-style outputs, but rather the high fan-out over concepts required during the search process, i.e., broad and reasoning-intensive exploration. To enable objective evaluation, we define DR using an intermediate output representation that encodes key claims uncovered during search-separating the reasoning challenge from surface-level report generation. Based on this formulation, we propose a diverse, challenging benchmark LiveDRBench with 100 challenging tasks over scientific topics (e.g., datasets, materials discovery, prior art search) and public interest events (e.g., flight incidents, movie awards). Across state-of-the-art DR systems, F1 score ranges between 0.02 and 0.72 for any sub-category. OpenAI's model performs the best with an overall F1 score of 0.55. Analysis of reasoning traces reveals the distribution over the number of referenced sources, branching, and backtracking events executed by current DR systems, motivating future directions for improving their search mechanisms and grounding capabilities. The benchmark is available at https://github.com/microsoft/LiveDRBench.

cs.CL↗

pH-Dependent Zeta Potential Induces Diffusiophoretic Focusing in an Acid-Base Reaction

Diffusiophoresis of charged particles in the presence of electrolytes has been extensively studied in the literature. However, in these setups, particles typically move in a single direction, either up or down the electrolyte gradient. Here, we theoretically investigate the conditions under which a particle can reverse its diffusiophoretic direction within the same setup, leading to the formation of a focusing band under steady-state concentration gradients. Using multi-ion diffusiophoresis calculations, we simulate particle transport in an acid-based reaction system where salt is added alongside the acid. For a range of salt concentrations, particles focus within the channel. Our analysis reveals that a pH-dependent zeta potential is necessary for this focusing to occur, and determines where the particles focus, i.e., on or off the acid-base reaction front. We report qualitative agreement with prior experimental observations and derive analytical conditions governing particle focusing, highlighting the delicate balance between concentration gradients and zeta potential variations. The work elucidates the crucial physics of pH-dependent zeta potential and opens new avenues for exploring diffusiophoresis in acid-base systems, with implications for microfluidic design and biophysical transport processes.

cond-mat.soft↗

Magnetically Coupled Circuits to Capture Dynamics of Ionic Transport in Nanopores

Ionic transport within charged nanopores is commonly represented by resistor-capacitor transmission line circuits, where charging electrical double layers are modeled as capacitors, and the resistance to ionic current is modeled as resistors. However, these circuits fail to account for oscillations observed in experimental Nyquist plots of impedance, which are attributed ad hoc to effects such as complex porous structures or chemical reactions. Here, we show that diffusivity asymmetry between ions in confinement - overlooked in previous studies - produces Nyquist plots with two turns. Additionally, we demonstrate that ionic transport is more accurately described by magnetically coupled inductor-resistor circuits than by a simple resistor-capacitor circuit. Our results show that an impedance response of ionic transport in nanopores for arbitrary Debye lengths is better captured by two Warburg elements in parallel than a single Warburg element.

physics.chem-ph↗

Building English ASR model with regional language support

In this paper, we present a novel approach to developing an English Automatic Speech Recognition (ASR) system that can effectively handle Hindi queries, without compromising its performance on English. We propose a novel acoustic model (AM), referred to as SplitHead with Attention (SHA) model, features shared hidden layers across languages and language-specific projection layers combined via a self-attention mechanism. This mechanism estimates the weight for each language based on input data and weighs the corresponding language-specific projection layers accordingly. Additionally, we propose a language modeling approach that interpolates n-gram models from both English and transliterated Hindi text corpora. Our results demonstrate the effectiveness of our approach, with a 69.3% and 5.7% relative reduction in word error rate on Hindi and English test sets respectively when compared to a monolingual English model.

eess.AS↗

CAVE-Net: Classifying Abnormalities in Video Capsule Endoscopy

Accurate classification of medical images is critical for detecting abnormalities in the gastrointestinal tract, a domain where misclassification can significantly impact patient outcomes. We propose an ensemble-based approach to improve diagnostic accuracy in analyzing complex image datasets. Using a Convolutional Block Attention Module along with a Deep Neural Network, we leverage the unique feature extraction capabilities of each model to enhance the overall accuracy. The classification models, such as Random Forest, XGBoost, Support Vector Machine and K-Nearest Neighbors are introduced to further diversify the predictive power of proposed ensemble. By using these methods, the proposed framework, CAVE-Net, provides robust feature discrimination and improved classification results. Experimental evaluations demonstrate that the CAVE-Net achieves high accuracy and robustness across challenging and imbalanced classes, showing significant promise for broader applications in computer vision tasks.

cs.CV↗

A Reaction-Diffusion-Chemotaxis Model for Human Population Dynamics over Fractal Terrains

Advection of entities induced by gradients in attractant concentration fields is observed via diffusiophoresis in colloids and via chemotaxis in microorganisms. Mathematically, both diffusiophoresis and chemotaxis follow similar mathematical descriptions and display a variety of interesting behaviors that are not observed through other transport mechanisms. However, the application of such a mathematical framework has largely been restricted to soft matter research. In this article, we argue that this framework is more general and can be expanded to study human population dynamics. We assert that human populations also migrate chemotactically, but by sensing concentrations gradients in attractants such as resource availability, social connections, and safety indices. Therefore, we extend the Fisher-KPP reaction-diffusion model, foundational to human population dynamics, to incorporate chemotactic advection. Furthermore, we introduce a fractal terrain to better mimic the human dispersal phenomena. Simulations demonstrate that, by including chemotaxis of a population toward attractants which are dispersed heterogenously over fractal terrains, population hotspots can appear from from initially uniformly dispersed states whereas Fisher-KPP without chemotaxis predicts a persistent tendency toward population uniformity. Varying the chemotactic migration yields fine control over inter- or intra-population segregation and thus the population growth rates may be substantially altered by considering the population-attractant coupling. This framework may be useful for characterizing historical population separations, and furthermore is particularly pertinent for predicting emergence of new population hotspots as climate change is expected to cause large-scale human displacement, which may be dictated by chemotactic movement of humans due to evolving concentration gradients in safety indices.

q-bio.PE↗

Universal Translational and Rotational Mobility Expressions of Phoretic and Self-phoretic Particles with Arbitrary Interaction Potentials

The mobility of externally-driven phoretic propulsion of particles is evaluated by simultaneously solving the solute conservation equation, interaction potential equation, and the modified Stokes equation. While accurate, this approach is cumbersome, especially when the interaction potential decays slowly compared to the particle size. In contrast to external phoresis, the motion of self-phoretic particles is typically estimated by relating the translation and rotation velocities with the local slip velocity. While this approach is convenient and thus widely used, it is only valid when the interaction decay length is significantly smaller than the particle size. Here, by taking inspiration from Brady J. Fluid Mech. (2021), vol. 922, A10, which combines the benefits of two approaches, we reproduce their unified mobility expressions with arbitrary interaction potentials and show that these expressions can conveniently recover the well-known mobility relationships of external electrophoresis and diffusiophoresis for arbitrary double-layer thickness. Additionally, we show that for a spherical microswimmer, the derived expressions relax to the slip velocity calculations in the limit of the thin interaction lengthscales. We also employ the derived mobility expressions to calculate the velocities of an autophoretic Janus particle. We find that there is significant dampening in the translation velocity even when the interaction length is an order of magnitude larger than the particle size. Finally, we study the motion of a catalytically self-propelled particle, while it also propels due to external concentration gradients, and demonstrate how the two propulsion modes compete with each other.

physics.flu-dyn↗

A universal approximation for conductance blockade in thin nanopore membranes

Nanopore-based sensing platforms have transformed single-molecule detection and analysis. The foundation of nanopore translocation experiments lies in conductance measurements, yet existing models, which are largely phenomenological, are inaccurate in critical experimental conditions such as thin and tightly fitting pores. Of the two components of the conductance blockade, channel and access resistance, the access resistance is poorly modeled. We present a comprehensive investigation into the access resistance and associated conductance blockade in thin nanopore membranes. By combining a first-principles approach, multi-scale modeling, and experimental validation, we propose a unified theoretical modeling framework. The analytical model derived as a result surpasses current approaches across a broad parameter range. Beyond advancing theoretical understanding, our framework's versatility enables analyte size inference and predictive insights into conductance blockade behavior. Our results will facilitate the design and optimization of nanopore devices for diverse applications, including nanopore base calling and data storage.

physics.bio-ph↗