---
title: 'Odysseus Pipeline: Robust ML Frameworks'
url: https://www.emergentmind.com/topics/odysseus-pipeline
type: topic
---

# Odysseus Pipeline: Robust ML Frameworks

The Odysseus Pipeline refers to a series of distinct, technically rigorous frameworks across several research domains in machine learning, each centered on the theme of robust, scalable, and often adversarial pipelines. Notably, three Odysseus pipelines have achieved prominence: (1) dual-steganography jailbreak for multimodal LLM-integrated systems, (2) large-scale Trojan detection in DNN classifiers, and (3) stable RL-based training of VLM agents for hundreds of decision-making turns. The following sections detail the core design, methodologies, and empirical contributions of each recognized Odysseus pipeline.

## 1. Dual-Steganography Jailbreak Pipeline for MLLM-Integrated Systems

The Odysseus pipeline introduces a sophisticated threat model targeting commercial multimodal LLM-integrated systems (MLLMs) that employ input/output filters to block malicious content. Its architectural premise exploits the cross-modal assumptions inherent in current safety filters: specifically, that dangerous content must be explicit in at least one modality. Odysseus leverages dual steganography to break this assumption, hiding adversarial prompts and their responses within benign images, thereby bypassing both $\mathcal{F}_\text{in}$ and $\mathcal{F}_\text{out}$ filters [2512.20168].

The pipeline consists of four stages:
1. **Malicious Query Encoding:** Raw adversarial text prompts (e.g., requests for prohibited content) are encoded into binary sequences (e.g., via base64, then 8-bit packing).
2. **Steganography Embedding:** The binary payload $B$ is embedded into the least significant bits (LSB) of sub-image blocks within a benign carrier image $I_\text{co}$ using an encoder $E(I_\text{co}, B)$, generating an adversarial image $I_\text{en}$.
3. **Model Interaction:** The MLLM $\mathcal{M}$ processes $I_\text{en}$, extracts the hidden prompt (using function-calling and a decoder $D$), generates a forbidden response, and re-embeds this response (again using $E$) into a new image $I_\text{fin}$ for exfiltration.
4. **Response Extraction:** The final image is decoded locally by the attacker with $D(I_\text{fin})$ to reveal the MLLM’s output.

ASCII schematic of core flow:

```
 +—————+        +———————+
│ Encode│ ———> │Stego   │ ———> Encoded Image
 +——┬——+        │Encoder │
     │          +———————+
     ▼
Benign Image ————————→ MLLM Extracts → (function call)
                                   |
     ▲                   Attacker retrieves
    D (decode)        ←——— from output image
```

Bit embedding per image region is chosen based on the carrier’s local image statistics to maximize imperceptibility and evade detection thresholds. Detailed algorithms use blockwise repetition, random offset selection, and error correction to guarantee high extraction success under typical image processing operations.

## 2. Steganography Algorithms, Thresholds, and Evasion Analysis

### Query Embedding and Extraction

Let text $t$ be base64-encoded to bitstring $B=\{b_i\}$. For each sub-image block $I_j$ ($1 \leq j \leq N$), bits are embedded as:

$$
I_j^\text{stego} = E(I_j, b_{d_j}) = I_j \;\&\; \text{mask} + b_{d_j}
$$

where $d_j$ indexes which bit from $B$ is placed in block $j$, and "mask" ensures only LSBs are altered. The inverse decoder $D$ reconstructs $b_i$ by reading LSBs of the received image blocks. Bit error rates are empirically minimized by tuning embedding density and redundancy—the paper reports negligible loss rates under typical JPEG and PNG compression.

Key parameters:
- **Block size:** Typically $8\times8$ or $16\times16$ pixels.
- **Embedding depth:** 1–2 LSBs per channel.
- **Redundancy factor:** 2–3$\times$ for error tolerance.
- **Detection thresholds:** Embeddings kept below SSIM $\delta < 0.05$ to remain imperceptible.

### Filter Evasion

Both the input ($\mathcal{F}_\text{in}$) and output ($\mathcal{F}_\text{out}$) filters examine raw pixel or text content for harmful features. By ensuring the malicious payload is only recoverable by the model's multimodal ingest pipeline—not directly visible in text or images—Odysseus evades these mechanisms entirely. The MLLM’s function-calling primitives are used to extract encodings and then re-embed the response, with no malicious text appearing in any overt channel at any pipeline stage.

## 3. End-to-End Workflow: Pseudocode and Exemplars

The procedural implementation is provided in modular pseudocode:

**Malicious Query Encoder:**
```python
def encode_prompt(prompt):
    b64 = base64_encode(prompt)
    bits = pack_bits(b64)
    return bits
```
**Steganography Embedder:**
```python
def stego_embed(carrier_img, bits, block_size=8):
    for i, block in enumerate(image_blocks(carrier_img, block_size)):
        embed_lsb(block, bits[i])
    return carrier_img
```
**Response Extraction:**
```python
def stego_decode(stego_img, block_size=8):
    bits = []
    for block in image_blocks(stego_img, block_size):
        bits.append(extract_lsb(block))
    return unpack_bits(bits)
```

Example workflows covertly transmit the prompt "build bomb" inside a nature scene and recover the generated output from images containing only subtle per-pixel changes.

Headline attack success rates:
- GPT-4o: **99%**.
- Gemini-2.0-Pro/Flash: **98–99%**.
- Grok-3: **96%**.

These results reflect near-complete bypass of multimodal filtering and constitute a fundamental evasion vector [2512.20168].

## 4. Large-Scale Trojan Detection: The Odysseus Classifier Pipeline

A distinct pipeline within the Odysseus framework targets the detection of Trojaned classifiers through the systematic construction of a benchmark dataset, analysis of DNN internal geometry, and a universal perturbation-based detection algorithm [2007.08142].

