AIF-C01 practice question 23 of 25

A company wants to use language models to create an application for inference on edge devices. The inference must have the lowest latency possible. Which solution will meet these requirements?

Full set: 397 questions

Domain Identify business use cases for AI/ML

Answer options
A: Deploy optimized small language models (SLMs) on edge devices. Correct answer
B: Deploy optimized large language models (LLMs) on edge devices.
C: Incorporate a centralized small language model (SLM) API for asynchronous communication with edge devices.
D: Incorporate a centralized large language model (LLM) API for asynchronous communication with edge devices.
Correct Answer:
A. Deploy optimized small language models (SLMs) on edge devices.
Explanation

To achieve the lowest possible latency for inference, the processing must occur locally on the edge device itself. This eliminates the network round-trip time required to communicate with a centralized cloud-based API. Small language models (SLMs) are specifically designed to be computationally efficient and have a smaller memory footprint compared to large language models (LLMs). Deploying an optimized SLM directly on the edge device is the most effective strategy to meet the strict low-latency requirement within the typical resource constraints of such hardware.

Why Incorrect

B. Deploy optimized large language models (LLMs) on edge devices. Large language models are generally too large and computationally demanding for low-latency performance on resource-constrained edge devices, even when optimized.
C. Incorporate a centralized small language model (SLM) API for asynchronous communication with edge devices. Using a centralized API introduces network latency for every inference request, which is fundamentally slower than on-device processing and fails the "lowest latency" requirement.
D. Incorporate a centralized large language model (LLM) API for asynchronous communication with edge devices. This option has the highest potential latency, as it combines the network delay of a centralized API with the typically longer processing time of an LLM.

References

1. Official Vendor Documentation (AWS): In the documentation for AWS IoT Greengrass

a service for edge computing

it is stated that running machine learning inference locally provides benefits like low latency. "Running ML inference locally on an edge device reduces latency and cost because you don’t need to send data to the cloud for processing." This supports the principle of on-device deployment for minimizing latency.

Source: AWS IoT Blog

"Run generative AI models on the edge with AWS IoT Greengrass

" May 23

2023

Paragraph 2.

2. Official Vendor Documentation (AWS): Amazon SageMaker Edge Manager is designed to optimize models for edge devices. The documentation emphasizes running inference on the edge to "reduce latency" and operate in environments with intermittent connectivity

which is impossible with a centralized API approach.

Source: AWS Documentation

"Amazon SageMaker Edge Manager - Developer Guide

" What Is Amazon SageMaker Edge Manager?

Page 1.

3. Academic Publication: Research on edge AI consistently highlights the trade-off between model size and performance on edge devices. Smaller

efficient models are preferred for low-latency applications. "The limited computation and memory resources on edge devices pose significant challenges for deploying large deep learning models... This has led to the development of lightweight models..."

Source: Deng

S.

et al. (2020). "Model Compression and Hardware Acceleration for Neural Networks: A Comprehensive Survey." Proceedings of the IEEE

108(4)

485-532. Section III-A

"Parameter Pruning and Sharing." DOI: https://doi.org/10.1109/JPROC.2020.2976475

Scroll to Top