Language Model Adversarial Suffix Testing for Harmful Output Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large language models (LLMs) are not robust against adversarial inputs and can generate harmful outputs due to their training on biased, toxic, and offensive content, necessitating improved methods to mitigate unwanted responses.

Innovation Solution

A method and device for testing language models by providing harmful instructions with adversarial suffixes, using jailbreak strings and optimizing adversarial suffixes to determine harmful responses, enabling safe operation of computer-controlled machines.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If LLMs are trained on extensive web data to improve language generation capability, then the model's language understanding and generation improve, but the model becomes vulnerable to adversarial inputs and generates harmful outputs

Engineering Contradiction:
Improvelanguage generation capabilityVSAvoidrobustness to adversarial inputs
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent applies preliminary action by performing safety testing and adversarial evaluation before deploying the LLM in production. The system proactively identifies vulnerable patterns in the training data and implements mitigation strategies in advance, rather than waiting for harmful outputs to occur in practice. This includes pre-evaluating the model's responses to adversarial inputs and adjusting safety parameters before actual use.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary safety evaluation layer between the LLM and users. This intermediary component analyzes the model's outputs and inputs, detecting adversarial patterns and filtering harmful content. It acts as a mediator that allows the LLM to maintain its language generation capabilities while preventing harmful outputs from reaching users, thus resolving the contradiction between productivity and reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If safety system prompting and fine-tuning are applied to reduce harmful outputs, then alignment with human values improves, but the model remains vulnerable to adversarial inputs

Engineering Contradiction:
Improvealignment with human valuesVSAvoidvulnerability to adversarial inputs
Core Design Contradiction:
ReliabilityVSObject-affected harmful factors

Solution Approach 1:

The patent applies preliminary anti-action by implementing adversarial testing and safety evaluation mechanisms that specifically target and counteract adversarial inputs. The system proactively identifies and neutralizes adversarial patterns before they can exploit the model's alignment mechanisms. This includes evaluating the model's responses to jailbreak attempts and adversarial suffixes, and adjusting safety parameters to prevent these targeted attacks from succeeding.

Inventive Principle:
Principle #9Preliminary anti-action

3Reliability

If extensive testing with multiple harmful instructions and adversarial suffixes is performed, then the model's safety is improved, but the testing complexity and computational resources increase

Engineering Contradiction:
Improvemodel safetyVSAvoidtesting system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies segmentation by dividing the comprehensive safety testing process into modular, independent test cases. Each test case focuses on specific adversarial patterns (e.g., jailbreak strings, adversarial suffixes, harmful instructions), allowing the testing system to evaluate different safety aspects separately. This modular approach makes the complex testing process more manageable, reusable, and easier to maintain while still providing thorough safety evaluation.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20260037749A1Device and a computer implemented method for testing a language model in particular for operating a computer-controlled machine
Publication Date: 2026.02.05 ROBERT BOSCH GMBH
  • US20260037749A1 patent drawing

AI summary

A device and a computer implemented method for testing a language model in particular for operating a computer-controlled machine, wherein the method comprises providing a first harmful instruction from a dataset that comprises a plurality of harmful instructions, determining a first adversarial suffix depending on the first harmful instruction, prompting the language model to output a first response to a first input, wherein the first input comprises the first harmful instruction, and wherein the first input comprises the first adversarial suffix, providing the first response of the language model, and determining, in particular depending on the first response, whether the first response is harmful or not.