Unlocking the Essence of Beauty: Advanced Aesthetic Reasoning with Relative-Absolute Policy Optimization
Paper
•
2509.21871
•
Published
A novel and effective reinforcement learning framework designed for Image Aesthetic Assessment and general open-ended preference evaluation.
{
"messages": [
{
"content": "prompt here",
"role": "user"
},
{
"content": "response here",
"role": "assistant"
}
],
"images": "image_path_1"
},
we provide an example dataset in AesR1/data folder.
3. Download the pre-trained model weights from here and place them in AesR1/models
We use LLaMA-Factory to train the SFT model.
git clone https://github.com/hiyouga/LLaMA-Factory.git
conda create -n coldstart python=3.11.10
conda activate coldstart
cd LLaMA-Factory
pip install -e ".[torch,metrics]"
LLaMA-Factory/data/dataset_info.json and move qwen_aescot.yaml into LLaMA-Factory/examples/train_fullllamafactory-cli train examples/train_full/qwen_aescot.yaml
First setup the environment for RAPO training.
conda create -n rapo python=3.11.10
conda activate rapo
bash setup.sh
After modification, run the following command to train the RAPO model.
# For single node training
bash train/rapo/src/open-r1-multimodal/run_scripts/Aes/aes_onenode.sh
# For multi node training
bash train/rapo/src/open-r1-multimodal/run_scripts/Aes/aes_multinode.sh
After training, you can inference the model by using the scripts in LLaMA-Factory.
#Install vllm
pip install vllm
#Infer
python scripts/vllm_infer.py \
--model_name_or_path [path/to/your/model] \
--dataset [dataset_name] \
--template qwen2_vl \
--save_name result.jsonl \
--temperature 0.6 \
If you find this repo useful, please consider citing our paper as follows:
@misc{liu2025unlockingessencebeautyadvanced,
title={Unlocking the Essence of Beauty: Advanced Aesthetic Reasoning with Relative-Absolute Policy Optimization},
author={Boyang Liu and Yifan Hu and Senjie Jin and Shihan Dou and Gonglei Shi and Jie Shao and Tao Gui and Xuanjing Huang},
year={2025},
eprint={2509.21871},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2509.21871},
}