SearcharxivSearch

arXiv subjects

Rohit Jain

Publications and source records attributed to Rohit Jain.

17 recordsLinked to original sources

Practical Online KV Cache Compaction for LLM Agents: An Empirical Study

LLM agents accumulate long trajectories of reasoning steps, tool calls, and environment feedback, making the KV cache a major inference bottleneck. KV cache compaction can reduce this cost, but most prior methods assume a static context where future queries are known or can be approximated offline. Agents instead require online compaction: new information must be compressed before future relevance is known, using proxy queries cheap enough for the inference path. We study online compaction across token eviction (TE) and attention matching (AM), adapting both to compact agent turns and comparing cheap proxy sources such as boundary, repeat-prefill, and delayed future-generation queries. Experiments on BrowseComp-Plus and WideSearch show that immediate compaction often hurts performance, whereas delaying compaction to use the agent's future queries recovers much of the gap. Moreover, TE is often more robust than AM under imperfect proxies. Across models at different scales, TE preserves most of the accuracy while reducing KV cache by 80%, and can improve throughput over the no compaction baseline. These results position proxy-query selection as a core design choice for practical online KV compaction.

cs.CL

Speculate While You Reason: Teaching Agents to Predict Their Next Tool Call via Joint Agent-Speculator RL

Large language model agents often spend substantial wall-clock time waiting for tool call results. Tool-call speculation can hide this latency by predicting and pre-executing an agent's next tool call if the prediction matches the agent's eventual tool call, but existing speculators are typically separate draft models or cached traces that are poorly aligned with the deployed agent's own behavior. We identify this speculator-agent gap and show that the target agent itself is a strong next-call speculator. This points to a simpler design: unifying the agent and speculator within the same model. In this paper, we introduce the self-speculating agent, a single model that both solves tasks in agent mode and predicts its next tool call from partial trajectories in speculator mode, fully reusing prefix KV cache. To enable this dual-mode agent without degrading performance, we propose a joint agent-speculator reinforcement learning method, which derives speculation targets from the agent's own rollouts and alternates agent and speculator updates. Across agentic search QA and conversational tool-use agentic tasks, our method improves average next tool-call Hit@1 from 44.1 to 61.2 for Qwen3-4B and from 48.9 to 66.3 for Qwen3.5-4B, while preserving agent task success.

cs.AI

Agentic Reinforcement Learning for Real-World Code Repair

We tackle the challenge of training reliable code-fixing agents in real repositories, where complex builds and shifting dependencies make evaluation unstable. We developed a verifiable pipeline with success defined as post-fix build validation and improved reproducibility across ~1K real issues by pinning dependencies and disabling automatic upgrades. Building on this, we introduced a scalable simplified pipeline for large-scale reinforcement learning (RL). Using this setup, we supervised fine-tuned Qwen3-32B in the full pipeline and applied RL on top of the SFT model in the simplified environment. The SFT model distilled from GPT-4.1 trajectories performs on par while being 56x smaller, and RL added 7-20% absolute gains under matched train-test conditions. "Thinking mode" was on par or worse in our experiments. Both SFT and RL models failed to generalize across environments, highlighting the importance of matching train-test environments for building reliable real-world code-fixing agents.

cs.LG

Planner-R1: Reward Shaping Enables Efficient Agentic RL with Smaller LLMs

We investigated Agentic RL with large language models on the \textsc{TravelPlanner} benchmark. Our approach, \textsc{Planner-R1}, achieved a \textbf{56.9\%} final-pass rate with only 180 training queries, a $2.7\times$ improvement over GPT-5's $21.2\%$ baseline and the strongest agentic result on the public leaderboard. A central finding was that smaller models (8B) were highly responsive to reward shaping: with dense process-level signals, they reached competitive performance while being $3.5\times$ more compute-efficient and $1.5\times$ more memory-efficient than 32B models. Larger models were more robust under sparse rewards but exhibited smaller relative gains from shaping and higher variance across runs. While curriculum learning offered no significant benefit, shaped rewards consistently amplified learning dynamics, making 8B models the most efficient setting for agentic RL. Crucially, these gains did not come at the cost of overfitting: fine-tuned models mostly maintained or exceeded baseline performance on out-of-domain tasks, including \textsc{Multi-IF}, \textsc{NaturalPlan}, and $\tau$-\textsc{Bench}. These results establish reward shaping as a decisive lever for scaling agentic RL, highlight the competitive strength of smaller models, and demonstrate that efficiency can be achieved without sacrificing generalization.

cs.AI

SOTASTREAM: A Streaming Approach to Machine Translation Training

