Over-the-air Federated Learning Under Limited Communication Resources: A Study of Compression-Induced Error Feedback in Bandwidth Limited Settings
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
Trådlös Federerad Inlärning Under Begränsade Kommunikationsresurser : En Studie av Komprimeringsinducerad Felåterkoppling i Bandbreddsbegränsade Miljöer (Swedish)
Abstract [en]
This paper proposes an applied research study in the field of Machine Learning (ML). More specifically, it focuses on the subfield of Federated Learning (FL). While FL is an emerging and promising technology enabling the training of ML models in a decentralized setting, where devices do not share raw data, it still faces major communication bottlenecks. Therefore, this study aims to investigate how the transmission of the model updates can be reduced in size by using different types of compressors while at the same time maintaining the model’s accuracy using Error Feedback (EF). This idea is investigated in this thesis by building it on top of a state-of-the-art FL algorithm that does not have any compression mechanism. Upon implementation, a Python framework that models FL settings was used to conduct three different experiments. These are as follows: unidirectional compression from the agents to the server using rand-k, unidirectional compression from the agents to the server using quantization, bidirectional compression from the agents to the server using quantization. The simulations were then evaluated based on three metrics: the model’s accuracy, asymptotic error and convergence rate. The main results show that using EF, almost always resulted in a lower asymptotic error. With this in mind, it may be surprising to see that the accuracy does not follow the same trend. Based on our data, the question of whether EF improves or reduces the accuracy was indeterminate. Across all results however, we see that convergence rate is worsened by using EF, this seems to be the main cost attributed to EF. Finally, the effect of using EF can be both mitigated and amplified by the number of agents, features per data points and data points per agent. Furthermore, these effects seem unique to each compressor.
Abstract [sv]
Detta examensarbete presenterar en tillämpad forskningsstudie inom Maskininlärning (ML), med fokus på Federated Learning (FL) – en teknik som möjliggör träning av modeller i decentraliserade miljöer utan att rådata delas. Trots dess fördelar lider FL fortfarande av kommunikationsflaskhalsar. Studien undersöker hur storleken på modelluppdateringar kan minskas med olika kompressorer, samtidigt som modellens noggrannhet bevaras genom användning av (EF). Studien bygger vidare på en avancerad FL-algoritm utan inbyggda kompressionsmekanismer och genomför tre experiment med olika kompressionsstrategier: enkelriktad kompression med rand-k och kvantisering samt dubbelriktad kompression med kvantisering. Vid implementeringen användes ett Python-ramverk som modellerar federerade inlärningsmiljöer för att genomföra dessa experiment. Resultaten utvärderas med avseende på modellens noggrannhet, asymptotiskt fel och konvergenshastighet. Resultaten visar att EF nästan alltid minskar det asymptotiska felet, men dess påverkan på noggrannhet är osäker. En tydlig nackdel är att konvergenshastigheten försämras med EF. Dessutom påverkas effekten av EF av antalet agenter, antalet attributer per datapunkt och datamängden per agent, vilket i sin tur varierar mellan olika kompressorer.
Abstract [ro]
Această lucrare reprezintă un studiu de cercetare în domeniul Învățării Automate (ML). Mai precis, aceasta se concentrează pe subdomeniul Învățării Federate (FL). Deși FL este o tehnologie inovativă și promițătoare, care permite antrenarea modelelor de tip ML într-un cadru descentralizat, în care dispozitivele nu partajează date neprelucrate, aceasta se confruntă în continuare cu probleme în ceea ce privește comunicarea dintre dispozitive. Prin urmare, proiectul urmarește să investigheze modul în care transmiterea actualizărilor modelului poate fi redusă în dimensiune prin utilizarea diferitelor tipuri de compresoare menținând, în același timp, acuratețea modelului prin utilizarea mecanismului de Error Feedback (EF). Această idee este analizată prin implementarea sa într-un algoritm de ultimă generație, de tip FL, care nu are integrat un mecanism de compresie. După implementare, acesta a fost simulat într-un mediu de lucru scris în Python. În aceste condiții, au fost efectuate trei experimente diferite, după cum urmează: compresie unidirecțională de la dispozitive către server folosind rand-k, compresie unidirecțională de la dispozitive către server folosind cuantizarea și compresie bidirecțională de la dispozitive către server folosind din nou tehnica cuantizării. Simulările au fost evaluate în funcție de trei parametri: acuratețea modelului, eroarea asimptotică și rata de convergență. Principalele rezultate arată că utilizarea tehnicii de EF a concluzionat în cele mai multe din cazuri, reducerea erorii asimptotice. În contrast, deși surprinzător, acuratețea modelului nu urmează aceeași tendință. Pe baza datelor noastre, întrebarea dacă EF îmbunătățește sau reduce acuratețea modelului rămâne neconcludentă. Totuși, în toate rezultatele observăm că rata de convergență este afectată în mod negativ de utilizarea EF care pare a fi principalul compromis asociat folosirii acestei tehnici. Cu toate acestea, efectul utilizării EF poate fi atenuat, dar și amplificat de numărul de dispozitive, de numărul de caracteristici asociat fiecărei înregistrări de date și de numărul de înregistrări de date atribuit fiecărui dispozitiv. Este de menţionat faptul că, rezultatele finale sunt specifice fiecărui tip de compresor.
Place, publisher, year, edition, pages
2025. , p. 79
Series
TRITA-EECS-EX ; 2025:379
Keywords [en]
Decentralized Machine Learning, Communication Bottlenecks, Model Update Compression, Quantization, Sparsification, Error Feedback
Keywords [ro]
Învățare Automată Descentralizată, Blocaje în Comunicare, Compresia Actu-alizărilor Modelului, Cuantizare, Selectarea Parametrilor, Error Feedback
Keywords [sv]
Decentralisera maskinlärning, Kommunikationsbegränsningar, Modelluppdatering, Komprimering, Kvantisering, Sparsifiering, Felåterkoppling
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367765OAI: oai:DiVA.org:kth-367765DiVA, id: diva2:1986182
Supervisors
Examiners
2025-08-102025-07-302025-08-10Bibliographically approved