Papers › Convolutional Generative Adversarial Networks with Binary Neurons for Polyphonic Music...
Convolutional Generative Adversarial Networks with Binary Neurons for Polyphonic Music Generation
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/ .
In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.
Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, on Syntology's MCP service (how to connect):
get_harvested_code_for_paper(arxiv_id="1804.09399")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="1804.09399", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="1804.09399")
Code
Syntology 35 code samples harvested from 3 repositories linked to this paper: 19 ran (of which 0 constructed an object rather than computing a result; 18 with no instrument failure: 0 honoured, 0 violated, 18 with no contract checked; 1 where Syntology's instrument failed) · 16 unverified. Where Syntology's instrument failed: 1 where our contract draft was wrong; failures of Syntology's instrument, not of the code.
By repository: official repository: 20 samples from 1 repository, 8 ran (8 with no instrument failure; 0 where Syntology's instrument failed); community (archive-listed): 15 samples from 2 repositories, 11 ran (10 with no instrument failure; 1 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Levels written between 2026-09-24 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.
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: 19 ran (of which 0 constructed an object rather than computing a result; 18 with no instrument failure: 0 honoured, 0 violated, 18 with no contract checked; 1 where Syntology's instrument failed) · 16 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
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; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.
Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.
A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.
8ce6f7e771817722 · report
fixture: signature op:MockOp/0/?, grad:EagerTensor/2/float · returned list · level recorded 2026-09-25 6c50317414bf1d88 · report
fixture: signature norm_type:str/0/str, training:bool/0/bool · returned function · level recorded 2026-09-25 f683fb5404c42dc8 · report
fixture: signature component:str/0/str, name:str/0/str, class_name:str/0/str · returned type · level recorded 2026-09-25 d734bf997af678c8 · report
fixture: signature filename:str/0/str · returned ndarray · level recorded 2026-09-25 bb4f5986529d5fd6 · report
fixture: signature filename:str/0/str · returned ndarray · level recorded 2026-09-25 e9b277604f711d0d · report
fixture: signature filename:str/0/str · returned dict · level recorded 2026-09-25 90312cb813efe3fa · report
fixture: signature pianoroll:EagerTensor/5/float · returned EagerTensor · level recorded 2026-09-25 dc6c68928b375a62 · report
fixture: signature array:ndarray/2/float, inverted:bool/0/bool · returned ndarray · level recorded 2026-09-25 fbd231a75de37d59 · report
b64067aff250f5cf · report
88a4709aadaa1849 · report
d2616d28a605aeb3 · report
72dcc8b76ef3181d · report
fixture: signature states:list/1/ndarray, batch_size:int/0/int · returned ndarray · level recorded 2026-09-26 fc965e87e24dc01d · report
fixture: signature initial_sequence:list/1/int, initial_state:dict/0/?, generate_step_fn:callable/0/?, num_steps:int/0/int, beam_size:int/0/int, branch_factor:int/0/int, steps_per_iteration:int/0/int · returned tuple · level recorded 2026-09-25 81e8010ff4bdf083 · report
fixture: signature probs:SymbolicTensor/2/float, logits:NoneType/0/?, dtype:DType/0/?, sample_shape:SymbolicTensor/0/int, seed:int/0/int · returned SymbolicTensor · level recorded 2026-09-24 a2c9cba2b7f47fee · report
fixture: signature logits:SymbolicTensor/2/float, dtype:DType/0/?, sample_shape:tuple/1/int, seed:int/0/int · returned SymbolicTensor · level recorded 2026-09-24 bc6f9dfce1745ff3 · report
fixture: signature file_list:list/1/str, stop_at:NoneType/0/? · returned int · level recorded 2026-09-24 51c03ee8f4639255 · report
fixture: signature batched_states:dict/0/?, i:int/0/int · returned dict · level recorded 2026-09-24 87e4795b86846544 · report
fixture: signature file_list:list/1/str, batch_size:int/0/int, input_size:int/0/int, label_shape:NoneType/0/?, num_enqueuing_threads:int/0/int, shuffle:bool/0/bool · returned list · level recorded 2026-09-24 b3b4d407f8e308ab · report
fixture: signature labels:SymbolicTensor/2/float, predictions:SymbolicTensor/2/float, epsilon:float/0/float, scope:NoneType/0/?, weights:SymbolicTensor/2/float · returned SymbolicTensor · level recorded 2026-09-24 51cf513fe9f6c28e · report
fixture: signature func:callable/0/? · returned function · level recorded 2026-09-25 d64893e1f8ad90cf · report
fixture: signature batched_states:tuple/1/SymbolicTensor, batch_size:int/0/int · returned list · level recorded 2026-09-24 b18b2512140259f5 · report
cde17b796202395c · report
0d5e91e50a8f56c1 · report
fixture: signature target_dir:str/0/str · returned list · level recorded 2026-09-26 a4ed6d870fc30eda · report
Tasks
Results from the paper archive 2025-07-28
No leaderboard rows for this paper in the archive.
Methods
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