Skip to content

jacksonchen1998/Cold-Start-Reinforcement-Learning-with-Softmax-Policy-Gradient

Repository files navigation

Cold-Start-Reinforcement-Learning-with-Softmax-Policy-Gradient

License: MIT Release

Paper

This repository contains an implementation of the reinforcement learning method described in the paper "Cold-Start Reinforcement Learning with Softmax Policy Gradient" by Nan Ding and Radu Soricut from Google Inc. The method is based on a softmax value function that eliminates the need for warm-start training and sample variance reduction during policy updates.

Method

RNN Encoder Decoder

model

Requirements

Create a conda environment using the following command:

conda create -n <env_name> python=3.9

Intsall the required packages using the following command:

conda install --file requirements.txt

Program issues

In pipeline.py, change the following line if has an error:

AssertionError: Torch not compiled with CUDA enabled

Change

z = torch.cat([z, zt_idx.cuda()[None]], dim=0) # (T, B) token id

to

z = torch.cat([z, zt_idx[None]], dim=0) # (T, B) token id

Experiment

Summarization Task: Headline Generation

Dataset:

Evaluation: ROUGE-L score

Automatic Image-Caption Generation

Dataset:

Evaluation: CIDer score / ROUGE-L score

Results

Model loss

loss

Model reward (ROUGE-L score)

reward

Acknowledgements

We would like to thank Nan Ding and Radu Soricut for their valuable contributions to the field of reinforcement learning, and for making their paper available to the public. We also acknowledge the TensorFlow team for providing a powerful and flexible deep learning framework.

Contributors

Citation

@misc{20230615,
  author = {Chih-Chun Chen and Pin-Yen Liu and Po-Chuan Chen},
  title = {Cold-Start Reinforcement Learning with Softmax Policy Gradient},
  year = {2023},
  month = {06},
  note = {Version 1.0},
  howpublished = {GitHub},
  url = {https://github.com/jacksonchen1998/Cold-Start-Reinforcement-Learning-with-Softmax-Policy-Gradient}
}
@misc{ding2017coldstart,
      title={Cold-Start Reinforcement Learning with Softmax Policy Gradient}, 
      author={Nan Ding and Radu Soricut},
      year={2017},
      eprint={1709.09346},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}