Manuscript Offprint

arXiv:2610.09980

Perspective: Content-addressable memories as a computing primitive for today's AI and beyond

Paul-Philipp Manea, Bo Wen, Peiyi He, Can Li, John Paul Strachan

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

Abstract

Modern artificial intelligence is predominantly executed on computing architectures optimized for dense linear algebra. While this has enabled the success of contemporary neural networks and motivated compute-in-memory (CIM) architectures, a growing class of artificial intelligence (AI) workloads depends on associative retrieval, identifying stored information by content or similarity rather than by explicit memory addresses. Such operations are central to transformer attention, tree-based inference, genomic search, and other retrieval-intensive applications, yet remain inefficiently supported by conventional memory systems. In this Perspective, we argue that content-addressable memories (CAMs) provide a complementary hardware primitive for associative processing in AI. We review their ability to perform massively parallel in-memory matching, discuss how emerging memory technologies can improve density and energy efficiency, and identify hierarchical search, application-specific architectures, hardware-aware learning, and heterogeneous integration with CIM as key directions for scalable associative computing. Together, these developments suggest that associative retrieval should complement linear algebra as a foundational computing primitive for future AI systems.

1 Introduction

Traditional computer memories operate according to the random-access memory (RAM) paradigm, where an input address directly connects to a stored digital value. Content-addressable memories (CAM) invert this relationship: a query pattern is presented to memory and compared against a collection of stored keys, as illustrated in Fig. 1(a,b), with the output being a measure of association, such as a similarity score or an exact match, that can be translated into an address [1]. This fundamentally changes the nature of memory operations: retrieval itself becomes a computation, and information can be recalled from data that is incomplete, noisy, or partially corrupted by identifying the closest matching stored pattern [2, 3]. As we discuss in this Perspective, these properties align closely with many computing applications, including today's AI where the central operations are often not numerical computation alone, but the retrieval of stored patterns by association.

Despite the diversity of implementations, all content-addressable memory (CAM) hardware shares the same underlying computational principle, illustrated in Fig. 1(c). At its core, every CAM consists of two fundamental building blocks: a CAM cell that stores a key and evaluates its relationship to an input query, and a match line that combines the resulting cell responses mi,jm_{i,j} into a word-level result [1]. Depending on the match-line architecture, the output may represent

Figure

(b)

(c)

(d)

Figure 1: Associative memories in artificial and biological memory systems. (a) Comparison between conventional RAM and CAMs. While RAM retrieves data from a supplied address, CAMs retrieve the address or association corresponding to a supplied query. (b) In a CAM array, an input query is compared against many stored keys in parallel, producing a match or similarity score for each entry, which can then be encoded into the address of the exact or closest match. (c) General operating principle of associative search in a CAM. Individual cells compare query and stored key values to generate local match signals, which are subsequently combined along a match line to produce either a word-level match through a NOR operation or a similarity score through accumulation. Different CAM cell architectures support different comparison modalities, including binary, ternary, and analog matching, and can be implemented using a wide range of memory technologies. (d) Conceptual illustration of hippocampal indexing theory, in which a partial cortical cue initiates retrieval through a sparse hippocampal index. This index acts as a memory key that links the cue to distributed cortical representations containing the associated sensory and semantic information, thereby forming a biological query-key-value memory system.

Box 1: A Brief History of Associative Memory in Computing

The timeline of Fig. 2 traces associative memory from its 1960s foundations through networking applications to today's emerging applications in AI.

Early work in the 1960s established key concepts of associative memories such as parallel file search and associative address translation [7, 8]. Commercial CAMs emerged in the 1970s, establishing parallel word matching as a practical hardware primitive for search-intensive applications [9].

In the early 1990s, CAMs became increasingly important for database and networking workloads, where binary and ternary architectures enabled fast lookup, routing, and packet-forwarding operations [10–12]. At the same time, research extended CAMs beyond exact matching toward approximate and similarity-based retrieval [2]. CMOS VLSI implementations based on SRAM, floating-gate, and DRAM technologies also matured during this period, establishing the practical foundations of integrated CAM hardware [10, 13, 14].

