16:00:20 RRSAgent has joined #webmachinelearning 16:00:25 logging to https://www.w3.org/2026/12/03-webmachinelearning-irc 16:00:25 RRSAgent, make logs Public 16:00:26 please title this meeting ("meeting: ..."), anssik 16:00:26 Chair: Anssi 16:00:33 Agenda: https://github.com/webmachinelearning/meetings/blob/main/telcons/2026-12-03-wg-agenda.md 16:00:57 Mike_Wyrzykowski has joined #webmachinelearning 16:01:43 Scribe: Anssi 16:01:51 scribeNick: anssik 16:02:07 gb, this is webmachinelearning/webnn 16:02:07 anssik, OK. 16:02:46 present+ ThomasSteiner 16:02:54 Present+ Anssi_Kostiainen 16:03:01 Present+ Bryan_Bernhart 16:03:09 Present+ Dwayne_Robinson 16:03:12 Mike_Wyrzykowski 16:03:13 DwayneR has joined #webmachinelearning 16:03:21 Present+ Mikhail_Klimenko 16:03:39 s/Mike_Wyrzykowski/Present+ Mike_Wyrzykowski 16:03:41 Present+ Ningxin_Hu 16:03:50 RRSAgent, draft minutes 16:03:51 I have made the request to generate https://www.w3.org/2026/12/03-webmachinelearning-minutes.html anssik 16:04:03 Anssi: please join me in welcoming Hyojin Song from LGE to the group! 16:04:13 Topic: Web Neural Network API 16:04:17 gb, this is webmachinelearning/webnn 16:04:17 anssik, OK. 16:04:33 Subtopic: ZeroPoint for quantizeLinear and dequantizeLinear 16:04:45 Anssi: issue #943 and PR #985 16:04:45 https://github.com/webmachinelearning/webnn/pull/985 -> PR 985 Make zeroPoint optional for quantizeLinear() and dequantizeLinear() (by Yuhengwe1) [Agenda+] 16:04:45 https://github.com/webmachinelearning/webnn/issues/943 -> Issue 943 Make zeroPoint optional for quantizeLinear and dequantizeLinear operations (by Yuhengwe1) [Agenda+] 16:05:01 ... we have a PR to make zeroPoint optional in quantizeLinear and dequantizeLinear 16:05:07 ... as discussed in the initial issue, this enables performance optimizations 16:05:34 ... this suggested changes allows implementations to optimize memory use and improve overall performance 16:05:38 ... select the appropriate kernel based on the presence of zeroPoint 16:05:53 ... since our last discussion, Yuheng proposed the following enhancements to clarify the behavior: 16:06:11 ... "outputDataType is now a required argument of quantizeLinear(), and MLQuantizeLinearOptions is dropped" 16:06:19 ... Mikhail notes this clarification matches TensorRT 16:06:36 ... Dwayne notes asymmeticity in the handling of zeroPoint between quantizeLinear and dequantizeLinear 16:06:43 ... and proposes to handle zeroPoint symmetrically in both quantizeLinear and dequantizeLinear 16:06:45 RafaelCintron has joined #webmachinelearning 16:06:50 Ehsan has joined #webmachinelearning 16:07:04 ... proposal to move zeroPoint from the MLQuantizeDequantizeLinearOptions dictionary into an optional parameter of (de)quantizeLinear() 16:07:13 ... dictionary MLQuantizeDequantizeLinearOptions { MLOperand zeroPoint } 16:07:18 ... => 16:07:29 ... MLOperand (de)quantizeLinear(..., optional MLOperand zeroPoint, ...) 16:08:00 Anssi: Dwayne's proposal improves the consistency of the API, unless there are known tradeoffs I'd prefer to see that design considered 16:08:04 ... any known tradeoffs with Dwayne's symmetric proposal? 16:08:10 q+ Dwayne 16:08:10 ack DwayneR 16:08:13 ack Dwayne 16:08:51 Dwayne: zeroPoint is technically optional, most of the times this is very salient, should be part of the function prototype 16:09:27 q+ Mikhail 16:09:30 ack Mikhail 16:10:21 Mikhail: zeroPoint is more often found in legacy models, not in LLMs, but for Computer Vision models, Stable Diffusion models 16:10:41 ... we see trend in moving toward symmetric quantization 16:10:41 q? 16:11:04 q+ 16:11:08 ack mklimenko 16:12:02 Mikhail: overall I'm not opposed in making zeroPoint optional, however, we cannot deduce the output data type from input and scale 16:12:19 ... maybe output datatype could also move to the disctionary, need to think 16:12:20 q? 16:13:14 Anssi: implementation work in flight? 16:13:23 Ningxin: Yuheng is prototyping 16:13:53 Present+ Ehsan_Toreini 16:14:15 Anssi: let's solicit feedback in the issue and PR before we proceed to land this 16:14:30 q? 16:14:44 Subtopic: Overflows in float32 16:14:57 Anssi: issue #967 16:14:57 https://github.com/webmachinelearning/webnn/issues/967 -> Issue 967 Do subnormal results have to be preserved when the reference formula overflows in float32? (by matthargett) [Agenda+] 16:15:21 ... Matt was running SmolLM2-135M and ran into float32 overflows when using the sigmoid emulation path we have in the spec: 1 / (exp(-x) + 1) 16:15:37 ... current WPT assumes subnormal results are preserved within the tolerance 16:16:02 ... Dwayne suggested we should split this in two: 16:16:05 ... pure data movement operators should preserve bits 16:16:11 ... math operators may allow flush-to-zero for subnormal results 16:16:17 ... WebGPU allows flush-to-zero for subnormal results in mathematical operations 16:16:21 -> https://www.w3.org/TR/WGSL/#floating-point-accuracy 16:16:45 Anssi: the list provided by Dwayne suggests we don't yet know how all backends handle this 16:16:57 ... we also have learnings from DirectML conformance test that could apply here 16:17:01 q+ Dwayne 16:17:06 ack Dwayne 16:17:57 Dwayne: two categories are accurate, we can investigate the backends, knowing some backends allow flushing suggest we should make that supported case in the spec, some backends do preserve so need corresponding logic in WPT 16:18:10 ningxin has joined #webmachinelearning 16:19:19 q? 16:19:52 +1 16:19:53 +1 16:20:09 q+ 16:20:09 RESOLUTION: Update WPT comparison helpers for bitwise data movement ops and a mathy comparer for subnormal flushing. Optionally research how different backends and hardware handle subnormal results. (issue #967) 16:20:27 ack Mike_Wyrzykowski 16:20:42 MikeW: are we confident all hardware can preserve subnormals over float32? 16:20:51 Dwayne: not confident 16:21:16 MikeW: the overflow case is orthogonal to subnormal preservation 16:21:31 +1 16:21:35 s/MikeW: the/Dwayne: the 16:21:43 MikeW: no concerns then 16:21:57 Subtopic: WebNN caching with Cross-Origin Storage 16:22:01 Anssi: issue #971 16:22:02 https://github.com/webmachinelearning/webnn/issues/971 -> Issue 971 Investigate how to integrate WebNN caching with Cross-Origin Storage (by anssiko) [Agenda+] 16:22:05 -> Cross-Origin Storage (COS) https://wicg.github.io/cross-origin-storage/ 16:22:26 Anssi: this is a Dublin resolution follow-up to investigate how to integrate WebNN caching with Cross-Origin Storage so that compiled models can be used cross-origin 16:22:36 ... Tom has been looking into the integration of WebNN caching with Cross-Origin Storage 16:22:50 ... COS spec added a "derived artifacts" feature that enables caching a compiled WebNN graph (or a Wasm modules, or a GPU pipeline): 16:22:55 -> https://wicg.github.io/cross-origin-storage/#derived-artifacts 16:23:09 Anssi: to make WebNN caching compatible with COS derived artifacts, Tom proposes the following WebNN changes: 16:23:17 ... - a new constant() overload with a Blob and an optional byte range 16:23:29 ... - new steps in build() to derive a key and look up for a cached compiled graph 16:23:35 q+ Tom to explain the details 16:23:36 q? 16:23:38 ack Tom 16:23:38 Tom, you wanted to explain the details 16:24:38 Tom: this is an outcome of Dublin F2F, per resolution I started investigate this and have a proposed solution for the group 16:25:52 ... derived artifact in COS spec allow to go from Blob to derived artifact given a key 16:26:21 ... it has the notion of the Blob's hash, used to lookup what's the compiled graph 16:26:44 ... core idea is to come up with a new key algorithm 16:27:27 ... mitigations in place to avoid this being used as a tracking vector 16:27:49 ... question to the group, can compiled graphs be produced outside the renderer, and independently of how the graph ran, as the spec requires? 16:27:50 q? 16:28:01 Present+ Rafael_Cintron 16:28:05 q+ 16:28:27 q+ 16:28:31 Tom: core key is a lookup from the hash from the Blob, connected to something internally storeable connected with the compiled graph 16:28:33 q? 16:29:04 ack RafaelCintron 16:29:30 Rafael: per sample code we're hashing the weights, it saves from re-downloading weights 16:29:41 ... there's also value in saving the output of the compilation itself 16:29:48 Tom: that is also part of the proposal 16:29:49 bryanb has joined #webmachinelearning 16:30:00 ... hash is tied to the Blob, key is based on the Blob hash 16:30:13 ... objective to save in cache the compiled graph 16:30:37 Rafael: I was confused because I saw sample code referring to weights 16:31:07 Tom: hidden magic, storing the actual weights, after compilation, lookup points to the compiled graph 16:31:38 Rafael: storing the compiled graph and getting it again, does that happen automatically without the developer needing to manage the keys? 16:32:22 Tom: happens in the background, as a developer only need to store the weights and obtain what looks like weights but the implementation would get back the compiled graph internally 16:32:58 Rafael: web developers only need to be considered of the weights, not the internal representation of the compiled graph 16:33:00 q? 16:33:22 Rafael: about the budget, is this the user's budget, or domain's, or website's? 16:33:40 Tom: COS challenge is it has a risk of becoming a super-cookie 16:34:21 ... the budget makes this attack as hard as possible, if not impossible 16:34:44 ... you can't read enough data back to make the attack successful 16:34:47 q? 16:36:11 ack mklimenko 16:36:56 Mikhail: idea of caching compiled graphs is great, when we compile the binary blob, when do we retrieve this compiled graph? 16:37:59 Tom: you get the key to the cached compiled graph when you fetch the same weights for the next time 16:38:28 Mikhail: if we rely on weights themselves, this could be broken when we have weight sharing between multiple models 16:38:41 ... for example, decode and prefill parts 16:39:09 Tom: we could store both weights 16:39:14 q+ 16:39:23 ack RafaelCintron 16:39:48 q+ 16:40:38 Rafael: I think the intent of this feature is when you compile the graph, it is small enough that it can be cached together with that origin and this avoid the recompile 16:41:33 Tom: with the feedback from Mikhail, need to store both the weights and compiled artifacts 16:41:51 q? 16:42:05 ack ningxin 16:42:25 https://github.com/webmachinelearning/webnn/issues/807 16:42:26 https://github.com/webmachinelearning/webnn/issues/807 -> Issue 807 Caching mechanism for MLGraph (by anssiko) [question] [feature request] 16:42:36 Ningxin: Tom could you clarify what is this proposals relationship with the explicit caching API? 16:43:09 -> https://github.com/webmachinelearning/webnn/blob/main/cache-explainer.md 16:44:02 Tom: the proposals seem to be independent, COS is a web platform-level primitive 16:46:19 Tom: welcome WebNN experts to provide to comments on the WebNN changes and spec changes 16:47:23 +1 16:47:26 +1 16:47:26 +1 16:47:30 RESOLUTION: The group supports exploring WebNN compiled graph caching with Cross-Origin Storage using derived artifacts, next step spec PR to review the proposed WebNN changes in context. Investigate WebNN MLGraph Cache Explainer synergies. (issue #971) 16:47:35 Subtopic: WebNN-WebGPU interop 2027 16:47:49 Anssi: things are aligning here, WebGPU is getting adopted by products, WebNN OT is approaching, and we're rechartering the group for 2027 16:47:53 ... now is an appropriate time to refresh our WebNN-WebGPU interop priorities for 2027 16:48:08 ... we have open issues related to WebGPU interop not touched in a while, and we should review them to see if there are any updates or new information 16:48:13 -> [webgpu interop] issues https://github.com/webmachinelearning/webnn/issues?q=state%3Aopen%20label%3A%22webgpu%20interop%22 16:48:20 Anssi: I'd do a quick checkout on existing issues first and then see what new may be in the pipeline for 2027 16:48:25 Anssi: interopDevice for zero-copy selection issue #941 16:48:26 https://github.com/webmachinelearning/webnn/issues/941 -> Issue 941 WebNN/WebGPU zero-copy device selection (by bbernhar) [webgpu interop] [Agenda+] 16:48:51 Anssi: Bryan, Reilly and MikeW seem to agree that createContext({ interopDevice: gpuDevice }) design is the cleanest approach 16:49:05 ... any ongoing prototyping work, blockers the group should know about? 16:49:31 Bryan: high-level spec looks good to me, implementation story for multi-adapter case requires significant work 16:49:56 ... from the spec side, pretty stable, one edge case having an explicit export destination for interop devices 16:51:26 Bryan: I'm fine moving this to spec PR phase, not blocking anyone 16:51:45 Anssi: exported GPUBuffer usage flags issue #954 16:51:46 https://github.com/webmachinelearning/webnn/issues/954 -> Issue 954 MLTensor export to GPUBuffer with custom usages? (by mwyrzykowski) [webgpu interop] [Agenda+] 16:52:08 Anssi: MikeW and Bryan agree the best approach is that createExportableTensor() accepts the exact GPUBufferUsageFlags for the exported buffer 16:52:12 ... next steps? 16:52:57 Bryan: wanted to ask MikeW if explicit indirect is needed 16:53:08 q? 16:53:24 Anssi: timelines issue #529 and timeline destruction issue #716 16:53:25 https://github.com/webmachinelearning/webnn/issues/716 -> Issue 716 MLBuffer destruction timeline (by reillyeon) [question] 16:53:25 https://github.com/webmachinelearning/webnn/issues/529 -> Issue 529 Specify WebNN timelines (by a-sully) [webgpu interop] [Agenda+] 16:53:45 Anssi: since this issue was opened, the group added [[timeline]] internal slot that is associated with the execution of operations: 16:53:48 -> https://www.w3.org/TR/webnn/#dom-mlcontext-timeline-slot 16:54:12 Anssi: this internal slot allows us to track the timeline of operations, referenced from methods in the WebNN spec that involve execution of operations: 16:54:22 ... 8.3.1. dispatch() 16:54:22 ... 8.3.2. createTensor() 16:54:22 ... 8.3.3. createExportableTensor() 16:54:22 ... 8.3.4. createConstantTensor() 16:54:22 ... 8.3.5. readTensor(tensor) 16:54:22 ... 8.3.6. readTensor(tensor, outputData) 16:54:23 ... 8.3.7. writeTensor() 16:54:23 ... 8.3.8. exportToGPU() 16:54:23 ... 8.4.1. destroy() 16:54:24 ... 8.8. MLTensor interface 16:54:24 ... 8.8.1. Creating an MLTensor 16:54:24 ... 8.8.2. destroy() 16:54:25 ... 8.9.4. build method 16:54:30 Anssi: we also have an open issue for timeline destruction #716 (note that MLBuffer evolved into MLTensor) 16:54:31 https://github.com/webmachinelearning/webnn/issues/716 -> Issue 716 MLBuffer destruction timeline (by reillyeon) [question] 16:54:43 ... and since then we have spec'd MLContext.destroy() and MLTensor.destroy() 16:54:46 -> https://www.w3.org/TR/webnn/#api-mlcontext-destroy 16:54:50 -> https://www.w3.org/TR/webnn/#api-mltensor-destroy 16:55:01 Anssi: are we satisfied with the current timeline tracking and destruction mechanisms, what is the remaining work before we can close #529 and #716? 16:55:01 https://github.com/webmachinelearning/webnn/issues/529 -> Issue 529 Specify WebNN timelines (by a-sully) [webgpu interop] [Agenda+] 16:55:15 q? 16:55:40 Bryan: this issue is an old one, so could be stale, not sure if we need a multi-queue timeline model 16:56:00 ... question is, is anyone blocked on these two issues? 16:56:20 Anssi: Bryan, can you check if we can close these two issues? 16:56:57 Anssi: there's an older issue requesting sample code for WebGPU interop #343 16:56:57 https://github.com/webmachinelearning/webnn/issues/343 -> Issue 343 Add sample code for WebGPU interop (by huningxin) [editorial] [webgpu interop] [Agenda+] 16:57:05 ... do we have a plan for providing sample code for WebGPU interop? 16:57:12 q? 16:58:22 Bryan: this issue #343 builds upon the old model, I'd see if the new model addresses the concerns of OP in the issue 16:58:40 Anssi: I'd like to brainstorm on any additional opportunities for WebNN-WebGPU interop for 2027 16:59:21 Bryan: we have a use case showing up with video pipelines with SuperRes 16:59:49 ... optimization to avoid complex shaders 17:00:06 ... issue #961 17:00:07 https://github.com/webmachinelearning/webnn/issues/961 -> Issue 961 Direct Video Plane Access for WebNN (by bbernhar) 17:01:01 Bryan: a lot of models we see are pinned on a specific device, to hit the performance goals, control over the device is important for many use cases 17:01:34 ... if the model does not support an op, if zero-copy not working, back user experience, large performance cliffs developers have to figure out 17:01:54 q+ 17:02:03 Anssi: control over explicit device type would address that? 17:02:32 Bryan: right, that would help with these use cases, secondary is to provide detection if zero-copy is supported or not, needs the whole stack 17:03:58 Topic: Happy Holidays 17:04:04 Anssi: as the year is coming to an end, I would like to wish everyone Happy Holidays 17:04:15 ... thank you all for your contributions this year, it has been a productive, busy and successful year, with more excitement coming in 2027 17:04:32 ... our next meeting will take place 14 January 2027, see you all then! 17:04:36 RRSAgent, draft minutes 17:04:38 I have made the request to generate https://www.w3.org/2026/12/03-webmachinelearning-minutes.html anssik 17:05:09 Meeting: WebML WG Teleconference – 3 December 2026 17:05:12 RRSAgent, draft minutes 17:05:14 I have made the request to generate https://www.w3.org/2026/12/03-webmachinelearning-minutes.html anssik 17:06:55 s/changes allows/change allows 17:08:02 s/but for/but in 17:08:28 s/disctionary/dictionary 17:12:51 s/storeable connected/storable that is connected 17:14:11 s/be considered of the/consider the 17:16:25 s/provide to comments on the WebNN changes and spec changes/provide comments on the WebNN spec changes 17:21:04 s/back user/bad user 17:21:42 RRSAgent, draft minutes 17:21:43 I have made the request to generate https://www.w3.org/2026/12/03-webmachinelearning-minutes.html anssik 19:23:24 Zakim has left #webmachinelearning