LL-CEIoT: Lightweight LLM-Based Collaborative Cloud-Edge Computing for Internet of Things


Md Monjurul Karim, Sangeen Khan, and Qiang Qu*

Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences

IEEE Transactions on Mobile Computing, 2026

Lightweight LLMs · Cloud-Edge Collaboration · Internet of Things · Quantization-Aware Placement · Task Scheduling

The idea in one line: Quantization-aware layer placement and dynamic batch scheduling work together, so LLMs run efficiently at the IoT edge.

77%
shorter task completion time as edge servers scale from 1 to 5
92%
completion rate on the most complex tasks (Edge-LLM 71%, FineInfer 82%)
1.04%
average gap to the exact optimum on small instances
351×
faster than solving the problem exactly with SCIP

Why It Matters

LLMs are powerful, but memory needs of tens of gigabytes put them out of reach for IoT devices with little compute. Run the model in the cloud, and the round trip is too slow for industrial control or autonomous driving, which do not wait. Run it only at the edge, and there is not enough compute. Is there a way for the cloud and the edge to split the work, keeping responses fast while holding energy in check?

LL-CEIoT answers with two moves that work together: quantization-aware placement of model layers and dynamic batch scheduling of tasks. On a real cloud-edge testbed, the paper reports up to 80% lower inference latency and up to 40% higher throughput than state-of-the-art baselines, a scalable, low-energy path for bringing LLMs into IoT.

The core tension

The compute and memory demands of LLMs are fundamentally mismatched with the processing power, memory, and energy budgets of IoT devices. Existing solutions address only half of the problem. Some compress the model and ignore scheduling; others optimize scheduling but ignore how quantization changes where a model fits.

LL-CEIoT architecture: cloud tier with full LLMs, edge tier with lightweight quantized LLMs, and IoT devices sending requests
Fig. 1 The three tiers of LL-CEIoT

The cloud runs full-size LLMs (Llama, BERT). The edge runs quantized lightweight models (TinyLlama, TinyBERT) with four modules: batch scheduling, adaptive quantization, LLM inference, and resource allocation. IoT devices at the bottom send different requests (decision making, device control, data syncing, health monitoring). Tasks travel up from the devices to the edge and the cloud, and models and parameters travel down from the cloud to the edge.

How It Works: Two Decisions

LL-CEIoT splits the problem into two layers of decisions and solves them in sequence.

Decision 1

Where does each task run?

Every task arrives with a deadline, a priority, and a data volume. The scheduler ranks tasks by value density (priority divided by the time left until the deadline). Based on each task's compute demand, memory footprint, and network bandwidth, it then sends the task either to a lightweight model at the edge (TinyLlama-1.1B) or to a full-size model in the cloud (Mistral-7B).

When a new batch has a much higher value density than the batch already running, the scheduler preempts: low-priority tasks step aside until the urgent batch finishes.

Decision 2

Where does each model layer run?

Once a node is chosen, a dynamic program assigns each LLM layer to a specific compute node. It accounts for every layer's compute and memory after quantization and keeps adjacent layers on the same node where possible, which cuts traffic between nodes.

Bit-widths are not one size fits all. Each layer type has its own minimum precision, and the large feed-forward (FFN) blocks are compressed to 4-bit, saving as much memory as possible while the accuracy loss stays within what each task tolerates.

Behind both decisions sits one formal model: a multi-objective mixed-integer nonlinear program (MINLP) that jointly minimizes inference latency, communication overhead, and energy. Solving it exactly at runtime is far too slow, so the two-stage heuristic above completes scheduling and placement in polynomial time, and experiments confirm that it lands close to the optimum.

Multi-tier dynamic batch scheduling pipeline across pre-stage routing and quantization selection
Fig. 2 Multi-tier dynamic batch scheduling pipeline across pre-stage routing and quantization selection

Three Highlights

1

Quantization is tied to placement

Quantization is not a separate preprocessing step. Each layer's bit-width is an input to the placement decision: low-precision layers take less memory and fit more flexibly onto edge nodes that are short on resources. Compared with a fixed 8-bit scheme, this adaptive quantization raises the task completion rate by 5.1 percentage points on average.

2

Fast enough for online scheduling

Instead of forcing a solution to the full MINLP, the paper decouples it into greedy scheduling followed by dynamic-programming placement, keeping the complexity polynomial. On small instances that the SCIP solver solves exactly, the two-stage heuristic is on average only 1.04% away from the optimum while running 351 times faster (0.15 ms versus 60.1 ms), well within the real-time needs of online scheduling.

3

A real testbed, not only simulation

The three-tier system runs on physical machines: Mistral-7B in the cloud on an RTX 2080 Ti, five edge servers with Quadro P2200 GPUs running TinyLlama-1.1B, and ten Docker containers emulating IoT devices. Network conditions (1 to 50 Mbps, 12.5 to 75 ms) come from the real MedBIoT IoT traffic dataset. The code is open on GitHub.

Experimental Results

LL-CEIoT is compared with two published systems, FineInfer and Edge-LLM.

Measure (setting)LL-CEIoTEdge-LLMFineInfer
Task completion time, 1 edge server290 s320 s480 s
Task completion time, 5 edge servers65 s120 s155 s
Completion rate, most complex tasks92%71%82%
Energy, 10 IoT devices (300 s window)24.2 kJ35.3 kJ37.9 kJ
Edge GPU memory, 5 edge servers3.4 GB4.6 GB5.0 GB
Cloud GPU memory (Mistral-7B)4.4 GB6.8 GB9.1 GB

At ten devices, LL-CEIoT uses about 31% less energy than Edge-LLM and 36% less than FineInfer. Under deliberate overload, value-density scheduling with preemption keeps the deadline-miss rate of latency-critical tasks below that of first-come, first-served scheduling, and adaptive quantization beats a fixed 8-bit profile near saturation. Browse all result figures below.

