arXiv:2610.37033cs.AROct 2026

Manuscript Offprint

arXiv:2610.37033

p-DCIM: A 28nm Probabilistic SRAM DCIM based Ising Machine for Near-Memory Context Selection in LLM-RAG Pipeline

Madhav Vadlamani, Rahul Singh, Yuyao Kong, Haomei Liu, Zheng Zhang, Shimeng Yu

Madhav Vadlamani ∗^{*}, 1^{1}, Rahul Singh ∗^{*}, 2^{2}, Yuyao Kong 1^{1}, Haomei Liu 1^{1}, Zheng Zhang 2^{2}, Shimeng Yu †,1^{\dagger,1}

1^{1}School of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta, GA, 30332

2^{2}Department of Electrical and Computer Engineering, University of California, Santa Barbara, CA, 93106

∗^{*}Equal contribution. †^{\dagger}Corresponding author: Shimeng Yu (shimeng.yu@ece.gatech.edu).

Abstract—We present a fabricated SRAM DCIM Ising machine that performs set-level context selection for large language model (LLM) with retrieval-augmented generation (RAG). In RAG, the evidence-selection stage is increasingly delegated to repeated language-model reranking, which adds substantial energy to the inference pipeline. We reformulate evidence selection as a quadratic unconstrained binary optimization (QUBO) problem and solve it on a dual-mode digital compute-in-memory (DCIM) macro: the same multiply-and-accumulate datapath computes the embedding-similarity scores that populate the QUBO coefficients and evaluates the per-spin Hamiltonian differences that drive the anneal. The annealing temperature is set by a digital plane-count control along with the SRAM pseudo-read random bit flips, giving graded cooling entirely from on-chip digital configuration. The macro is taped-out in a 28 nm process [0.16 mm², 0.41 mW] and is proposed to be integrated as part of the logic base-die in hybrid high-bandwidth memory (HBM) and high-bandwidth flash (HBF) stacks in a GPU package, where only the selected passage identifiers return to the host. Replacing the language-model selection pass with the near-memory Ising solver yields a macro-normalized selection-energy estimate more than six orders of magnitude lower than the LLM-based baseline and reduces the evaluated total energy per query by 67%, while maintaining comparable token-level F1 on the evaluated examples.

Index Terms—retrieval-augmented generation, near-memory, ising machine, digital compute-in-memory, large language models, SRAM

I. INTRODUCTION

LARGE language models (LLMs) have demonstrated strong capabilities in natural-language understanding and generation, but their responses remain limited by the information encoded in their parameters and by the context supplied during inference. Retrieval-augmented generation (RAG) addresses this limitation by grounding generation in information retrieved from an external knowledge source, enabling access to dynamically updated or domain-specific content without modifying the underlying model [1], [2], [3]. A typical RAG pipeline first retrieves a candidate set of passages from a vector database, selects or reranks a smaller subset, and then supplies the resulting context to the LLM for answer generation. As model sizes, knowledge bases, and retrieved candidate pools continue to increase, however, the intermediate context-selection stage becomes an increasingly important determinant of both answer quality and system cost.

Conventional retrieval pipelines commonly select the top-K passages according to independent relevance scores. Although computationally simple, this approach does not explicitly account for interactions among the selected passages. In multihop and evidence-intensive question answering, the desired context is inherently a set-level object: multiple passages may provide redundant information, while individually lower-ranked passages may contain complementary evidence required to satisfy different information needs of the query [4], [5]. Recent approaches therefore perform set-wise context selection using an LLM, allowing the selector to reason jointly over candidate passages and query requirements [5]. Such methods can improve evidence construction, but they introduce another transformer-inference pass into the RAG pipeline. For large models, this additional stage requires repeated movement of model weights between high-bandwidth memory (HBM) and the GPU and consequently incurs substantial latency and energy even though its output is only a small subset of passage identifiers.

