Noise Is Cheap, Truncation Is Not: Retraining-Free Compression and Edge Deployment of a Transformer-to-Gradient-Boosting Emergency Triage Model under a Non-Inferiority Rule
Mohammed Berrajaa, Daniel Balouek, Slim Hammadi, Edouard Lansiaux
Abstract
Clinical NLP models are typically validated on decision quality alone; the runtime cost of that quality (latency, memory, energy) is rarely measured, yet it determines whether a validated model can run on the modest hardware that hospitals actually own. We study this gap on a French-language emergency triage model that feeds the [CLS] embedding of a fine-tuned FlauBERT encoder, concatenated with ten structured variables, into an XGBoost head. We evaluate ten retraining-free compression configurations (thread tuning, sequence-length reduction, dynamic INT8 quantisation, padding bucketing, simulated INT4, structured pruning, representation distillation) and adjudicate each with a pre-specified non-inferiority rule: a paired-bootstrap one-sided 95% upper bound on the degradation of quadratic-weighted kappa, macro-F1 and mean absolute error must fall below a 0.05 margin for all three metrics jointly. Six configurations pass and four fail, including the fastest (78x). The retained configuration loses 0.011 weighted kappa and changes the predicted level of 6 of 400 patients, all by one level; under load on two wattmeter-instrumented Grid'5000 nodes it cuts median latency by 2.0-3.9x and energy per prediction by 2.9-6.0x, and the throughput gain widens to 5.4x under a 4-core envelope. Two findings generalise beyond triage. First, in a transformer-to-tree pipeline, simulated INT4 weight noise passes the rule while truncating inputs to 64 tokens fails it: removing information is more harmful than perturbing it. Second, accuracy deltas alone are not a deployment decision; an a-priori margin with paired uncertainty is. We complement the measurements with a systematic review (PRISMA 2020) of 30 edge-ML deployment papers, which shows that accuracy dominates reported model metrics, CPU load is reported by only 2 papers, and measured attack resistance by only 3.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
- Comments
- 21 pages, 4 figures, 9 tables
Related papers
Starling: Real-Time Venue Crowd Forecasting with Gradient-Boosted Trees and Live Readings
Shared title terminologycs.LGJayden Bansal
Critical Sequence Length: A Note on How Document Structure Bounds Gradient-Noise Reduction
Shared title terminologycs.LGSunny Guha
When Does Separable Structure Pay? Restriction Cost and a Predicted Crossing Size in Noise-Weighted Reconstruction
Shared title terminologycs.LGDowling Wong, Markus Klute
Source-Free Cross-Domain Continual Learning via Orthogonal Sharpness-Aware Vision Language Models
Shared title terminologycs.LGAmri Muhaimin, Mahardhika Pratama, Rizal Hamdan Arigusti et al.
UADT: Uplift-Aware Decision Transformer for Budget-Constrained Sequential Marketing Incentive Allocation
Shared title terminologycs.LGZixing Shi, Yilei Zhao, Hua Wei et al.
Understanding Gradient Dynamics of Restricted Boltzmann Machines for Variational Inference
Shared title terminologycs.LGYuehaw Khoo, Jingbin Pan