Abstract
This document serves as an overview of the different mechanisms and areas of governance in the BigCode project. It aims to support transparency by providing relevant information about choices that were made during the project to the broader public, and to serve as an example of intentional governance of an open research project that future endeavors can leverage to shape their own approach. The first section, Project Structure, covers the project organization, its stated goals and values, its internal decision processes, and its funding and resources. The second section, Data and Model Governance, covers decisions relating to the questions of data subject consent, privacy, and model release.
Introduction
The rapid advancement of Large Language Models (LLMs) for code has historically occurred within proprietary silos. Early state-of-the-art models, such as the original Codex, were developed behind closed doors, creating significant hurdles for the broader research community. This "black box" approach limits accountability regarding privacy and licensing, restricts accessibility to well-funded labs, and often ignores the consent of the developers whose open-source contributions fuel these systems.
The BigCode project, a collaboration between Hugging Face and ServiceNow, was established to address these gaps. By prioritizing "intentional governance," the project demonstrates that high-performance models can be built with community oversight, ethical guardrails, and open-science principles. This paper outlines the governance framework that guided the creation of models like StarCoder and datasets like "The Stack."
Project Structure and Decentralized Governance
BigCode operates as a decentralized, community-driven initiative. Rather than being controlled by a single corporate entity, the project is organized into specialized working groups focusing on Legal, Ethics, and Governance. This structure allowed for the coordination of over 675 participants from 62 countries, proving that massive-scale AI development can be successfully managed through a distributed, collaborative model.
Decisions within the project are guided by a commitment to transparency and the belief that the process of building a model is as important as the model itself. The "Governance Card" serves as a blueprint for this process, providing a template for future open-source AI endeavors to follow.
Data Stewardship: The Stack and Developer Agency
The backbone of the BigCode project is The Stack, a massive dataset of source code designed with a focus on permissive licensing and developer agency.
- The Stack (v1.2): This dataset contains 6.4TB of permissively licensed code across 358 programming languages, curated from a raw 102TB crawl of GitHub.
- Contextual Data: To improve the models' ability to understand the rationale behind code, the project also incorporated GitHub Issues and Commits.
- Developer Agency: Acknowledging that legal "fair use" does not always equate to social acceptability, BigCode introduced the "Am I in The Stack" tool. This allows developers to check if their code is included in the training set and request its removal, shifting the power dynamic back toward the individual contributor.
Technical and Ethical Guardrails
The project treats ethical considerations not as obstacles, but as drivers for technical innovation. Two primary mechanisms were implemented to ensure responsible release:
- PII Redaction: To protect privacy, the team developed a custom machine learning model to detect and mask Personally Identifiable Information (PII), such as names, emails, and secret keys, within the source code. This tool achieved a 90% F1 score, significantly improving the safety of the training data.
- Responsible Licensing (OpenRAIL-M): BigCode utilized OpenRAIL-M licenses for its models. These licenses allow for free distribution and use while maintaining "use-based restrictions" to prevent the models from being leveraged for malicious activities, such as the automated generation of malware.
Performance and Environmental Impact
The BigCode framework successfully produced models that rival or exceed proprietary alternatives:
- StarCoder (15.5B parameters): Trained on 1 trillion tokens, StarCoder matches or surpasses the performance of OpenAI’s
code-cushman-001on various benchmarks like HumanEval and APPS. - SantaCoder (1.1B parameters): This smaller, highly efficient model demonstrated that specialized training on high-quality data allows smaller models to outperform much larger open-source counterparts in languages like Java, JavaScript, and Python.
In addition to performance metrics, BigCode committed to environmental transparency. The project explicitly calculated and published the carbon emissions for training: approximately 124 kg CO2eq for SantaCoder and 16.68 tonnes for StarCoderBase.
Limitations and Future Work
Despite these advancements, several challenges remain. The "copy-left" challenge persists; even if a developer opts out, their code may exist in other repositories under different licenses, making complete removal difficult. Furthermore, "machine unlearning"—the process of removing data from a model after training—remains a complex technical hurdle.
Future work will focus on these technical challenges and continue to explore scaling laws, as initial analysis suggests that training smaller models on even larger, high-quality token sets could lead to even more efficient and "green" AI systems.
Conclusion
The BigCode project provides a viable path forward for open-source AI development. By integrating governance into the technical pipeline, the project has created a transparent, accountable, and high-performing ecosystem for code LLMs, setting a new standard for responsible research in the field.
Summary updated