SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.findings-acl.673 · ACL Findings · 2025

Exploiting Instruction-Following Retrievers for Malicious Information Retrieval

Siva Reddy, Nicholas Meade, Parishad BehnamGhader

Open in the Atlas

Code that ran

11 of 13 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, 1 violated it and 10 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2025.findings-acl.673.json · badge: /api/ran/2025.findings-acl.673.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
McGill-NLP/malicious-ir canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
chunk_dataset Ran
ran on a synthesized input
McGill-NLP/malicious-ir/generate_malicious_passages.py
code served (permissive licence) · get_code("3c8744ea243e1cde")
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 tuple. 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 numpy as np

# Construct a minimal dataset with the required structure
# The function expects a list of dicts, each with:
# - 'response': a list containing a single string of space-separated tokens
# - 'id_': some identifier
# - optionally 'title': a title string
# - other fields that will be prefixed with 'original_data_'

dataset = [
    {
        'id_': 'doc_1',
        'response': ['the quick brown fox jumps over the lazy dog and the cat sits on the mat'],
        'title': 'First Document',
        'source': 'web'
    },
    {
        'id_': 'doc_2',
        'response': ['another test document with many tokens to split across multiple chunks when processing data'],
        'title': 'Second Document',
        'source': 'file'
    }
]