Many machine translation toolkits make use of a data preparation step wherein raw data is transformed into a tensor format that can be used directly by the trainer. This preparation step is increasingly at odds with modern research and development practices because this process produces a static, unchangeable version of the training data, making common training-time needs difficult (e.g., subword sampling), time-consuming (preprocessing with large data can take days), expensive (e.g., disk space), and cumbersome (managing experiment combinatorics). We propose an alternative approach that separates the generation of data from the consumption of that data. In this approach, there is no separate pre-processing step; data generation produces an infinite stream of permutations of the raw training data, which the trainer tensorizes and batches as it is consumed. Additionally, this data stream can be manipulated by a set of user-definable operators that provide on-the-fly modifications, such as data normalization, augmentation or filtering. We release an open-source toolkit, SOTASTREAM, that implements this approach: https://github.com/marian-nmt/sotastream. We show that it cuts training time, adds flexibility, reduces experiment management complexity, and reduces disk space, all without affecting the accuracy of the trained models.

cs.CL

Micro-rheology of a particle in a nonlinear bath: Stochastic Prandtl-Tomlinson model

The motion of Brownian particles in nonlinear baths, such as, e.g., viscoelastic fluids, is of great interest. We theoretically study a simple model for such bath, where two particles are coupled via a sinusoidal potential. This model, which is an extension of the famous Prandtl Tomlinson model, has been found to reproduce some aspects of recent experiments, such as shear-thinning and position oscillations [J. Chem. Phys. {\bf 154}, 184904 (2021)]. Analyzing this model in detail, we show that the predicted behavior of position oscillations agrees qualitatively with experimentally observed trends; (i) oscillations appear only in a certain regime of velocity and trap stiffness of the confining potential, and (ii), the amplitude and frequency of oscillations increase with driving velocity, the latter in a linear fashion. Increasing the potential barrier height of the model yields a rupture transition as a function of driving velocity, where the system abruptly changes from a mildly driven state to a strongly driven state. The frequency of oscillations scales as $(v_0-v_0^*)^{1/2}$ near the rupture velocity $v_0^*$, found for infinite trap stiffness. Investigating the (micro-)viscosity for different parameter ranges, we note that position oscillations leave their signature by an additional (mild) plateau in the flow curves, suggesting that oscillations influence the micro-viscosity. For a time-modulated driving, the mean friction force of the driven particle shows a pronounced resonance behavior, i.e, it changes strongly as a function of driving frequency. The model has two known limits: For infinite trap stiffness, it can be mapped to diffusion in a tilted periodic potential. For infinite bath friction, the original Prandtl Tomlinson model is recovered. We find that the flow curve of the model (roughly) crosses over between these two limiting cases.

cond-mat.soft

Two step micro-rheological behavior in a viscoelastic fluid

We perform micro-rheological experiments with a colloidal bead driven through a viscoelastic worm-like micellar fluid and observe two distinctive shear thinning regimes, each of them displaying a Newtonian-like plateau. The shear thinning behavior at larger velocities is in qualitative agreement with macroscopic rheological experiments. The second process, observed at Weissenberg numbers as small as a few percent, appears to have no analog in macro rheological findings. A simple model introduced earlier captures the observed behavior, and implies that the two shear thinning processes correspond to two different length scales in the fluid. This model also reproduces oscillations which have been observed in this system previously. While the system under macro-shear seems to be near equilibrium for shear rates in the regime of the intermediate Newtonian-like plateau, the one under micro-shear is thus still far from it. The analysis suggests the existence of a length scale of a few micrometres, the nature of which remains elusive.

cond-mat.soft

Regularity results for a penalized boundary obstacle problem

In this paper we are concerned with a two-penalty boundary obstacle problem of interest in thermics, fluid dynamics and electricity. Specifically, we prove existence, uniqueness and optimal regularity of the solutions, and we establish structural properties of the free boundary.

math.AP

Lipper: Synthesizing Thy Speech using Multi-View Lipreading

Lipreading has a lot of potential applications such as in the domain of surveillance and video conferencing. Despite this, most of the work in building lipreading systems has been limited to classifying silent videos into classes representing text phrases. However, there are multiple problems associated with making lipreading a text-based classification task like its dependence on a particular language and vocabulary mapping. Thus, in this paper we propose a multi-view lipreading to audio system, namely Lipper, which models it as a regression task. The model takes silent videos as input and produces speech as the output. With multi-view silent videos, we observe an improvement over single-view speech reconstruction results. We show this by presenting an exhaustive set of experiments for speaker-dependent, out-of-vocabulary and speaker-independent settings. Further, we compare the delay values of Lipper with other speechreading systems in order to show the real-time nature of audio produced. We also perform a user study for the audios produced in order to understand the level of comprehensibility of audios produced using Lipper.

eess.AS

Supersymmetric Schrödinger Operators with Applications to Morse Theory

