Skip to content
View mid9t's full-sized avatar

Block or report mid9t

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mid9t/README.md

Hi, I'm Ryu Kakuta 👋

Research Engineer · AI Safety · Uncertainty Quantification in NLP

I study when a model's signals can be trusted — whether it knows it's guessing, whether a measured gain is real, and whether a safety monitor knows when to hand off.


🎯 What I'm working on

I'm a research engineer focused on statistical validity, AI safety, and uncertainty quantification in NLP. My running question is can we tell when a signal is trustworthy? That started with uncertainty in a classifier's predictions, moved to whether experimental "wins" survive honest statistics, and now sits on activation probes over the residual stream: cheap monitors that read a model's internals, and the question of when they should defer to something stronger.

Day to day, I'm an AI Evaluation Engineer (Post-Training) at Handshake, building RL environments and containerized coding tasks that stress-test frontier agents: scoring gates, difficulty calibration, and telling model failures apart from harness failures.

uncertainty quantification  →  statistical validity  →  AI oversight
 (is the model guessing?)      (is the gain real?)      (when should the monitor defer?)

🔬 Current builds

1. Activation Probes: epistemic deferral for safety monitors

Activation-monitoring cascade: a prompt goes through frozen Llama-3-8B-Instruct, the residual stream feeds a linear probe, confident cases (about 95%) are decided by the probe, and the rest defer to Llama Guard 3 inside a 5% budget. Signals under test are margin (baseline), ensemble disagreement, and residual-stream density; evidential vacuity is dropped. Held-out tests are jailbreak templates, benign prompts that sound harmful, and new benign traffic.
Probe first, Llama Guard 3 on deferral. Margin is the baseline; evidential vacuity was dropped.

A two-stage cascade for screening harmful requests: a linear probe on frozen Llama-3-8B-Instruct activations decides the confident cases (about 95% of traffic), and Llama Guard 3 takes the rest inside a 5% deferral budget. I test whether ensemble disagreement and residual-stream density beat the margin baseline — DeepMind’s optimal score band — on three held-out shifts: jailbreak templates, benign prompts that sound harmful, and new benign traffic. Evidential vacuity was dropped: with two classes it adds nothing beyond the probe logit. Thresholds are fit on the tune pool and frozen before any held-out data is opened.

PyTorch · Llama-3-8B · Linear Probes · Llama Guard 3 · Bootstrap Inference

2. Skeptic: do automated research loops fool themselves?

Skeptic presentation, title slide. Click to open the full deck
📊 Click to view the full slide deck

A collaborative project that runs the same stream of agent-proposed model changes through three acceptance rules (keep-if-better, Thresholdout, and a statistical critic) and measures false discoveries against recall. Proposals run in network-isolated sandboxes, test data stays sealed from agents, and every decision goes to an append-only ledger under a registered pre-analysis plan. 📊 Slides

Python · Modal Sandboxes · Paired Bootstrap · Holm Correction · Streamlit


✅ Finished — ER-1: Epistemic Ranker

CLINC150 in-scope vs out-of-scope AUROC, BERT-base, mean of 5 seeds: CE MSP 0.9655, EDL vacuity 0.9763 ± 0.0005, DAEDL (qsigmoid × mul) 0.9713 ± 0.0005. Dashed references: CE + energy 0.979 and CE + Mahalanobis 0.974.
Out-of-scope AUROC on CLINC150, BERT-base, 5 seeds. EDL vacuity 0.9763 beat DAEDL 0.9713. Dashed lines: CE + energy 0.979, CE + Mahalanobis 0.974.

Question: Does density-aware Evidential Deep Learning (DAEDL), ported from vision to BERT, improve out-of-scope detection on CLINC150? Conclusion: No, not in the headline score. Density scaling was measurably active, but plain EDL vacuity (AUROC 0.9763) beat the density-scaled variant (0.9713) across 5 seeds, and the gap didn't clear seed noise. Raw density alone was a strong OOS signal; it just didn't add anything to the combination rule. On the same plot, post-hoc scores of the CE model are MSP 0.9655, energy 0.979, and Mahalanobis 0.974. Contribution: A leak-free three-arm pipeline (CE / EDL / DAEDL) on shared features; a diagnostics gate that disqualifies configs where the density term is inert; identification of that "INERT" failure mode from a CIFAR replication; and NLP-specific density normalization.


📌 Selected projects

Project What it does Stack
Activation Probes Uncertainty-gated deferral for probe-based safety monitors PyTorch, Llama-3, Probes
Skeptic Measures false discoveries in agent-driven research loops Python, Modal, Bootstrap
ER-1: Epistemic Ranker Audit of density-aware EDL for out-of-scope intent detection PyTorch, EDL, HuggingFace
GeoGenie Free-text intent → structured spatial queries over hand-built geometric indices Python, NumPy, FastAPI, LLMs
RCA-Demo Automated root-cause analysis for sales anomalies (synthetic data) Python, SHAP, Statistical Modeling
EEG-Based MDD Classification End-to-end clinical signal pipeline, built around leakage prevention and evaluation rigor CNNs, Granger Causality

✍️ Featured writing

Does Density Help Out-of-Scope Detection? Auditing DAEDL on BERT · Data Science Collective The write-up for ER-1: what happened when I ported density-aware EDL to language, why the density term can silently go inert, and why the honest answer turned out to be "not really."

Evidential BERT on CLINC150: porting density-aware EDL from vision to language The theory-and-engineering companion piece on adapting DAEDL to BERT embeddings.


🧭 Path here

  • UC Berkeley — B.A. Data Science
  • Terra Drone Corporation — Data Systems Intern, automated GCP + SQL reporting pipelines
  • Fractal Analytics — Research SWE Intern, ML infra for sales-forecast anomaly diagnosis (SHAP-validated)
  • Handshake — AI Evaluation Engineer, Post-Training (current)

Open to conversations about AI safety, uncertainty quantification, and statistically honest evaluation. My inbox is always open — say hello.

Pinned Loading

  1. Jamestilfords/self-refuting-swarm Jamestilfords/self-refuting-swarm Public

    Skeptic: a preregistered test of whether autoresearch loops fool themselves. An LLM proposer suggests changes to out-of-scope intent detectors. A ratchet, Thresholdout and a code-only audit critic …

    Python

  2. Activation-Monitoring Activation-Monitoring Public

    Tests whether uncertainty signals (ensemble disagreement, activation density) pick better items to defer than DeepMind’s optimal score band in a probe-to-LLM safety cascade, on Llama-3-8B with publ…

    Python

  3. ER-1-Epistemic-Ranker- ER-1-Epistemic-Ranker- Public

    Audits density-aware evidential deep learning (DAEDL) for out-of-scope intent detection with BERT on CLINC150 and Banking77. Score-matched baselines, post-hoc coupling grids, paired bootstrap with …

    Python