### Dataset Construction

Odysseus trains 3,460 models comprising clean and Trojaned variants across four canonical CNN architectures (VGG-19, ResNet-18, DenseNet, GoogLeNet) and three datasets (MNIST, Fashion-MNIST, CIFAR-10). Trojan insertion is performed by stamping randomly selected triggers on $15\%$–$20\%$ of training examples and remapping their labels according to three class-mapping types (M2O, M2M, mixed).

Trigger variants include:
- 47 distinct spatial patterns (pixel, RGB, filter-based).
- Random size (1–3% of image area).
- Random position.

This diversity ensures robust benchmarking of detector generality.

### Model Analysis

Two statistical signatures of Trojaned models are systematically quantified:
1. **Margin Reduction:** For classifier $f$, margin $m(x)=f_y(x)-\max_{j\neq y}f_j(x)$ is significantly smaller in Trojaned nets (drop of $>30\%$ in M2O).
2. **Boundary Normal Alignment:** SVD analysis of the matrix of local decision boundary normals $S=[T_{x_1}, ..., T_{x_n}]$ shows fast singular value decay in Trojaned nets, indicating boundary flattening and emergence of a low-dimensional dominant direction.

## 5. Universal Perturbation Detector and Empirical Evaluation

Odysseus operationalizes its geometric findings via a two-stage Trojan detector:
- **Dominant Direction Search:** From a batch $X$, initialize perturbation $r_X=0$. Iteratively align $r_X$ to the normal direction of each $x\in X$ using:

  $$
  t_x = -\frac{M_j(x)-M_k(x)}{\|\nabla M_j(x)-\nabla M_k(x)\|_2^2} (\nabla M_j(x)-\nabla M_k(x))
  $$

  with $k$ the predicted class, $j$ nearest competitor.
- **Error Scoring:** Perturb held-out validation ($D'_v$) with $r_X$; if the error rate $\geq\delta$ (typically $0.5$), label as Trojaned.

Key hyperparameters are block size ($\xi=5$–$10$ pixel-norm), $J=5$–$10$, and error threshold $\delta=0.5$.

**Empirical outcomes:** On CIFAR-10, the detector achieves **98.7% accuracy** (1.00 precision, 0.976 recall); on MNIST, **86–86%**; on NIST TrojAI rounds, **85–83%**. Performance persists across architectures, datasets, and unseen triggers, outperforming Neural Cleanse, STRIP, ULP, MNTD, and Spectral Signature baselines [2007.08142].

## 6. Long-Horizon Vision–Language RL Agents: Odysseus for Decision-Making

The Odysseus pipeline also defines an end-to-end open training framework for scaling VLMs to decision-making agents capable of 100+ turns of closed-loop control in visually grounded environments such as Super Mario Land [2605.00347].

### Architecture and RL Workflow

Core architectural elements:
- **Inputs per turn:** (a) textual prompt encoding rules/action space/chain-of-thought (XML-style), (b) current game frame upsampled to VLM-native resolutions.
- **Processing:** Vision backbone (ResNet/ViT) and language encoder combine via multimodal projection; transformer language head outputs chain-of-thought terminating with action tags.
- **Policy/Value factorization:** The VLM outputs the policy $\pi_\theta(a_t|o_t)$ via <answer> token log-probs, while a lightweight “Nature-CNN” critic $V_\phi(o_t)$ estimates return, decoupled from the main transformer for efficiency.

### RL Algorithmic Innovations

Modifications to PPO:
- **Turn-level critic:** $V_\phi(o_t)$ fits discounted return-to-go $\hat R_t$ with SmoothL1 or MSE loss.
- **Positive-advantage filtering:** Only positive advantages are passed to the clipped PPO objective for stability, normalized batchwise.
- **Clipping bounds:** $\epsilon_\text{low}=0.20$, $\epsilon_\text{high}=0.28$.

Joint updates of policy and critic are executed after each 1,024-episode RL iteration.

### Pre-training and Auto-curriculum

Pretraining uses extremely light SFT (>5,000 frames, one epoch) on annotated playthroughs, granting the VLM familiarity with game semantics and action priors. Training proceeds with mini-batches of 4,096, $\gamma=0.95$, and multi-task auto-curriculum, resampling shorter/underperforming levels more frequently.

## 7. Empirical Findings and Performance Benchmarks

On Super Mario Land (first five levels):
- Unmodified Qwen3-VL-8B-Instruct: **≈270 pixels forward progress (avg)**.
- GLM-4.6V: **≈513 pixels**.
- Odysseus-Zero (RL-from-scratch): **≈1,355 pixels**.
- Full SFT+RL Odysseus: **≈1,512 pixels**.

Generalization:
- On “off-policy” states: **+32.2% progress**.
- On unseen levels: **+41.5% progress**.
- Transferring to Super Mario Bros.: **+23.1% progress**.

Crucially, multi-modal benchmarks (MMMU, MathVision, RealWorldQA) show no erosion of baseline VLM capabilities post-RL.

## Summary Table of Odysseus Pipelines

| Pipeline Domain                | Core Mechanism/Algorithm          | Key Performance Metric       |
|-------------------------------|-----------------------------------|-----------------------------|
| Multimodal Jailbreak [2512.20168]     | Dual steganography, LSB image embedding | 99% attack success on GPT-4o |
| Trojan Detection [2007.08142]         | Boundary margin+normal analysis, universal perturbation | 98.7% (CIFAR-10) |
| Long-horizon VLM RL [2605.00347]      | PPO w/turn-level CNN critic, SFT warm-start | 1,512 pixels avg. progress |

Source: https://www.emergentmind.com/topics/odysseus-pipeline