Skip to main content
Search

# Overcompliance

1 related articles

Subscribe to updates
  1. arXiv

    Static-analysis alerts injected mid-generation: DeepSeek-V4.1-flash lifts functional-and-secure programs on RiskyPy from 52.5% to 64.4% at 1.7 times the baseline tokens

    Static analyzers are cheap and widely deployed, but they had only been placed inside multi-round repair loops, where intermediate steps add cost and make the alert's own effect hard to isolate. Two strategies hand the alert to the model during generation, as a code comment or in the user message, rolling back to before the flagged line and resuming. Across three models and three Python benchmarks, this in-generation guidance costs 0.9 to 1.9 times the baseline's output tokens against up to 24.1 times for iterative approaches; with DeepSeek-V4.1-flash on RiskyPy, it raises the share of functional and secure programs from 52.5% to 64.4%, close to the best iterative approach at 66.2% while using less than a fifth of the tokens.

You’re all caught up