Skip to content

Web Neural Network API 2025-03-20 > 2025-06-20 #156

@anssiko

Description

@anssiko

Other comments:

This API has received privacy review in 2021, 2022 and 2024. The following are the key changes that the group believes are of interest to privacy reviewers since the previous review took place:

New API to identify feature support per operator. The opSupportLimits() method allows developers to probe feature support per operator so that the optimal model architecture can be chosen ahead of time. With this information, the compatible model weights can be downloaded on the first attempt without costly trial and error (weights are typically large). The information exposed by this API roughly corresponds to the underlying operating system and/or browser version, thus the group believe this feature does not add to the entropy significantly.

Removal of the device type preference. The device type indicated the application’s preference for the kind of device used for the compute: "cpu", "gpu", or "npu". This device type abstraction represented by MLDeviceType was removed (see Device Selection Explainer) to mitigate the issue reported in the earlier privacy review:

Re: "If a future version of this specification introduces support for new a device type that can only support a subset of MLOperandTypes, that may introduce a new fingerprint", what mitigations does the WG envisage should this occur?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions