webmachinelearning / webnn

🧠 Web Neural Network API
https://www.w3.org/TR/webnn/
Other
383 stars 46 forks source link

(Computer) network-related use cases #21

Open anssiko opened 5 years ago

anssiko commented 5 years ago

The newly launched Web & Networks Interest Group is looking for network-related use case input from WebML CG. In the context of the IG, "networks" means computer networks, not to be confused with neural networks :-) This is how the IG introduces itself:

The mission of the Web & Networks Interest Group is to explore solutions for web applications to leverage network capabilities in order to achieve better performance and resources allocation, both on the device and network.

The IG has identified the following use case for this group that could benefit from exposure of more advanced (computer) network capabilities to web apps:

The Web & Networks IG should coordinate with [WebML CG] to explore on how to load balance computing between cloud-based and client-side machine learning using network hints including bandwidth and latency, radio power consumption, and available computing power and battery on the client.

Let's use this issue to discuss and solicit feedback on use cases and requirements on network characteristics (bandwidth, latency, others) beneficial for implementing logic for switching between in-browser and cloud-based inference at runtime. For example, what network hints are needed to estimate when fetching a pre-trained model from the server yields too big of a startup cost? An example API that might get extended as an outcome is the Network Information API.

By seeding use case input to W&N IG, we can help make sure any future work on network information APIs consider requirements from the ML domain. I'm happy to package this group's input from discussion in this issue and submit it to the W&N IG. I think they're expecting us to provide feedback latest by TPAC timeframe mid-September.

FYI @sudeepdi @dontcallmedom

anssiko commented 5 years ago

The Web & Networks IG has documented its initial ML use case at https://github.com/w3c/web-networks/issues/2 and identified the following requirements:

  • The user agent must be able to query the network link information such as link latencies, link quality. The parameters TBD.
  • A network side agent must be able to monitor the networking conditions in real-time and share with any user-agent that is requesting it.