Aditya Raj

I am an ML Engineer at Bold Inc., working on LLM inference infrastructure and behavioral determinism in frontier LLMs. I graduated from NIT Patna in 2026 with a B.Tech in Electronics and Communication Engineering.

I write about Engineering at celestimperium.com.

Neural Network InternalsLLM Memory MechanismsLLM InferenceGPUsLow-level Architecture

Research

Model Architecture

Knowledge Graph-Informed Query Decomposition (KG-IQD): Hybrid KG-RAG Reasoning in Noisy Context

Aditya Raj1, Kuldeep Kurte2

1National Institute of Technology, Patna, 2IIIT Hyderabad

ISWC 2025 (In Review)Poster

Achieved state-of-the-art results on a custom disaster QA benchmark, outperforming RQ-RAG by 14% and KG by 18%. Developed a neuro-symbolic framework for query decomposition, leveraging knowledge graphs to interrelate points for hybrid RAG-based reasoning over structured and unstructured data.

Entropy of Thinking: Chain-of-Thought as Contextual Stabilization and Associative Retrieval

Aditya Raj

Chain-of-thought in Llama-2-7B functions as an associative retrieval mechanism rather than logical reasoning. Why it matters: we can't just ask a model to be safe and expect it to be safe.

Achievements

FAR.AI·Selected for the global AI Safety Summit; London, UK
2026
Anthropic·Fellows Program (AI Safety Research): made it through the 4th interview round
2026
NK Securities Research·Ranked 67th/2095 in IV Prediction; MSE=1.3e-5
2025
M2L Summer School·Selected from 1600+ global applicants (BTech to Industry); Split, Croatia
2025
Amazon ML Challenge·Ranked 184th/75,000+; F1 score=0.4667 using fine-tuned moondream
2024
AI of GOD - IIT ISM·Annual ML Challenge | Winner; WER=0.116 using TrOCR+T5
2024
Regional Mathematical Olympiad·Top 0.4% nationwide (classes 8–12) in India
2019

Experience

ML Engineer @ Bold Inc.MeshCore

Ontario, Canada

Dec 2025 – Present

  • Research on behavioral determinism in frontier LLMs via 10K+ controlled generations.
  • Designed and built MeshCore, an open-source, single-binary, zero-I/O LLM gateway in Go: 50K+ auth RPS at +0.79ms p50 added latency.
  • Handles 10K concurrent requests at sub-1ms p99 with zero failures, using lock-free atomic in-memory snapshots.
  • Moved data processing to batched, event-filtered queues: 80% fewer API calls and zero HTTP timeouts over 30 days.
  • CPU load down from 98.99% to 1.56%, memory from 89% to 43%, cutting costs by more than 50%.
  • Designed an ML algorithm for movement and dwell-time tracking on raw MAC IDs, reducing error rates from 4,000% to 30%.
GoPythonLLMsDistributed Systems

Quant Developer Intern @ QFI Research Capital

Hyderabad, India

May 2025 – July 2025

  • Worked on the trade execution part of the trading engine.
  • Fixed critical bugs where several metrics were calculated incorrectly.
  • Built the complete internal tooling stack for workflow automation and business operations.
C++PythonLinux

Research Intern @ IIIT HyderabadISWC 2025 (In Review)

Hyderabad, India | Advisor: Dr. Kuldeep Kurte, Spatial Informatics Lab

Apr 2025 – July 2025

  • Achieved SOTA on a custom disaster QA benchmark, outperforming RQ-RAG by 14% and KG by 18%.
  • Developed a neuro-symbolic framework that guides query decomposition using Knowledge Graphs.
  • Interrelates points with RAG on sub-queries for robust reasoning over structured and unstructured data.
PyTorchKnowledge GraphRAG

Research Intern @ IIT Guwahati

Guwahati, India | Advisor: Dr. Arijit Sur, Mentor: Mr. Suklav Ghosh

June 2024 – July 2024

  • Developed a GAN-based shape occlusion detection system with a UNet generator.
  • Trained on a synthetic dataset of geometric shapes, reconstructing overlapping shapes and occlusions.
PyTorchOpenCVNumPy

Projects

Bare-Metal C++ LLM Inference Engine

Oct 2026

~35% faster decode than vLLM on the same GPU
  • Inference engine written entirely in C++ with no external libraries, pushing hardware to its peak.
  • Qwen3-4B (INT4), batch size 1, on a laptop RTX 5060.
  • Decode ~148.6 tok/s (84.9% of the 175 tok/s theoretical limit) vs vLLM's ~110 tok/s (62.8%).
  • Prefill ~3,455 tok/s vs vLLM's ~2,450 tok/s with the same config.
C++GPUINT4Qwen3

Distributed Pipeline-Parallel LLM Inference

June 2026

  • Pipeline parallelism across several free Colab GPUs over TCP, splitting the model by layers.
  • Runs a 70GB model from an 8GB PC at 3.2 tokens/sec.
  • Go base station for the control plane; weights and activations over a private Tailscale data plane via llama.cpp RPC.
  • Tiny codebase: under 3,200 lines, ~270KB.
GoPythonllama.cppGGMLTailscale

Efficient LLMs via Switchable & Dynamic Quantization

Oct 2025

  • Switchable quantization for GPT-2 using LoRA modules (INT8/FP16), reducing model size by 29%.
  • Reproduced CPT (ICLR) on SQuAD, achieving a 3% improvement.
PyTorchHugging FaceLoRAQATSQuAD

Automatic Invoice Screening Agent

Oct 2025

  • Go/FastAPI/PostgreSQL platform with optimized API routing and batch request processing.
  • Processes 1K+ invoices/week at $8 per 1K invoices.
  • Local vLLM agentic pipeline with custom batching and automatic tool calling for invoice verification.
  • Email logs and a dashboard for human-in-the-loop guardrails.
GoFastAPIPostgreSQLvLLMNext.js

IV Prediction - Indian Option Market

July 2025 – July 2025

Top 2% Rank (67/4100) in NKSR Research
  • Engineered a LightGBM pipeline achieving MSE of 1.3e-5 on sparse options data.
  • Used nearest-neighbor TTE estimation and call/put-specific data representation.
PythonLightGBMPandasNumPy

Serverless Web Platform

Nov 2024 – Feb 2025

  • Replaced a $150/month SaaS with a serverless platform, migrating 10,000+ users.
  • Achieved <1s LCP on slow 4G using Next.js/Vercel/Supabase with extensive frontend optimizations.
Next.jsVercelPostgreSQLTailwindReact

Multimodal-Reranker

Mar 2025 – Apr 2025

  • Multimodal reranking module for an AI search engine.
  • Ollama LLM for semantic filtering and JSON filter extraction from natural queries.
  • Fast FAISS (HNSW+IVF) retriever on CLIP/mxbai embeddings with vision-language models.
  • Reranks top-k results via cosine similarity, based on user intent and visual semantics.
PythonCLIPmxbai-embed-large-v1FAISSOllama

OCR Model – LLM Re-correction

Oct 2024

1st on Kaggle | IIT-ISM Annual ML Competition Winner
  • OCR pipeline for medieval handwritten Spanish manuscripts.
  • TrOCR for transcription with a T5 language model for post-correction, fine-tuned on domain-specific linguistic features.
  • Custom text augmentation and similarity-preserving algorithm to improve LM robustness.
  • Achieved WER of 0.116, outperforming all competing models.
PythonOpenCVLLMsTrOCRT5