Rolling out whole sentences is expensive
To reward a partial sequence, SeqGAN runs Monte-Carlo roll-outs to the end of the sentence at every generation step — computationally heavy.
And using the discriminator's score directly invites mode collapse: rap lyrics that all sound the same.
Roll out meaningful phrases
Phrase Roll-Out segments each line into meaningful phrases with TextRank, ρ′(y) = (p₁…p_T′), instead of arbitrary or full-sentence cuts.
Meaningless fragments are filtered out, which keeps the generated lyric fluent.
Reward to the phrase boundary
Each phrase is rewarded only out to its own end step t′_end — not the end of the whole sentence. The roll-out is far cheaper while staying meaningful.
An attention-LSTM discriminator
The discriminator learns attention alignment weights α = softmax(wᵀ·tanh(H)), capturing both local phrase features and global sentence meaning across variable-length phrases.
Match the weights, not the score
Instead of the raw score D(x,ŷ), the generator is rewarded by the cosine similarity S(α*, α̂) between real and generated attention weights.
This feature-matching signal prevents mode collapse and lifts diversity and originality.
Better lyrics — and a dataset
RapGAN beats SeqGAN, MaliGAN and Ghost Writer on diversity, originality and fluency, validated against human evaluation.
It also releases an open 160,000-song Chinese rap dataset for future research.