Language Model Thread Truncation via Topic Clustering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

As conversations with language model conversation bots continue, context growth becomes unmanageable, leading to interactions that are difficult for users to follow, as irrelevant topics accumulate in the conversation thread.

Innovation Solution

A language model thread truncation system that clusters prompts and responses based on topical representation, and after a timing threshold, truncates the thread by removing clusters that are no longer relevant, based on differences in current and cluster topics, and low reference values.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If the conversation thread retains all historical prompts and responses to maintain complete context, then the language model can reference all past information, but the context grows unmanageably large and becomes difficult for users to follow

Engineering Contradiction:
Improvecontext completenessVSAvoiduser comprehension
Core Design Contradiction:
Loss of informationVSEase of operation

Solution Approach 1:

The conversation thread is segmented into topic-based clusters, where each cluster groups prompts and responses related to a specific topic. This segmentation allows the system to manage context by organizing information into discrete, manageable units that can be independently evaluated for retention or removal.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system selectively discards clusters that are no longer relevant to the current conversation by evaluating reference values and timing thresholds. Important information is recovered and retained when it remains relevant, while irrelevant historical data is discarded to maintain manageable context size.

Inventive Principle:
Principle #34Discarding and recovering

2Reliability

If the conversation thread retains all historical prompts and responses to preserve complete context, then all past information remains available, but the thread becomes increasingly difficult to follow as irrelevant topics accumulate

Engineering Contradiction:
Improvecontext accuracyVSAvoidthread management
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system changes parameters by introducing reference values that quantify the relevance of each cluster, timing thresholds that determine when evaluation occurs, and clustering metrics that organize information by topic. These parameter changes enable automated, reliable decisions about which context to retain or remove.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The system uses feedback mechanisms where reference values are continuously updated based on conversation patterns, and clustering decisions are refined based on topic analysis. This feedback loop maintains context accuracy by adapting to the evolving conversation while simplifying thread management through automated relevance assessment.

Inventive Principle:
Principle #23Feedback

3Productivity

If the system removes clusters from the thread to bound context growth, then context remains manageable, but there is a risk of removing information that may still be relevant

Engineering Contradiction:
Improveconversation efficiencyVSAvoidrelevant context
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The system performs preliminary evaluation of clusters using reference values and timing thresholds before removal. By assessing cluster relevance in advance through topic clustering and reference value calculation, the system ensures that only genuinely irrelevant information is removed, preventing loss of potentially useful context.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system replaces manual context management with an automated mechanism that uses algorithmic clustering, reference value calculation, and threshold-based removal decisions. This mechanical substitution enables consistent, scalable context management that maintains productivity while minimizing information loss through objective relevance assessment.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS20250111847A1Long Running Language Model Thread Truncation
Publication Date: 2025.04.03 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20250111847A1 patent drawing
  • US20250111847A1 patent drawing
  • US20250111847A1 patent drawing

AI summary

Techniques for truncating long running language model conversation threads are provided. In one aspect, a language model thread truncation system includes: a language model; and a thread truncation module configured to obtain prompts and responses from a thread of user interactions with the language model during a conversation, cluster the prompts and responses based on their topical representation to create a cluster around a topic, and after a timing threshold has been reached, truncate the thread by removing the cluster from the thread if the current topic of the conversation differs from the topic of the cluster and if a reference value of the cluster is below a minimum value, otherwise retain the cluster in the thread. The reference value of the cluster can be determined based on individual reference scores for the prompts and responses in the cluster. A method for language model thread truncation is also provided.