ARGS = {
    'dataset': dataset,
    'l': 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
corpus_to_texts Ran
ran on a synthesized input
McGill-NLP/malicious-ir/advbenchir_fast_eval.py
code served (permissive licence) · get_code("17e7d5cb0f0ae738")
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 numpy as np

# Test case 1: list of dicts with title and text
corpus_list_of_dicts = [
    {'title': 'Title 1', 'text': 'Text 1'},
    {'title': 'Title 2', 'text': 'Text 2'},
]

# Test case 2: dict with 'title' and 'text' keys
corpus_dict_with_title = {
    'title': ['Title A', 'Title B'],
    'text': ['Text A', 'Text B'],
}

# Test case 3: dict with only 'text' key
corpus_dict_text_only = {
    'text': ['Text X', 'Text Y'],
}

# Test case 4: list of strings
corpus_list_of_strings = ['String 1', 'String 2']

# Test case 5: list of dicts without title
corpus_list_of_dicts_no_title = [
    {'text': 'Text 1'},
    {'text': 'Text 2'},
]

# We'll use the first test case as the main argument
ARGS = {
    'corpus': corpus_list_of_dicts,
    'sep': '\n',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
extract_title Ran
ran on a synthesized input
McGill-NLP/malicious-ir/generate_malicious_passages.py
code served (permissive licence) · get_code("8bb9c44408e8db83")
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 tuple, 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.

# Analysis: extract_title takes a 'response' parameter which is a string
# The function searches for title tags in the string and extracts the title text
# No torch, numpy, scipy, or nn.Module needed - this is pure string manipulation

ARGS = {
    'response': '<title>My Page Title</title>\nSome other content here'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
generate_corpus Ran
ran on a synthesized input
McGill-NLP/malicious-ir/advbenchir_fast_eval.py
code served (permissive licence) · get_code("43fe26eb1cc2ee86")
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 tuple. 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 numpy as np

torch.manual_seed(0)

# Construct queries - each query needs 'document', 'ID', and 'title'
queries = [
    {
        'document': ' '.join(['word'] * 250),  # Long enough to split into multiple chunks
        'ID': 'query_1',
        'title': 'Query Title 1'
    },
    {
        'document': ' '.join(['token'] * 150),
        'ID': 'query_2',
        'title': 'Query Title 2'
    }
]

# Construct wiki - each wiki entry needs 'ID', 'title', and 'passage'
wiki = [
    {
        'ID': 'wiki_1',
        'title': 'Wikipedia Article 1',
        'passage': 'This is a sample passage from Wikipedia with some content.'
    },
    {
        'ID': 'wiki_2',
        'title': 'Wikipedia Article 2',
        'passage': 'Another Wikipedia passage with different information here.'
    }
]

# Define ARGS with all parameters
ARGS = {
    'queries': queries,
    'wiki': wiki,
    'model': 'default',
    'l': 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
generate_embedding Ran
ran on a synthesized input
McGill-NLP/malicious-ir/malicious_ir/retrieval/utils.py
code served (permissive licence) · get_code("5ad9c68ed7b99669")
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 Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# Build a minimal tensorizer that has text_to_tensor method
class MockTensorizer:
    def text_to_tensor(self, batch_texts):
        # Return a dict with typical encoder inputs
        batch_size = len(batch_texts)
        return {
            'input_ids': torch.randint(0, 1000, (batch_size, 8)),
            'attention_mask': torch.ones(batch_size, 8, dtype=torch.long),
            'token_type_ids': torch.zeros(batch_size, 8, dtype=torch.long),
        }

# Build a minimal encoder that handles different encoder_class_name cases
class MockEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(8, 4)
    
    def forward(self, input_ids, attention_mask, token_type_ids, **kwargs):
        # Return a mock output object with last_hidden_state and pooler_output
        batch_size = input_ids.shape[0]
        last_hidden = self.linear(input_ids.float())  # (batch_size, 8, 4)
        pooler_output = last_hidden.mean(dim=1)  # (batch_size, 4)
        
        class Output:
            pass
        
        out = Output()
        out.last_hidden_state = last_hidden
        out.pooler_output = pooler_output
        return out
    
    def encode(self, batch_texts, instruction=None, show_progress_bar=False):
        # Return normalized embeddings for nv and llm2vec cases
        batch_size = len(batch_texts) if isinstance(batch_texts, list) else len(batch_texts)
        embeddings = torch.randn(batch_size, 4)
        return embeddings

# Sample batch texts
batch_texts = ["hello world", "test example"]

# Create instances
tensorizer = MockTensorizer()
encoder = MockEncoder()
device = 'cpu'

# Define ARGS with different encoder_class_name for testing
ARGS = {
    'batch_texts': batch_texts,
    'tensorizer': tensorizer,
    'encoder': encoder,
    'prefix': 'Search: ',
    'suffix': ' [END]',
    'encoder_class_name': 'dpr',
    'device': device,
}
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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
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
generate_experiment_id Ran
ran on a synthesized input
McGill-NLP/malicious-ir/malicious_ir/utils.py
code served (permissive licence) · get_code("88fc76f02201c63f")
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
import numpy as np

ARGS = {
    'name': 'my_experiment',
    'template_name': 'template_v1',
    'model_name_or_path': 'bert-base-uncased',
    'dataset_name': 'squad',
    'topic': 'qa',
    'seed': 42,
    'num_docs': 100,
    'num_gold_docs': 10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
generate_queries Ran
ran on a synthesized input
McGill-NLP/malicious-ir/advbenchir_fast_eval.py
code served (permissive licence) · get_code("8fda8da613cce95b")
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 tuple, ndim 2, 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 numpy as np

# Construct advbench - a list of dicts with 'query' and 'ID' keys
advbench = [
    {'query': 'What is the capital of France?', 'ID': 'q1'},
    {'query': 'How do I bake a cake?', 'ID': 'q2'},
]

# Construct ground_truth_mapping - a dict mapping IDs to ground truth values
ground_truth_mapping = {
    'q1': 'Paris',
    'q2': 'Mix flour, eggs, and sugar',
}

# Define ARGS with all parameters
ARGS = {
    'advbench': advbench,
    'ground_truth_mapping': ground_truth_mapping,
    'model': 'default',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple 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
generate_responses Ran
ran on a synthesized input
McGill-NLP/malicious-ir/malicious_ir/generation_utils.py
code served (permissive licence) · get_code("f13608baa5512e69")
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 torch.nn as nn
import transformers

torch.manual_seed(0)

# Create a minimal mock tokenizer
class MockTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.vocab_size = 100
    
    def __call__(self, texts, padding=False, truncation=False, return_tensors=None):
        # Return mock token ids and attention mask
        batch_size = len(texts) if isinstance(texts, list) else 1
        seq_len = 5
        input_ids = torch.randint(1, self.vocab_size, (batch_size, seq_len))
        attention_mask = torch.ones((batch_size, seq_len))
        
        result = {
            'input_ids': input_ids,
            'attention_mask': attention_mask
        }
        return result
    
    def batch_decode(self, token_ids, skip_special_tokens=False):
        # Return mock strings
        batch_size = token_ids.shape[0]
        return [f"Response {i}" for i in range(batch_size)]

# Create a minimal mock model
class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.device = torch.device('cpu')
        self.linear = nn.Linear(5, 5)
    
    def generate(self, input_ids, attention_mask, pad_token_id, max_new_tokens, num_return_sequences):
        batch_size = input_ids.shape[0]
        seq_len = input_ids.shape[1]
        # Return mock generated token ids (original + new tokens)
        generated = torch.randint(1, 100, (batch_size * num_return_sequences, seq_len + max_new_tokens))
        return generated

# Prepare arguments
prompts = ["Hello world", "How are you"]
model = MockModel()
tokenizer = MockTokenizer()

ARGS = {
    'prompts': prompts,
    'model': model,
    'tokenizer': tokenizer,
    'max_new_tokens': 8,
    'num_return_sequences': 1,
    'batch_size': 2,
    'show_progress_bar': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm, transformers — 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
get_file_name Ran
ran on a synthesized input
McGill-NLP/malicious-ir/malicious_ir/utils.py
code served (permissive licence) · get_code("ae372e13bae1516a")
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 os

# The function get_file_name takes a file_path string and extracts the filename
# without extension using os.path.splitext and os.path.basename

ARGS = {
    "file_path": "/path/to/example_file.txt"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
has_answer Ran
ran, violated the contract we drafted
McGill-NLP/malicious-ir/malicious_ir/retrieval/validation_utils.py
code served (permissive licence) · get_code("19bc2fa8cd44b6f0")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 unicodedata
import regex as re

class MockTokenizer:
    """Mock tokenizer that implements the required methods."""
    def tokenize(self, text):
        return MockTokenized(text)

class MockTokenized:
    """Mock tokenized object that stores words."""
    def __init__(self, text):
        self.text = text
        self._words = text.lower().split()
    
    def words(self, uncased=False):
        if uncased:
            return [w.lower() for w in self._words]
        return self._words

ARGS = {
    'answers': ['hello world', 'test answer'],
    'text': 'This is a hello world example with some test answer text.',
    'tokenizer': MockTokenizer(),
    'match_type': 'string'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
regex — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
parse_experiment_id Ran
ran on a synthesized input
McGill-NLP/malicious-ir/malicious_ir/utils.py
code served (permissive licence) · get_code("df88ba367ace77cd")
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 re

ARGS = {
    'experiment_id': 'my_experiment_t-template_v1_m-bert-base-uncased_d-dataset1_s-42_ndocs-100_ngolds-10_topic-technology'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
calculate_matches Not yet run
unverified (harvested, no recorded run)
McGill-NLP/malicious-ir/malicious_ir/retrieval/validation_utils.py
code served (permissive licence) · get_code("05e6c177c2749ef6")
How it ran

no invocation recorded.

check_answer Not yet run
unverified (harvested, no recorded run)
McGill-NLP/malicious-ir/malicious_ir/retrieval/validation_utils.py
code served (permissive licence) · get_code("c08624fe02161ae4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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
has_answer 1 other paper
1 dated earlier
2101.00294 (2021-01)
Reader-Guided Passage Reranking for Open-Domain Question Answering

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-24.

Repositories linked to this paper

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

Abstract

Instruction-following retrievers have been widely adopted alongside LLMs in real-world applications, but little work has investigated the safety risks surrounding their increasing search capabilities. We empirically study the ability of retrievers to satisfy malicious queries, both when used directly and when used in a retrieval augmented generation-based setup. Concretely, we investigate six leading retrievers, including NV-Embed and LLM2Vec, and find that given malicious requests, most retrievers can (for >50% of queries) select relevant harmful passages. For example, LLM2Vec correctly selects passages for 61.35% of our malicious queries. We further uncover an emerging risk with instruction-following retrievers, where highly relevant harmful information can be surfaced by exploiting their instruction-following capabilities. Finally, we show that even safetyaligned LLMs, such as Llama3, can satisfy malicious requests when provided with harmful retrieved passages in-context. In summary, our findings underscore the malicious misuse risks associated with increasing retriever capability. 1

For agents

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

get_harvested_code_for_paper("2025.findings-acl.673")
get_code_for_paper("2025.findings-acl.673")
have("2025.findings-acl.673")

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

curl https://syntology.ai/api/ran/2025.findings-acl.673.json

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

[![Syntology run record](https://syntology.ai/api/ran/2025.findings-acl.673.svg)](https://syntology.ai/paper/2025.findings-acl.673)

Connect an agent — have() is free.