Hybrid Language Model Architecture for API Orchestration

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing language models face challenges in balancing computational cost and performance, with small language models lacking capacity for complex patterns and large language models requiring significant resources for training.

Innovation Solution

A hybrid language model architecture that combines the efficiency of small language models with the accuracy of large language models, using a small language model to identify candidate APIs and a large language model to select the appropriate API based on context and intent.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Use of energy by moving object

If small language models are used, then computational cost is reduced, but capacity to learn and generalize complex patterns deteriorates

Engineering Contradiction:
Improvecomputational costVSAvoidcapacity to learn and generalize complex patterns
Core Design Contradiction:
Use of energy by moving objectVSAdaptability or versatility

Solution Approach 1:

The system segments the language model processing into two distinct components: a small language model for initial candidate generation and a large language model for final selection. This segmentation allows each model to operate at its optimal capacity - the small model handles the computationally intensive task of generating multiple candidates, while the large model focuses on the more nuanced task of selecting the best candidate based on complex patterns and context.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The small language model acts as an intermediary between the user's natural language input and the large language model. It generates a filtered set of candidate responses that are then evaluated by the large language model, effectively mediating the interaction and reducing the computational burden on the large model while maintaining the ability to handle complex patterns.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If large language models are used, then accuracy and language understanding capabilities are improved, but computational resources and training time increase

Engineering Contradiction:
Improvelanguage understanding capabilitiesVSAvoidcomputational resources
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The system divides the language processing workload into two segments: the small language model handles the initial processing and candidate generation, while the large language model handles the final selection. This segmentation allows the large model to be used more sparingly, reducing overall computational resource consumption while maintaining high accuracy for the critical selection step.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Instead of using the large language model for complete processing of all inputs, the system applies it partially - only for the final selection from a pre-filtered set of candidates. This partial application of the large model's capabilities reduces computational resource requirements while still leveraging its superior language understanding where it is most needed.

Inventive Principle:
Principle #16Partial or excessive action

3Productivity

If hybrid architecture is implemented, then balance between computational cost and performance is achieved, but system complexity increases

Engineering Contradiction:
Improvebalance between computational cost and performanceVSAvoidsystem architecture complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The hybrid architecture is segmented into distinct functional components with clear interfaces - the small language model for candidate generation and the large language model for selection. This segmentation, while increasing architectural complexity, enables better resource management and performance optimization that ultimately improves productivity.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12321794B2Hybrid language model architecture for API orchestration including chain of thought
Publication Date: 2025.06.03 GOLDMAN SACHS & CO LLC
  • US12321794B2 patent drawing
  • US12321794B2 patent drawing
  • US12321794B2 patent drawing

AI summary

A hybrid architecture that combines the efficiency of small language models with the accuracy of large language models for enhanced selection of requested functionality and identification of data visualizations using a network system is described. For instance, an orchestration module employs a hybrid architecture using both small language models and large language models to generate API payloads for clients in a way that harnesses the benefits of both models.