Debian debates AI models and the DFSG
The Debian project is discussing a General Resolution (GR) that would, if approved, clarify that AI models must include training data to be compliant with the Debian Free Software Guidelines (DFSG) and be distributed by Debian as free software. While GR discussions are sometimes contentious, the discussion around the proposal from Debian developer Mo Zhou has been anything but—there seems to be consensus that AI models are not DFSG-compliant if they lack training data. There are, however, some questions about the exact language and questions about the impact the GR will have on existing packages in the Debian archive.
While many folks in the free-software community are generally skeptical about AI and would be happy to see the trend come to an end, Zhou is certainly not in the anti-AI camp. He is a Ph.D. student at Johns Hopkins University, and his academic web site states that his research interest is in computer vision and machine learning. He has created a project called DebGPT that explores using LLMs to aid in Debian development. Clearly, he sees some value in the technology, but also wants to adhere to free-software principles.
GR proposal
In February, Zhou wrote
to the debian-project mailing list to say that he had created
"something draft-ish
" for a general resolution about applying
the DFSG to AI models, which he later defined thusly:
A pre-trained "AI model" is usually stored on disk in binary formats designed for numerical arrays, as a "model checkpoint" or "state dictionary", which is essentially a collection of matrices and vectors, holding the learned information from the training data or simulator. When the user make use of such file, it is usually loaded by an inference program, which performs numerical computations to produce outputs based on the learned information in the model.
He called for help in adding reference materials and to shape up the early draft before posting it. Zhou sent his revised proposal to the debian-vote mailing list on April 19, with a detailed explanation with his reasoning for the GR and several appendices containing background information on AI technology, previous discussions, and comments on possible implications if the proposal is passed.
Debian has taken up the topic previously (see LWN's coverage from 2018) but never settled the question. The goal now is to reach a consensus on handling AI models that are released under DFSG-compliant licenses, but do not provide training data. Zhou's proposal notes that the software that runs AI models, such as Python scripts or C++ programs, are out of scope of the proposal since traditional software is already a well-defined case.
The actual text of the proposal, what Debian members would vote for (or against), is short and to the point:
Proposal A: "AI models released under open source license without original training data or program" are not seen as DFSG-compliant.
Francois Mazen, Timo Röhling, Matthias Urlichs, Christian Kastner, Boyuan Yang, and others have replied to support and sponsor the proposal. Resolutions are required to have five additional sponsors before they are put to discussion and eligible for a vote. Currently, if put to a vote, Debian members would have a choice between "A" or "none of the above". It is possible, according to the resolution procedure, that amendments or alternative proposals, such as "AI models are DFSG-compliant if under DFSG licenses", could be added during the discussion period.
Thorsten Glaser posted
what he called a counter-proposal on April 23, and requested
comments. While Zhou's proposal would simply clarify that models
without training data do not meet the DSFG, Glaser goes much
further. For example, he wants Debian to require that models be
"trained only from legally obtained and used works
" and that
the data itself be under a suitable license for distribution. His
proposal would also place heavy requirements on building models that
would be hosted in Debian's main archive:
For a model to enter the main archive, the model training itself must *either* happen during package build (which, for models of a certain size, may need special infrastructure; the handling of this is outside of the scope of this resolution), *or* the model resulting from training must build in a sufficiently reproducible way that a separate rebuilding effort from the same source will result in the same trained model.
Finally, the current language would ask that training sources not
be obtained unethically and "the ecological impact of training and
using AI models be considered
". What constitutes ethical or
unethical acquisition of training sources is not defined. When asked
by Carsten Leonhardt to summarize the difference between the
proposals, Glaser replied
that his was "a hard anti-AI stance (with select
exceptions)
". Thomas Goirand said
that he would second Glaser's proposal, but he is the only one so far
to endorse it.
Possible impact
Gunnar Wolf replied
to sponsor the proposal and added that that Debian "cannot
magically extend DFSG-freeness to a binary we have no way to
recreate
". That does not mean, he said, that Debian is shut out
entirely from participating in the LLM world. Users could always
download models from other sources or the models could even be
uploaded to Debian's non-free
repository.
Among the potential implications listed in Appendix D
of the proposal is the downside that there are almost no useful AI
models that would be able to enter the main
section of Debian's archive under this interpretation. The upside
is that Debian does not have to immediately deal with "the
technical problem of handling 10+GB models in .deb packages
" or
expect downstream mirrors that host the main repository to carry
such large binary files.
Simon McVittie asked
if anyone had an idea whether any models existed in Debian's main
repository that already match the definition. He said it was typical
for proposals to provide an estimate of how many packages that would
be made "insta-RC-buggy
". In other words, how many packages
would be subject to release-critical bugs
if the GR passes? Since Debian is currently in freeze to prepare for
the release of Debian 13 ("trixie"), he wanted to know if the GR
would take effect immediately, or would it take effect at the
beginning of the cycle for the next release? The pre-release freeze is
already lengthy, and he thought it would be best to avoid making it
longer in order to deal with any packages affected by this GR.
Russ Allbery observed
that GNU Backgammon
comes with neural-network weights that do not have source code. He
admitted that he did not give that much thought when he was
maintaining the package because it predated the LLM craze. "I'm not
even sure if the data on which it's trained (backgammon games, I think
mostly against bots) is copyrightable.
" He was also unsure whether
other old-school machine-learning applications might be lurking
around, and said he had no strong opinion about what to do if there
were.
Games are not the only software that may be impacted. Ansgar Burchardt said that the GR might impact other useful software. His list included the Tesseract optical-character-recognition (OCR) software, OpenCV image-recognition software, Festival text-to-speech software, or other software with weights and data of uncertain origin. Urlichs suggested that Burchardt could write a counter-proposal or a more-nuanced proposal that would take some of those packages into account. He also questioned whether the software would need to be removed—the packages could be relocated to Debian's contrib archive and models placed in non-free.
Next steps
So far, Burchardt has not offered any proposals of his own, but there is still time. Discussion will continue for at least two weeks from the initial proposal, though the Debian Project Leader could shorten the discussion period by calling for a vote sooner. The proposal already has enough seconds to proceed; if the discussion reflects the overall mood of Debian developers, the GR would be likely to pass.
If it does pass, it will be in contrast to the Open Source
Initiative's controversial Open
Source AI Definition (OSAID) which LWN looked at last year. The
OSI requires that model weights be provided under "OSI-approved
terms
" (which are yet to be specified), but does not require
training data to be supplied in order to meet its definition for
open-source AI. That has been a sticking point for many, who feel that
the OSAID devalues the OSI's Open
Source Definition (OSD)—which was derived from the DFSG in the
first place.
