SearcharxivSearch

arXiv subjects

Emir Haleva

Publications and source records attributed to Emir Haleva.

11 recordsLinked to original sources

Joint Encoding of KV-Cache Blocks for Scalable LLM Serving

Modern large language models (LLMs) drive interactive AI systems but are bottlenecked by the memory-heavy growth of key-value (KV) caches, which limits real-time throughput under concurrent loads. Existing KV-cache compression methods rely on rigid heuristics, disrupt tensor layouts, or require specialized compute, hindering scalability and deployment. We propose joint encoding of KV-cache blocks, which fuses similar blocks across requests and input chunks into shared representations while preserving standard cache structure. This alleviates the KV-cache memory bottleneck, supporting high-concurrency serving without specialized hardware. Theoretically, we analyze the rate-distortion tradeoff of fused cache blocks under a Poisson process model. Empirically, our method achieves up to 4.38 $\times$ KV-cache compression with negligible accuracy loss across diverse LLMs and benchmarks, outperforming recent structured and adaptive compression baselines. In real LLM serving, joint encoding improves the token throughput by $\sim$40\% on a single-machine vLLM benchmark, demonstrating substantial gains in inference throughput. Code is available at https://github.com/sef1/kv_fast_fusion kv_joint_encoding.

cs.LG

Linear Log-Normal Attention with Unbiased Concentration

Transformer models have achieved remarkable results in a wide range of applications. However, their scalability is hampered by the quadratic time and memory complexity of the self-attention mechanism concerning the sequence length. This limitation poses a substantial obstacle when dealing with long documents or high-resolution images. In this work, we study the self-attention mechanism by analyzing the distribution of the attention matrix and its concentration ability. Furthermore, we propose instruments to measure these quantities and introduce a novel self-attention mechanism, Linear Log-Normal Attention, designed to emulate the distribution and concentration behavior of the original self-attention. Our experimental results on popular natural language benchmarks reveal that our proposed Linear Log-Normal Attention outperforms other linearized attention alternatives, offering a promising avenue for enhancing the scalability of transformer models.

cs.LG

Rotation Invariant Quantization for Model Compression

