Back to AI Research

AI Research

Measurement-Driven Sub-Network Selection for On-Pre... | AI Research

Key Takeaways

  • Measurement-Driven Sub-Network Selection for On-Premise Retrieval-Augmented Factory Agents Factory workers often need quick access to technical machine docum...
  • On-premise assistants can give factory workers conversational access to machine documentation, but models capable of the task rarely fit shop-floor hardware.
  • A weight-shared supernetwork trained with sandwich-style in-place distillation keeps this selection inexpensive.
  • Measurement-Driven Sub-Network Selection for On-Premise Retrieval-Augmented Factory Agents
  • Factory workers often need quick access to technical machine documentation, but the large language models (LLMs) capable of providing this information are usually too big to run on standard shop-floor hardware.
Paper AbstractExpand

On-premise assistants can give factory workers conversational access to machine documentation, but models capable of the task rarely fit shop-floor hardware. We show that after structural compression and retrieval-grounded adaptation, model size is no longer a reliable predictor of adapted answer quality: general capability falls almost linearly with parameter count, while judged retrieval-augmented answer quality does not. We therefore treat deployment as a post-adaptation selection problem, committing one sub-network per device on judged answer quality and measured on-device throughput under a configurable general-capability floor and memory budget; rules that optimize size, speed, or quality alone each give up capability or throughput. A weight-shared supernetwork trained with sandwich-style in-place distillation keeps this selection inexpensive. In a manufacturing-manual case study, extraction costs 13.7 percent of the unpruned model's judged quality and retrieval-grounded distillation returns it to within 4.6 percent, recovering two thirds of the loss, and the same assistant runs across three heterogeneous edge tiers at 1.3 to 5 watts standby.

Measurement-Driven Sub-Network Selection for On-Premise Retrieval-Augmented Factory Agents
Factory workers often need quick access to technical machine documentation, but the large language models (LLMs) capable of providing this information are usually too big to run on standard shop-floor hardware. This paper introduces a pipeline to compress these models and deploy them on resource-constrained edge devices without sacrificing the quality of the answers provided. By using a "train-once, select-per-device" approach, the researchers ensure that each piece of hardware runs the most efficient version of the model possible, keeping sensitive data on-site while maintaining high performance.

The Challenge of Model Size

A key finding in this research is that model size is not a perfect indicator of how well an AI will perform once it is adapted for a specific task. While a model's general knowledge tends to drop as you remove parameters, its ability to answer questions based on specific factory documents does not decline at the same rate. Because of this, simply picking the largest model that fits in memory is not necessarily the best strategy. The researchers discovered that they need to evaluate models based on actual performance—measuring both the quality of the answers and the speed of the device—rather than relying on simple proxies like parameter count.

A Two-Stage Compression Pipeline

To solve the footprint problem, the team developed a multi-stage process. First, they train a "supernetwork" that contains many different sub-networks within a single set of shared weights. This is done using a technique called sandwich-style in-place distillation, which allows smaller versions of the model to learn from the larger, more capable version during training. Once this supernetwork is trained, the researchers extract specific sub-networks and further specialize them using retrieval-grounded distillation, which teaches the model to focus on factory-specific manuals and ignore irrelevant information.

Hardware-Aware Selection

Because different factory devices have different memory and processing limits, the researchers created a selection process that happens after the model has been adapted. They define a "general-capability floor" to ensure that any chosen sub-network remains smart enough to handle basic tasks. By benchmarking three specific "anchor" versions of the model on a new device, they can predict how all other versions will perform. This allows them to automatically select the best sub-network for any given piece of hardware, balancing the need for high-quality answers with the physical constraints of the machine.

Practical Results

In a case study involving a manufacturing manual, this pipeline successfully recovered two-thirds of the quality lost during the initial compression process. The resulting assistants were deployed across three different tiers of edge hardware, ranging from powerful GPUs to smaller embedded controllers. These models were able to operate efficiently, with standby power consumption as low as 1.3 to 5 watts, proving that sophisticated, document-grounded AI can be run locally on the shop floor without needing to offload data to the cloud.

Comments (0)

No comments yet

Be the first to share your thoughts!