The Cost Breakdown of End-to-End Protein Design with Large Language Models

    This article breaks down the real cost of end-to-end protein design powered by general-purpose large language models. It explains how token-based pricing, hit rate, and long-context surcharges shape the final bill, why replacing one pipeline stage does not remove the need for specialized structure and affinity models, and which engineering practices can reduce cost per valid candidate. The focus is on improving positive hit rates and avoiding reruns rather than simply switching to a cheaper model.

    1. Defining the Problem: What “No External Help” Actually Means

    A typical protein design pipeline has three stages: a generative model produces candidate sequences, a structure prediction model estimates how those sequences will fold, and an affinity scoring model ranks the few candidates most likely to bind the target site before wet-lab validation. “End-to-end, no external help” means a single general-purpose large model independently handles the entire process — sequence generation, structure self-assessment, and candidate ranking — without calling any specialized structure model.

    A recent public result from a cloud vendor shows that general-purpose large models can already participate in the sequence design stage and produce a certain proportion of positive results in wet-lab experiments. However, the limitations section of the same material explicitly acknowledges that fully end-to-end design with specialized models removed has not been achieved. This is the premise for understanding the entire cost breakdown: only one segment of the pipeline has been replaced, not the whole pipeline.

    2. How Inference Pricing Works: Why Unit Price Is Not the Total

    General-purpose large models are typically billed separately for input and output tokens. A model family usually offers multiple tiers, with lower tiers being cheaper; the gap between the highest and lowest tier can span one to two orders of magnitude. Two additional rules are common: once the context length exceeds a certain threshold, input and output unit prices increase; and cached input portions are billed at roughly 10% to 20% of the normal rate.

    Breaking down a “design task with code iteration,” token consumption comes mainly from four sources:

    • Long background injection from system prompts and domain knowledge;
    • Structured context such as the target site, structural constraints, and historical experiment records;
    • Multi-round reasoning output for generation and self-review;
    • Repeated script generation, error read-back from runs, and corrections.

    As a rough estimate, a medium-complexity design consumes on the order of a hundred thousand input tokens and tens of thousands of output tokens. At mid-tier pricing, the cost per run lands in the range of a few tenths of a dollar; switching to the highest tier multiplies that by roughly four.

    But unit price multiplied by per-run consumption is not the bill. What truly determines the total is the hit rate.

    3. Hit Rate Is the Multiplier on Total Cost

    Let the cost per design run be C and the wet-lab positive rate be p. The expected cost to obtain one “usable candidate” is C/p. When p is around 10%, the expected cost is inflated roughly tenfold; this means the per-candidate cost on a mid-tier model jumps from a few tenths of a dollar to several dollars, and on the highest tier to over ten dollars.

    This formula explains why “a cheaper model” and “cheaper R&D” are not the same thing:

    1. Expected total cost ≈ (design inference cost + specialized model cost + experiment queue cost) / positive rate

    If any term in the numerator is not reduced while the denominator stays stuck in the low teens, the drop in total cost is very limited.

    4. Three Places Where Money Is Still Being Spent

    4.1 External Help Has Not Left

    Sequence proposals are still often produced by specialized sequence design networks, and candidate screening still relies on structure prediction and affinity scoring models. Whether self-hosted as inference services or accessed through platform capabilities, these specialized models each generate compute bills. What the general-purpose large model saves is part of the human effort and API calls in the design stage, not the cost of the entire chain.

    4.2 The Wrong Half Has to Be Rerun

    In the same public data, the similarity metric between the general-purpose model’s self-assessed structure and the actual structure is clearly lower than that of specialized structure prediction models (one is in the low single digits, the other close to 0.9). Inaccurate self-assessment means unreliable ranking; unreliable ranking means a large number of candidates are wrongly eliminated or wrongly advanced, forcing designs to be redone. The cost of redoing is doubled: inference is paid for again, and experiment capacity is occupied again — and experiment capacity is often the most expensive and slowest resource in the whole chain.

    4.3 Long-Context Surcharge

    Protein design is inherently “long code plus long reasoning”: constraint files, structure coordinates, and multi-round script outputs stack up and easily cross the context threshold, triggering a surcharge tier of double input price and 1.5x output price. A seemingly minor engineering detail can raise the per-run cost by 50% to 100%.

    5. Limitations Beyond Cost That Matter More

    • Binding success only means “it sticks,” not that it is stable, specific, or druggable;
    • Off-target binding, aggregation, expression level, and immunogenicity are all unverified;
    • Without negative samples and control designs, the positive rate itself may be overestimated;
    • Training data coverage is biased toward the natural protein distribution, limiting generalization to entirely new scaffolds.

    From “can bind” to “can be a drug,” there are still multiple rounds of experiments covering stability, specificity, toxicology, and process development.

    6. An Actionable Cost Optimization Checklist

    1. Tiered scheduling: use lower-tier models for bulk coarse screening and script generation, and call higher-tier models only at the final review stage;
    2. Context governance: turn long background into a cacheable read-only prefix, store intermediate artifacts in object storage, and read back only summaries to reduce repeated input;
    3. Cache-friendly design: put stable prompts first and variable data last to improve cache hit rates;
    4. Keep specialized models as “judges” but reduce their call frequency, invoking them only to recheck high-scoring candidates from the general-purpose model;
    5. Make experiment design a rollback-capable queue, using message queues and container platforms for task orchestration to avoid repeatedly occupying capacity on reruns;
    6. Build a monitoring and alerting dashboard centered on “cost per valid candidate” rather than only watching token unit price.

    7. Conclusion

    General-purpose large models have pushed the marginal cost of the “design” stage down to nearly negligible, but structure self-assessment accuracy, dependence on specialized models, long-context surcharges, and wet-lab cycle times together determine the overall bill. If the goal is to slash R&D costs, the direction should shift from “switching to a cheaper model” to “raising the positive rate and reducing reruns.” In engineering practice on platforms such as Baidu AI Cloud, the more reliable path is to treat the large model as the scheduling and generation layer of the pipeline, use general cloud product capabilities for storage, orchestration, and monitoring, and concentrate the budget on experimental validation.