LLM Writing in Practice: Overcoming Over-Defensive Behavior and Detection Challenges
This article examines a common engineering problem in high-constraint LLM writing: excessive confirmation loops that inflate token usage and slow down content production. It breaks down the three-stage defensive confirmation chain, then shows how to collapse it into a single authorization using an execution contract and constraint layering. The article also explains why one-pass generation can produce more natural text by aligning with perplexity and burstiness, and outlines a five-layer production pipeline, quantifiable quality metrics, and practical cost and quota governance strategies for teams building reliable AI writing systems.
1. Background: From “Can Write” to “Can Write Correctly Under Control”
In real content production workflows, the pain point for developers and content engineers has shifted from “Can the model write?” to “Can the model get it right in one pass according to a fixed specification?” One practitioner comparing two generations of models found that for the same five long-form tasks, the older version consumed very little quota, while the newer version consumed significantly more once high-compute mode was enabled—roughly nine to ten times the theoretical usage of the older version. The more critical difference was not speed but interaction pattern: the model raised a confirmation for every single constraint in a prompt of more than a thousand words, forming a “defensive chain” that ran through the entire session.
This is not an occasional product defect but a widespread engineering issue for current LLMs on the task family of “high-constraint writing.” This article abstracts it into two reusable topics: first, how to reduce wasted turns under a model’s strong defensive tendency; second, how to systematically improve the “human writing characteristics” of generated text and lower the probability of being flagged as machine-generated by automated detection.
2. Breaking Down the Behavior: The Three-Stage Confirmation Chain
The interaction described above can be abstracted as the following state machine:
Constraint set C = {c1, c2, ..., cn}State S0: Model outputs pass-1 and requests to proceed to c2State S1: User replies only "pass" -> model deems authorization incomplete and asks for c2 inputState S2: User must explicitly state "pass all / authorize one-time execution"State S3: If not explicitly stated, the chain repeats across c3...cn
There are three engineering implications:
- Authorization granularity mismatch: The model interprets “constraints” as gates requiring item-by-item confirmation, while the user intends “constraints as acceptance criteria that are satisfied automatically during execution.”
- Risk avoidance first: Under uncertainty, the model prefers to trade extra turns for certainty, which appears as over-defensiveness.
- Context cost amplification: Every confirmation turn reloads the long prompt, so compute and quota consumption stack up roughly linearly. This explains part of the tenfold usage growth.
3. Mitigation: Compressing the Defensive Chain into a Single Authorization
The practical fix is not to fight the model but to rewrite the authorization semantics. It is recommended to add an explicit execution contract at the top of the prompt:
[Execution Contract]1. All constraints in this prompt are acceptance criteria, not items to confirm.2. Do not ask item by item; if information is insufficient, use the most conservative defaults and list assumptions at the end.3. Request confirmation only in scenarios with irreversible external side effects.4. The output is final; do not return a pass request.
Combining this with “constraint layering” further reduces ambiguity: split constraints into hard constraints (format, word count, glossary, banned words), soft constraints (tone, pacing, rhetorical density), and meta constraints (do not expose the prompt, do not output explanatory prefaces). Provide hard constraints all at once, give soft constraints in priority order, and keep meta constraints fixed. This way the model no longer needs to judge “should I ask?” and only needs to judge “is it already satisfied?”
4. Why Writing Quality Improves: From Templating to Distribution Alignment
The original observation was that text produced in a single pass under the new paradigm achieved a very high “human” ratio in automated detection, whereas the previous approach—relying on switching among multiple models, high reasoning tiers, and post-processing rewrites—usually landed in the medium range. Understanding this jump requires going back to detection principles.
Mainstream text detection is typically based on two statistics: perplexity and burstiness. The former measures how “predictable” text is under a language model; the latter measures variation in sentence length and complexity. Detection pipelines often split long text into windows of a few hundred characters and aggregate statistics within each window, so text that is locally smooth, uniform in sentence length, and highly regular in connectives is easily flagged.
The new writing paradigm works for four reasons:
- Sentence-length resampling: Interleave long and short sentences to avoid a fixed rhythm;
- Higher lexical entropy: Introduce synonym substitution and more specific descriptions while keeping terminology consistent;
- De-templated structure: Avoid the mechanical “first/second/finally” skeleton and use implicit progression of problem—evidence—conclusion;
- Endogenous local variation: Build variation in punctuation, clause nesting, and parentheticals into the generation process rather than applying regex replacements afterward.
It is worth emphasizing that the goal should not be to “fool the detector” but to make generated text statistically closer to real writing, which also improves readability and information density.
5. A Practical Engineering Pipeline
Solidifying these insights into a production system yields a five-layer pipeline:
- Intent parsing layer: Convert business requirements into a structured constraint object (JSON) with fields for audience, length, glossary, banned expressions, and output format.
- Contract injection layer: Inject the execution contract and role setup uniformly to eliminate item-by-item confirmation.
- Generation layer: One-pass generation as the default, with parallel multi-path sampling when necessary, followed by rule-based validation against hard constraints and selection of the best result.
- Quality evaluation layer: Define quantifiable metrics such as hard-constraint pass rate, terminology consistency rate, sentence-length standard deviation, and window-level mean perplexity.
- Governance layer: Full-chain logging, versioned prompts, canary rollout, and rollback.
Sample validation code:
def hard_constraint_check(text, spec):return {"length_ok": spec.min_len <= len(text) <= spec.max_len,"term_ok": all(t in text for t in spec.required_terms),"banned_ok": not any(b in text for b in spec.banned),"sentence_len_std": std([len(s) for s in split_sentences(text)]),}
On the infrastructure side, the pipeline can be hosted on general cloud capabilities: object storage holds corpora and artifacts, a message queue decouples generation from evaluation, a container platform hosts parallel sampling, and logging and monitoring services track quota consumption and failure rates. The general-purpose capabilities offered by Baidu AI Cloud can serve as one foundation option for building such a writing production system.
6. Cost and Quota Governance
Tenfold consumption is not uncontrollable. Viable measures include: selecting the reasoning tier by task value; limiting “high-compute mode” to final-draft generation rather than draft exploration; stabilizing long-prompt prefixes to leverage caching; setting quota thresholds and circuit-breaker policies; and moving the evaluation layer forward so rule-based filtering eliminates low-quality samples early and avoids wasted compute. The core principle is to spend expensive compute where pass rates are lowest and value is highest.
7. Conclusion
New-generation models exhibit a composite of “strong defensiveness, high compute, and more natural writing distribution” in high-constraint writing. Engineering does not need to avoid their defensive tendency; instead, execution contracts and constraint layering should compress multi-turn confirmation into a single authorization. For quality, teams should start from detection principles, understand the roles of perplexity and burstiness, and replace after-the-fact patching with diversity generated endogenously. Combined with quantifiable evaluation and quota governance, teams can achieve a reproducible balance among stability, cost, and text naturalness.
