Skip to main content
QUICK REVIEW

[Paper Review] Demeter: A Fast and Energy-Efficient Food Profiler Using Hyperdimensional Computing in Memory

Taha Shahroodi, Mahdi Zahedi|arXiv (Cornell University)|Jan 1, 2022
Ferroelectric and Negative Capacitance DevicesEngineering3 citations
TL;DR

Demeter is a platform-agnostic, hyperdimensional computing (HDC)-based food profiling framework that enables fast, accurate, and energy-efficient species classification in food samples. By leveraging in-memory computation via a PCM-based PIM accelerator (Acc-Demeter), it achieves 192× and 724× higher throughput and 36× and 33× lower memory usage than Kraken2 and MetaCache, respectively, while maintaining accuracy within 2% of state-of-the-art tools.

ABSTRACT

Food profiling is an essential step in any food monitoring system needed to prevent health risks and potential frauds in the food industry. Significant improvements in sequencing technologies are pushing food profiling to become the main computational bottleneck. State-of-the-art profilers are unfortunately too costly for food profiling. Our goal is to design a food profiler that solves the main limitations of existing profilers, namely (1) working on massive data structures and (2) incurring considerable data movement for a real-time monitoring system. To this end, we propose Demeter, the first platform-independent framework for food profiling. Demeter overcomes the first limitation through the use of hyperdimensional computing (HDC) and efficiently performs the accurate few-species classification required in food profiling. We overcome the second limitation by using an in-memory hardware accelerator for Demeter (named Acc-Demeter) based on memristor devices. Acc-Demeter actualizes several domain-specific optimizations and exploits the inherent characteristics of memristors to improve the overall performance and energy consumption of Acc-Demeter. We compare Demeter's accuracy with other industrial food profilers using detailed software modeling. We synthesize Acc-Demeter's required hardware using UMC's 65nm library by considering an accurate PCM model based on silicon-based prototypes. Our evaluations demonstrate that Acc-Demeter achieves a (1) throughput improvement of 192x and 724x and (2) memory reduction of 36x and 33x compared to Kraken2 and MetaCache (2 state-of-the-art profilers), respectively, on typical food-related databases. Demeter maintains an acceptable profiling accuracy (within 2% of existing tools) and incurs a very low area overhead.

Motivation & Objective

  • Address the high computational and memory overhead of existing food profiling tools, which rely on massive data structures and excessive data movement.
  • Overcome the limitations of current state-of-the-art (SOTA) profilers—such as Kraken2 and MetaCache—that are too slow and resource-intensive for real-time food monitoring.
  • Design a platform-independent framework that maintains high accuracy while drastically reducing energy and memory consumption.
  • Enable real-time food monitoring by minimizing data movement and eliminating dependency on high-end servers with large memory footprints.
  • Develop a specialized in-memory accelerator (Acc-Demeter) using memristor-based PCM technology to natively support HDC operations and optimize performance and energy efficiency.

Proposed method

  • Reduce food profiling to a multi-species classification problem using hyperdimensional computing (HDC), representing biological sequences as high-dimensional binary vectors.
  • Use N-gram encoding of DNA sequences to generate HD vectors that preserve semantic and taxonomic relationships for classification.
  • Implement a five-step pipeline: (1) sequence preprocessing, (2) N-gram extraction, (3) HD vector encoding, (4) similarity-based classification using cosine similarity, and (5) abundance estimation.
  • Design Acc-Demeter, a PCM-based in-memory accelerator that performs vector operations (e.g., VMM, pop-count) directly in memory to eliminate off-chip data movement.
  • Optimize Acc-Demeter for exact pop-count in a single cycle using parallel VMM and ADC output addition, reducing latency compared to prior HDC accelerators.
  • Leverage the inherent in-memory in-memory computation and non-volatility of phase-change memory (PCM) to accelerate HDC operations and reduce energy consumption.

Experimental results

Research questions

  • RQ1Can hyperdimensional computing be effectively applied to food profiling to reduce data structure size and improve computational efficiency?
  • RQ2To what extent can in-memory computation using PCM-based accelerators reduce data movement and energy consumption in food profiling workloads?
  • RQ3How does the proposed HDC-based framework (Demeter) compare in accuracy and performance to existing SOTA profilers like Kraken2 and MetaCache?
  • RQ4Can a PIM-enabled accelerator (Acc-Demeter) achieve significant speedup and memory reduction while maintaining high classification accuracy?
  • RQ5What are the performance and energy benefits of integrating domain-specific optimizations into a hardware-software co-designed food profiling system?

Key findings

  • Acc-Demeter achieves a 192× throughput improvement over Kraken2 and a 724× improvement over MetaCache on typical food-related databases.
  • The system reduces memory footprint by 36× compared to Kraken2 and 33× compared to MetaCache, significantly lowering hardware resource demands.
  • Demeter maintains classification accuracy within 2% of existing SOTA tools, demonstrating high fidelity despite reduced data structures and computational complexity.
  • The in-memory accelerator design enables exact pop-count operations in a single cycle, reducing latency compared to prior HDC accelerators that require log2D+1 cycles.
  • The use of PCM-based in-memory computation reduces energy consumption and eliminates bottlenecks caused by data movement between memory and processing units.
  • Hardware synthesis using UMC’s 65nm library with a silicon-accurate PCM model confirms the feasibility and performance gains of Acc-Demeter at scale.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.