Skip to content
View bartuonder's full-sized avatar
💭
Bartu Önder
💭
Bartu Önder

Organizations

@AIOSECENG

Block or report bartuonder

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
bartuonder/README.md

👋 About me

I'm a 3rd-year Software Engineering student (full scholarship, GPA 3.78/4.00) who wants to become an AI researcher: do a PhD in AI in the USA and help shape where the field goes next. I work on both halves of the job, and I try to keep them honest with each other:

🔬 Research 🛠️ Engineering
Re-implement landmark papers from scratch and compare my numbers with the paper's, including where I fall short and why. Turn models into tested, containerized, observable services with CI.
Multiple seeds, ablations, confidence intervals, multiple-testing corrections. Async inference, RAG, agents with human approval, multi-tenant isolation.
Write down scope: what was reproduced, what was only implemented, what was not run. Evaluation harnesses and regression gates that decide whether a change ships.

"If I can't build it from scratch, I don't understand it yet." 🧩

class BartuOnder:
    role      = "AI/ML Engineer  →  AI Researcher"
    research  = ["Paper reproduction", "Evaluation & statistics", "LLMs & Transformers"]
    building  = ["Evaluated agentic systems", "RAG", "End-to-end ML products"]
    next_step = "PhD in AI 🇺🇸"

    def philosophy(self):
        return "Read the paper. Implement it. Measure it. Report it honestly. Ship it."

⭐ Flagship Project: AxiomForge

Replicate machine-learning claims with statistics, not with a language model. 🔬

An autonomous AI research agent that reads a claim (or an arXiv link), tests it on many real datasets inside a sandbox, and lets Python, not the LLM, decide the verdict. The research agent then proposes its own follow-up hypotheses and tests them on datasets it has never seen.

AxiomForge demo: summary, evidence ledger, research agent session and live progress
70-second walkthrough recorded from the real console.

💡 The idea: LLM agents write fluent conclusions but are unreliable judges of evidence. AxiomForge splits the work: the model plans experiments and writes prose, while a deterministic statistics layer computes every verdict and ties every number to an evidence ledger.

🧪 Question 📊 Measured result
Does it get known claims right? 10 / 10 established comparisons judged as expected, on 9 real datasets
Does it invent differences? Decisive verdict in only 2.1 % of simulated worlds with no true effect; 0 / 45 real-model comparisons significant when the only difference was the random seed
Does the research agent inflate discoveries? Family-wise error 3 %, versus 24 % for an agent that selects and tests on the same data and 89 % for uncorrected testing
A real research session 6 models × 16 datasets: 16 hypotheses registered → 15 confirmed, 0 reversed, 1 not confirmed. The "winner's curse" overestimated the lead of tree ensembles ~3× on the exploration data, so only confirmation datasets are reported

🔑 What makes it interesting

  • 🔒 Sealed confirmation data: the hypothesis generator never sees the confirmation datasets. Hypotheses are frozen with a SHA-256 digest before testing, and python -m app.research verify detects tampering.
  • 📐 Real statistics: Wilcoxon signed-rank, Friedman, Holm and Benjamini-Hochberg corrections, with the dataset (not the split) as the unit of replication.
  • 🚧 LLM output is policed: the paper text is composed from ledger values and checked by 17 deterministic rules that reject overclaims.
  • 📏 Honest limits: conservative, low power under 1 ROC-AUC point, and the real session reproduces a known finding (Grinsztajn et al., NeurIPS 2022) rather than claiming a new one.

Repository Technical report Demo


📄 Paper Reproductions

Paper → code → verified numbers. Paper-to-Code is the index of every paper I re-implement from scratch: one repo per paper, a paper → code map, tests that check the quantities the paper states, and a results table that says what matched and what did not.

