MCP
JP

Jonathan Pan

23 papers in the library · Same-name authors told apart using DBLP

Papers

23
From Bytes to Behavior: Request-Level Attribution from Live GPU Hidden States
Jonathan PanYidi YuanXin Wei ChiaXinhui SuVincent TanBrenda Ong
The paper introduces a method for acquiring per-layer residual-stream activations from a live GPU inference process using a non-modifying debugger, without prior knowledge of the model's architecture parameters or weights. A general six-stage process with platform-specific adapters uses either a PyTorch allocator clock or a kernel-launch clock to identify and read tensor allocations from video memory. Validated on 33 open-source decoder-only models across nine architecture classes, the recovered bytes are byte-exact and usable downstream: linear probes trained on standard framework activations, applied to the recovered states, distinguish refusal from compliance with an AUROC of 0.88 on held-out prompts. This establishes that live, observational access to intermediate hidden states is feasible on named inference platforms, offering new evidence for examining deployed AI system behavior.
arXivarXiv · · November 13, 2026
0
From Input to Output: A Flexible Agent for Dual-End Interpretation of Sparse Autoencoder Features
Dewen LiuZixuan LiJonathan PanZhao WuZijun YaoJuanzi LiXiaozhi Wang
Dual-End Agentic Feature Interpretation (DAFI) is an agent that interprets each sparse autoencoder (SAE) feature as a functional mapping from its activating input semantics to its output intervention effects. It actively gathers activation evidence via short-context token probing, avoiding costly full-corpus scans. On GemmaScope, DAFI improves Input and Output scores by 13.1 and 38.9 percentage points over baselines, and distilled skills raise held-out joint pass rate from 58.0% to 92.0%. The agent also improves steering-feature selection over output-score filtering on AxBench.
arXivarXiv · · September 28, 2026
0
SciCodePile: A 128GB Corpus and Executable Benchmark for Challenging Scientific Code Generation
Weifeng SunYe FanYuchen ChenGou TanJieke ShiYuan YidiSwee Liang WongJonathan PanDavid Lo
SciCodePile, a 128GB corpus from 37,737 public repositories across computational science disciplines, and an executable benchmark of 200 tasks with sandboxed execution and automated testing, reveal that current LLMs struggle with scientific code generation. The best model achieves only 12.30% Pass@1 on the executable benchmark, while continued pretraining on SciCodePile improves CodeBLEU by 2.84× and instruction tuning boosts Pass@1 by 4.79×.
arXivarXiv · · July 21, 2026
0
0
MSAIC-Net: A Multi-Scale Attention and Imbalance-Aware Contrastive Network for ECG-Based Myocardial Substrate Abnormality Detection
Canyu LeiFenglin ZhangDerek BivonaCristiane SingulaneJonathan PanKenneth BilchickAmit R. PatelJianxin Xie
MSAIC-Net is a multi-scale attention convolutional network for detecting myocardial substrate abnormalities (scar, infarction) from ECG signals. It uses parallel atrous convolutions to capture features at multiple temporal scales and channel attention to reweight informative leads and feature channels. To handle class imbalance, it introduces imbalance-aware supervised contrastive learning, which compresses same-class representations while separating abnormal from normal samples. Lead-wise permutation importance provides interpretability. Evaluated on two datasets (UVA scar cohort and PTB-XL infarction), MSAIC-Net outperforms baselines, especially in low-data settings.
arXivarXiv · · June 4, 2026
0
0
The Cognitive Circuit Breaker: A Systems Engineering Framework for Intrinsic AI Reliability
Jonathan Pan
The paper proposes the Cognitive Circuit Breaker, a systems engineering framework that detects hallucinations in LLMs during the forward pass by computing the "Cognitive Dissonance Delta"—the gap between the model's softmax-based semantic confidence and its internal latent certainty derived via linear probes. This method provides intrinsic reliability monitoring with negligible latency overhead, avoiding the cost and SLA violations of post-generation black-box approaches like RAG or LLM-as-a-judge.
arXivarXiv · · April 15, 2026
0
SMT-AD: a scalable quantum-inspired anomaly detection approach
Apimuk SornsaengSi Min ChanWenxuan ZhangSwee Liang WongJoshua LimJonathan PanDario Poletti
SMT-AD is a quantum-inspired anomaly detection method based on the superposition of bond-dimension-1 matrix product operators. It uses Fourier-assisted feature embedding, and its learnable parameters scale linearly with feature size, embedding resolutions, and additional components. Tests on standard datasets, including credit card transactions, show competitive performance even with minimal configurations. The method also allows straightforward weight reduction and performance improvement by highlighting relevant features.
arXivarXiv · · April 7, 2026
0
0
Curriculum-Guided Myocardial Scar Segmentation for Ischemic and Non-ischemic Cardiomyopathy
Nivetha JayakumarJonathan PanShuo WangBishow PaudelNisha HosadurgCristiane C. SingulaneSivam BhattAmit R. PatelMiaomiao Zhang
This paper proposes a curriculum-learning framework for myocardial scar segmentation from LGE-CMR images, targeting challenges such as inter-patient contrast variation and annotation uncertainty on diffuse scars. The method progressively trains the model from high-confidence, clearly defined scar regions to low-confidence, ambiguous samples, building robustness to uncertain labels. Experiments show that this strategy improves accuracy and consistency, especially for minimal or diffuse scar, outperforming standard baselines.
arXivarXiv · · March 30, 2026
0
1
Multi-Trait Subspace Steering to Reveal the Dark Side of Human-AI Interaction
Xin Wei ChiaSwee Liang WongJonathan Pan
The paper introduces a Multi-Trait Subspace Steering (MultiTraitSSS) framework that uses crisis-associated traits and subspace steering to generate Dark models exhibiting cumulative harmful behavioral patterns in human-AI interaction. Experimental evaluations show these models consistently produce harmful outcomes. The authors then propose protective measures derived from these models to reduce such risks.
arXivarXiv · · March 18, 2026
0
The Quantum Sieve Tracer: A Hybrid Framework for Layer-Wise Activation Tracing in Large Language Models
Jonathan Pan
The paper proposes the Quantum Sieve Tracer, a hybrid quantum-classical framework that traces factual recall circuits in LLMs by first locating critical layers with classical causal tracing and then mapping attention head activations into a quantum Hilbert space. Applied to Llama-3.2-1B and Qwen2.5-1.5B-Instruct, the framework reveals an architectural divergence: Qwen's layer 7 acts as a classic Recall Hub, while Llama's layer 9 functions as an Interference Suppression circuit where ablating identified heads paradoxically improves recall. Quantum kernels distinguish these constructive and reductive mechanisms, providing a high-resolution tool for analyzing attention topology.
arXivarXiv · · February 6, 2026
0
Conversational Context Classification: A Representation Engineering Approach
Jonathan Pan
This paper proposes a method to detect out-of-context responses in LLMs by applying Representation Engineering (RepE) with a One-Class SVM (OCSVM). The approach trains the OCSVM on in-context examples to establish a decision boundary in the LLM's hidden-state latent space, identifying subspaces that represent a specific conversational context. Evaluated on Llama and Qwen models, the method shows promising results in detecting whether a thread stays in or drifts from the expected context.
arXivarXiv · · January 18, 2026
0
Automated Post-Incident Policy Gap Analysis via Threat-Informed Evidence Mapping using Large Language Models
Huan Lin OhJay Yong Jun JieMandy Lee Ling SiuJonathan Pan
This paper proposes an LLM-based framework for automated post-incident policy gap analysis. The system ingests log evidence from a simulated brute-force attack (MITRE ATT&CK T1110), maps behaviors to the ATT&CK framework, and evaluates organizational security policies using GPT-4o, LangGraph, and LlamaIndex. It identifies missing or insufficient controls and generates actionable remediation recommendations with explicit evidence-to-policy traceability, integrating log analysis and policy validation into a unified end-to-end proof-of-concept.
arXivarXiv · · January 4, 2026
0
Uncovering Activation Keys in the Dark: Revealing Learned Concepts in LoRA Text-To-Image Models
Dhananjai SharmaMax CiEn TanHan FangXin Wei ChiaJonathan PanEe-Chien Chang
This paper introduces the LoRA
OpenReviewOpenReview · September 17, 2025
0
0
Automating Security Audit Using Large Language Model based Agent: An Exploration Experiment
Jia Hui ChinPu ZhangYu Xin CheongJonathan Pan
This paper explores automating security audit tasks by using a Large Language Model (LLM) as an autonomous agent. The proposed framework, implemented with GPT-4 and Langchain, focuses on verifying password policy compliance for Windows operating systems. In an experiment, the agent accurately identified policy violations and showed greater efficiency than manual audits. The work suggests potential for extending LLM-based agents to broader security monitoring and compliance tasks, despite noted limitations in operational consistency.
arXivarXiv · · May 15, 2025
0
Prompt Inject Detection with Generative Explanation as an Investigative Tool
Jonathan PanSwee Liang WongYidi YuanXin Wei Chia
This paper presents a method that uses the text generation capabilities of an LLM to both detect adversarial prompt injects and produce a generative explanation for each detection. The explanation is designed to help AI security investigators assess and triage flagged prompts, addressing the challenge that existing guardrails—such as signature-based or NLP-based classifiers—detect injects but do not support investigative reasoning about whether a prompt is contextually benign or adversarial.
arXivarXiv · · February 16, 2025
0
Audio Simulation for Sound Source Localization in Virtual Evironment
Yi Di YuanSwee Liang WongJonathan Pan
This paper addresses non-line-of-sight sound source localization in signal-deprived, reverberant indoor environments. The central contribution is a method that combines physically grounded sound propagation simulations with an audio transformer spectrogram approach to generate training data and locate sound sources in a virtual environment. The method achieves an F1-score of 0.786±0.0136, overcoming the challenge of data insufficiency for post-event localization.
arXivarXiv · · April 2, 2024
0
Enhancing Reasoning Capacity of SLM using Cognitive Enhancement
Jonathan PanSwee Liang WongXin Wei ChiaYidi Yuan
This paper proposes cognitive enhancement through prompts (integrating human-like cognitive strategies into prompts) to improve the reasoning performance of Smaller Language Models (SLMs) for local cyber investigation and digital forensics, where resource constraints necessitate SLMs over LLMs. Experiments demonstrate significant improvement gains in SLMs' reasoning explanations when such enhancements are applied.
arXivarXiv · · April 1, 2024
0
RAGLog: Log Anomaly Detection using Retrieval Augmented Generation
Jonathan PanSwee Liang WongYidi Yuan
RAGLog is a novel approach for log anomaly detection that uses a Retrieval Augmented Generation (RAG) pipeline. It combines a Large Language Model with a vector database, configured as a Question and Answer system, to identify anomalies from system logs. This method addresses the challenge of scarce labeled anomalous log entries by leveraging retrieval-augmented knowledge. Experimental results show promise for detecting anomalies across diverse log formats without requiring prior training on anomalous data.
arXivarXiv · · November 9, 2023
0
A Review on the effectiveness of Dimensional Reduction with Computational Forensics: An Application on Malware Analysis
Aye Thaw Da NaingJustin Soh Beng GuanYarzar Shwe WinJonathan Pan
This review evaluates the effectiveness of Principal Component Analysis (PCA) for dimensional reduction in computational forensics tasks of Android malware detection. Testing on three datasets with various machine learning algorithms, the study finds that dimensionality reduction leads to a measurable degradation in classification accuracy, challenging the assumption that such techniques consistently enhance algorithmic performance in this domain.
arXivarXiv · · January 15, 2023
0
AI based Log Analyser: A Practical Approach
Jonathan Pan
This paper presents a Transformer-based log analyzer trained exclusively on normal log entries, using self-supervised perturbation-based augmentation for feature learning. It then fine-tunes the model via reinforcement learning with a small set of labeled samples, mimicking real-world label scarcity. Experiments show promising results for fault and cyber incident detection without requiring heterogeneous labeled data.
arXivarXiv · · March 18, 2022
0
Blackbox Trojanising of Deep Learning Models : Using non-intrusive network structure and binary alterations
Jonathan Pan
This paper proposes a blackbox trojanising method that turns a benign deep learning image classifier into a deviant one by making a non-intrusive network structure modification and a simple binary alteration of weights. The attack induces specific types of errors without requiring access to the model's internals. The study also discusses defensive measures to prevent such exploits, underscoring the importance of safeguarding AI models against malicious repurposing.
arXivarXiv · · August 2, 2020
0
IoT Network Behavioral Fingerprint Inference with Limited Network Trace for Cyber Investigation: A Meta Learning Approach
Jonathan Pan
DeepNetPrint, a one-card time series meta-learner, infers the network behavioral fingerprint of a specific IoT device from a limited network trace. The model learns to generalize across different IoT types using meta-learning, enabling identification when only a few activity traces are available. Evaluated against leading supervised models, DeepNetPrint performs comparatively well, providing cyber investigators with a practical tool to locate rogue IoT devices under data-constrained forensic scenarios.
arXivarXiv · · January 14, 2020
0
Physical Integrity Attack Detection of Surveillance Camera with Deep Learning Based Video Frame Interpolation
Jonathan Pan
This paper proposes a deep learning method to detect physical integrity attacks on surveillance cameras, such as tampering with recording coverage, position, or configuration. The method employs deep learning-based video frame interpolation as an anomaly detector, which outperforms other spatiotemporal detectors in identifying attacks originating from either physical or cyber domains.
arXivarXiv · · June 15, 2019
0
Using Malware Self-Defence Mechanism to Harden Defence and Remediation Tools
Jonathan Pan
This paper proposes applying malware's own resilience mechanisms to harden defence and remediation tools rather than designing new ones. Experiments demonstrate that malware self-defence techniques, such as those making malware resilient against removal, can be repurposed to keep security tools active and non-defunct, thereby improving their ability to counter malware attacks.
arXivarXiv · · January 6, 2018
0
Frequent collaborators
Swee Liang Wong (7)
Xin Wei Chia (5)
Yidi Yuan (4)
Amit R. Patel (2)
Xinhui Su (1)
Vincent Tan (1)
Brenda Ong (1)
Dewen Liu (1)
Zixuan Li (1)
Zhao Wu (1)
Zijun Yao (1)
Juanzi Li (1)