Reports on the Hub: A First Look at Self-governance in Open Source AI Development

<p>
<img alt="" src="https://cdn-uploads.huggingface.co/production/uploads/6531310497d7f1b4a083de7b/mWAsYQK9yJPaQRY86ijLc.png" style="display: block; margin: auto;"/></p>
<p>Hugging Face has a unique position as the most widely used open-source platform for AI models. As in many open-source projects, one of the invaluable contributions of the community is maintenance. At Hugging Face, this work includes reporting issues with models and datasets, clarifying problems with the uploaders, and helping to resolve these discussions.</p>
<p>In open source software development, "<a href="https://en.wikipedia.org/wiki/Linus%27s_law" rel="nofollow">given enough eyeballs, all bugs are shallow</a>”. At Hugging Face and in open source model development, given enough eyeballs, ML models can become good, adjusted to the needs of the different communities, and less prone to unintentional mistakes.  </p>
<p>When looking at the reports the community creates, we find interesting insights into the self-governance of the Hugging Face community. While reports are a subset of <a href="https://huggingface.co/docs/hub/repositories-pull-requests-discussions">discussions and pull requests</a>, they focus on non-technical issues, i.e., the model works but the report could focus on ethical, legal, or other issues.</p>
<p><img alt="" src="https://cdn-uploads.huggingface.co/production/uploads/6531310497d7f1b4a083de7b/26-uVSuLjweZuG3Kka135.png" style="display: block; margin: auto;" width="500"/></p>
<p style="text-align: center;"><i>The reporting interface for a dataset. This creates a public report, which can be found in the community tab.<br/>Reports are marked there with the 🚩 reports flag, they are a subset of the discussions and pull requests.</i></p>
<p><img alt="" src="https://cdn-uploads.huggingface.co/production/uploads/6531310497d7f1b4a083de7b/DhZHhfVtNAInqGeUfEFWu.png" style="display: block; margin: auto;" width="600"/></p>
<p style="text-align: center;"><i>Centering the community, the community tab exists along the dataset/model documentation and files.</i></p>
<p>Many parts of the hub are <a href="https://huggingface.co/docs/huggingface_hub/v0.17.0.rc0/en/guides/community">accessible through the API</a>, including the discussions and reports on the community tab. For this preliminary investigation of reports on the hub, all models and dataset repos are listed and the discussions are filtered by the 🚩 reports flag, to find all reports opened by the community. This information is publicly accessible and builds the base for further investigation of community governance, interaction, and self-organisation. Currently, there is a total of 565 reports (both open and closed) across both models and datasets. Given the large number of public model and dataset repos (774,384 as part of this report), the number of reports is relatively low. </p>
<p>In the reports pertaining to model repositories, among everyone opening, commenting on, and contributing to these reports, only 4% of users have a Hugging Face affiliation, i.e., <strong>96% of users interacting with model reports are part of the larger community</strong>.</p>
<p>Across the 436 (model repos) and 129 (dataset repos) reports, a majority of the reports are closed by a member of the Hugging Face community, i.e., not an employee, indicating the community working together. Many reports do not need intervention by Hugging Face; they are addressed and taken care of by the repo owner, i.e., the person uploading a model or dataset, or another member of the Hugging Face community.</p>
<p><img alt="" src="https://cdn-uploads.huggingface.co/production/uploads/6531310497d7f1b4a083de7b/9FaxpGsV7HK-ApYnLqwzx.png" style="display: block; margin: auto;" width="600"/></p>
<p style="text-align: center;"><i>Overview of who closes reports in model and dataset repos. A majority of reports in both repo types are closed by community members, not Hugging Face staff.</i></p>
<p>The topics of the reports, which the community closes themselves, vary and display the wide range of discussion topics that derive from an active open source ML community. </p>
<p><img alt="" src="https://cdn-uploads.huggingface.co/production/uploads/6531310497d7f1b4a083de7b/OXawuXs8Nrpo31tnRxYnp.png" style="display: block; margin: auto;" width="700"/></p>
<p style="text-align: center;"><i>Topics of reports that were closed by the community, removed reports that have very short descriptions (&lt; 3 words) or are hidden.</i></p>
<p>A good example of the community leveraging the technical capabilities of the platform is the <a href="https://huggingface.co/docs/hub/en/model-cards#how-can-i-indicate-that-my-model-is-not-suitable-for-all-audiences">NFAA tag</a>. Hugging Face has a focus on supporting model and dataset creators to extensively and clearly document their models and datasets, including adding tags for content that is not appropriate for all audiences (NFAA). When those tags are missing, community members point them out to each other (from the reports: “<i>Not For All Audiences; Please add NFAA Repository Label</i>”) and model owners follow prompt in implementing the suggestion (answer to the same report: “<i>Sorry, added</i>”).</p>
<p>As in many open source projects, there are a few dominant actors, who do a lot of the maintenance work, while there are many one-time contributors, which ensures a big-picture perspective from different angles [<a href="https://arxiv.org/abs/2405.13058" rel="nofollow">Osborne et al. 2024</a>]. In the figure of networks of users below, this phenomenon can be well-understood; users only interacting once are users who only interact on a single issue, while there are clusters of users who interact more frequently (and a few clusters of discussions involving multiple users). </p>
<p><img alt="" src="https://cdn-uploads.huggingface.co/production/uploads/6531310497d7f1b4a083de7b/mizzctRozqe4saTngrGDR.png" style="display: block; margin: auto;" width="600"/></p>
<p style="text-align: center;"><i>Network of users commenting on the same issues, where orange are users with Hugging Face affiliation, and light blue are other users.</i></p>
<p>As the community grows, self-governance becomes essential to maintaining a vibrant environment for developing innovative machine learning and ensuring diverse voices are heard. The current trajectory of self-governance on the hub is promising and holds exciting potential for the future of open-source machine learning.</p>
