Inference Energy and Latency in AI-Mediated Education: A Learning-per-Watt Analysis of Edge and Cloud Models
Organizations: Billabong High International School, Hadapsar, Pune, 411028, Maharashtra, India.
Abstract
Immediate feedback is a foundational requirement of effective AI-mediated learning, yet the energy and latency costs of delivering it remain largely unexamined. This study investigates the latency-energy-learning trade-off in AI tutoring through an empirical comparison of two on-device inference configurations of Microsoft Phi-3 Mini (4k-instruct) on an NVIDIA T4 GPU: full-precision FP16 and 4-bit NormalFloat (NF4) quantisation. Both were evaluated under KV-cache-enabled inference across 500 educational prompts spanning five secondary school subject domains. Pedagogical quality was assessed for each of the 1000 generated responses by a hybrid panel of 10 Cambridge International teachers and three frontier AI systems using a four-dimension rubric. We introduce Learning-per-Watt (LpW), a novel metric quantifying pedagogical value per unit of energy over the learner's waiting window. Under realistic deployment, NF4 achieves lower per-inference energy than FP16 (329 J vs. 369 J) but higher latency (13.4 s vs. 9.2 s), yielding a modest FP16 advantage in LpW of 1.33x at a quality difference of 0.19 points. Under cache-disabled inference -- used in offline evaluation but absent from real deployments -- the gap widens to 7.4x, overstating the FP16 advantage by more than fivefold. Quantisation efficiency is hardware-dependent and inference-regime dependent, with significant implications for equitable AI tutoring deployment in low-resource settings.
Figures & tables
| Dimension | Code | What is assessed |
|---|---|---|
| Conceptual Accuracy | CA | Factual correctness; absence of critical misconceptions that would mislead a learner |
| Clarity & Coherence | CC | Logical structure and readability of the explanation |
| Scaffolding Quality | SQ | Progressive knowledge building; use of examples, analogies, and step-by-step reasoning |
| Level Appropriateness | LA | Suitability of language and depth for secondary school learners (ages 14–18) |
| Weighting scheme | Mean Qped | Mean LpW ( ) | Ratio | ||
|---|---|---|---|---|---|
| (CA / CC / SQ / LA) | FP16 | NF4 | FP16 | NF4 | FP16/NF4 |
| Equal (0.25/0.25/0.25/0.25) | 8.238 | 8.047 | 2.499 | 1.877 | 1.331 |
| CA+SQ heavy (0.35/0.15/0.35/0.15) | 8.166 | 7.973 | 2.477 | 1.860 | 1.332 |
| CA dominant (0.40/0.20/0.25/0.15) | 8.230 | 8.038 | 2.496 | 1.875 | 1.331 |
| SQ dominant (0.25/0.20/0.40/0.15) | 8.116 | 7.917 | 2.461 | 1.846 | 1.333 |
| LA downweighted (0.30/0.30/0.30/0.10) | 8.158 | 7.955 | 2.474 | 1.855 | 1.334 |
| Dimension | FP16 | NF4 | ||
|---|---|---|---|---|
| ICC(2,1) | ICC(2,1) | |||
| Conceptual Accuracy (CA) | 0.26 | 0.30 | 0.17 | 0.19 |
| Clarity & Coherence (CC) | 0.49 | 0.51 | 0.36 | 0.39 |
| Scaffolding Quality (SQ) | 0.45 | 0.47 | 0.32 | 0.34 |
| Level Appropriateness (LA) | 0.10 | 0.15 | 0.08 | 0.11 |
| Overall | 0.41 | 0.42 | 0.30 | 0.35 |
| Dimension | FP16 | NF4 | ||
|---|---|---|---|---|
| ICC(2,1) | ICC(2,1) | |||
| Conceptual Accuracy (CA) | 0.35 | 0.41 | 0.09 | 0.18 |
| Clarity & Coherence (CC) | 0.29 | 0.33 | 0.12 | 0.22 |
| Scaffolding Quality (SQ) | 0.23 | 0.28 | 0.05 | 0.15 |
| Level Appropriateness (LA) | 0.09 | 0.14 | 0.04 | 0.11 |
| Overall | 0.24 | 0.29 | 0.08 | 0.17 |
| Dimension | FP16 | NF4 | ||
|---|---|---|---|---|
| ICC(2,1) | ICC(2,1) | |||
| Conceptual Accuracy (CA) | 0.21 | 0.39 | 0.04 | 0.33 |
| Clarity & Coherence (CC) | 0.42 | 0.45 | 0.23 | 0.37 |
| Scaffolding Quality (SQ) | 0.38 | 0.41 | 0.07 | 0.34 |
| Level Appropriateness (LA) | 0.10 | 0.28 | 0.05 | 0.31 |
| Overall | 0.37 | 0.42 | 0.18 | 0.35 |
| Aggregation | FP16 LpW | NF4 LpW | FP16/NF4 Ratio |
|---|---|---|---|
| Human-only | 1.34 | ||
| AI-only | 1.33 | ||
| 60/40 Weighted | 1.33 |
| Config | Precision | Mean | Mean Net | Mean | Mean LpW |
|---|---|---|---|---|---|
| Latency (s) | Energy (J) | ||||
| FP16 (edge) | 16-bit | 9.17 | 368.8 | 8.24 | 2.50 |
| NF4 (edge) | 4-bit | 13.36 | 329.0 | 8.05 | 1.88 |
| Ratio (FP16 / NF4) | faster | higher | higher | ||
| FP16 | NF4 | |||||||
| Category | Lat. | Energy | LpW | Lat. | Energy | LpW | ||
| (s) | (J) | (s) | (J) | |||||
| Mathematics | 9.30 | 372.9 | 8.20 | 2.46 | 13.55 | 328.2 | 8.09 | 1.84 |
| Science | 9.11 | 366.8 | 8.27 | 2.60 | 13.40 | 333.2 | 8.01 | 1.82 |
| Programming-CS | 9.11 | 367.2 | 8.19 | 2.50 | 13.34 | 332.7 | 7.93 | 1.89 |
| Humanities | 9.14 | 367.5 | 8.27 | 2.48 | 13.20 | 319.9 | 8.12 | 1.97 |
| Configuration | Location | Mean | Client-side | DC Energy | LpW |
|---|---|---|---|---|---|
| Latency (s) | Energy (J) | Included? | Basis | ||
| FP16 (Phi-3 Mini) | Edge T4 | 9.2 | 368.8 | Yes | Fully measured |
| NF4 (Phi-3 Mini) | Edge T4 | 13.4 | 329.0 | Yes | Fully measured |
| Cloud LLM (GPT-4) | Cloud API | 2–4 | few J | No | Estimated only |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | VRAM | Mean | Mean Net | Mean LpW | Outcome |
|---|---|---|---|---|---|
| (GB) | Lat. (s) | Energy (J) | |||
| Phi-3 Mini 4B | 7.2 | 16.73 | 652 | 7.55 | Selected |
| Llama-3 8B Instruct | — | — | — | — | OOM |
| Mistral 7B Instruct | 13.4 | 81.93 | 3,687 | 0.26 | High latency |
| Gemma 7B Instruct | — | — | — | — | Load error |
| TinyLlama 1.1B Chat | 2.2 | 7.51 | 432 | 24.6 | Quality issues |
| Model | Server Energy | Energy | Client | Source |
| (Wh/query) | (J) | Latency (s) | ||
| GPT-4o | 0.43 0.13 | 1,550 | 1.9 | Jegham et al. (2025) ; Vellum AI (2024) |
| Claude-3.5 Sonnet | n/a (eco-efficient) | est. 1,550 | 3.8 | Jegham et al. (2025) ; Vellum AI (2024) |
| Gemini-1.5 Pro | 0.24 a | 864 | 2–5 | Google Cloud (2025) |
| a Google Cloud (2025) reports median per-query energy for Gemini models inclusive of PUE. | ||||
| n/a = not publicly disclosed by provider. | ||||
| Metric | Formula | FP16 mean | NF4 mean | Ratio | FP16 NF4? |
| LpW (primary) | ✓ | ||||
| QpJ (energy only) | × | ||||
| QpS (latency only) | ✓ | ||||
| LpW geo (geometric) | ✓ | ||||
| QpJ = quality-per-Joule; QpS = quality-per-second; LpW geo uses geometric-mean denominator. | |||||
| Config | Cache | Lat. (s) | Energy (J) | LpW | |
| FP16 | ON (primary) | 9.17 | 368.8 | 8.24 | |
| FP16 | OFF (secondary) | 16.47 | 648.0 | 7.97 | |
| NF4 | ON (primary) | 13.36 | 329.0 | 8.05 | |
| NF4 | OFF (secondary) | 49.40 | 1,882 | 7.89 | |
| FP16/NF4 ratio — cache ON | faster | higher | |||
| FP16/NF4 ratio — cache OFF | faster | higher | |||
| FP16 | NF4 | |||||
| Category | ON | OFF | Ratio | ON | OFF | Ratio |
| ON/OFF | ON/OFF | |||||
| Mathematics | 24.6 | 7.35 | 18.4 | 0.783 | ||
| Science | 26.0 | 7.57 | 18.2 | 0.858 | ||
| Programming-CS | 25.0 | 7.37 | 18.9 | 0.855 | ||
| Humanities | 24.8 | 7.45 | 19.7 | 0.908 | ||
| Category | Mean Latency (s) | Mean Tokens/s | ||
|---|---|---|---|---|
| F16 | Q4_K_M | F16 | Q4_K_M | |
| Mathematics | 64.90 | 29.09 | 3.14 | 6.94 |
| Science | 70.21 | 27.61 | 2.85 | 7.24 |
| Programming-CS | 72.13 | 27.19 | 2.79 | 7.36 |
| Humanities | 72.14 | 25.83 | 2.78 | 7.74 |
| Meta-cognition | 67.00 | 25.59 | 3.03 | 7.82 |
| Platform | Arch. | Config | Mean Lat. (s) | Energy (J) | LpW ( ) | Ratio |
|---|---|---|---|---|---|---|
| NVIDIA T4 | Turing GPU | FP16 | 9.17 | 368.8 | 2.50 | (FP16) |
| NVIDIA T4 | Turing GPU | NF4 | 13.36 | 329.0 | 1.88 | |
| Intel i7 11th gen | CPU (Iris Xe) | F16 | 69.28 | est. 1,385 J | est. 0.088 | (Q4) |
| Intel i7 11th gen | CPU (Iris Xe) | Q4_K_M | 27.06 | est. 541 J | est. 0.561 | |
| Laptop energy estimated at 20 W sustained package power; LpW ratio is power-invariant (see Section D.4). | ||||||
| T4 values from primary study ( ). Laptop values from this appendix ( ). | ||||||