Post-training Neural Network (NN) model compression is an attractive approach for deploying large, memory-consuming models on devices with limited memory resources. In this study, we investigate the rate-distortion tradeoff for NN model compression. First, we suggest a Rotation-Invariant Quantization (RIQ) technique that utilizes a single parameter to quantize the entire NN model, yielding a different rate at each layer, i.e., mixed-precision quantization. Then, we prove that our rotation-invariant approach is optimal in terms of compression. We rigorously evaluate RIQ and demonstrate its capabilities on various models and tasks. For example, RIQ facilitates $\times 19.4$ and $\times 52.9$ compression ratios on pre-trained VGG dense and pruned models, respectively, with $<0.4\%$ accuracy degradation. Code is available in \href{https://github.com/ehaleva/RIQ}{github.com/ehaleva/RIQ}.

cs.LG

Law of corresponding states for osmotic swelling of vesicles

As solute molecules permeate into a vesicle due to a concentration difference across its membrane, the vesicle swells through osmosis. The swelling can be divided into two stages: (a) an "ironing" stage, where the volume-to-area ratio of the vesicle increases without a significant change in its area; (b) a stretching stage, where the vesicle grows while remaining essentially spherical, until it ruptures. We show that the crossover between these two stages can be represented as a broadened continuous phase transition. Consequently, the swelling curves for different vesicles and different permeating solutes can be rescaled into a single, theoretically predicted, universal curve. Such a data collapse is demonstrated for giant unilamellar POPC vesicles, osmotically swollen due to the permeation of urea, glycerol, or ethylene glycol. We thereby gain a sensitive measurement of the solutes' membrane permeability coefficients, finding a concentration-independent coefficient for urea, while those of glycerol and ethylene glycol are found to increase with solute concentration. In addition, we use the width of the transition, as extracted from the data collapse, to infer the number of independent bending modes that affect the thermodynamics of the vesicle in the transition region.

cond-mat.soft

Vesicles as osmotically stressed capsules

Vesicular capsules are used to carry biochemicals in biology and liposome technology. Being water-permeable with differing interior and exterior compositions, they are necessarily under osmotic stress. Recent studies have underlined the different thermodynamic behavior of osmotically stressed vesicles in comparison to vesicles subjected to a hydrostatic pressure as studied earlier. Through their different behavior one gains access to the parameters affecting the osmotic swelling of vesicles, such as the membrane-permeability coefficients of solute molecules.

cond-mat.soft

Permeability of phospholipid membrane for small polar molecules determined from osmotic swelling of giant phospholipid vesicles

A method for determining permeability of phospholipid bilayer based on the osmotic swelling of micrometer-sized giant unilamellar vesicles (GUVs) is presented as an alternative to the two established techniques, dynamic light scattering on liposome suspension, and electrical measurements on planar lipid bilayers. In the described technique, an individual GUV is transferred using a micropipette from a sucrose/glucose solution into an isomolar solution containing the solute under investigation. Throughout the experiment, vesicle cross-section is monitored and recorded using a digital camera mounted on a phase-contrast microscope. Using a least-squares procedure for circle fitting, vesicle radius R is computed from the recorded images of vesicle cross-section. Two methods for determining membrane permeability from the obtained R(t) dependence are described: the first one uses the slope of R(t) for a spherical GUV, and the second one the R(t) dependence around the transition point at which a flaccid vesicle transforms into a spherical one. We demonstrate that both methods give consistent estimates for membrane permeability.

physics.bio-ph

Swelling of particle-encapsulating random manifolds

We study the statistical mechanics of a closed random manifold of fixed area and fluctuating volume, encapsulating a fixed number of noninteracting particles. Scaling analysis yields a unified description of such swollen manifolds, according to which the mean volume gradually increases with particle number, following a single scaling law. This is markedly different from the swelling under fixed pressure difference, where certain models exhibit criticality. We thereby indicate when the swelling due to encapsulated particles is thermodynamically inequivalent to that caused by fixed pressure. The general predictions are supported by Monte Carlo simulations of two particle-encapsulating model systems -- a two-dimensional self-avoiding ring and a three-dimensional self-avoiding fluid vesicle. In the former the particle-induced swelling is thermodynamically equivalent to the pressure-induced one whereas in the latter it is not.

cond-mat.soft

Critical swelling of particle-encapsulating vesicles

We consider a ubiquitous scenario where a fluctuating, semipermeable vesicle is embedded in solution while enclosing a fixed number of solute particles. The swelling with increasing number of particles or decreasing concentration of the outer solution exhibits a continuous phase transition from a fluctuating state to the maximum-volume configuration, whereupon appreciable pressure difference and surface tension build up. This criticality is unique to particle-encapsulating vesicles, whose volume and inner pressure both fluctuate. It implies a universal swelling behavior of such vesicles as they approach their limiting volume and osmotic lysis.

cond-mat.soft

Swelling of two-dimensional polymer rings by trapped particles

The mean area of a two-dimensional Gaussian ring of $N$ monomers is known to diverge when the ring is subject to a critical pressure differential, $p_c \sim N^{-1}$. In a recent publication [Eur. Phys. J. E 19, 461 (2006)] we have shown that for an inextensible freely jointed ring this divergence turns into a second-order transition from a crumpled state, where the mean area scales as $ \sim N$, to a smooth state with $ \sim N^2$. In the current work we extend these two models to the case where the swelling of the ring is caused by trapped ideal-gas particles. The Gaussian model is solved exactly, and the freely jointed one is treated using a Flory argument, mean-field theory, and Monte Carlo simulations. For fixed number $Q$ of trapped particles the criticality disappears in both models through an unusual mechanism, arising from the absence of an area constraint. In the Gaussian case the ring swells to such a mean area, $ \sim NQ$, that the pressure exerted by the particles is at $p_c$ for any $Q$. In the freely jointed model the mean area is such that the particle pressure is always higher than $p_c$, and $ $ consequently follows a single scaling law, $ \sim N^2 f(Q/N)$, for any $Q$. By contrast, when the particles are in contact with a reservoir of fixed chemical potential, the criticality is retained. Thus, the two ensembles are manifestly inequivalent in these systems.

cond-mat.soft

Smoothening Transition of a Two-Dimensional Pressurized Polymer Ring

We revisit the problem of a two-dimensional polymer ring subject to an inflating pressure differential. The ring is modeled as a freely jointed closed chain of N monomers. Using a Flory argument, mean-field calculation and Monte Carlo simulations, we show that at a critical pressure, $p_c \sim N^{-1}$, the ring undergoes a second-order phase transition from a crumpled, random-walk state, where its mean area scales as $ \sim N$, to a smooth state with $ \sim N^2$. The transition belongs to the mean-field universality class. At the critical point a new state of polymer statistics is found, in which $ \sim N^{3/2}$. For $p>>p_c$ we use a transfer-matrix calculation to derive exact expressions for the properties of the smooth state.

cond-mat.soft

Increased Concentration of Polyvalent Phospholipids in the Adsorption Domain of a Charged Protein

We studied the adsorption of a charged protein onto an oppositely charged membrane, composed of mobile phospholipids of differing valence, using a statistical-thermodynamical approach. A two-block model was employed, one block corresponding to the protein-affected region on the membrane, referred to as the adsorption domain, and the other to the unaffected remainder of the membrane. We calculated the protein-induced lipid rearrangement in the adsorption domain as arising from the interplay between the electrostatic interactions in the system and the mixing entropy of the lipids. Equating the electrochemical potentials of the lipids in the two blocks yields an expression for the relations among the various lipid fractions in the adsorption domain, indicating a sensitive dependence of lipid fraction on valence. This expression is a result of the two-block picture but does not depend on further details of the protein-membrane interaction. We subsequently calculated the lipid fractions themselves using the Poisson-Boltzmann theory. We examined the dependence of lipid enrichment, i.e., the ratio between the lipid fractions inside and outside the adsorption domain, on various parameters such as ionic strength and lipid valence. Maximum enrichment was found for lipid valence of about (-3) to (-4) in physiological conditions. Our results are in qualitative agreement with recent experimental studies on the interactions between peptides having a domain of basic residues and membranes containing a small fraction of the polyvalent phosphatidylinositol 4,5-bisphosphate (PIP2). This study provides theoretical support for the suggestion that proteins adsorbed onto membranes through a cluster of basic residues may sequester PIP2 and other polyvalent lipids.

physics.bio-ph