Vertical vs. General-Purpose LLMs: Selection Logic and Training Practices

    Should you fine-tune a domain model or rely on a general-purpose LLM? This article explains how to identify capability gaps, choose between RAG, supervised fine-tuning, and reinforcement learning, design reliable reward systems, and evaluate whether domain training actually improves business outcomes.

    1. First, Clarify the Problem: Domain and General Capabilities Are Not Either/Or

    When discussing domain-specific versus general-purpose large language models, two common misconceptions arise: that larger parameter counts automatically mean better business results, and that simply adding industry data gives a model professional competence.

    A more accurate framing: general capability describes the range of tasks a model can cover, while domain capability describes its performance on a specific business distribution. These are not strictly opposed categories. A general model can take on specialized tasks after domain adaptation, and a smaller model can perform very well on tasks with clear boundaries and reliable feedback.

    So the core question in model selection is not “which model is more advanced,” but:

    • Does the business require open-ended understanding, or stable execution of a limited set of tasks?
    • Do errors mainly come from missing knowledge, insufficient reasoning, or incorrect output formats?
    • Can task results be verified objectively?
    • Given acceptable quality, how do you minimize latency, resource usage, and maintenance cost?

    Answering these questions is usually more valuable than comparing parameter counts.

    2. What General Models and Domain Models Each Solve

    1. General Models: Broad Coverage, Suited to Exploring Complex Needs

    General models are typically a good fit for scenarios with diverse requirements, highly variable inputs, and tasks that need multiple capabilities working together—long-document understanding, multi-turn conversation, cross-topic analysis, and open-ended content generation.

    Their main value is reducing fragmentation between tasks: one system can understand a question, organize materials, generate explanations, and handle some unexpected inputs.

    But general capability does not automatically translate into business reliability. A model may not know the latest policies, may confuse similar terms, or may produce plausible-sounding answers when information is insufficient. In high-risk workflows, you still need evidence constraints, permission controls, and human review.

    2. Domain Models: Optimizing Quality and Cost Around the Business Distribution

    The advantage of a domain model usually comes from its training data, task objectives, and deployment setup being closely aligned with business needs—not merely from “knowing more industry jargon.”

    For example, fixed-category content moderation, structured information extraction, and standardized report generation can all achieve more stable output by narrowing the task scope. Smaller models are also easier to deploy locally, isolate resources for, and plan capacity around.

    Specialization has costs, though. A model may perform well on phrasing common in its training data but struggle with cross-domain questions, unusual inputs, or new business requirements. Over-adaptation can also erode the model’s original general capabilities.

    A domain model therefore needs both a clearly defined service boundary and a mechanism for handling requests outside that boundary—rather than forcing an answer to every question.

    3. Locate the Capability Gap Before Deciding to Train

    Many business problems do not require jumping straight into reinforcement learning. A sound technical roadmap starts with lower-cost, lower-risk approaches and validates them first.

    1. Missing Up-to-Date Knowledge: Consider Retrieval-Augmented Generation First

    If errors mainly stem from policy updates, missing internal documentation, or unverifiable facts, let the model first retrieve evidence from authorized sources and then answer based on that evidence.

    The key concerns here are document quality, chunking strategy, retrieval recall, permission filtering, and citation verification. RAG cannot eliminate errors entirely, but it is generally easier to update and audit than relying on parametric memory.

    Note that RAG does not directly fix all reasoning flaws. Retrieving the right material does not guarantee the model can correctly combine the evidence.

    2. Failure to Follow Business Workflows: Consider Supervised Fine-Tuning

    If the model understands the question but frequently omits fields, uses wrong terminology, or fails to complete tasks in the required order, supervised fine-tuning is often more direct.

    Training data should demonstrate the business mapping from “input to expected output,” with particular coverage of easily confused edge cases: how to ask follow-up questions when information is insufficient, how to flag conflicting fields, and how to decline to give a definitive conclusion when uncertain.

    The effectiveness of supervised fine-tuning depends on data quality and coverage—you cannot get there by simply piling up similar samples.

    3. Multiple Candidates Generated but Quality Varies Sharply: Consider Reinforcement Learning

    Reinforcement learning is better suited to tasks where effective feedback is available. The model generates answers, the system assigns rewards based on outcomes, and the policy is adjusted so that high-quality outputs become more likely.

    Tasks like mathematical computation, rule-constrained generation, and executable-result verification lend themselves to objective feedback. Open-ended consulting and complex professional judgment are costlier to evaluate and more vulnerable to scoring bias.

    Reinforcement learning is not a universal switch that turns wrong answers into right ones. It requires the model to have some baseline capability, and the reward must be able to distinguish genuinely valuable behavior.

    4. Why Small Models Can Improve Domain Performance Through Reinforcement Learning

    The potential of small models on narrow tasks comes mainly from a constrained search space and relatively clear task feedback.

    Take verifiable reasoning tasks: the model may already be able to produce correct answers—the correct path just doesn’t appear reliably. Reinforcement learning, through multiple sampling and outcome feedback, can increase the probability that effective solution behaviors get selected.

    But it’s essential to distinguish three situations:

    1. Capability exists but is unstable: Reinforcement learning may help the model use its existing capability more consistently.
    2. Capability is partially present: High-quality examples, sensible curriculum design, and feedback must work together.
    3. Baseline capability is clearly insufficient: If nearly all candidate answers are wrong, training may go a long time without a meaningful discrimination signal.

    Therefore, score improvements on one narrow task cannot be generalized as an across-the-board enhancement of reasoning ability, let alone proof that a small model can replace a large model in every domain.

    Actual gains must be validated on independent test sets and real business samples. Unverified improvement percentages or resource-savings figures should never be treated as universal rules.

    5. How Group Relative Policy Optimization Works

    A common reinforcement learning approach is to generate multiple responses to the same question and construct a relative advantage signal from within-group reward differences. Group Relative Policy Optimization (GRPO) belongs to this family.

    Suppose several candidate responses are generated for the same question, each with reward (r_i). A common within-group normalization is:

    [
    A_i=\frac{r_i-\bar r}{s_r+\epsilon}
    ]

    where (\bar r) is the group’s mean reward, (s_r) is the standard deviation of rewards within the group, and (\epsilon) maintains numerical stability.

    Intuitively: responses above the group average receive a positive signal, and those below average receive a negative one.

    Methods like this do not require training a separate value-estimation network, which reduces some model state and training overhead. However, overall GPU memory usage is still affected by the policy model, reference policy, optimizer states, sequence length, number of candidates, and inference caching—so no fixed savings percentage can be claimed independent of configuration.

    Policy Updates Are Not Just Reward Weighting

    During training, you typically compare the probabilities the old and new policies assign to sampled responses, and use mechanisms like clipping to limit the size of each update. Some setups also add a constraint on deviation from a reference policy to reduce policy-drift risk.

    If you use only the simple “probability ratio times advantage” expression while ignoring effective position masking, length handling, update constraints, and numerical stability, it can at best explain the intuition—it is not a complete training implementation.

    Additionally, when all responses in a group are correct or all are wrong, within-group reward differences shrink and the learning signal weakens. In that case, check task difficulty, sampling diversity, and reward granularity rather than simply adding more training epochs.

    6. What Responsibilities a Training System Must Separate

    Domain reinforcement learning is not a single loss function problem—it is a continuously cycling data pipeline:

    Data loading → Batch generation → Reward computation → Advantage estimation → Policy update → Independent evaluation → Checkpointing

    1. Data Layer: Traceability and No Leakage

    Every sample should have a stable identifier, the task input, and the information needed for evaluation. For tasks with ground-truth answers, the answers should be used only by the scoring component and must never be accidentally concatenated into the model’s input.

    Training, validation, and test sets should be split by question source, document source, or business entity. Random splitting alone can place highly similar samples in different sets, inflating results.

    2. Generation Layer: Throughput and Sample Diversity

    The generation stage produces multiple candidate responses per input and is a major compute cost in reinforcement learning.

    Common optimizations include batch scheduling, inference cache management, and sensible limits on input/output length. More candidates help with within-group comparison but also raise generation cost and downstream scoring load.

    So you should monitor both generation speed and the effective learning signal—not just how much text is generated per unit of time.

    3. Update Layer: GPU Memory and Gradient Stability

    Training must handle parameters, gradients, optimizer states, and intermediate activations. Depending on available resources, you can apply general techniques such as gradient accumulation, parameter sharding, activation recomputation, or partial state offloading.

    These techniques carry different communication and compute costs. For example, a memory-saving setup may increase data-transfer time, so configuration quality cannot be judged solely by “whether the model fits.”

    4. Coordination Layer: Keep Data and Policy Versions Consistent

    Training and generation can alternate, or run concurrently on different resources. Either way, you should record which policy version produced the generated data, so that stale data is not used in later updates without control.

    Checkpoints should also contain more than model parameters: save the optimizer state, RNG state, data progress, and key configurations needed to resume training.

    7. Reward Design Determines What the Model Actually Learns

    1. Prioritize Verifiable Business Outcomes

    If a task has clear criteria, evaluate whether the final result is correct first, then consider secondary goals like format completeness and clarity of expression.

    For numeric tasks, a scoring pipeline typically includes:

    • Extracting the clearly marked final answer;
    • Normalizing thousands separators, signs, units, and numeric representation;
    • Performing exact or tolerance-based comparison per task rules;
    • Recording parse failures separately from wrong answers.

    Answer extraction must match the output conventions. Don’t grab the first number in the text arbitrarily—it may just be part of the question or an intermediate step.

    2. Prevent the Model from Exploiting Scoring Loopholes

    If the reward only requires containing a certain word, the model may repeat that word endlessly; if longer answers are preferred, it may generate redundant content; if only format is checked, it may produce beautifully structured but factually wrong output.

    Reward systems therefore need testing too: boundary inputs, unusual encodings, repeated content, contradictory answers, and text attempting to trick the scorer into ignoring rules.

    3. Model-Based Scoring Needs External Verification

    For tasks that can’t be verified by rules, an independent scoring model can assist—but it is equally susceptible to wording, length, and style.

    A more robust approach is to establish clear scoring rubrics combined with human spot checks and objective verification. High-risk decisions should never enter production based solely on automated scores.

    8. How to Tell Whether Training Actually Worked

    A reliable evaluation should at least distinguish these metrics:

    • Single-response success rate: Reflects the real business experience of getting one answer per request.
    • Pass@k hit rate: The probability that at least one of multiple sampled candidates is correct—but this doesn’t mean the system can select it correctly.
    • End-to-end success rate: The complete result including retrieval, generation, parsing, verification, and downstream processing.
    • Resource cost: Focus on compute consumed per successful task, not just per-generation cost.
    • Stability and risk: Observe behavior on unusual inputs, long texts, insufficient information, and distribution shifts.

    Before and after training, keep the test set, prompt templates, sampling conditions, and scoring rules as consistent as possible. Freeze the evaluation criteria before formal comparisons, and record version information for important experiments.

    You should also build out-of-distribution test sets to measure how much the model degrades on terminology variants, rephrased questions, noisy inputs, and cross-domain requests. The most dangerous failure mode of a domain model is not refusing to answer—it is answering with high confidence outside its area of competence.

    9. A More Reliable Path to Production

    For teams with limited resources, proceed in this order:

    1. Define task boundaries: Specify inputs, outputs, success criteria, and unacceptable errors.
    2. Establish a baseline: Measure how the current model performs with fixed prompts and a clear workflow.
    3. Categorize errors: Distinguish missing knowledge, reasoning errors, format problems, and process problems.
    4. Choose the minimal necessary intervention: Try retrieval augmentation, rule-based validation, supervised fine-tuning, or reinforcement learning as appropriate.
    5. Run small-scale experiments: Validate the data, reward, and update pipeline before scaling up compute.
    6. Evaluate independently: Check quality, cost, latency, and anomalous behavior together.
    7. Roll out gradually with a fallback: Set up escalation mechanisms for low-confidence or high-risk requests.

    Ultimately, general and domain models work best in a division of labor: general models handle complex, variable, long-tail needs; domain models take on clearly bounded, high-frequency, verifiable tasks; and retrieval and rule-based systems provide factual and procedural constraints.

    Whether an approach is worth adopting should not be judged by how sophisticated its training method is, but by whether it can improve business outcomes within clearly defined task boundaries—in a way that is explainable, verifiable, and maintainable.