Abstract
Adapting general-purpose large language models to specific tasks requires substantial human effort in designing data and training strategies. Sustaining improvement is especially challenging because model updates change the error distribution, making accurate diagnosis and strategy selection difficult. We introduce ImproveAnyTask, an autonomous post-training harness that improves task performance under a limited compute budget. Drawing inspiration from gradient-based parameter optimization, the harness organizes adaptation into error attribution, update-direction selection, and executable model updates. It combines metric-level and case-level analysis with targeted verification of uncertain causes, prioritizing problems by their measured recovery contribution. Research-backed strategies are compared for feasibility and assessed using gradient probes on the current checkpoint to estimate their potential to correct errors and their interference with existing capabilities. The selected strategy is translated into training data and a training configuration, with small-scale execution checks preceding full post-training. Subsequent evaluation guides model selection and further adaptation, while validated strategies and scripts are retained for reuse. Across 13 tasks, ImproveAnyTask achieves mean absolute gains of 17.45% and 11.33% on Qwen3.5-4B-Base and Qwen3.5-4B-Instruct, respectively, with a maximum gain of 41.96% on LiveCodeBench v6, under a 24-hour budget with resources equivalent to eight H20 GPUs.