LLM AI Agent MCTS Action Search Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing AI agents lack efficiency in performing tasks as they inefficiently search the entire space of possible actions for every single action, consuming significant power and computational resources.

Innovation Solution

The implementation of a Monte Carlo Tree Search (MCTS) framework within a Large Language Model (LLM) based AI agent, which rapidly explores and exploits the space of possible actions by using a score associated with each action to balance exploration and exploitation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If AI agents search the entire space of possible actions for every single action, then they can find optimal actions, but they consume significant power and computational resources

Engineering Contradiction:
Improveaction selection accuracyVSAvoidcomputational resource consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent segments the action space into multiple discrete actions that can be evaluated independently. Instead of searching the entire space as a monolithic problem, the MCTS framework divides it into individual action nodes that can be scored and prioritized separately, reducing the computational burden of exhaustive search.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent assigns scores to actions based on preliminary evaluation criteria before full execution. The MCTS algorithm performs preliminary exploration and scoring of potential actions, allowing the system to prioritize high-value actions and avoid exhaustive search of low-probability options, thereby reducing computational resource consumption.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If AI agents search the entire space of possible actions, then they can ensure thorough exploration, but they lose time and reduce efficiency

Engineering Contradiction:
Improvetask completion accuracyVSAvoidtask execution time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent implements feedback mechanisms where the AI agent receives performance feedback after executing actions. This feedback is used to update the scoring function in MCTS, allowing the agent to learn from past experiences and improve future action selection efficiency without requiring exhaustive search each time.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent dynamically adjusts parameters in the action scoring function based on observed performance and environmental feedback. By changing the weighting parameters and evaluation criteria adaptively, the system can balance exploration and exploitation, reducing the time needed to find effective actions while maintaining task completion accuracy.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If AI agents use traditional machine learning systems, then they can perform basic tasks, but they lack efficiency in performing actions on environment

Engineering Contradiction:
Improvetask performance capabilityVSAvoidaction execution efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent introduces MCTS as an intermediary layer between the LLM and the environment. This intermediary framework translates the LLM's action suggestions into optimized action sequences by applying scoring and selection mechanisms, thereby improving the efficiency of action execution while maintaining the versatility of the underlying language model.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20250139411A1Systems and methods for artificial intelligence agents
Publication Date: 2025.05.01 SALESFORCE INC
  • US20250139411A1 patent drawing
  • US20250139411A1 patent drawing
  • US20250139411A1 patent drawing

AI summary

Embodiments described herein provide a large language model (LLM) based AI agent that adopts Monte-Carlo Tree Search (MCTS) to execute a task. The LLM is prompted with a task description and it responds with its first attempted list of actions. Based on the success or failure of the first attempt, the LLM is prompted with an updated prompt which includes feedback from the first attempt based on a determined reward. The prompt may include a relative “score” for each action taken at each step. A numeric score may be mapped to a set of pre-defined text labels, such as “high” or “low” value putting the score in a form more suited for an LLM prompt. In this way, the LLM is iteratively given prompts which are updated with the scores from each action taken at each previous iterations so that it traverses different paths on the tree in each iteration.