Manuscript Offprint

arXiv:2610.10349

AutoAdapt: Automatic Domain Discovery Enables Low-Cost Extensibility

Josh McGiff, Salma Mekaoui, Robert Shanahan, Nikola S. Nikolov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Josh McGiff[0009-0001-8209-3348], Salma Mekaoui[0009-0005-2826-060X], Robert Shanahan[0009-0001-6725-6954], and Nikola S. Nikolov[0000-0001-8022-0297]

University of Limerick, Ireland

mcgiff.josh@ul.ie

Abstract. Instruction-tuned models are deployed into environments where domains are heterogeneous and evolve, yet adding new domains or data typically requires costly retraining. We present AutoAdapt, a modular framework that incorporates new domains and data via targeted single-adapter training without modifying other adapters. The framework automatically discovers latent domains, uses them to train per-domain Low-Rank Adaptation (LoRA) adapters independently in parallel and performs parameter-free routing. Across 14 domain-specific benchmarks and GPT-4o pairwise judgements, AutoAdapt achieves parity with a LoRA adapter trained on all domains without requiring full-model retraining. We also find evidence of specialisation effect convergence across independent discovery methods. Overall, training each adapter on its own domain prevents domain interference by construction, thus enabling modular, taxonomy-free domain specialisation without aggregate performance loss or full model retraining.

Keywords: Domain adaptation · Parameter-efficient · Modular deployment.

1 Introduction

Supervised instruction fine-tuning has become the standard approach for adapting large language models to follow human instructions [22, 15], yet the field has optimised for benchmark performance while leaving deployment maintainability largely unsolved [6]. Models are evaluated on static benchmarks but deployed into environments where domains evolve and new capabilities are continuously required. However, full retraining on ever-growing combined datasets poses a structural barrier for practitioners without access to large-scale compute [12].

Although parameter-efficient fine-tuning methods such as Low-Rank Adaptation (LoRA) reduce the computational cost of instruction tuning [4], a single adapter trained on heterogeneous data inherits two problems. First, heterogeneous training data introduces conflicting gradient signals across domains [25, 9], which limits the degree to which a single model can specialise [21]. Second, monolithic fine-tuning produces brittle, difficult-to-extend systems [5]. In such cases, incorporating new domains or updating existing knowledge requires full retraining on the combined dataset, risking catastrophic forgetting of previously learned behaviours [11, 7].

Standard Mixture-of-Experts (MoE) architectures address specialisation through jointly trained experts and routing components [18], but do not resolve the extensibility

J. McGiff et al.

problem. Joint training couples all experts together, meaning new domains cannot be added without retraining the full system. A study [21] confirms that instruction-tuned models on heterogeneous data fail to achieve consistent cross-domain performance, identifying modularity as a key unmet need. Although prior work [13] demonstrates that fixed-domain specialisation enables parameter-efficient methods to match full-model fine-tuning baselines in low-resource translation, the study does not provide empirical evidence of extensibility.

In this work, we introduce AutoAdapt, a modular framework that eliminates the retraining bottleneck for heterogeneous instruction tuning. Rather than assuming a fixed domain taxonomy, AutoAdapt automatically discovers latent domains by comparing unsupervised clustering (K-means, BERTopic) and zero-shot classification (MNLI) methods. Domain adapters are trained independently and in parallel with parameter-free routing occurring at inference via cosine similarity to domain centroids. AutoAdapt enables targeted domain adapter creation and updates, thus circumventing the need for full-model retraining. We contribute: a systematic cross-method comparison of three automatic domain discovery methods for instruction tuning; AutoAdapt, a modular instruction tuning framework that matches single LoRA adapter performance; and a post-deployment extensibility demonstration.

References (25)

  • Low-confidence gold: Refining low-confidence samples for efficient instruction tuning
  • BERTopic: Neural topic modeling with a class-based TF-IDF procedure
  • SLIM: Let LLM learn more and forget less with soft LoRA and identity mixture
  • Lora: Low-rank adaptation of large language models
  • Hybrid routing for a mixture of lora experts (opens the publisher in a new tab)
  • Revisiting catastrophic forgetting in large language model tuning
  • Glider: Global and local instruction-driven expert router
  • Domain specialization as the key to make large language models disruptive: A comprehensive survey
  • Controlled low-rank adaptation with subspace regularization for continued training on large language models
  • Catastrophic interference in connectionist networks: The sequential learning problem
  • Overcoming data scarcity in generative language modelling for low-resource languages: A systematic review
  • Semiadapt: Semi-supervised and efficient lora-based domain adaptation for low-resource irish machine translation with transformers
  • LimaCost: Data valuation for instruction tuning of large language models
  • Training language models to follow instructions with human feedback
  • How much knowledge can you pack into a LoRA adapter without harming LLM? In: Chiruzzo, L., Ritter, A., Wang, L. (eds.) Findings of the Association for Computational Linguistics: NAACL 2025
  • Topic modeling: Perspectives from a literature review
  • Outrageously large neural networks: The sparsely-gated mixture-of-experts layer
  • Adapters selector: Cross-domains and multi-tasks LoRA modules integration usage method
  • Minilm: Deep self-attention distillation for task-agnostic compression of pre-trained transformers
  • How far can camels go? exploring the state of instruction tuning on open resources
  • Finetuned Language Models Are Zero-Shot Learners
  • Magicoder: Empowering code generation with oss-instruct
  • ROSE: A reward-oriented data selection framework for LLM task-specific instruction tuning
  • Gradient surgery for multitask learning
  • Judging llm-as-a-judge with mt-bench and chatbot arena