arXiv:2611.06947cs.SENov 2026

Manuscript Offprint

arXiv:2611.06947

How Python Audio Libraries Change Across Releases: Module Structure and Documentation

Mateusz Modrzejewski, Michał Rokita, Łukasz Neumann

Mateusz Modrzejewski, Michał Rokita, and Łukasz Neumann

Institute of Computer Science, Warsaw University of Technology, Warsaw, Poland

{mateusz.modrzejewski, michal.rokita, lukasz.neumann}@pw.edu.pl

Abstract—Developers who upgrade a Python audio library need to know what changed in the code they import and whether the release notes say so. Release notes and breaking changes have been mined for general software, but the module structure of audio libraries and its documentation have not been studied together. We mine 56 audio repositories used in machine learning workflows: the import graph of 49 packages at 1,395 releases, joined to 20,864 release-note and changelog entries, labeled by three open-weight language models and checked against two human coders. We find that (1) the set of a package's top-level modules is unchanged in 86.1% of consecutive release pairs, while the set of module files is unchanged in 61.4%. (2) A major increment changes the top level 5.2 times as often as another increment, and major and 0.x minor increments together account for 48.7% of the observed changes. (3) When a release removes modules, its notes name 8.9% of the removal units under a lexical match, an estimated 4.3% after a hand check of the matches. (4) Longer notes are more likely to contain an entry labeled as structural, and within each length band this proportion is also higher for releases with module removals. We intend to release the aligned dataset and the pipeline.

I. INTRODUCTION

Open-source audio machine learning (audio-ML) frameworks are both research code and production dependencies. Libraries such as librosa compute features, toolkits such as ESPnet and SpeechBrain package training pipelines, model packages such as Whisper distribute a published model, and symbolic music libraries such as music21 represent scores. A developer who depends on one of these frameworks has to decide when to upgrade. When Coqui TTS released version 0.0.11, for example, it moved tts.layers.gst_layers and other modules of tts.layers into new subpackages without keeping the old import paths, and none of the eight entries of its release notes mentions the move. An import of one of these modules fails after the upgrade unless the project kept the old path as an alias. The cost of an upgrade depends on how much of the code the developer imports has changed and on whether the release notes say so.

Semantic versioning reserves a major version for incompatible changes [1], [2], and release notes are where a maintainer says what changed. Studies of release notes classify what the notes say [3], [4]. Omissions have been measured against an external list of expected changes: Abebe et al. find that most notes list 6 to 26% of the issues a release addressed [5], and Du and Ma find 114 of 405 API breaking changes of 45 Python packages missing from the changelogs [6]. Studies of architectural evolution measure the code [7], [8] and leave the documentation aside. We take the module paths and public names that disappear between two releases as the expected changes and ask whether the release's own notes mention them. Our literature search (Section V) found no study that does this for audio libraries or covers their module structure.

We examine version numbers and release notes on 56 audio-ML repositories in five archetypes, selected by a written protocol, with 13 machine learning libraries from other domains as a comparison cohort. For each package we extract the import graph at every release and join the release to its own release-note and changelog entries, 20,864 in all. We call the modules and subpackages directly inside a package its top level, the part a user imports first. We do not equate it with the public API, which projects declare in different ways. Three open-weight language models label every entry for the kind of change it announces. We check the labels against the maintainers' own section headings, against the code history, and against two authors who coded whole releases, and we mark the codes the coders confirm and report the others as model assignments.

We find that structural change happens below the top level of a package, and that the release notes rarely name it. The top level stays the same in 86.1% of consecutive release pairs. A major increment changes it 5.2 times as often as another increment, and a minor increment of a package still at version 0.x, for which semantic versioning promises no stability, changes it at a rate between the two. Major and 0.x minor increments are 20.1% of the pairs and account for 48.7% of the top-level changes, and the other increments account for the rest. The module files below the top level change in many more releases. When a release removes a module or a public name, its notes name it in fewer than one case in ten under a lexical match. Longer notes carry a structural entry more often, whether or not anything was removed, and within every length band the releases with module removals carry one more often than the others. Lexical naming is uncommon in both forms of notes, lists of pull-request titles and prose.

For a developer, disappearing import paths are candidates for review at an upgrade, with more attention at the increments with the highest change rates. Path stability alone does not establish API or behavioral compatibility. Release-note generators can list the module paths and names a release removed, which the code history records. We organize the study around four research questions:

RQ1 How are audio-ML packages structured at the module level, and does structure differ by archetype?

Figure

Fig. 1. Each research question draws on one or two of the three data sources mined from the corpus.

RQ2 How does their structure change across releases, and what lifecycle do the repositories follow?

RQ3 In which form do maintainers document changes, which kinds of change do they record, and do they state why?

RQ4 When a module path or a public name disappears between two releases, how often do the release's notes mention it?

We contribute a release-aligned dataset of import graphs for 49 Python audio-ML packages at 1,395 releases, joined to 20,864 labeled entries, which we intend to release with the pipeline. We also contribute a measurement of the documentation gap at the level of modules and of public names, and a code-by-code validation of language-model labels for release notes, which identifies the codes that meet our agreement criterion in the evaluated sample.

Our conclusions concern the selected repositories and the module paths and names extracted from their release histories. We study Python packages on GitHub that pass our selection criteria, and we measure structure at the level of module paths and public names rather than of signatures or behavior. We ask what a release's own notes say, so a removal announced only in an issue, a migration guide, or a deprecation warning in the code counts as unnamed.

References (60)