MACO/
├── algorithms/
│ ├── MACO.py
│ ├── config_parameters.py
├── input_data/
│ ├── generate_llm_data.py
│ ├── get_embed_syn_openai.py
│ ├── get_embed_llm_openai.py
│ ├── get_embed_llm_google.py
│ ├── generate_sythetic_data.py
│ ├── get_embed_syn_google.py
├── env/
│ ├── SupArm.py
│ ├── User.py
│ ├── Arm.py
├── utils/
│ ├── utils.py
│ ├── normalize_dataset.py
│ ├── compute_spanner.py
├── pic/
│ ├── design.pdf
├── scripts/
│ ├── run_syn_comp_diff_agents.sh
│ ├── run_syn_diff_poolsize.sh
│ ├── run_llm_diff_agents.sh
├── README.md
├── LICENSE
├── main.py
├── simulateExp.py
├── .gitignore
cd input_data
mkdir synthetic_data
python generate_synthetic_data.pycd input_data
mkdir llm_data
python generate_llm_data.pyThen you can get to file response.csv, all_combinations.csv and arm_suparm_relation.txt in each dir
For real LLM's responses scenarios:
cd input_data
mkdir OpenAI_llm
cp llm_data/arm_suparm_relation.txt OpenAI_llm
python get_embed_llm_openai.py --OPENAI_API_KEY <YOUR_API_KEY>For synthetic scenarios:
cd input_data
mkdir OpenAI_syn
cp synthetic_data/arm_suparm_relation.txt OpenAI_syn
python get_embed_syn_openai.py --OPENAI_API_KEY <YOUR_API_KEY>For Googel Gecko, you may need to use Google Cloud Vertex-ai to access it.
For real LLM's responses scenarios:
cd input_data
mkdir Google_llm
cp llm_data/arm_suparm_relation.txt Google_llm
python get_embed_llm_googel.py --google_cloud_projectid <YOUR_PROJECT_ID> --google_cloud_location <YOUR_CLOUD_LOCATION> For synthetic scenarios:
cd input_data
mkdir Google_syn
cp synthetic_data/arm_suparm_relation.txt Google_syn
python get_embed_llm_googel.py --google_cloud_projectid <YOUR_PROJECT_ID> --google_cloud_location <YOUR_CLOUD_LOCATION> bash scripts/run_syn_diff_poolsize.shbash scripts/run_syn_diff_agents.shbash scripts/run_syn_comp_diff_agents.shIf you find this work helpful to your research, please kindly consider citing our paper.
@article{dai2025multi,
title={Multi-Agent Conversational Online Learning for Adaptive LLM Response Identification},
author={Dai, Xiangxiang and Xie, Yuejin and Liu, Maoli and Wang, Xuchuang and Li, Zhuohua and Wang, Huanyu and Lui, John},
journal={arXiv preprint arXiv:2501.01849},
year={2025}
}
.jpg)