SC-Phi2: A Fine-tuned Small Language Model for StarCraft II Macromanagement Tasks
<|reference_start|>SC-Phi2: A Fine-tuned Small Language Model for StarCraft II Macromanagement Tasks: This paper introduces SC-Phi2, a fine-tuned StarCraft II small language model for macromanagement tasks. Small language models, like Phi2, Gemma, and DistilBERT, are streamlined versions of large language models (LLMs) with fewer parameters that require less power and memory to run. To teach Microsoft's Phi2 model about StarCraft, we create a new SC2 text dataset with information about StarCraft races, roles, and actions and use it to fine-tune Phi-2 with self-supervised learning. We pair this language model with a Vision Transformer (ViT) from the pre-trained BLIP-2 (Bootstrapping Language Image Pre-training) model, fine-tuning it on the MSC replay dataset. This enables us to construct dynamic prompts that include visual game state information. Unlike the large models used in StarCraft LLMs such as GPT-3.5, Phi2 is trained primarily on textbook data and contains little inherent knowledge of StarCraft II beyond what is provided by our training process. By using LoRA (Low-rank Adaptation) and quantization, our model can be trained on a single GPU. We demonstrate that our model performs well at micromanagement tasks such as build order and global state prediction with a small number of parameters.<|reference_end|>
@article{khan2024sc-phi2:,
    title={SC-Phi2: A Fine-tuned Small Language Model for StarCraft II
  Macromanagement Tasks},
    author={Muhammad Junaid Khan and Gita Sukthankar},
    journal={arXiv preprint arXiv:2409.18989},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.18989},
    primaryClass={cs.CL cs.AI}
}