Paper What I built Result vs. the paper Status
🔧 LoRA: Low-Rank Adaptation of LLMs
Hu et al., ICLR 2022
Hand-written LoRALinear (merge / unmerge, zero-init), a full fine-tuning baseline, rank and projection ablations, 5 seeds, 170 training runs on RoBERTa-base / GLUE, plus latency and memory benchmarks. Logits match Hugging Face PEFT in tests. 4 of 5 tasks within 0.5 pt of the published numbers (SST-2 −0.3, MRPC −0.5, CoLA −0.3, STS-B −0.5). RTE is −7.9: the paper starts from an MNLI checkpoint and I did not. 0.24 % trainable parameters. ✅ Reproduced · 🤗 weights
🏗️ Deep Residual Learning (ResNet)
He et al., CVPR 2016
Plain and residual networks (CIFAR-10 6n+2, ImageNet ResNet-18 to 152) with shortcut options A/B/C, trained with the paper's protocol. Tests check ImageNet FLOPs (Table 1) and parameter counts. ResNet-110: 6.42 % error (paper 6.43 %). The degradation of plain nets with depth (Fig. 6) is reproduced: it is an optimization problem, not overfitting. ✅ Reproduced (CIFAR-10)
🧬 Attention Is All You Need
Vaswani et al., NeurIPS 2017
The original Transformer without nn.Transformer: Post-LN, sinusoidal PE, tied embeddings, label smoothing, Adam warmup, beam search with length penalty. Base model 63.0 M params (paper 65 M). Paper-scale WMT BLEU was not run, and the repo says so. 🧪 Implemented & tested
Plain vs residual networks on CIFAR-10 LoRA rank ablation on GLUE
Left: ResNet plain vs. residual on CIFAR-10 (Fig. 6 reproduced). Right: LoRA rank ablation on GLUE.

How I reproduce a paper

  • 🧱 From scratch: the method is written by hand and follows the paper's equations and section numbers. No nn.Transformer, no torchvision.models, no PEFT in the training path.
  • ✅ Verified: tests assert what the paper states (parameter counts, FLOPs, masking, schedules, equivalence to a reference implementation).
  • 📊 Measured properly: several seeds, mean ± std next to the paper's statistic, ablations, and a stated hypothesis for every gap.
  • 🪞 Honest about scope: each entry says what was reproduced, what was only implemented, and what was not run.

Paper-to-Code Write-ups


🤖 Agentic AI and RAG Systems

Agents and retrieval systems that are measured, not just demoed: each one ships with an evaluation harness, a red-team set and numbers that link back to the run that produced them. My flagship, AxiomForge, belongs here too.

🤝 Parley

Eval-driven multi-agent customer operations platform. LangGraph specialists resolve refund, shipping and subscription tickets with policy RAG, MCP tool use, a policy critic and human approval. 98.8 % task success on 55 core scenarios (140 in total), pass^4 96.4 %, 0 of 108 attacks landed with guards on, ~$0.003 per ticket. 1500+ tests, OpenTelemetry traces, Next.js console.

🏢 Mabeyn

Multi-tenant support agent you embed with one script tag: cited answers from your documents (hybrid retrieval, reranker, faithfulness check), tool use with human approval, customer memory and a four-layer LLM firewall. Accuracy 0.95 on 80 dev questions and 0.97 on 30 held-out ones; 0 of 80 attacks worked with the firewall on. PostgreSQL Row-Level Security, 700+ tests, CI evaluation gate.

Production-grade RAG platform to chat with your documents: async ingestion, vector search, ONNX inference and MLOps tooling.

LLM taste-based recommender for games, movies, books, series and anime, with Pydantic structured outputs, top-up rounds for incomplete answers and per-query taste snapshots.

Also: 🕵️ AI Agents From Scratch, the same ideas in pure Python with no framework (see below).


🧮 From-Scratch Implementations

Learning by building: no black boxes, from the math to the training loop. The paper-faithful ones are in Paper Reproductions.

Clean from-scratch GPT-2 small: masked multi-head self-attention, FlashAttention via SDPA, loading of official pretrained weights, bf16 mixed-precision fine-tuning with cosine LR, grad accumulation and clipping, and temperature / top-k sampling.

Classic estimators in NumPy only: linear/logistic/softmax regression, decision trees, random forests, second-order gradient boosting, dual SVM (SMO), GMM, GDA, naive Bayes, k-means, PCA and a one-hidden-layer MLP. Every model is derived from an explicit objective.

A small neural-network library with layers, activations, losses and manual backprop, validated with gradient checking and demos on XOR, regression and classification.

Agents in pure Python, with no frameworks: LLM call → tool calling → ReAct loop → memory → plan-and-execute → reflection, plus evals and tests. The goal: show there is no magic in an agent, just a loop.