Questions This Paper Answers

How do you run large language models on IoT devices?

LL-CEIoT (IEEE Transactions on Mobile Computing, 2026) runs LLMs for IoT by splitting the work between a cloud tier that hosts a full-size model and an edge tier that hosts lightweight, quantized models, so IoT devices send requests instead of holding a model themselves. In the LL-CEIoT testbed, Mistral-7B runs in the cloud on an RTX 2080 Ti, and TinyLlama-1.1B runs on five edge servers with 5 GB Quadro P2200 GPUs, where its 4-bit version occupies under 1 GB. LL-CEIoT jointly decides which tier serves each task and which node hosts each quantized model layer.

How does LL-CEIoT decide whether a task runs at the edge or in the cloud?

LL-CEIoT ranks incoming tasks by value density, defined as a task's priority divided by the time between its arrival and its deadline, and schedules them in batches to the edge tier (TinyLlama-1.1B) or the cloud tier (Mistral-7B) under compute, memory, and bandwidth constraints. In LL-CEIoT, a new batch preempts a running batch of lower criticality only when the total value density of the new batch is at least a fixed multiple, greater than one, of the total value density of the running batch.

What is quantization-aware layer placement in LL-CEIoT?

In LL-CEIoT, quantization-aware layer placement treats the bit-width of each model layer (4, 8, or 16 bits) as an input to the choice of which compute node hosts that layer, rather than as a separate preprocessing step. A dynamic program assigns layers to nodes using their compute and memory costs after quantization; feed-forward (FFN) layers receive lower precision, attention layers keep higher precision, and embedding layers stay at 16 bits. In the LL-CEIoT ablation, replacing this adaptive bit-width selection with a fixed 8-bit profile lowers the task completion rate by 5.1 percentage points on average.

How does LL-CEIoT compare with Edge-LLM and FineInfer?

On a cloud-edge testbed of physical servers driven by MedBIoT IoT traffic traces, LL-CEIoT completes 92% of the most complex tasks, compared with 71% for Edge-LLM and 82% for FineInfer. With ten IoT devices over a 300 s window, LL-CEIoT consumes 24.2 kJ of energy, compared with 35.3 kJ for Edge-LLM and 37.9 kJ for FineInfer. LL-CEIoT also uses less GPU memory: 3.4 GB at the edge with five edge servers (Edge-LLM 4.6 GB, FineInfer 5.0 GB) and 4.4 GB in the cloud (Edge-LLM 6.8 GB, FineInfer 9.1 GB).

How close to optimal is the LL-CEIoT scheduling heuristic?

LL-CEIoT formulates joint task batching, scheduling, and layer placement as a multi-objective mixed-integer nonlinear program (MINLP) that minimizes batch delay, communication overhead, and energy, and it solves the problem online with a two-stage polynomial-time heuristic. On small instances that the SCIP solver solves exactly, the LL-CEIoT heuristic is on average 1.04% away from the optimum and runs 351 times faster (0.15 ms versus 60.1 ms).

How does LL-CEIoT scale with the number of edge servers?

In the LL-CEIoT experiments, task completion time falls from about 290 s with one edge server to about 65 s with five edge servers, a 77% reduction. With five edge servers, Edge-LLM needs about 120 s and FineInfer about 155 s for the same workload.

Abstract

The memory footprint and computational intensity of Large Language Models (LLMs) present a fundamental mismatch with the limited processing power and strict energy budgets of Internet of Things (IoT) devices. Collaborative Cloud-Edge (CE) computing offers a viable solution by bridging the cloud's superior computational resources with the edge's proximity to data sources for low-latency inference. However, effectively leveraging this architecture remains challenging, as it requires coordinated management of dynamic task batching and the placement of quantized model layers across heterogeneous nodes. To address this challenge, this paper proposes LL-CEIoT, a multi-tier cloud-edge collaborative framework that jointly optimizes lightweight LLM execution for IoT tasks. The framework incorporates quantization-aware LLM layer placement and formulates joint task batching and scheduling as a multi-objective mixed-integer non-linear programming (MINLP) problem. To support efficient online orchestration under resource constraints, a two-stage heuristic is developed that combines value density-based batch scheduling with a dynamic programming strategy for quantization-aware layer placement. Extensive experiments on a realistic cloud-edge testbed driven by IoT traffic traces demonstrate that LL-CEIoT reduces inference latency by up to 80% and improves throughput by up to 40% compared to state-of-the-art baselines, while maintaining scalability across heterogeneous devices.

Research Keywords

Cite This Paper

IEEE

M. M. Karim, S. Khan, and Q. Qu, "LL-CEIoT: Lightweight LLM-Based Collaborative Cloud-Edge Computing for Internet of Things," IEEE Transactions on Mobile Computing, pp. 1–15, 2026. https://doi.org/10.1109/TMC.2026.3737299

APA

Karim, M. M., Khan, S., & Qu, Q. (2026). LL-CEIoT: Lightweight LLM-based collaborative cloud-edge computing for Internet of Things. IEEE Transactions on Mobile Computing, 1–15. https://doi.org/10.1109/TMC.2026.3737299

BibTeX (download .bib)

@article{karim2026llceiot,
  title={{LL-CEIoT}: Lightweight {LLM}-Based Collaborative Cloud-Edge Computing for {Internet of Things}},
  author={Karim, Md Monjurul and Khan, Sangeen and Qu, Qiang},
  journal={IEEE Transactions on Mobile Computing},
  pages={1--15},
  year={2026},
  doi={10.1109/TMC.2026.3737299},
  publisher={IEEE}
}

DOI: 10.1109/TMC.2026.3737299

SIAT