SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.13968 · NeurIPS · 2024

Protecting Your LLMs with Information Bottleneck

Jiang Bian, Wei Cheng, Lei Song, Zichuan Liu, Chunlin Chen, Tianchun Wang, Zefan Wang, Linjie Xu, Jinyu Wang

arXiv · PDF · Open in the Atlas

Code that ran

13 of 25 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 11 failures of our instrument; 12 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2404.13968.json · badge: /api/ran/2404.13968.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
llm-attacks/llm-attacks canonical (classifier label)
classifier basis not recorded on the link
4 ran · 4 no recorded run
UCSB-NLP-Chang/SemanticSmooth canonical (classifier label)
classifier basis: census
2 ran · 4 no recorded run
AAAAAAsuka/llm_defends canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
kevinyaobytedance/llm_unlearn canonical (classifier label)
classifier basis: census
1 ran · 2 no recorded run
EasyJailbreak/EasyJailbreak canonical (classifier label)
classifier basis: census
1 ran · 0 no recorded run
zichuan-liu/ib4llms canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
zichuan-liu/timexplusplus community
Papers with Code archive
2 ran · 2 no recorded run
FunctionStatusWhere it lives
GumbelGate Ran
ran on a synthesized input
zichuan-liu/timexplusplus/txai/models/mask_generators/gumbelmask_model.py
pointer only (licence: NONE) · get_code("e0a8e41be5903cce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zichuan-liu/timexplusplus when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PositionalEncodingTF Ran
ran on a synthesized input
zichuan-liu/timexplusplus/txai/models/mask_generators/gumbelmask_model.py
pointer only (licence: NONE) · get_code("1128d652e2a4d36a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zichuan-liu/timexplusplus when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

alignment_check Ran
ran; our contract draft was wrong, not the code
AAAAAAsuka/llm_defends/utils.py
pointer only (licence: NONE) · get_code("297964ea6a38a8ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AAAAAAsuka/llm_defends when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_chat_input Ran
ran; our contract draft was wrong, not the code
AAAAAAsuka/llm_defends/utils.py
pointer only (licence: NONE) · get_code("716676f9101e0f57")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AAAAAAsuka/llm_defends when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

combine_prompts Ran
ran; our contract draft was wrong, not the code
llm-attacks/llm-attacks/api_experiments/evaluate_api_models.py
code served (permissive licence) · get_code("71b177b3a3ed6078")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for combine_prompts function
benign = '"This is a benign prompt"'
adv = 'This is an adversarial prompt'
combo = 'benign+adv'

ARGS = {
    'benign': benign,
    'adv': adv,
    'combo': combo
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_pku_dataloader_from_dataset Ran
ran; our contract draft was wrong, not the code
kevinyaobytedance/llm_unlearn/utils.py
code served (permissive licence) · get_code("23797095460bcb47")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataLoader. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import random
from transformers import AutoTokenizer
from datasets import Dataset

torch.manual_seed(0)
random.seed(0)

# Create a minimal tokenizer stand-in
class MinimalTokenizer:
    def __init__(self):
        self.model_max_length = 128
    
    def __call__(self, text, truncation=False, padding=None):
        # Return minimal tokenized output with input_ids and attention_mask
        tokens = text.split()[:self.model_max_length]
        token_ids = [i for i in range(len(tokens))]
        
        if padding == 'max_length':
            while len(token_ids) < self.model_max_length:
                token_ids.append(0)
        
        attention_mask = [1] * len(tokens) + [0] * (self.model_max_length - len(tokens)) if padding == 'max_length' else [1] * len(tokens)
        
        return {
            'input_ids': token_ids[:self.model_max_length],
            'attention_mask': attention_mask[:self.model_max_length]
        }

# Create a minimal PKU-like dataset
dataset_dict = {
    'prompt': ['How do I make explosives?', 'Tell me a harmful thing'],
    'response_0': ['I cannot help with that', 'Response about harm'],
    'response_1': ['That is illegal', 'Another harmful response'],
    'is_response_0_safe': [True, False],
    'is_response_1_safe': [False, False],
    'better_response_id': [0, 0],
    'safer_response_id': [0, 0]
}

dataset = Dataset.from_dict(dataset_dict)

tokenizer = MinimalTokenizer()

ARGS = {
    'tokenizer': tokenizer,
    'dataset': dataset,
    'fraction': 1.0,
    'batch_size': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
default_hparams Ran
ran; our contract draft was wrong, not the code
UCSB-NLP-Chang/SemanticSmooth/lib/hparams_registry.py
code served (permissive licence) · get_code("b5252ac83a7c46c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import torch

# Set up environment variables that the function checks
os.environ['PROMPT_TAMPLATE_DIR'] = 'data/prompt-template-llama'
os.environ['VIRTUAL_LLM_URL'] = 'http://localhost:10000/v1/'

ARGS = {
    'defense': 'SmoothLLM',
    'attack': 'GCG',
    'target': 'llama-vllm'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_developer Ran
ran; our contract draft was wrong, not the code
EasyJailbreak/EasyJailbreak/easyjailbreak/attacker/AutoDAN_Liu_2023.py
pointer only (licence: GPL-3.0); the stored copy get_code serves, from MurrayTom/SG-Bench, is pointer only (licence: GPL-3.0) · get_code("e398452644c764ba")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, EasyJailbreak/EasyJailbreak, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_embedding_layer Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
llm-attacks/llm-attacks/llm_attacks/base/attack_manager.py
code served (permissive licence) · get_code("0bf2136a7171ae80")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Embedding. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from transformers import GPT2LMHeadModel, GPTJForCausalLM, GPTNeoXForCausalLM, LlamaForCausalLM

torch.manual_seed(0)

# Create a minimal GPT2LMHeadModel with required structure
class MinimalGPT2(GPT2LMHeadModel):
    def __init__(self):
        # Skip parent init to avoid downloading pretrained weights
        nn.Module.__init__(self)
        self.transformer = nn.Module()
        self.transformer.wte = nn.Embedding(100, 64)

model_gpt2 = MinimalGPT2()

ARGS = {
    "model": model_gpt2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Embedding — a Embedding output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Embedding output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_prompts Ran
ran; our contract draft was wrong, not the code
llm-attacks/llm-attacks/api_experiments/evaluate_api_models.py
code served (permissive licence) · get_code("645890ba00019a69")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import tempfile
import os

# Create a temporary file with some instructions
temp_dir = tempfile.mkdtemp()
instructions_file = os.path.join(temp_dir, "instructions.txt")
with open(instructions_file, 'w') as f:
    f.write("First instruction\n")
    f.write("Second instruction\n")
    f.close()

# Define arguments for the function
ARGS = {
    "instruction": "What is the capital of France?",
    "instructions_path": instructions_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_checking_fn Ran
ran; our contract draft was wrong, not the code
llm-attacks/llm-attacks/api_experiments/evaluate_api_models.py
code served (permissive licence) · get_code("d0e94f216f27f804")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Analyze the function:
# - make_checking_fn takes method (default 'key_words') and **kwargs
# - When method='key_words', it can accept 'key_words' in kwargs (a set of strings)
# - Returns a check function that takes texts (list of strings) and returns list of bools
# - The check function looks for key_words NOT in texts

ARGS = {
    'method': 'key_words',
    'key_words': set(("I'm sorry", 'Sorry', 'an AI', 'is illegal and unethical', 'My purpose', 'OpenAI'))
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_pooling Ran
ran; our contract draft was wrong, not the code
UCSB-NLP-Chang/SemanticSmooth/lib/ensemble_policy.py
pointer only (licence: MIT); the stored copy get_code serves, from dengyang17/llm-proactive, is pointer only (licence: NONE) · get_code("77f69af078e09830")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dengyang17/llm-proactive, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

not_matched Ran
ran; our contract draft was wrong, not the code
zichuan-liu/ib4llms/eval/eval_asr.py
pointer only (licence: NONE) · get_code("7a89b9d5ff05426f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zichuan-liu/ib4llms when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GumbelMask Not yet run
unverified (harvested, no recorded run)
zichuan-liu/timexplusplus/txai/models/mask_generators/gumbelmask_model.py
pointer only (licence: NONE) · get_code("9bbd8801f78cd405")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zichuan-liu/timexplusplus when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

MaskModel Not yet run
unverified (harvested, no recorded run)
zichuan-liu/timexplusplus/txai/models/mask_generators/gumbelmask_model.py
pointer only (licence: NONE) · get_code("491fdd0ac42f595c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zichuan-liu/timexplusplus when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

create_defense_from_config Not yet run
unverified (harvested, no recorded run)
UCSB-NLP-Chang/SemanticSmooth/lib/defenses.py
code served (permissive licence) · get_code("4190042b24d3f36b")
How it ran

no invocation recorded.

create_ensemble_policy_model Not yet run
unverified (harvested, no recorded run)
UCSB-NLP-Chang/SemanticSmooth/lib/ensemble_policy.py
code served (permissive licence) · get_code("8cecc2a857c57545")
How it ran

no invocation recorded.

create_perturbation Not yet run
unverified (harvested, no recorded run)
UCSB-NLP-Chang/SemanticSmooth/lib/perturbations.py
code served (permissive licence) · get_code("94699190b22cdf4c")
How it ran

no invocation recorded.

create_truthfulqa_dataloader Not yet run
unverified (harvested, no recorded run)
kevinyaobytedance/llm_unlearn/utils.py
code served (permissive licence) · get_code("57521bf315ebe3df")
How it ran

no invocation recorded.

get_embedding_matrix Not yet run
unverified (harvested, no recorded run)
llm-attacks/llm-attacks/llm_attacks/base/attack_manager.py
code served (permissive licence) · get_code("688aaeba506e3329")
How it ran

no invocation recorded.

get_embeddings Not yet run
unverified (harvested, no recorded run)
llm-attacks/llm-attacks/llm_attacks/base/attack_manager.py
code served (permissive licence) · get_code("f556dda0785f3c77")
How it ran

no invocation recorded.

get_filtered_cands Not yet run
unverified (harvested, no recorded run)
llm-attacks/llm-attacks/llm_attacks/minimal_gcg/opt_utils.py
code served (permissive licence) · get_code("25ae440509f39ec5")
How it ran

no invocation recorded.

get_truthfulQA_answers_plaintext Not yet run
unverified (harvested, no recorded run)
kevinyaobytedance/llm_unlearn/utils.py
code served (permissive licence) · get_code("daf4ef53811f88a9")
How it ran

no invocation recorded.

merge_cmd_configs Not yet run
unverified (harvested, no recorded run)
UCSB-NLP-Chang/SemanticSmooth/lib/hparams_registry.py
code served (permissive licence) · get_code("b58775a1975c2aaa")
How it ran

no invocation recorded.

sample_control Not yet run
unverified (harvested, no recorded run)
llm-attacks/llm-attacks/llm_attacks/minimal_gcg/opt_utils.py
code served (permissive licence) · get_code("94d7ddaf0169dbf1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 19 are also present in other papers whose code we hold (19 with at least one paper dated earlier, 1 the same month, 10 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
mean_pooling 22 other papers
11 dated earlier, 3 the same month, 8 later · 1 only as an assembly brick
2206.04624 (2022-06)
Factuality Enhanced Language Models for Open-Ended Text Generation
2023.findings-emnlp.540 (2023 (year only))
Open-ended Commonsense Reasoning with Unrestricted Answer Scope
2302.05698 (2023-02)
Compositional Exemplars for In-context Learning
and 19 more not named here
get_embedding_layer 6 other papers
3 dated earlier, 3 later
2310.15140 (2023-10)
AutoDAN: Interpretable Gradient-Based Adversarial Attacks on Large Language Models
2402.05467 (2024-02)
Rapid Optimization for Jailbreaking LLMs via Subconscious Exploitation and Echopraxia
2402.16459 (2024-02)
Defending LLMs against Jailbreaking Attacks via Backtranslation
and 3 more not named here
get_embedding_matrix 6 other papers
3 dated earlier, 3 later
2402.09063 (2024-02)
Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding Space
2402.16459 (2024-02)
Defending LLMs against Jailbreaking Attacks via Backtranslation
2403.04957 (2024-03)
Automatic and Universal Prompt Injection Attacks against Large Language Models
and 3 more not named here
sample_control 6 other papers
3 dated earlier, 3 later
2311.09948 (2023-11)
Hijacking Large Language Models via Adversarial In-Context Learning
2402.13459 (2024-02)
Learning to Poison Large Language Models for Downstream Manipulation
2403.01251 (2024-03)
Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Sampling
and 3 more not named here
get_embeddings 5 other papers
2 dated earlier, 3 later
2402.16459 (2024-02)
Defending LLMs against Jailbreaking Attacks via Backtranslation
2403.04957 (2024-03)
Automatic and Universal Prompt Injection Attacks against Large Language Models
2405.21018 (2024-05)
Improved Techniques for Optimization-Based Jailbreaking on Large Language Models
and 2 more not named here
get_filtered_cands 4 other papers
1 dated earlier, 3 later
2403.01251 (2024-03)
Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Sampling
2405.01229 (2024-05)
Boosting Jailbreak Attack with Momentum
2406.01288 (2024-06)
Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defenses
and 1 more not named here
combine_prompts 3 other papers
1 dated earlier, 2 later
2402.12991 (2024-02)
TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification
2406.01288 (2024-06)
Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defenses
2603.03081 (2026-03)
TAO-Attack: Toward Advanced Optimization-Based Jailbreak Attacks for Large Language Models
load_prompts 3 other papers
1 dated earlier, 2 later
2402.12991 (2024-02)
TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification
2406.01288 (2024-06)
Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defenses
2603.03081 (2026-03)
TAO-Attack: Toward Advanced Optimization-Based Jailbreak Attacks for Large Language Models
make_checking_fn 3 other papers
1 dated earlier, 2 later
2402.12991 (2024-02)
TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification
2406.01288 (2024-06)
Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defenses
2603.03081 (2026-03)
TAO-Attack: Toward Advanced Optimization-Based Jailbreak Attacks for Large Language Models
get_developer 2 other papers
1 dated earlier, 1 later
2403.12171 (2024-03)
EasyJailbreak: A Unified Framework for Jailbreaking Large Language Models
2410.21965 (2024-10)
SG-Bench: Evaluating LLM Safety Generalization Across Diverse Tasks and Prompt Types
not_matched 2 other papers
2 dated earlier
2310.06987 (2023-10)
Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation
2401.17256 (2024-01)
Weak-to-Strong Jailbreaking on Large Language Models Content warning: This paper contains examples of harmful language
PositionalEncodingTF
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2306.02109 (2023-06)
Encoding Time-Series Explanations through Self-Supervised Model Behavior Consistency
alignment_check 1 other paper
1 dated earlier
2401.06373 (2024-01)
How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs This paper contains jailbreaking contents that can be offensive in nature
build_chat_input 1 other paper
1 dated earlier
2401.06373 (2024-01)
How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs This paper contains jailbreaking contents that can be offensive in nature
create_defense_from_config 1 other paper
1 dated earlier
2402.16192 (2024-02)
Defending Large Language Models against Jailbreak Attacks via Semantic Smoothing
create_ensemble_policy_model 1 other paper
1 dated earlier
2402.16192 (2024-02)
Defending Large Language Models against Jailbreak Attacks via Semantic Smoothing
create_perturbation 1 other paper
1 dated earlier
2402.16192 (2024-02)
Defending Large Language Models against Jailbreak Attacks via Semantic Smoothing
default_hparams 1 other paper
1 dated earlier
2402.16192 (2024-02)
Defending Large Language Models against Jailbreak Attacks via Semantic Smoothing
merge_cmd_configs 1 other paper
1 dated earlier
2402.16192 (2024-02)
Defending Large Language Models against Jailbreak Attacks via Semantic Smoothing

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The advent of large language models (LLMs) has revolutionized the field of natural language processing, yet they might be attacked to produce harmful content. Despite efforts to ethically align LLMs, these are often fragile and can be circumvented by jailbreaking attacks through optimized or manual adversarial prompts. To address this, we introduce the Information Bottleneck Protector (IBProtector), a defense mechanism grounded in the information bottleneck principle, and we modify the objective to avoid trivial solutions. The IBProtector selectively compresses and perturbs prompts, facilitated by a lightweight and trainable extractor, preserving only essential information for the target LLMs to respond with the expected answer. Moreover, we further consider a situation where the gradient is not visible to be compatible with any LLM. Our empirical evaluations show that IBProtector outperforms current defense methods in mitigating jailbreak attempts, without overly affecting response quality or inference speed. Its effectiveness and adaptability across various attack methods and target LLMs underscore the potential of IBProtector as a novel, transferable defense that bolsters the security of LLMs without requiring modifications to the underlying models. WARNING: This paper contains AI-generated text that is offensive in nature.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.13968")
get_code_for_paper("2404.13968")
have("2404.13968")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2404.13968.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2404.13968.svg)](https://syntology.ai/paper/2404.13968)

Connect an agent — have() is free.