More recently, since the 2010s, emerging non-volatile memories, including resistive and ferroelectric devices, have enabled denser and more energy-efficient CAM implementations [15–17]. In parallel, CAMs have expanded beyond networking toward machine learning, nearest-neighbor search, tree inference, differentiable associative memories, and transformer attention [4, 18–21].

either an exact match or a continuous similarity score [4]. At the cell level, the comparison operation can range from binary and ternary matching, including a “don’t-care” state X, to analog range evaluation [5], and further to other graded similarity metrics that are aggregated along the match [4, 6], while the storage of the key can be implemented using a wide variety of memory technologies.

Beyond just hardware, associative memories have a long history in both computer engineering and neuroscience, although the two fields developed largely independently for many decades. In computer engineering, specialized CAM hardware developed for low-latency content-based search and retrieval, initially targeting networking and database applications (Box 1). In contrast, neuroscience regarded associative recall as a central principle of biological memory, leading to influential theories including hippocampal indexing and neural associative memories (Box 2), illustrated in Fig. 1(d).

Modern AI increasingly highlights associative retrieval as a central computational principle. The remarkable success of transformer-based large language models (LLMs) suggests that attention, interpretable as a form of associative memory, may be fundamental to intelligent computation [20, 31, 32, 36]. This creates a natural bridge between associative memory concepts in neuroscience and content-addressable memory architectures in computer engineering. Recent CAM-based implementations of transformer attention further illustrate this convergence [37, 38].

The memory bottleneck of conventional von Neumann architectures built around RAM, together with the rapidly rising computational and energy demands of AI, expose the limits of existing computing systems and the need for more performant, specialized hardware innovations [39]. This provides a central motivation for reconsidering CAMs as a missing computational primitive, particularly for workloads in which stored representations must be repeatedly searched, compared, or filtered. Transformer attention is a prominent example, since large volumes of stored key-value representations must be accessed and compared during inference [40]. Although attention can be implemented through linear algebra, this largely reflects the structure of existing GPU and accelerator architectures rather than the most natural form of associative retrieval. Alternative similarity or distance metrics may provide a more suitable computational foundation.

Figure

Figure 2: Evolution of CAMs and associative computing. Timeline of CAM and associative-memory development, spanning foundational work on content-based retrieval in the 1960s, the networking era of the 1990s, during which CAMs became established as practical lookup engines, and their recent emergence as hardware primitives for AI, machine learning, and associative computing, enabled by emerging memory technologies and new application domains.

[41]. CAMs address this gap by enabling associative search directly within memory. By supporting distance-based matching, selective nearest-neighbor retrieval, and explicit matching boundaries, they complement conventional linear-algebra compute-in-memory (CIM) accelerators and provide a hardware-native substrate for explicit and controllable associative retrieval in AI systems.

It is therefore timely to re-evaluate CAMs beyond their traditional roles in networking and database search. This shift is motivated by a rapidly growing body of work demonstrating that CAM-based associative search is a natural computational primitive for an increasingly diverse set of applications. Beyond Transformer attention, CAMs have been successfully applied to decision-tree inference [18], bioinformatics [3], vector symbolic computing [42], memory-augmented neural networks [43], and k-nearest-neighbor classification and clustering [44]. At the same time, advances in memory devices and integration technologies are enabling denser, more scalable, and more energy-efficient CAM implementations [16, 17, 21, 45, 46].

In this perspective, we argue that CAMs are undergoing a transition from specialized search engines to a broader computing substrate for associative information processing. We discuss how recent advances in AI, emerging memory technologies, and system architectures are creating new opportunities for CAM-based computing, while also introducing important challenges in scalability, search organization, and learning. By connecting developments across devices, circuits, architectures, and applications, we outline a roadmap toward large-scale associative computing systems and explore their potential role in future AI hardware.

The remainder of this paper is organized as follows. We first review the technological foundations of CAMs, focusing on the memory technologies that enable associative computing. We then survey major CAM-based application domains, illustrating their growing importance for future AI infrastructures. Finally, we examine CAM-based architectures and system-level design considerations, outlining the engineering challenges and opportunities associated with deploying CAMs across diverse application domains.

References (100)

Couldn't load all references. Reload the page to try again.