Language Model Task Subspaces for Selective Knowledge Editing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional methods for modifying large language models (LLMs) to adjust task-specific knowledge are computationally expensive and time-consuming, particularly when retraining is required, and often lead to unintended degradation of performance on related tasks.

Innovation Solution

The method involves identifying and manipulating task-specific weight matrices within the LLM using a modified low-rank adaptation (LoRA) process, applying a Gram-Schmidt process for precise knowledge management, and generating task subspaces to add or remove knowledge without full retraining, thereby isolating and preserving performance on non-targeted tasks.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If full retraining is performed to modify task-specific knowledge, then model performance on the target task is improved, but computational cost and training time increase significantly

Engineering Contradiction:
Improvemodel performance on target taskVSAvoidcomputational cost
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent segments the model parameters into task-specific subspaces and identifies which parameters need modification. By isolating task-specific weight matrices and applying modifications only to those segments rather than the entire model, the computational cost is significantly reduced while maintaining performance improvements on the target task.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes parameters by modifying only the task-specific weight matrices within the task subspace rather than retraining the entire model. This selective parameter modification approach allows for efficient updates to task-specific knowledge while preserving the computational efficiency of the original model architecture.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If full retraining is performed to modify task-specific knowledge, then model performance on the target task is improved, but training time increases significantly

Engineering Contradiction:
Improvemodel performance on target taskVSAvoidtraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the training process by identifying and isolating task-specific weight matrices that need modification. By training only these segmented portions rather than the entire model, the training time is dramatically reduced while still achieving the desired performance improvement on the target task.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary identification and isolation of task-specific subspaces before modification. This preliminary action allows the system to prepare the model structure in advance, so that when modification is needed, only the pre-identified task-specific parameters need to be updated, significantly reducing the overall training time.

Inventive Principle:
Principle #10Preliminary action

3Use of energy by moving object

If task-specific parameters are removed to reduce computational cost, then resource utilization is improved, but performance on related tasks may degrade

Engineering Contradiction:
Improveresource utilizationVSAvoidperformance on related tasks
Core Design Contradiction:
Use of energy by moving objectVSReliability

Solution Approach 1:

The patent applies local quality by modifying only the specific task subspace parameters while leaving other parameters unchanged. The task-specific weight matrices are isolated and modified locally, which allows for reduced computational cost for that specific task while preserving the model's ability to handle related tasks through the unchanged portions of the model.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent segments the model into task-specific subspaces and modifies only the relevant segments. By maintaining the segmentation structure and only updating the identified task-specific weight matrices, the system achieves resource optimization for the target task while preserving overall model performance on related tasks through the unmodified segments.

Inventive Principle:
Principle #1Segmentation

4Adaptability or versatility

If conventional modification approaches are used, then model adaptability is improved, but implementation complexity increases

Engineering Contradiction:
Improvemodel adaptabilityVSAvoidimplementation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent simplifies implementation by focusing on parameter changes within isolated task subspaces rather than complex retraining procedures. The modified LoRA process and subspace isolation techniques provide a straightforward implementation approach that maintains model adaptability while reducing the complexity of modifying task-specific knowledge.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250378381A1Task-specific modification of pre-trained language models
Publication Date: 2025.12.11 GEORGIA TECH RES CORP
  • US20250378381A1 patent drawing
  • US20250378381A1 patent drawing
  • US20250378381A1 patent drawing

AI summary

Methods and systems are disclosed for selectively modifying the behavior of a pre-trained language model with respect to a designated task. A task-specific subspace is identified by training low-rank matrices for selected layers of the trained machine learning model, while freezing other parameters. The identified subspace is used to either attenuate or enhance task contributions by adjusting one or more model weight matrices. In some embodiments, overlapping subspaces are discriminated to preserve related task performance. These operations can be performed without access to original training data or full retraining. Some aspects of the disclosed techniques can allow efficient knowledge removal or addition in language models while minimizing adverse effects on unrelated tasks.