Edge AI Chip Architecture for On-Device LLMs: Why Effective Bandwidth and Memory Capacity Matter More Than Peak TOPS

    This article breaks down why peak TOPS alone fails to predict on-device LLM performance, and why memory bandwidth, capacity, and data movement distance are the real bottlenecks. It covers near-memory computing and 3D stacking, unified memory and capacity budgeting for billion-parameter models, heterogeneous chip roles, a fast/slow layered inference scheduling pattern, a practical evaluation methodology, and cloud-edge collaboration, with Python examples for estimating decode latency and memory usage.

    1. The Real Bottleneck Is Not Peak Compute

    For the past few years, marketing for on-device AI chips has focused almost entirely on “TOPS per watt.” But as model sizes jumped from hundreds of millions of parameters to tens of billions, engineering practice has repeatedly shown a gap of several orders of magnitude between advertised compute and actual inference throughput.

    The reason is straightforward. During autoregressive decoding, every iteration must read the full set of model weights, which scales with model size. The compute units spend most of their time waiting for data to arrive rather than performing multiply-accumulate operations.

    So evaluating an edge chip built for LLMs requires looking at at least four metrics at once: peak compute, memory capacity, memory bandwidth, and the effective bandwidth loss caused by data movement distance. Emphasizing only one of them leads to a distorted conclusion.

    2. The Memory Wall: Why Bandwidth Decides Experience More Than TOPS

    A minimal estimation model helps build intuition. The theoretical lower bound on per-token latency during decoding is roughly “bytes that must be read per iteration divided by effective bandwidth.”

    1. def decode_lower_bound_ms(weight_bytes, eff_bandwidth_Bps, tokens=1):
    2. """Estimate the theoretical lower bound of autoregressive decode latency (ms)"""
    3. return weight_bytes / eff_bandwidth_Bps * 1000 * tokens
    4. # 3B parameters, INT8 quantization, weights ~3GB
    5. print(decode_lower_bound_ms(3e9, 1.22e12)) # ≈ 2.46 ms/token → ~400 tok/s ceiling
    6. print(decode_lower_bound_ms(3e9, 1.14e11)) # ≈ 26.3 ms/token → ~38 tok/s ceiling

    Same model, same compute, but an order-of-magnitude difference in bandwidth produces an order-of-magnitude difference in theoretical throughput. This is why “high bandwidth plus data locality” is replacing “stacking TOPS” as the main design direction for on-device LLM chips. Note that the formula above is a theoretical lower bound; real numbers must also account for scheduling overhead, operator efficiency, thermal throttling, and other factors.

    3. Near-Memory Computing and 3D Stacking: Moving Data Next to Compute

    In conventional architectures, compute logic and memory dies sit in separate packages, so data must travel across relatively long bus paths, and both power and latency are amplified by path length. Near-memory computing places memory and compute physically very close together, replacing long-distance buses with extremely dense vertical interconnects. This improves three things at once: how much data can be moved per unit time, the energy cost of moving it, and timing uncertainty.

    Two general-purpose technologies are common in the industry. The first is wafer-level bonding and hybrid bonding, which uses sub-micron to micron-scale bonding pitch to connect two layers face-to-face. The second is through-silicon vias with high-density micro-bumps. Both aim to shorten interconnect length and increase interconnect density per unit area. What matters in engineering is not a single “peak bandwidth” figure but the sustainable utilization of that bandwidth on real operators.

    4. Unified Memory and Capacity Planning: If It Does Not Fit, It Does Not Run

    Bandwidth decides how fast it runs; capacity decides whether it runs at all. When deploying billion-parameter models on-device, memory usage is not just the weights:

    • Weights: parameter count × bytes per parameter (FP16 is 2 bytes, INT8 is 1 byte, INT4 is roughly 0.5 byte);
    • KV Cache: grows linearly with context length and can be several times the weight size in long-context scenarios;
    • Runtime overhead: the framework, operator workspaces, and the resident portion when multiple models coexist.

    A rough capacity calculation example:

    1. def memory_budget(params, bytes_per_param, ctx_len, layers, kv_heads, head_dim, kv_bytes=2):
    2. weights = params * bytes_per_param
    3. kv = 2 * ctx_len * layers * kv_heads * head_dim * kv_bytes # one copy each for K and V
    4. return weights / 1e9, kv / 1e9
    5. w, kv = memory_budget(120e9, 0.5, 8192, 48, 8, 128) # 120B / INT4 / 8K context
    6. print(f"Weights {w:.1f} GB, KV Cache {kv:.1f} GB")

    The conclusion is direct: low-bit quantization is almost mandatory for running billion-parameter models on-device, and a unified memory architecture (where CPU, GPU, and NPU share the same address space) eliminates cross-device copies, making it a key prerequisite for reducing latency and memory duplication.

    5. Heterogeneous Division of Labor: Main Control Chip vs. AI Accelerator

    Packaging three chips into one system is essentially decoupling “general-purpose control” from “specialized inference”:

    Role Responsibility Key Metrics
    Main control / general compute System scheduling, IO, protocol stack, lightweight operators Single-core performance, low-latency response
    AI LLM acceleration Large matrix multiplication, long-sequence inference Bandwidth, capacity, energy efficiency
    High-compute AI acceleration High-concurrency vision/ADAS-type workloads Peak compute, deterministic latency

    The value of this split: high-frequency, low-latency small tasks do not need to wake up a high-power module, while heavy inference tasks get the high-bandwidth path to themselves. Overall energy efficiency is better than “one chip does everything.”

    6. Fast and Slow Systems: A Practical Layered Inference Scheduling Pattern

    The “fast/slow system switching” mentioned in the original text, once abstracted, is the layered inference idea common in the industry: a resident small model handles the vast majority of high-frequency requests, and only when a request is judged complex is it escalated to the large model, with the result written back into the cache.

    1. User request
    2. ↓
    3. [Fast system] Small-parameter model (resident in memory, millisecond response)
    4. ↓ Low confidence / complex intent detected
    5. [Slow system] Large-parameter model (loaded on demand, second-level response)
    6. ↓
    7. Result caching + session context reuse → later similar requests take the fast path directly

    Key implementation points:

    1. Routing decision: use rules, a lightweight classifier, or the model’s own confidence, avoiding misjudgments that cause experience jitter;
    2. Resource isolation: reserve bandwidth and memory when the slow system starts, so the fast system is not slowed down;
    3. Thermal management: the power wall and throttling strategy under sustained high load must be stress-tested in advance;
    4. Fallback path: when the slow system is unavailable, define the capability boundary of falling back to the fast system.

    7. Evaluation Methodology: How to Verify a Real On-Device Solution

    Use a unified baseline with four test groups instead of relying only on vendor-claimed numbers:

    • Throughput baseline: fix the model, quantization format, and context length, then measure tok/s and its variance;
    • Long-context decay: increase pressure gradually from 1K to 32K and watch the throughput and memory curves;
    • Sustained load: run continuous inference for more than 30 minutes and record performance decay caused by frequency and temperature;
    • Cross-model generalization: swap in a model without vendor-specific optimization to check whether the optimization is a “general capability” or a “single-point customization.”

    8. Cloud-Edge Collaboration: Closing the Loop

    The edge cannot do everything on its own. Mature solutions are usually edge-cloud collaborative: the edge handles low-latency and privacy-sensitive inference, while the cloud handles training, batch offline inference, and model distribution. Supporting capabilities typically include object storage (models and datasets), a container platform (elastic inference services), a message queue (asynchronous task decoupling), and logging plus monitoring and alerting (long-tail latency diagnosis). General cloud infrastructure capabilities offered by Baidu AI Cloud in these scenarios can serve as a reference backend for deploying an edge solution.

    9. Conclusion

    Competition in on-device LLM chips has shifted from “peak compute” to system engineering capability spanning “effective bandwidth × capacity × data movement distance.” Near-memory computing and 3D stacking are the key path to alleviating the memory wall, unified memory is the prerequisite for running billion-parameter models, and heterogeneous division of labor plus fast/slow layered scheduling are the software methods that turn hardware capability into real experience. For developers, building an evaluation baseline centered on effective bandwidth and sustained performance is more practically valuable than chasing a single peak number.