Papers › Convolutional Generative Adversarial Networks with Binary Neurons for Polyphonic Music...

Convolutional Generative Adversarial Networks with Binary Neurons for Polyphonic Music Generation

25 Apr 2018arXiv:1804.09399archive 2025-07-28

Hao-Wen Dong, Yi-Hsuan Yang

It has been shown recently that deep convolutional generative adversarial networks (GANs) can learn to generate music in the form of piano-rolls, which represent music by binary-valued time-pitch matrices. However, existing models can only generate real-valued piano-rolls and require further post-processing, such as hard thresholding (HT) or Bernoulli sampling (BS), to obtain the final binary-valued results. In this paper, we study whether we can have a convolutional GAN model that directly creates binary-valued piano-rolls by using binary neurons. Specifically, we propose to append to the generator an additional refiner network, which uses binary neurons at the output layer. The whole network is trained in two stages. Firstly, the generator and the discriminator are pretrained. Then, the refiner network is trained along with the discriminator to learn to binarize the real-valued piano-rolls the pretrained generator creates. Experimental results show that using binary neurons instead of HT or BS indeed leads to better results in a number of objective measures. Moreover, deterministic binary neurons perform better than stochastic ones in both objective measures and a subjective test. The source code, training data and audio examples of the generated results can be found at https://salu133445.github.io/bmusegan/ .

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1804.09399")

Code

Syntology Ran 0 of 35 code samples harvested from 3 repositories linked to this paper; 35 have no recorded run.

By repository: official repository: 20 samples from 1 repository, 0 ran; community (archive-listed): 15 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

salu133445/musegan officialmentioned on GitHubtfMIT report
lucylow/Stochastic_SoundCloud mentioned on GitHubtfMIT report
salu133445/bmusegan mentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

35 samples harvested; 0 ran; 0 honoured the contract we drafted; 35 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

35unverified

Licence: 0 of the 35 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bernoulli_sample salu133445/musegan/src/musegan/presets/binary_ops.py official repository unverified MIT (permissive) · fbd231a75de37d59 · report
bernoulli_sample_ST salu133445/musegan/src/musegan/presets/binary_ops.py official repository unverified MIT (permissive) · 8ce6f7e771817722 · report
binary_round salu133445/musegan/src/musegan/presets/binary_ops.py official repository unverified MIT (permissive) · b64067aff250f5cf · report
classic_gan_losses salu133445/musegan/src/musegan/losses.py official repository unverified MIT (permissive) · 39a7b44290d7f7d6 · report
empty_bar_rate salu133445/musegan/src/musegan/metrics.py official repository unverified MIT (permissive) · 8ce975ecee08f7dd · report
get_adv_losses salu133445/musegan/src/musegan/losses.py official repository unverified MIT (permissive) · db1a7d8ee9203654 · report
get_normalization salu133445/musegan/src/musegan/presets/ops.py official repository unverified MIT (permissive) · 6c50317414bf1d88 · report
get_scheduled_variable salu133445/musegan/src/musegan/model.py official repository unverified MIT (permissive) · 59105c64a097b163 · report
image_pair salu133445/musegan/src/musegan/io_utils.py official repository unverified MIT (permissive) · 9a217e804461443f · report
load_component salu133445/musegan/src/musegan/utils.py official repository unverified MIT (permissive) · f683fb5404c42dc8 · report
load_data salu133445/musegan/src/musegan/data.py official repository unverified MIT (permissive) · 152fb17c1e64383c · report
load_data_from_npy salu133445/musegan/src/musegan/data.py official repository unverified MIT (permissive) · d734bf997af678c8 · report
load_data_from_npz salu133445/musegan/src/musegan/data.py official repository unverified MIT (permissive) · bb4f5986529d5fd6 · report
load_params salu133445/musegan/src/musegan/utils.py official repository unverified MIT (permissive) · 88a4709aadaa1849 · report
load_yaml salu133445/musegan/src/musegan/utils.py official repository unverified MIT (permissive) · e9b277604f711d0d · report
n_pitches_used salu133445/musegan/src/musegan/metrics.py official repository unverified MIT (permissive) · 1267691927b008f3 · report
nonsaturating_gan_losses salu133445/musegan/src/musegan/losses.py official repository unverified MIT (permissive) · d2616d28a605aeb3 · report
pianoroll_to_image salu133445/musegan/src/musegan/io_utils.py official repository unverified MIT (permissive) · 33779a21ac5427e8 · report
to_chroma salu133445/musegan/src/musegan/metrics.py official repository unverified MIT (permissive) · 90312cb813efe3fa · report
vector_to_image salu133445/musegan/src/musegan/io_utils.py official repository unverified MIT (permissive) · dc6c68928b375a62 · report
batch lucylow/Stochastic_SoundCloud/common/state_util.py community (archive-listed) unverified MIT (permissive) · 72dcc8b76ef3181d · report
beam_search lucylow/Stochastic_SoundCloud/common/beam_search.py community (archive-listed) unverified MIT (permissive) · fc965e87e24dc01d · report
bernoulli_sample lucylow/Stochastic_SoundCloud/contrib/seq2seq.py community (archive-listed) unverified MIT (permissive) · 81e8010ff4bdf083 · report
categorical_sample lucylow/Stochastic_SoundCloud/contrib/seq2seq.py community (archive-listed) unverified MIT (permissive) · a2c9cba2b7f47fee · report
count_records lucylow/Stochastic_SoundCloud/common/sequence_example_lib.py community (archive-listed) unverified MIT (permissive) · bc6f9dfce1745ff3 · report
extract_state lucylow/Stochastic_SoundCloud/common/state_util.py community (archive-listed) unverified MIT (permissive) · 51c03ee8f4639255 · report
flatten_maybe_padded_sequences lucylow/Stochastic_SoundCloud/common/sequence_example_lib.py community (archive-listed) unverified MIT (permissive) · b18b2512140259f5 · report
get_npy_files salu133445/bmusegan/analysis/merge_eval_files.py community (archive-listed) unverified MIT (permissive) · 0d5e91e50a8f56c1 · report
get_padded_batch lucylow/Stochastic_SoundCloud/common/sequence_example_lib.py community (archive-listed) unverified MIT (permissive) · 87e4795b86846544 · report
load salu133445/bmusegan/analysis/merge_eval_files.py community (archive-listed) unverified MIT (permissive) · a4ed6d870fc30eda · report
log_loss lucylow/Stochastic_SoundCloud/common/tf_utils.py community (archive-listed) unverified MIT (permissive) · b3b4d407f8e308ab · report
parse_test_proto lucylow/Stochastic_SoundCloud/common/testing_lib.py community (archive-listed) unverified MIT (permissive) · a5f2e04a36847fd6 · report
serialized lucylow/Stochastic_SoundCloud/common/concurrency.py community (archive-listed) unverified MIT (permissive) · 51cf513fe9f6c28e · report
stack_bidirectional_dynamic_rnn lucylow/Stochastic_SoundCloud/contrib/rnn.py community (archive-listed) unverified MIT (permissive) · cde17b796202395c · report
unbatch lucylow/Stochastic_SoundCloud/common/state_util.py community (archive-listed) unverified MIT (permissive) · d64893e1f8ad90cf · report

Tasks

Music Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Batch NormalizationConvolutionLayer NormalizationWGAN GPWGAN-GP Loss

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections