LLM Selection for Writing Tasks and Service Availability Governance

    Evaluating LLMs for writing tasks requires more than subjective preference. This article outlines a comprehensive framework for LLM selection and service availability governance, covering six evaluation dimensions for creative tasks, a method to convert vague stylistic feedback into executable constraints, architectural strategies for handling service risks, and a structured multi-model evaluation process.

    I. Problem Background

    In large language model (LLM) applications, users typically rely on a specific service long-term not because of a single outstanding capability, but due to a combination of experiential factors: accuracy of instruction comprehension, stability during multi-turn revisions, controllability of output style, and ease of interaction. When an alternative solution is noticeably weaker than the existing tool in any of these areas, the migration cost is amplified, even if the alternative performs better on other metrics.

    This dependency introduces two engineering challenges. First, service availability is uncontrollable. Account restrictions, regional access changes, API rate limiting, or price adjustments can all disrupt workflows. Second, the output bias of a single model becomes amplified, making it difficult for teams to identify systematic issues in style or factual accuracy. Therefore, model selection cannot rely solely on subjective feelings; it requires establishing a reproducible evaluation method and integrating service availability into the architectural design.

    II. Evaluation Dimensions for Creative Tasks

    The quality of creative tasks is difficult to measure with a single score. It is recommended to break it down into the following six dimensions, providing observable testing methods for each.

    1. Instruction Following

    Instruction following refers to the model’s ability to accurately execute modification requests. During testing, multi-turn modification tasks can be designed, such as “only change the tone of the third paragraph; keep the rest unchanged.” If the model alters unrelated paragraphs, it indicates weak local editing capabilities.

    2. Style Consistency

    Given a reference text, require the model to continue writing in the same style. Evaluation should compare whether sentence length distribution, vocabulary preferences, rhetorical density, and narrative perspective are maintained. Models with low style consistency tend to pull all text toward a fixed tone.

    3. Style Overwriting

    When a model edits text from other sources, it often replaces the original style with the editor’s default style, a phenomenon known as style overwriting. The testing method involves giving the same human-written text to different models for polishing, and then using style similarity metrics or blind human evaluation to check whether the result deviates from the original author’s voice.

    4. Structure and Logic

    Long-form text requires consistency in character settings, timelines, and causality. During testing, a setting table can be provided in the prompt to check if subsequent outputs contain contradictions, such as discrepancies in a character’s age, location, or relationships.

    5. Implicit Needs Understanding

    Many users cannot immediately articulate what they want and can only describe a feeling, such as “this name looks like it fits the character.” Whether a model can translate such vague feedback into concrete judgments directly affects collaboration efficiency. Section III provides a method for this transformation.

    6. Interaction and Feedback Efficiency

    This dimension includes response speed, the number of round-trips for revision requests, version management, and whether character settings can be retained within the same session. These workflow-level metrics significantly impact the subjective daily user experience.

    III. Transforming Vague Feelings into Executable Constraints

    Vague feelings are valid information but must be translated into constraints that the model can execute. A practical approach is as follows:

    1. Collect at least ten samples that match the target feeling, and label them as positive or negative examples.
    2. Ask the model to summarize common features, such as syllable count, character structure, and semantic associations.
    3. Compile the summarized results into a style card to serve as a fixed part of subsequent prompts.
    4. Score each candidate result individually, retaining the highest-scoring options that are manually confirmed to meet the settings.

    Below is an example format of a style card. The specific constraints within are only for illustrating the structure; actual rules should be determined by the work’s settings.

    1. style_card:
    2. name: Core Female Character Naming
    3. target_impression: Aloof, resilient, with a sense of distance
    4. constraints:
    5. - Single-character surname with a double-character given name; avoid rare characters
    6. - Tone combinations should avoid three consecutive flat tones to prevent sounding sluggish
    7. - Keep character shapes simple and avoid duplication with existing character names
    8. negative_examples:
    9. - Characters with obvious colloquial or playful connotations
    10. output_format: Provide 5 candidates and explain how each corresponds to the style card

    The key to this workflow is that the model’s analysis cannot replace human judgment. The model is responsible for summarization and enumeration, while the human confirms whether the results align with the work’s settings.

    IV. Service Availability and Account Risk

    4.1 Risk Sources

    Common risks include the following categories:

    • Account policy changes: Adjustments to registration requirements, usage regions, or concurrency policies.
    • Access restrictions: Network environment changes or service area limitations.
    • Cost fluctuations: Changes in billing methods or pricing.
    • API changes: Modifications to parameters or return structures, leading to workflow failures.

    4.2 Architectural Response

    The core idea is to abstract model calls into a unified interface, ensuring the business layer does not directly depend on a specific vendor’s SDK.

    1. from typing import Protocol
    2. class TextModel(Protocol):
    3. name: str
    4. def generate(self, prompt: str, max_tokens: int = 1024) -> str: ...
    5. def generate_with_fallback(prompt: str, providers: list[TextModel]) -> tuple[str, str]:
    6. errors = []
    7. for provider in providers:
    8. try:
    9. return provider.generate(prompt), provider.name
    10. except Exception as exc: # Production environments should distinguish between retryable and non-retryable errors
    11. errors.append(f"{provider.name}: {exc}")
    12. raise RuntimeError("All model services are unavailable: " + "; ".join(errors))

    When implementing this, pay attention to the following points:

    • Log the actual provider and model version used in the call for tracing quality differences.
    • Decouple prompts and business data from the provider so that migration only requires replacing the adapter.
    • Transmit data according to the principle of minimization; do not save the complete original text in logs.
    • Set alert thresholds for call volume and costs.

    In specific regional contexts, locally available cloud platforms (e.g., Baidu AI Cloud) can be integrated into the candidate list to form mutual backups with other services. When selecting, comprehensively consider data compliance requirements, response latency, and pricing, rather than focusing solely on brand recognition.

    V. Establishing a Multi-Model Selection Process

    5.1 Build an Evaluation Set

    Extract 50 to 100 tasks from real-world work, covering types such as short-text polishing, long-form continuation, multi-turn revision, setting consistency checks, and style imitation. Save the input, reference requirements, and manual scoring criteria for each task.

    5.2 Blind Evaluation and Weighted Scoring

    Shuffle and hide the sources of outputs from different models, and have reviewers score them by dimension (1 to 5 points). Weight each dimension according to business needs. For creative scenarios, you might set instruction following at 25%, style consistency at 25%, structure and logic at 20%, language quality at 20%, and interaction efficiency at 10%. Weights should be determined before the evaluation begins to avoid adjusting results retroactively.

    5.3 Automated Aggregation Example

    1. import statistics
    2. from collections import defaultdict
    3. # Weights should be determined before the evaluation begins
    4. WEIGHTS = {
    5. "instruction": 0.25,
    6. "style": 0.25,
    7. "structure": 0.20,
    8. "language": 0.20,
    9. "interaction": 0.10
    10. }
    11. def aggregate_scores(raw_scores: dict[str, dict[str, list[int]]]) -> dict[str, float]:
    12. """
    13. Aggregates raw scores from multiple dimensions into a final weighted score for each model.
    14. Args:
    15. raw_scores: A dictionary mapping model names to their dimension scores.
    16. e.g., {"ModelA": {"instruction": [4, 5, 4], "style": [3, 4, 4]}}
    17. Returns:
    18. A dictionary mapping model names to their final weighted score.
    19. """
    20. model_final_scores = {}
    21. for model, dimensions in raw_scores.items():
    22. final_score = 0.0
    23. for dim, scores in dimensions.items():
    24. avg_score = statistics.mean(scores)
    25. final_score += avg_score * WEIGHTS.get(dim, 0)
    26. model_final_scores[model] = final_score
    27. return model_final_scores