A decoder-only GPT trained on Shakespeare's poetry to emulate the Bard's linguistic style and meter: dataset, model, training and generation scripts.

My PyTorch notebook collection: CNNs, Vision Transformers, transfer learning, TensorBoard and YOLO.

Also: 📊 Kaggle notebooks · 🧩 Python-DSA and NeetCode-150 (algorithms practice)


🧠 ML and Deep Learning Applications

Models trained, evaluated and served: tabular, NLP and vision.

Calibrated credit-card default prediction on 30,000 clients. Repeated-CV model comparison with significance tests, cost-based decision threshold, SHAP explanations, fairness diagnostics and a FastAPI service. LightGBM ROC-AUC 0.784, PR-AUC 0.565, test ECE 0.010. A hold-out set used once and every README number generated from results/.

☣️ ToxGate

Async Turkish toxicity detection PoC: DistilBERT on ONNX Runtime behind FastAPI, Celery workers and a Redis result cache.

MobileNetV3 detecting 38 plant diseases at ~97 % accuracy, served as a REST API with request logging.

👁️ DeepGuard

AI access-control / mini-SOC: face recognition, age estimation and emotion-based anomaly detection (anger/fear) with real-time event logging.

Real-time object detection web app. CLIP re-ranking fixes the small handheld objects (mouse, phone, wallet) that YOLO confuses.


🏢 SaaS Products and AI Security

Models wrapped in real products: auth, queues, dashboards and deployment. Multi-tenant SaaS with isolation is also in Mabeyn, and the red-team work is in Parley.

Project What it does Stack
📑 Veridex Extractive contract risk QA SaaS. Fine-tuned DeBERTa-v3 on CUAD → 87.96 F1, tracked with MLflow. Inference isolated from the API via Celery/RabbitMQ, Redis caching, JWT/API-key auth, Next.js risk-card dashboard. 🤗 Model PyTorch DeBERTa-v3 FastAPI Celery Redis PostgreSQL Next.js MLflow Docker
🛡️ Sentinel-Shield AI security firewall for LLM apps: PII redaction and prompt-injection blocking. Deployed on AWS, with JWT auth, Redis rate-limiting and a user dashboard with API keys and stats. FastAPI Starlette SQLAlchemy AWS Redis Next.js
🥗 MacroFit AI Estimates calories and macros from food photos with a Vision Transformer, then builds nutrition tracking and workout plans. AI layer isolated via dependency injection. PyTorch ViT FastAPI Next.js PostgreSQL Docker
🖼️ Vision Classifier API ViT image-classification platform with an async task queue so heavy inference never blocks the server. JWT-secured and horizontally scalable via Docker. PyTorch Hugging Face Celery RabbitMQ JWT Docker

🧰 Toolbox

Click a section to expand 👇

🔬  Research & Evaluation

Reading papers, re-implementing them, and deciding with statistics whether a claim holds.

See 📄 Paper Reproductions and the ⭐ flagship.

🧠  AI / ML / GenAI
Area Topics & tools
Deep Learning PyTorch, Transformers, CNNs / ResNets, Vision Transformers (ViT), MobileNet, DeBERTa, transfer learning, mixed-precision (bf16) training
LLMs & fine-tuning Hugging Face Transformers, LoRA / PEFT, GLUE-style evaluation, embeddings and semantic search, structured outputs
GenAI / RAG Hybrid retrieval (vectors + full text), reranking, chunking, faithfulness checks, retrieval evaluation (Hit@k, MRR, document recall), vector stores (pgvector, Qdrant, Chroma)
Agentic AI Tool calling, ReAct, planning, memory, reflection, LangGraph (human-in-the-loop interrupts, checkpoints), MCP, multi-agent routing, policy critics, LLM guardrails
Agent evaluation Scenario suites with expected end states, pass^k reliability, LLM-judge calibration, red-teaming, regression gates in CI
Computer Vision OpenCV, image classification, object detection (YOLO, CLIP), face recognition & emotion analysis
Classical ML & data scikit-learn, XGBoost / LightGBM / CatBoost, SHAP, probability calibration, cost-based thresholds, NumPy, SciPy, Pandas