In 1981 Edward Witten proved a remarkable result where he derived the classical Morse Inequalities using ideas from Supersymmetric (SUSY) Quantum Mechanics. In this regard, one has an example where a Physical Theory has something to say about the underlying Mathematical Structure. The objective of this essay is to understand this classical result from the perspective of Schrödinger Operators. The essay will be divided in four parts. The first part will revisit the classical theory of Morse and recall some of its fundamental results. In the second part, we consider the underlying physical motivations by considering Quantum Mechanics and 0-Dimensional SUSY. The third part will focus on Schrödinger Operators and highlight some of their basic properties. Finally in the last section we will put everything together and present Witten's proof of the Morse Inequalities. Even here we must be completely honest and say that we only follow Witten in proving the Weak Morse Inequalities. The Strong Morse Inequalities are derived using related ideas from Supersymmetry, but mention is made of the techniques used by Witten to get at the Strong Morse Inequalities.

math.DG

The Calabi Conjecture

In this essay we aim to explore the Geometric aspects of the Calabi Conjecture and highlight the techniques of nonlinear Elliptic PDE theory used by S.T. Yau [SY] in obtaining a solution to the problem. Yau proves the existence of a Geometric structure using differential equations, giving importance to the idea that deep insights into geometry can be obtained by studying solutions of such equations. Yau's proof of the existence of a specific class of metrics have found a natural interpretation in recent developments in Theoretical Physics most notably in the formulation of String Theory. We will also attempt to explore the importance of a special case of Yau's solution known as Calabi-Yau Manifolds in the context of holonomy.

math.DG

Small Boxes Big Data: A Deep Learning Approach to Optimize Variable Sized Bin Packing

Bin Packing problems have been widely studied because of their broad applications in different domains. Known as a set of NP-hard problems, they have different vari- ations and many heuristics have been proposed for obtaining approximate solutions. Specifically, for the 1D variable sized bin packing problem, the two key sets of optimization heuristics are the bin assignment and the bin allocation. Usually the performance of a single static optimization heuristic can not beat that of a dynamic one which is tailored for each bin packing instance. Building such an adaptive system requires modeling the relationship between bin features and packing perform profiles. The primary drawbacks of traditional AI machine learnings for this task are the natural limitations of feature engineering, such as the curse of dimensionality and feature selection quality. We introduce a deep learning approach to overcome the drawbacks by applying a large training data set, auto feature selection and fast, accurate labeling. We show in this paper how to build such a system by both theoretical formulation and engineering practices. Our prediction system achieves up to 89% training accuracy and 72% validation accuracy to select the best heuristic that can generate a better quality bin packing solution.

cs.LG

Uniform estimates for the Penalized Boundary Obstacle Problem

In this paper, motivated by a problem arising in random homogenization theory, we initiate the study of uniform estimates for the fractional penalized obstacle problem, $ Δ^{s}u^ε = β_ε (u^ε)$. In particular we consider the penalized boundary obstacle problem, $s = \frac{1}{2}$, and obtain sharp estimates for the solution independent of the penalizing parameter $ε$. This is a generalization of a result due to H. Brezis and D. Kinderlehrer.

math.AP

The Fully Nonlinear Stochastic Impulse Control Problem

In this paper, motivated by a problem in stochastic impulse control theory, we aim to study solutions to a free boundary problem of obstacle-type. We obtain sharp estimates for the solution using nonlinear tools which are independent of the modulus of semi-convexity of the obstacle. This allows us to state a general estimate for solutions to free boundary problems of obstacle-type admitting obstacles with a general modulus of semi-convexity. As an application we prove sharp estimates for the solution to a fully nonlinear stochastic impulse control problem.

math.AP

The Classical Stochastic Impulse Control Problem

In this paper we study regularity estimates for the solution to an obstacle problem arising in stochastic impulse control theory. We prove using elementary methods the known sharp $C_{loc}^{1,1}$ estimate for the solution. The new proof is also easily generalizable to stochastic impulse control problems with fully noninear operators. Moreover we obtain new regularity estimates for the free boundary in the classical case.

math.AP

Order of Magnitude of Fourier Coefficients for Almost Periodic Functions

We provide an introduction of some basic facts of uniformly almost periodic functions, such as Fourier series representations. A result is then proved about Fourier coefficients which is a generalization of the purely periodic case. We then provide an application of our estimate to the Riemann-Zeta Function.

math.CA

Photogrammetric Measurements of a 12-metre Preloaded Parabolic Dish Antenna

A 12-metre Preloaded Parabolic Dish antenna, in which the backup structure is formed by preloading its radial and circumferential members, has been designed, built and commissioned by the Raman Research Institute, Bangalore. This paper reports the first-ever photogrammetric measurements of gravity-induced deformation in the primary reflector of an antenna built using this novel concept of preloading the backup structure. Our experience will be of relevance to radio astronomy and deep space network applications that require building lightweight and economical steerable parabolic antennas.

astro-ph.IM