Cross-Domain Content Generation with Domain-Specific Small Language Models
<|reference_start|>Cross-Domain Content Generation with Domain-Specific Small Language Models: Generating domain-specific content using small language models poses challenges, especially when dealing with multiple distinct datasets with minimal overlap. In this study, we explore methods to enable a small language model to produce coherent and relevant outputs for two different domains: stories (Dataset A) and recipes (Dataset B). Our initial experiments show that training individual models on each dataset yields satisfactory results, with each model generating appropriate content within its domain. We find that utilizing custom tokenizers tailored to each dataset significantly enhances generation quality compared to using a generic tokenizer. Attempts to adapt a single model to both domains using Low-Rank Adaptation (LoRA) or standard fine-tuning do not yield substantial results, often failing to produce meaningful outputs. Moreover, full fine-tuning without freezing the model's existing weights leads to catastrophic forgetting, where the model loses previously learned information and only retains knowledge from the new data. To overcome these challenges, we employ a knowledge expansion strategy: training only with additional parameters. This approach enables the model to generate both stories and recipes upon request, effectively handling multiple domains without suffering from catastrophic forgetting. Our findings demonstrate that knowledge expansion with frozen layers is an effective method for small language models to generate domain-specific content across distinct datasets. This work contributes to the development of efficient multi-domain language models and provides insights into managing catastrophic forgetting in small-scale architectures.<|reference_end|>
@article{maloo2024cross-domain,
    title={Cross-Domain Content Generation with Domain-Specific Small Language
  Models},
    author={Ankit Maloo, Abhinav Garg},
    journal={arXiv preprint arXiv:2409.17171},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.17171},
    primaryClass={cs.CL cs.AI}
}