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
Prompt Generation
Generate attack prompts based on strategy templates or LLM generation
Model Response
Target model processes attack prompt
Result Judgment
GPT-4o-mini evaluates attack success & compliance level
Log Recording
Store complete experiment data and statistics
Experiment Scale
Experiments Overview
Response Quality Baseline
40 testsEstablish baseline quality metrics for base vs instruct models
Direct Attack Testing
400 testsTest predefined harmful prompts across 10 categories
Strategy-Based Attacks
180 tests3 attack strategies against 6 target models
LLM Attacker (Model vs Model)
1,200 testsBase models generate attacks for instruct targets
Project Timeline
Literature Research
Survey LLM security field status, determine research direction
Experiment Design
Design attack strategies, construct test scenarios
Data Collection
Run experiments, collect model response data
Result Analysis
Statistical analysis, extract key findings
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
Red Teaming Language Models with Language Models
Perez et al. • arXiv 2022
Universal and Transferable Adversarial Attacks on Aligned Language Models
Zou et al. • arXiv 2023
Jailbroken: How Does LLM Safety Training Fail?
Wei et al. • NeurIPS 2023
Training language models to follow instructions with human feedback
Ouyang et al. • NeurIPS 2022
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.