arXiv(opens in a new tab)cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.35586

IMC-CLINIC: Coupled Loss-Informed Newton Iterations for Clipping in Analog In-Memory Computing

Yung-Chin Chen, Chia-Yu Chen, Naveen Verma

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Analog in-memory computing (IMC) offers a promising path toward energy-efficient large language model (LLM) inference by executing matrix multiplications (MatMul) directly within memory arrays in the analog domain. Its efficiency, however, comes with an additional source of error: limited-precision analog-to-digital converters (ADCs) quantize the accumulated analog partial sums and introduce output-side error, which is a different problem from conventional activation and weight quantization at the MatMul inputs. Clipping can mitigate both operand and ADC quantization errors by reducing their dynamic ranges, but the optimal clipping factors must jointly balance activation rounding and clipping, weight rounding and clipping, and ADC quantization. Existing clipping methods, designed for digital quantization, do not explicitly optimize these coupled sources of IMC error. Common approaches rely on costly search-based calibration, leading to suboptimal accuracy and long calibration time. We introduce IMC-CLINIC (Coupled Loss-Informed Newton Iterations for Clipping), a clipping calibration framework built around an analytical surrogate for IMC MatMul output error. The loss surrogate models operand quantization, accumulated clipping-induced bias, and ADC quantization jointly, allowing its gradient and approximate curvature to be evaluated directly from only a small calibration set. IMC-CLINIC then jointly optimizes activation and weight clipping factors using a safeguarded Newton-type method. We show that IMC-CLINIC reduces analog-IMC MatMul output error by effectively balancing operand and ADC quantization errors. Across multiple models and datasets, it improves average zero-shot accuracy by 6.5–11.5 percentage points over the grid search baseline while reducing the calibration time by 10.0×−12.1×10.0 \times -12.1 \times. Moreover, its analytical surrogate closely tracks empirical IMC output error, while its optimizer is fast and certified within 1% of the global optimum under the loss objective across all projections on two representative models.

1 INTRODUCTION

As Large Language Models (LLMs) become increasingly capable, their power consumption has become a major concern. To meet the growing power demand of LLM inference workloads, frontier AI infrastructure is scaling toward gigawatt-level power capacity (OpenAI & NVIDIA, 2025; Anthropic, 2025). This scale of demand creates substantial economic (Anthropic, 2026) and sustainability (Verma & Tan, 2024) challenges, motivating the development of more energy-efficient inference hardware.

Analog in-memory computing (IMC) offers a promising approach toward more energy-efficient LLM inference (Verma et al., 2019; Shanbhag & Roy, 2022). By performing matrix multiplications (MatMuls) directly within memory arrays in the analog domain, analog IMC can substantially reduce the energy associated with these compute-intensive operations. This efficiency, however, comes with reduced computational accuracy. While state-of-the-art analog IMC approaches have overcome the effects of analog noise (thermal, device, electronic sources of variability) (Valavi et al., 2019; Lee et al., 2024), an intrinsic and unavoidable source of noise with analog computation is analog-to-digital quantization at the output, where limited precision of the Analog-to-Digital Converter (ADC)

Figure

(a) Analog IMC and ADC range underutilization.

Figure

(b) Coupled operand and ADC quantization errors.

Figure 1: Motivation for clipping calibration in analog IMC. Clipping changes both operand quantization error and the output-referred ADC quantization error, motivating their joint optimization.

appears as accumulation quantization in MatMul (Murmann, 2021) (Fig. 1a). Increasing the ADC resolution can mitigate this error, but this comes at rapidly increasing energy cost, which diminishes the efficiency advantage of analog IMC (Murmann). This motivates algorithmic approaches that improve compute accuracy under a fixed ADC resolution.

Weight/activation clipping is a critical technique in digital quantization, and is in fact particularly promising for analog IMC. In digital processors, narrowing the activation and weight ranges reduces rounding error at the cost of clipping extreme values, where well-chosen thresholds can substantially improve quantized-model accuracy. Clipping can be even more beneficial in analog IMC because the reduced operand ranges also shrink the analog partial-sum range, mitigating ADC quantization error at a fixed resolution. This additional benefit, however, makes clipping calibration more challenging: the optimal clipping factors must jointly balance the rounding and clipping errors of weights/activations with the ADC quantization error (Fig. 1b). Existing methods, developed primarily for digital processors, do not optimize the coupling with output quantization error; common approaches often involve costly search, leading to slow calibration and suboptimal accuracy. Analog IMC therefore requires a fast calibration method that jointly optimizes for all error sources.

To address this challenge, we introduce IMC-CLINIC (Coupled Loss-Informed Newton Iterations for Clipping), which couples an analytical error model with efficient second-order optimization. First, we derive an analytically tractable surrogate for the IMC MatMul output error that jointly models three key error sources: operand rounding and clipping errors, clipping-induced bias across the multiply-accumulate (MAC) accumulation, and ADC quantization error. Importantly, the surrogate preserves the coupling between activation/weight clipping and ADC error, while simplifying higher-order error interactions to make the loss, gradient, and Hessian efficiently computable from calibration statistics. Second, we exploit this analytical structure with a safeguarded Newton optimizer. Since each MatMul requires optimizing only a few clipping variables, Newton updates incur negligible optimization overhead; we further augment the damped Newton method with Hessian-conditioned initialization and positive-curvature safeguards to achieve fast and stable optimization.

We show that IMC-CLINIC substantially improves analog IMC accuracy across multiple models and datasets, improving average zero-shot accuracy by 6.5–11.5 percentage points over the grid search method for a 9-bit ADC IMC accelerator. At the same time, it accelerates clipping calibration by 10.0×−12.1×10.0 \times -12.1 \times. We additionally validate both components of IMC-CLINIC: the surrogate remains close to measured IMC output error, and the safeguarded Newton solver reaches high-quality solutions rapidly, with all projections in LLaMA-3.2-3B and Qwen3-4B certified to lie within 1% of the global optimum under the calibration objective. Overall, IMC-CLINIC provides an efficient and accurate clipping calibration framework for LLM inference on analog IMC.

References (58)