Active Imitation Learning for Thermal- and Kernel-Aware LFM Inference on 3D S-NUCA Many-Cores

Yixian Shen, Chaoyao Shen, Jan Deen, George Floros, Andy Pimentel, Anuj PathaniaarXiv 2026

TL;DR

Deploying Large Foundation Models (LFMs) on CPUs is highly desirable but bottlenecked by memory bandwidth and severe thermal constraints. This paper introduces AILFM, a scheduling framework that uses active imitation learning to dynamically migrate threads and scale core frequencies based on the unique cache sensitivities of different LFM kernels. It achieves near-optimal inference performance and strict thermal safety while keeping runtime overhead under 5%.

What Problem Does This Paper Address?

While GPUs dominate Large Foundation Model (LFM) inference, general-purpose CPUs are increasingly favored in data centers due to their lower cost, high availability, and programmability. However, LFMs are incredibly memory-intensive. To break the memory bandwidth bottleneck, architects are turning to 3D-stacked Static Non-Uniform Cache Architecture (3D S-NUCA) systems, which stack High-Bandwidth Memory (HBM) and distributed Last-Level Caches (LLC) directly on top of many-core processors.

Figure 1: An abstract representation of 3D-stacked S-NUCA systems.

This 3D integration introduces two major challenges:

  1. Severe Thermal Hotspots: Stacking silicon layers drastically increases power density without increasing surface area, making heat dissipation difficult.
  2. Core Heterogeneity: Cores physically located in the center of the chip have shorter paths to the distributed cache (lower latency) but get much hotter due to surrounding heat convection.

Existing thermal management techniques rely on oversimplified models that treat all workloads the same, failing to account for how different LFM components (like Attention vs. Feed-Forward networks) interact with this complex hardware layout.

Methods

The authors propose AILFM (Active Imitation Learning for LFMs), a framework that splits scheduling into an expensive "Oracle" policy and a lightweight "Learning" policy:

Figure 3: Overview of the Oracle and Learning Policies in AILFM for thermal management of 3D S-NUCA systems. The Oracle Policy 𝜋∗
  • The MoGPR Oracle: The authors designed a Mixture of Gaussian Process Regression (MoGPR) model that acts as an expert oracle. By profiling runtime signals (Instructions Per Second [IPS] and LLC Misses Per Kilo Instructions [MPKI]), it accurately predicts the performance utility of migrating specific LFM kernels to different cores. However, running this oracle continuously introduces a massive 24.6% runtime overhead.
  • Active Imitation Learning (AIL): To make the system practical for real-time use, they trained a lightweight neural network to mimic the oracle. Crucially, they integrated Monte Carlo (MC) Dropout to allow the network to estimate its own prediction uncertainty. If the network is confident, it makes the scheduling decision autonomously. If its uncertainty crosses a threshold ($\tau$), it selectively queries the Oracle for guidance. This active querying reduces runtime overhead to just ~3.2%.

Datasets

The framework was evaluated using standalone implementations of five diverse, state-of-the-art LFM workloads:

  • BERT-base evaluated on the SQuAD v1.1 dataset.
  • ViT-base evaluated on the ImageNet-1K dataset.
  • LLaMA3.2-1B evaluated on the WikiText-103 dataset.
  • Gemma-2B evaluated on the C4 dataset.
  • DeepSeek-2.4B evaluated on the OpenWebText2 dataset.

Key Insights and Ideas

  • LFM Kernels Have Drastically Different Cache Sensitivities: The authors discovered that the Self-Attention kernel is highly sensitive to cache locality, suffering a massive >35% performance degradation when assigned to cores with poor cache distance. Conversely, the Feed-Forward Network (FFN) kernel is compute-heavy and sequential, showing less than a 6.5% performance variance across the chip.
  • The Center-Core Dilemma: Cores near the center of the processor have the lowest Average Manhattan Distance (AMD) to the cache, meaning they perform the best but face the tightest thermal constraints.
Figure 2: Processing core AMDs in 3D-stacked S-NUCA processors
  • Active Learning Prevents Catastrophic Forgetting: Standard reinforcement learning approaches often fail or suffer from "catastrophic forgetting" when trying to optimize a single policy across highly heterogeneous kernels. By using kernel-aware oracle demonstrations to guide a lightweight model only when it is uncertain, AILFM safely navigates performance-thermal trade-offs.

Key Results

  • Superior Performance: AILFM consistently outperformed state-of-the-art baselines (including 3QTM, NeuroTAP, and DNaPE) across all models and thermal thresholds. Under a strict 75°C threshold, AILFM achieved up to 31% better performance than DNaPE.
  • Robust Scaling with Input Size: As input sequence lengths scaled to 1024 tokens (which heavily increases thermal and computational stress), AILFM maintained a 35% performance advantage over its closest competitor when running DeepSeek-2.4B.
  • Architecture Scalability: Compared to a traditional 2D planar baseline, AILFM achieved a 1.49x speedup on a 64-core 3D S-NUCA architecture and scaled up to a 1.64x speedup on a deeper 216-core 3D stack, all while keeping peak temperatures safely below thresholds.

Limitations and Future Work

The primary limitation is that the framework was validated entirely using architectural and thermal simulations (via the CoMeT simulator) rather than physical 3D-stacked hardware, which remains notoriously difficult to manufacture and instrument for custom scheduling research.

For future work, the authors suggest extending the framework to handle multi-tenant scenarios, where multiple different LFMs run concurrently and compete for the same shared 3D cache and thermal budget.

Summary updated

BibTeX
@misc{shen2026active,
  author = {Yixian Shen and Chaoyao Shen and Jan Deen and George Floros and Andy Pimentel and Anuj Pathania},
  title = {{Active Imitation Learning for Thermal- and Kernel-Aware LFM Inference on 3D S-NUCA Many-Cores}},
  year = {2026},
  eprint = {2604.11948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.11948},
}
Figure