These characteristics motivate separating semantic processing from combinatorial context selection. Recent work has formulated requirement-aware RAG evidence selection as a quadratic unconstrained binary optimization (QUBO) problem, in which binary variables indicate selected passages and the objective jointly captures passage relevance, requirement coverage, support strength, redundancy, complementarity, and context-size constraints [6]. Unlike independent top-K ranking, the resulting objective explicitly represents pairwise interactions among candidate passages and therefore optimizes the utility of the selected set as a whole. Once written in QUBO form, the selection problem can be executed using a broad class of Ising machines. This creates an opportunity to replace a computationally expensive LLM-based selection pass with an Ising machine dedicated to binary energy minimization.

Ising machines address combinatorial optimization problems by evolving toward low-energy spin configurations, and prior Ising and p-bit solvers have reported substantial energy and execution-time benefits on classical benchmarks such as the traveling-salesman, MAX-CUT, and satisfiability problems [7], [8], [9], [10]. SRAM-based digital compute-in-memory (DCIM) implementations provide a CMOS-compatible realization of this paradigm by storing

Manuscript created October, 2020; This work was developed by the IEEE Publication Technology Department. This work is distributed under the LATEX Project Public License (LPPL) (http://www.latex-project.org/) version 1.3. A copy of the LPPL, version 1.3, is included in the base LATEX documentation of all distributions of LATEX released 2003/12/01 or later. The opinions expressed here are entirely that of the author. No warranty is expressed or implied. User assumes all risk.

the coupling coefficients directly in memory and evaluating the weighted sums required for spin updates in situ, thereby reducing repeated movement of the QUBO matrix between memory and arithmetic units [11], [12]. These architectures have been demonstrated primarily on conventional combinatorial-optimization workloads such as the traveling-salesman problem.

In our recent work, we extended the SRAM DCIM Ising architecture from problem-specific combinatorial optimization toward a more general QUBO-solving framework, enabling arbitrary QUBO coefficient matrices to be mapped onto the in-memory annealing datapath and demonstrating the architecture on binary neural network robustness verification [13]. In that application, adversarial counterexample search was formulated as a QUBO and executed using the DCIM Ising machine, establishing the applicability of the architecture to structured AI-derived optimization problems beyond classical benchmarks. The annealing stochasticity is generated directly from voltage-controlled SRAM pseudo-read errors, eliminating the need for dedicated noise-generation peripherals such as linear-feedback shift registers (LFSRs) or other external random-number-generation circuitry. The present work advances this direction further by targeting a recurring optimization stage within an LLM inference pipeline and by incorporating not only QUBO solution, but also hardware-efficient construction of the QUBO itself. In contrast to our previous BNN-verification study, which relied on simulation and PPA projections, the present work is supported by a new fabricated 28-nm SRAM-DCIM chip, with measured stochastic characteristics, power, and on-chip QUBO-solving operation.

RAG context selection introduces a different hardware challenge. Constructing the selection objective itself requires query-to-passage and passage-to-passage similarity evaluations over the retrieved candidate embeddings. For N candidates, the pairwise terms can require O(N2)\mathcal{O}(N^{2}) embedding interactions before annealing begins. If these embeddings are first retrieved from storage and transferred to the GPU merely to construct the QUBO, much of the data-movement cost that an Ising accelerator is intended to avoid is incurred before optimization starts. This issue becomes particularly relevant in emerging near-storage RAG architectures such as HAVEN [14], where vector retrieval is performed directly within a High-Bandwidth Flash (HBF) stack integrated in the GPU package. Such architectures provide a natural location for context-selection acceleration: the retrieved candidate embeddings are already available near the storage array, allowing the optimization objective to be constructed and solved before the candidate data leave the memory subsystem.

In this work, we present p-DCIM, a fabricated 28-nm probabilistic SRAM digital compute-in-memory Ising machine for near-memory context selection in RAG. The proposed architecture reuses the same SRAM DCIM array and signed accumulation datapath for two operating modes. In the deterministic mode, candidate embeddings are streamed through the array to evaluate the dot products used to construct the QUBO coefficients. In the probabilistic mode, the resulting coefficients are stored in the same array and the datapath evaluates the local Hamiltonian differences required for se-

Figure

Fig. 1. Proposed near-memory RAG context-selection flow. Near-storage retrieval on the HBF stack produces candidate passages, which are scored and jointly selected by the proposed p-DCIM accelerator through QUBO construction and optimization. Only the selected subset is returned to the GPU for LLM answer generation.

quential Ising updates. Thus, QUBO construction and QUBO optimization share the same storage and arithmetic resources, amortizing access to the candidate embeddings rather than treating coefficient generation and annealing as two independent computational stages.

The probabilistic operation exploits measured pseudo-read errors of the SRAM cells rather than requiring dedicated stochastic devices or external random-number generation. Reducing the SRAM supply voltage VDDMV_{DDM} induces probabilistic disturbances in the stored coefficient bits, and the measured 0→10 \rightarrow 1 and 1→01 \rightarrow 0 error characteristics provide the stochastic perturbation used during annealing. Because the measured voltage dependence contains a narrow transition region that would be difficult to regulate as an analog temperature control in a heterogeneous memory package, we operate the array at a fixed reduced supply and instead control the effective perturbation strength digitally. Successive magnitude bit-planes are protected from pseudo-read disturbance as annealing progresses, while the sign bit remains protected throughout operation. The resulting plane-count schedule provides a discrete cooling mechanism whose stochastic characteristics are directly derived from measurements of the fabricated SRAM macro.

At the system level, we further investigate integration of the proposed accelerator on the custom logic base die of an HBF stack in an HBM/HBF-equipped GPU package. Candidate retrieval is performed near storage, after which the candidate embeddings are consumed locally by p-DCIM for QUBO construction and context selection. Only the query-side information required to construct the objective is supplied by the GPU, and only the selected passage identifiers are returned for final answer generation. Consequently, the O(N2)\mathcal{O}(N^2) pairwise candidate processing used to construct the set-level objective remains within the memory subsystem rather than traversing the package interconnect. The fabricated macro occupies 0.16 mm20.16 \, mm^2, operates at 500 MHz, and consumes approximately 0.41 mW0.41 \, mW in probabilistic operation. Small QUBO instances are evaluated directly on silicon, while larger HotpotQA instances are evaluated using a measurement-parametrized behavioral model derived from the measured pseudo-read statistics and datapath precision. At the evaluated operating point, context selection requires approximately 2.2 ms2.2 \, ms and 0.9 μJ0.9 \, \mu J, while maintaining answer quality competitive with LLM-based set-selection baselines.

The main contributions of this work are summarized as follows:

  • We present a fabricated 28-nm dual-mode SRAM-DCIM accelerator that uses a shared memory array and signed accumulation datapath to both construct and solve QUBO objectives for RAG context selection.

  • We employ a hardware-controlled annealing mechanism based on measured SRAM pseudo-read stochasticity, in which a digitally programmable magnitude-plane exposure schedule provides graded cooling while preserving the coefficient sign.

  • We map requirement-aware, set-level RAG evidence selection onto the fabricated DCIM architecture and demonstrate the complete execution flow from candidate-embedding scoring and QUBO construction through in-memory Hamiltonian evaluation and passage selection.

  • We propose a near-memory integration architecture with an HBF-based retrieval system, keeping candidate embeddings and their pairwise interactions near storage and returning only the selected passage identifiers to the GPU.

  • We characterize the fabricated chip and use a measurement-parametrized model to evaluate larger RAG workloads, demonstrating competitive HotpotQA answer quality while reducing the selection-stage energy by more than six orders of magnitude relative to an LLM-based selector and reducing the evaluated end-to-end query energy by 67%.

The remainder of this paper is organized as follows. Section II reviews set-level context selection in RAG and the QUBO formulation used in this work. Section III describes the fabricated p-DCIM architecture, including deterministic coefficient construction, probabilistic Hamiltonian evaluation, and the proposed digital annealing schedule. Section IV presents the near-memory system architecture and integration with HBF-based retrieval. Section V reports the measured chip characteristics and evaluates the proposed context-selection flow on RAG workloads. Finally, Section VI concludes the paper and discusses opportunities for scalable near-memory Ising acceleration.