The concept of federated learning works by distributing the learning process across multiple devices or servers, keeping the data local while still enabling collaborative training of a shared global model.