About the Project

Learn about the research background, methodology, and technical implementation

Graduation FYP Project

2025-2026 Academic Year

This project is a research study on Large Language Model (LLM) Security, aiming to systematically explore and evaluate LLM vulnerability and stability when facing adversarial attacks.

The research adopts red-teaming methodology, progressing through four experiments: baseline quality evaluation, direct attack testing, strategy-based attacks (Role-Play, Low-Alignment Direct, Reasoning Trap), and model-to-model attacks where base models generate attacks against instruct models.

This display platform serves as the visualization presentation of research results, helping readers intuitively understand experimental data and research findings. All experiments were conducted in a controlled environment for academic research purposes only.

Research Methodology

Experiment Pipeline

1

Prompt Generation

Generate attack prompts based on strategy templates or LLM generation

2

Model Response

Target model processes attack prompt

3

Result Judgment

GPT-4o-mini evaluates attack success & compliance level

4

Log Recording

Store complete experiment data and statistics

Experiment Scale

Experiments Conducted4
Attack Strategies3 (S1, S2, S3)
Models Tested8 (4 instruct, 4 base)
Harm Categories10
Judge ModelGPT-4o-mini
Total Tests1,820

Experiments Overview

1

Response Quality Baseline

40 tests

Establish baseline quality metrics for base vs instruct models

2

Direct Attack Testing

400 tests

Test predefined harmful prompts across 10 categories

3

Strategy-Based Attacks

180 tests

3 attack strategies against 6 target models

3.1

LLM Attacker (Model vs Model)

1,200 tests

Base models generate attacks for instruct targets

Project Timeline

Phase 1✓

Literature Research

Survey LLM security field status, determine research direction

Phase 2✓

Experiment Design

Design attack strategies, construct test scenarios

Phase 3✓

Data Collection

Run experiments, collect model response data

Phase 4✓

Result Analysis

Statistical analysis, extract key findings

Phase 5✓

Visualization Development

Build visualization display platform

Tech Stack

Next.js 15

React Framework

Tailwind CSS 4

Styling System

TypeScript

Type Safety

MLX

Model Inference

Python

Experiment Scripts

Recharts

Data Visualization

Data Sources

AdvBench

Adversarial behavior benchmark dataset

100 scenarios

HuggingFace Models

Open source model repository

8 models

Custom Scenarios

Designed for research objectives

20 scenarios

References

Disclaimer

This research is for academic purposes only. All experiments were conducted in a controlled environment, not involving real users or production systems. Research results are intended to advance the development of AI safety field, not to provide actual attack tools or methods. When using this research, please comply with relevant laws, regulations, and ethical guidelines.