Modular Language Model Evaluation With Semantic-Lexical Scoring

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional evaluation metrics for language models, such as BLEU and ROUGE, fail to comprehensively assess semantic nuances and real-world applicability, and existing metrics do not adequately benchmark against human expert standards.

Innovation Solution

A modular framework that integrates semantic and lexical evaluation metrics, using a composite score adjusted for divergences, to evaluate language models, incorporating user-defined objectives and expert alignment, and tunes hyperparameters for customized performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional evaluation metrics like BLEU and ROUGE are used, then lexical similarity can be measured, but semantic nuances and real-world applicability are not adequately assessed

Engineering Contradiction:
Improvesemantic accuracyVSAvoidevaluation framework complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The evaluation framework is segmented into multiple independent modules, each responsible for a specific aspect: lexical evaluation (BLEU, ROUGE), semantic evaluation (BERTScore, semantic similarity), and grammatical evaluation. This segmentation allows each module to specialize in one dimension while the framework as a whole provides comprehensive assessment, resolving the contradiction between measurement precision and complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The framework merges multiple evaluation metrics from different categories (lexical, semantic, grammatical) into a unified evaluation system. By combining these diverse metrics and aggregating their scores, the framework achieves comprehensive semantic accuracy assessment while managing complexity through structured integration rather than creating a single complex metric.

Inventive Principle:
Principle #5Merging (Combining)

2Measurement precision

If comprehensive evaluation metrics are implemented to assess semantic and grammatical correctness, then evaluation accuracy improves, but computational cost and complexity increase

Engineering Contradiction:
Improveevaluation accuracyVSAvoidcomputational cost
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The framework implements partial evaluation by allowing users to select specific metric subsets based on their needs. Not all metrics are always computed - the system can run only lexical evaluation or only semantic evaluation depending on requirements. This partial action approach maintains high evaluation accuracy when needed while reducing computational cost when full comprehensive evaluation is not necessary.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

Different evaluation metrics are applied to different aspects of the generated text locally. Lexical metrics evaluate word-level similarity, semantic metrics evaluate meaning preservation, and grammatical metrics evaluate syntactic correctness. This local quality approach ensures each aspect is evaluated with appropriate precision while avoiding the computational overhead of applying all metrics to all aspects.

Inventive Principle:
Principle #3Local quality

3Adaptability or versatility

If multiple evaluation metrics are integrated into a unified framework, then comprehensive assessment is achieved, but system complexity increases

Engineering Contradiction:
Improveevaluation comprehensivenessVSAvoidframework structure
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The framework achieves universality by designing a common architecture that can accommodate multiple types of evaluation metrics. The unified framework structure with standardized interfaces allows lexical, semantic, and grammatical metrics to be integrated through the same evaluation pipeline, enabling comprehensive assessment without proportionally increasing structural complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The framework is designed to be dynamic and configurable, allowing users to enable or disable specific metrics based on their evaluation needs. The system can adapt its complexity level - running a lightweight lexical-only evaluation or a full comprehensive evaluation with all metrics. This dynamic nature allows the framework to provide comprehensive assessment when needed while maintaining manageable complexity through selective activation of components.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20250278568A1Modular framework for evaluating language models
Publication Date: 2025.09.04 INTUIT INC
  • US20250278568A1 patent drawing
  • US20250278568A1 patent drawing
  • US20250278568A1 patent drawing

AI summary

Aspects of the invention provide a method, computer system, and computer program product for evaluating language model responses. A set of user-defined objectives for evaluating model responses generated by a large language model is received. The objectives include semantic accuracy, grammatical soundness, and expert alignment. A set of evaluation metrics are selected from a predefined library based on the user-defined objectives. Evaluation scores are determined for model responses generated by a large language model using the selected set of metrics. The evaluation scores include a semantic score and a lexical score. A composite score is calculated from the evaluation scores. The composite score is adjusted for divergences between the semantic score and the lexical score. A set of hyperparameters of the large language models is tuned based on the composite score. The tuning customizes the large language model according to the user-defined objectives.