Pretrained Generative Language Models as General Learning Frameworks for Sequence-Based Tasks
Ben Fauber
TL;DR
This work shows that small pretrained generative language models (millions of parameters) can serve as general learning frameworks for sequence tasks via instruction fine-tuning on domain-specific data, offering substantial reductions in training resources and development time. On a chemistry-centric task—translating SMILES strings to IUPAC names—125M–1.3B parameter models achieve near-state-of-the-art results when fine-tuned with 10,000 to 1,000,000 instruction examples, with performance strongly influenced by model size and data formatting. The study systematically explores data size, fine-tuning epochs, model architectures (including TinyStories), and adapter-based methods, highlighting that formatting the instruction data to match the task is crucial and that larger models and more epochs generally help, though returns diminish after ~20–30 epochs. The results suggest a practical path to deploying specialized, resource-efficient language-model learners across domains, while acknowledging that rules-based approaches may still outperform these methods for certain cheminformatics tasks.
Abstract
We propose that small pretrained foundational generative language models with millions of parameters can be utilized as a general learning framework for sequence-based tasks. Our proposal overcomes the computational resource, skill set, and timeline challenges associated with training neural networks and language models from scratch. Further, our approach focuses on creating small and highly specialized models that can accurately execute a challenging task of which the base model is incapable of performing. We demonstrate that 125M, 350M, and 1.3B parameter pretrained foundational language models can be instruction fine-tuned with 10,000-to-1,000,000 instruction examples to achieve near state-of-the-art results on challenging cheminformatics tasks. We also demonstrate the role of successive language model fine-tuning epochs on improved outcomes, as well as the importance of both data formatting and pretrained foundational language model selection for instruction fine-tuning success.
