Structured pruning has long assumed access to training code, framework internals and gradient updates. Deployed models rarely offer any of them: they exist as frozen ONNX graphs. Given such a graph and a device to deploy it on, there is no straightforward way to find the variant that will run best on that hardware. Taksha closes that gap with a hardware-aware architecture search that never leaves the graph. Candidates come from the graph itself. A channel-layout model reads which channels are coupled and where attention heads live, and an evolutionary search gives every coupled group a width under a hard budget on MACs, parameters or a device's own limits. Scoring a candidate costs one forward pass and no gradients; the search therefore runs after training, not inside it. A static verifier then rejects any graph that would fail to load or run, so what the search returns is always a model the target runtime will accept. The budget, the target device and the recovery recipe are all chosen by the user, so the results below are one setting among many, not a ceiling. We run Taksha across convolutional networks, point-cloud networks, vision and language transformers, and a vision--language model, under one configuration per family. Searched models run 2.00$\times$ faster on a CPU where the best method that needs the source code manages 1.26$\times$. PointNet++ ends +0.58 points above its original at 57.0\% fewer MACs; ViT-B/16 gives up 2.29 at 49.7\%, beating the strongest ONNX-level result at that operating point with a third of its fine-tuning. The generated models are then benchmarked for latency on a range of silicon, not estimated from MAC counts: a Jetson Orin Nano, an Apple M2 and a server CPU, each running the same emitted file unmodified, with speed-ups of up to 3.25$\times$ on the CPU, 1.79$\times$ on the M2 and 1.72$\times$ on the Jetson.
翻译:暂无翻译