AI stack NumPy pandas Hugging Face

🚀  MLOps & Deployment

Models that only live in notebooks don't count. I train → track → containerize → serve → monitor.

  • 📈 Experiment tracking: MLflow
  • 🐳 Containers: Docker, Docker Compose
  • ☁️ Cloud: AWS
  • ⚡ Inference: async inference queues (Celery + RabbitMQ), ONNX Runtime, Redis caching
  • 🔭 Observability: OpenTelemetry traces, LangSmith, cost and latency tracking
  • 🧰 Sandboxed execution: running agent-generated experiment code in isolated sandboxes (E2B)
  • ✅ CI & quality: GitHub Actions, Pytest, Ruff, mypy, Playwright browser tests, Locust load tests, evaluation gates
  • 🗄️ Model & artifact hosting: Hugging Face Hub

MLOps stack MLflow

🏗️  Backend & SaaS Development

Production-minded backends that wrap AI models in clean, tested, scalable services.

Layer Stack
API FastAPI, Starlette, Pydantic
Async & queues Celery, RabbitMQ, Redis
Data PostgreSQL (+ pgvector, Row-Level Security), SQLite, SQLAlchemy, Alembic, Redis, vector databases
Frontend Next.js, TypeScript, Tailwind CSS (dashboards and consoles for my products)
Quality Pytest, Clean Architecture, Dependency Injection

Backend stack

🛡️  Security

I build AI products, so I also care about securing them.

  • 🔐 Web & API security: OWASP Top 10, OWASP Top 10 for LLM Applications, API security
  • 🔑 AuthN / AuthZ: OAuth, JWT, API keys
  • 🚦 Hardening: rate limiting, reverse proxy, basic pentesting
  • 🧱 AI security: prompt-injection defense, PII redaction, canary tokens, tool allowlists, red-team evaluation (Sentinel-Shield, Mabeyn, Parley)
💻  Languages & Tools

Languages and tools SQL


💼 Experience

🏢 Software Engineering Intern, GullsEye Logistics Technologies Inc. (20 days)

Designed and built, end to end, a fully offline AI-powered semantic search engine over enterprise documents.

  • ⚡ Cut search latency to ~5 ms by optimizing vector matrices with NumPy
  • 🎯 Reached Hit@3 = 90.6 % and MRR = 0.735 using custom chunking and an automated evaluation harness
  • 🤗 Used Hugging Face MiniLM-L12 embeddings, with a CLI on top of the core engine
  • ✅ Secured the whole project with 164 unit and integration tests (Pytest)

📊 GitHub Stats


🎯 Currently

  • 📄 Reproducing more landmark papers for Paper-to-Code, with the same standard: tests against the paper, several seeds, honest scope
  • 🔬 Taking AxiomForge further as a research tool for evaluating ML claims
  • 🌱 Going deeper into LLM fine-tuning, RAG evaluation and agentic systems (LangGraph)
  • 🎓 Preparing for graduate studies / PhD in AI in the USA
  • 🤝 Open to research collaborations, internships and interesting AI projects

📫 Let's connect!   LinkedIn · Hugging Face · Kaggle · Email

footer

Pinned Loading

  1. AxiomForge AxiomForge Public

    AxiomForge - Autonomous AI Research Agent

    Python 1

  2. Paper-to-Code Paper-to-Code Public

    Index of research papers I re-implemented from scratch in PyTorch: paper → code maps, verification tests, and reproduced results.

    1

  3. tr-en-nmt-lab tr-en-nmt-lab Public

    Turkish-to-English neural machine translation: a from-scratch PyTorch Transformer, a tokenizer ablation study, distillation, int8 CTranslate2 export, and FastAPI/Triton serving.

    Python 1

  4. Parley Parley Public

    Eval-driven multi-agent customer operations platform: LangGraph agents resolve refund, shipping and subscription tickets with policy RAG, tool use, a policy critic and human approval. Measured with…

    Python 1

  5. Mabeyn Mabeyn Public

    Multi-tenant support agent you embed with one script tag: cited answers from your documents, tool use with human approval, customer memory and an LLM firewall. FastAPI, LangGraph, PostgreSQL RLS, N…

    Python 1

  6. Veridex Veridex Public

    AI contract analysis project

    Python 1