[Paper Review] Fast Sequence Generation with Multi-Agent Reinforcement Learning
This paper proposes a non-autoregressive sequence generation model using Counterfactuals-critical Multi-Agent Reinforcement Learning (CMAL), where each token position acts as a cooperative agent optimizing a sentence-level reward like BLEU. The method achieves state-of-the-art performance on image captioning and machine translation benchmarks while delivering up to 17.46× faster decoding than autoregressive models, significantly improving generation consistency over cross-entropy trained non-autoregressive models.
Autoregressive sequence Generation models have achieved state-of-the-art performance in areas like machine translation and image captioning. These models are autoregressive in that they generate each word by conditioning on previously generated words, which leads to heavy latency during inference. Recently, non-autoregressive decoding has been proposed in machine translation to speed up the inference time by generating all words in parallel. Typically, these models use the word-level cross-entropy loss to optimize each word independently. However, such a learning process fails to consider the sentence-level consistency, thus resulting in inferior generation quality of these non-autoregressive models. In this paper, we propose a simple and efficient model for Non-Autoregressive sequence Generation (NAG) with a novel training paradigm: Counterfactuals-critical Multi-Agent Learning (CMAL). CMAL formulates NAG as a multi-agent reinforcement learning system where element positions in the target sequence are viewed as agents that learn to cooperatively maximize a sentence-level reward. On MSCOCO image captioning benchmark, our NAG method achieves a performance comparable to state-of-the-art autoregressive models, while brings 13.9x decoding speedup. On WMT14 EN-DE machine translation dataset, our method outperforms cross-entropy trained baseline by 6.0 BLEU points while achieves the greatest decoding speedup of 17.46x.
Motivation & Objective
- Address the decoding inconsistency problem in non-autoregressive sequence generation models, which suffer from poor sentence-level coherence despite high speed.
- Overcome the limitation of word-level cross-entropy loss, which fails to optimize non-differentiable, sentence-level metrics like BLEU or CIDEr.
- Enable end-to-end optimization of non-autoregressive models using reinforcement learning with a sentence-level reward to improve global coherence.
- Achieve high-speed inference without sacrificing generation quality, making non-autoregressive models viable for real-time industrial applications.
- Improve performance on long sequences by leveraging cooperative multi-agent learning to maintain structural consistency.
Proposed method
- Formulate non-autoregressive sequence generation as a cooperative multi-agent reinforcement learning (MARL) system, where each token position is an agent.
- Use a shared Transformer decoder with self-attention to enable communication among agents during sequence generation.
- Define a sentence-level reward (e.g., BLEU or CIDEr) as the team reward to optimize global sentence quality.
- Apply policy gradient with a counterfactual baseline to solve the multi-agent credit assignment problem and stabilize training.
- Augment training data with unlabeled inputs to improve generalization and generation quality.
- Use a compositional counterfactual baseline that estimates the expected return if only one agent changed its action, improving policy gradient signal efficiency.
Experimental results
Research questions
- RQ1Can a multi-agent reinforcement learning framework effectively improve sentence-level consistency in non-autoregressive sequence generation?
- RQ2Does optimizing a non-differentiable sentence-level metric like BLEU through policy gradient lead to better generation quality than word-level cross-entropy loss?
- RQ3Can the proposed CMAL method achieve both high decoding speed and competitive performance compared to autoregressive models?
- RQ4How does the model perform on long sequences, where word-level loss optimization tends to degrade?
- RQ5Can the counterfactual baseline improve training stability and performance in cooperative MARL for sequence generation?
Key findings
- On the WMT14 En-De machine translation benchmark, the proposed NAT-CMAL model outperforms the cross-entropy-trained baseline by 6.0 BLEU points while achieving a 17.46× decoding speedup.
- On the MSCOCO image captioning benchmark, the model achieves performance comparable to state-of-the-art autoregressive models, with a 13.9× decoding speedup.
- The model maintains stable performance across varying sentence lengths, significantly outperforming the cross-entropy baseline on long sentences, where NAT-XE performance degrades sharply.
- Ablation studies show that the counterfactual baseline improves training stability and performance, with the best results achieved when using a compositional counterfactual baseline.
- The model’s inference latency remains nearly constant regardless of sequence length, reaching only 16.4ms for a 100-token sentence on a GTX 1080 Ti, compared to nearly 1 second for autoregressive Transformer.
- Qualitative examples show that NAT-CMAL reduces repeated and inconsistent words compared to NAT-XE, producing outputs closer in quality to autoregressive models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.