[Paper Review] A Scalable and Adaptive System to Infer the Industry Sectors of Companies: Prompt + Model Tuning of Generative Language Models
This paper presents a scalable, adaptive system that uses prompt tuning and fine-tuning of a medium-sized generative language model to infer company industry sectors with high accuracy despite scarce, imbalanced, and evolving annotations. The system outperforms common baselines and has been production-deployed for over a year, supporting hundreds of private equity professionals with dynamic sector framework adaptation and incremental inference.
The Private Equity (PE) firms operate investment funds by acquiring and managing companies to achieve a high return upon selling. Many PE funds are thematic, meaning investment professionals aim to identify trends by covering as many industry sectors as possible, and picking promising companies within these sectors. So, inferring sectors for companies is critical to the success of thematic PE funds. In this work, we standardize the sector framework and discuss the typical challenges; we then introduce our sector inference system addressing these challenges. Specifically, our system is built on a medium-sized generative language model, finetuned with a prompt + model tuning procedure. The deployed model demonstrates a superior performance than the common baselines. The system has been serving many PE professionals for over a year, showing great scalability to data volume and adaptability to any change in sector framework and/or annotation.
Motivation & Objective
- To address the challenge of inferring accurate industry sectors for millions of companies in private equity operations.
- To overcome limitations of existing systems, including scarce, imbalanced, and evolving annotations, and dynamic sector frameworks.
- To develop a scalable and adaptive solution that supports thematic private equity funds in identifying macro-level trends across diverse sectors.
- To demonstrate the superiority of a generative NLP approach—specifically, prompt + model tuning—over discriminative baselines in low-data regimes.
- To enable real-time adaptation to changes in sector definitions and annotation updates without retraining from scratch.
Proposed method
- The system uses a medium-sized pretrained language model (PLM) fine-tuned via a hybrid prompt + model tuning procedure, starting from a later stage of prompt tuning to maximize performance with limited annotations.
- A two-stage training pipeline is employed: first, prompt tuning is applied to adapt the model to the classification task using a carefully designed prompt template; second, the full model is fine-tuned to further improve performance.
- The system implements automated data handling, including sample balancing via data augmentation (Algorithm 2) and dynamic detection of changes in the sector framework to trigger retraining.
- An inference pipeline uses rule-based filtering to reduce daily load by at least 95%, followed by parallelized inference on a GKE-managed Docker container using the latest model version.
- The system integrates with BigQuery for data storage, Kafka for real-time prediction streaming, and includes a QA step with assertions to validate model performance before release.
- Model updates are triggered automatically when changes in sector definitions or annotation distributions are quantified as significant, ensuring continuous adaptation.
Experimental results
Research questions
- RQ1Can a generative language model with prompt + model tuning achieve superior performance in company sector classification compared to discriminative baselines, especially under data scarcity?
- RQ2How can a system maintain high accuracy and adaptability when sector frameworks and annotations are constantly evolving?
- RQ3To what extent can a medium-sized PLM be effectively fine-tuned using only a limited number of annotated examples through prompt and model co-tuning?
- RQ4How can automated, incremental inference be achieved at scale while minimizing computational load and ensuring model consistency?
- RQ5What design choices—such as prompt template structure, model size, and training strategy—lead to the most robust and generalizable performance in real-world private equity applications?
Key findings
- The proposed prompt + model tuning approach achieves superior performance compared to common discriminative baselines, even with limited and imbalanced annotations.
- The system demonstrates strong scalability, handling millions of companies with inference load reduced by at least 95% through rule-based selection in the inference pipeline.
- The model maintains high accuracy across all sector levels, with precision and recall metrics exceeding 75% for key sectors such as 'vertical software' after QA validation.
- The system successfully supports dynamic adaptation to changes in the sector framework, including merging, splitting, and redefining sectors, by automatically detecting and responding to changes in annotation patterns.
- The deployment has been stable and production-ready for over a year, serving hundreds of private equity professionals with consistent performance and low latency.
- The solution generalizes well beyond private equity, with potential direct application to e-commerce product tagging and other entity classification tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.