Safe Meta-RL Prompting With Reduced Action Space for LLMs

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing prompt generation techniques for large language models (LLMs) lack consideration for safety aspects and require manual domain knowledge, making them cumbersome and inefficient.

Innovation Solution

Implementing safe meta-reinforcement learning (meta-RL) to update parameters of a reinforcement learning model, generating prompts for LLMs that incorporate safety features and reduce the action space, thereby improving automatic prompt generation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If manual and semi-manual prompting techniques are used for large language models, then high accuracy can be achieved, but domain knowledge is required and manual labor becomes burdensome

Engineering Contradiction:
Improveprompting accuracyVSAvoidmanual labor burden
Core Design Contradiction:
Measurement precisionVSEase of operation

Solution Approach 1:

The system enables automatic prompt generation through reinforcement learning, where the model learns to generate its own prompts without human intervention. The RL agent autonomously explores prompt spaces and learns optimal prompting strategies for downstream tasks, eliminating the need for manual prompt engineering while maintaining high accuracy.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

Manual prompt engineering processes are replaced with an automated reinforcement learning system. The mechanical process of manually crafting prompts is substituted with an intelligent agent that learns and generates prompts automatically through trial-and-error learning and reward-based optimization.

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

2Extent of automation

If conventional reinforcement learning is used for prompt generation, then automation is achieved, but safety aspects are not considered

Engineering Contradiction:
Improveprompt generation automationVSAvoidsafety consideration
Core Design Contradiction:
Extent of automationVSReliability

Solution Approach 1:

The action space is segmented into safe and unsafe regions through the introduction of a safety function. This segmentation allows the reinforcement learning agent to distinguish between beneficial and harmful actions, enabling automated prompt generation that respects safety boundaries while maintaining exploration capabilities.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

A safety function is预先 defined to prevent harmful actions before they occur. The safety constraints are built into the reinforcement learning framework in advance, creating a protective mechanism that blocks unsafe prompt generations before they can cause harm, rather than relying on post-hoc filtering.

Inventive Principle:
Principle #9Preliminary anti-action

3Reliability

If the action space is reduced through safe meta-RL, then safety is improved, but the exploration capability may be limited

Engineering Contradiction:
Improvesafety assuranceVSAvoidexploration capability
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The action space boundaries are made dynamic rather than static. The safe action space is determined adaptively based on the current state and learned safety patterns, allowing the agent to explore more freely within safe regions while being constrained only where necessary. This dynamic approach maintains safety assurance while preserving exploration capability.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20260073231A1Safe meta-reinforcement learning (safe meta-RL) prompting for machine learning
Publication Date: 2026.03.12 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20260073231A1 patent drawing
  • US20260073231A1 patent drawing
  • US20260073231A1 patent drawing

AI summary

One or more parameters of a meta-reinforcement learning (meta-RL) model are updated, wherein the updated parameters comprise an update to an action space. A prompt is generated using the reinforcement learning model with the updated parameters for a large language model. The prompt is provided to the large language model to perform a downstream task.