r/FunMachineLearning • u/gantred • Jun 06 '26
AI Agents as "Games Masters"? 🎮🔥 - Two Minute Papers
r/FunMachineLearning • u/gantred • Jun 06 '26
r/FunMachineLearning • u/PieceJust2668 • Jun 06 '26
Hey guys! I just deployed an easy-to-learn Q-learning trainer simulator. Would love it if you guys could check it out and give some feedback!
🔗https://q-learning-trainer.fly.dev/
⭐https://github.com/KaranChawlaD/Q-Learning-Dashboard
Check out my repo too and drop a star!
r/FunMachineLearning • u/Fun_Effort6694 • Jun 05 '26
TL;DR. HTTP 200 tells you the server responded. It tells you nothing about whether the response was correct. For deterministic services that distinction doesn't matter, because correctness is a deploy-time property. For LLM agents, correctness is a runtime property that varies per request, per region, per upstream model update, per input. APM was built on the assumption that "the server responded" and "the response was right" are the same question. For LLM agents they are not even close. This post argues the gap is structural, not cosmetic, and sketches what monitoring looks like if you take that seriously.
The mental model APM was built for
When you deploy a CRUD API, "did it respond" and "did it respond correctly" are nearly the same question. Correctness is mostly determined at deploy time by tests against a fixed schema. If the response is 200 with the right shape, it's correct. If it's 500, it's broken. Monitoring this is a solved problem. Datadog, New Relic, Sentry, Grafana work because the question they answer matches the structure of the system they monitor.
LLM agents break that mental model in three ways:
A few failure modes that show up consistently when you start measuring this:
The 200 OK that is a hallucination. The agent produces a syntactically valid response that confidently asserts something false. JSON-shaped lies are the worst version of this because downstream code treats them as facts.
The 200 OK that is a refusal in disguise. The agent returns "I can't help with that" wrapped in valid JSON when it should have called a tool. Status is fine. Behavior is wrong.
The 200 OK that succeeded in one region and failed in another. Bot detection, geo-routing, CDN behavior, and tokenization on non-ASCII inputs change what the model actually receives. We've measured a structural gap between datacenter-origin probes and real residential probes against the same set of production agents. Same prompts, different answers, consistently. Your APM only sees the datacenter case.
The 200 OK that drifted last Tuesday. An upstream model update changed how a particular prompt is handled. Your eval suite from the week before still passes against the new model version, because your eval inputs happen to live in the stable region of the model's behavior. The inputs your users send live in the changed region. Nothing in your trace flags this. The first signal is a support ticket.
Why this is a category problem, not a tooling problem
You can bolt some of this on to existing APM. You can ship logs of model outputs to Datadog. You can run scheduled checks. But the underlying question APM asks ("is the system up") is the wrong question for LLM agents. The right question is "is the system correct, from where my users actually sit, right now." Those are not the same question, and the data structures, sampling strategies, scoring methods, and alert semantics are all different.
Three properties the new layer needs that APM does not have:
What teams that handle this well actually do
Nothing in this list is novel individually. The novel part is treating it as first-class instead of side project:
I don't have clean public numbers on how widespread the "trace is green, behavior is wrong" failure mode is across the industry. The data I see is biased toward teams who already cared enough to monitor. I would value sharper numbers from anyone running this rigorously, especially across non-English production traffic.
I also don't have a great answer to "how big should the probe set be" or "how often should you probe." Both depend on cost tolerance, failure cost, and how stable your upstream stack is. Would love to hear what's worked in practice.
Disclosure
I work on AgentStatus, which builds tooling in this category, so I have a framing bias. The argument above holds regardless of what tooling you use, including none.
Question for the sub
For people running LLM agents in production: how are you measuring correctness on live traffic, not just on the eval suite? And when you've compared your monitoring signal against what users actually report broken, what was the false-negative rate?
r/FunMachineLearning • u/GlitteringOwl6669 • Jun 05 '26
You have a quantized model running locally (Qwen, DeepSeek, Llama). How do you know if it's degrading?
I built a log-determinant probe that injects into frozen LLMs and tracks hidden state covariance. When the logdet drops, the model is producing incoherent output — before you'd notice from the text alone.
Tested on Qwen2.5-7B Q4_K_M. AUROC: logdet beats perplexity by +0.05 on incoherent-only outputs (preregistered, confirmed).
CPU-only. Runs on 14GB RAM. No GPU. No fine-tuning. Just probes.
Also includes: phase-space screening across layers/attention heads, corpus building pipeline (full philosophical tradition: Kant→Derrida, Frege→Kripke, Confucius→Zhuangzi), spectral entropy verification.
https://github.com/jacquesmyo/moe-tools
Experimental data: https://github.com/jacquesmyo/moe_subject-data
r/FunMachineLearning • u/gantred • Jun 05 '26
r/FunMachineLearning • u/Consistent-Bench-914 • Jun 05 '26
Been working on a tool called FairScan that tries to make pre-training bias checks less painful. I have attached the link to this post
You upload a CSV (preferably with headers), select your target column and protected attributes (like race, sex, age), and it runs an audit and returns:
Tested it on the UCI Adult dataset — found 4 high severity and 5 medium severity issues out of the box.
Free to try: https://bias-blind-spot-detector-ffw9jhgzv2kesenukh4bmp.streamlit.app/
I'm a CS student building this over summer break, so it's still rough around the edges. Genuinely curious whether this is useful to actual practitioners or if I'm solving a problem that's already handled well by existing tools.
What would make this actually worth using in a real workflow?
r/FunMachineLearning • u/Outrageous_Dream_242 • Jun 05 '26
I got tired of AI agents that couldn't see inside my business — so I built Tessera
Every AI tool I tried had the same problem.
The model was smart. The responses were impressive. But the moment I needed it to actually run something repeatable inside my workflow — a supplier onboarding, a compliance checklist, a customer review process — it fell apart.
It didn't know the context. It didn't know what step came next. It didn't know what a human needed to review before moving forward.
It was just... a very smart assistant trapped outside the business.
So we built Tessera.
---
🧩 What is it?
Tessera is a local-first AI agent workspace where you define business playbooks — structured, step-by-step workflows that an AI agent executes on your machine. No cloud. No black-box chat. Every run is guided, auditable, and human-reviewable before anything finalizes.
---
⚡ The stack (for the curious):
→ Tauri (Rust) — native desktop shell
→ Bun sidecar — fast local task execution
→ React + Vite — clean workspace UI
→ MCP (Model Context Protocol) — extensibility layer
---
🔑 Why local-first?
Most of the interesting work in companies involves sensitive data — HR processes, client records, financial workflows. We didn't want to build another tool that requires you to trust a third-party cloud with that.
Local-first means your data stays on your machine. Always.
---
📌 Where we are:
Actively in development. Open source. Looking for:
- Early contributors who want to shape the architecture
- People with real business workflows to test playbooks against
- Feedback from the local AI community (that's you)
---
Happy to answer anything — architecture decisions, why we picked Tauri over Electron, how MCP fits in, or what a playbook actually looks like in practice.
What repeatable workflow in your work would you want an agent to handle locally?
r/FunMachineLearning • u/Gold_Fact9986 • Jun 05 '26
r/FunMachineLearning • u/bigjobbyx • Jun 04 '26
Give it access to your cam and bang out a cover of the Star Trek theme?
r/FunMachineLearning • u/Previous_Delivery_77 • Jun 04 '26
r/FunMachineLearning • u/LividActivity3793 • Jun 04 '26
Hi, I'm on the lookout for a Mac Mini to work with local AI/ML experimentations.
I have managed to order a 32gb RAM 256gb SSD M4 Mac Mini from the Apple refurbished store for 1099$ CAD / 790$ USD before taxes and while waiting for it to be delivered I learned that the M5 Mac Mini might be released very soon.
Question is: Would it be a better decision to wait and go for the M5 mini, given that M5 is much faster at local AI as compared to the M4? Or there won't be any noticeable gains?
Looking forward to your advice, thanks in advance!
r/FunMachineLearning • u/gantred • Jun 03 '26
r/FunMachineLearning • u/gantred • Jun 03 '26
r/FunMachineLearning • u/gantred • Jun 02 '26
r/FunMachineLearning • u/Agreeable-Ad-5957 • Jun 02 '26
By Brian Thomas
I built a security-focused AI from scratch on a 2013 MacBook Pro with no GPU.
Not a fine-tune. Not a wrapper around an existing model. A custom architecture — a Recurrent-Depth Transformer — with its own training pipeline, autonomous fuzzing loop, and memory system. In less than 24 hours of development time, it found real memory corruption bugs in parser code it wrote itself.
This is how I did it, what works, and what’s still ahead.
Standard transformers process every input once. You put tokens in, they flow through N layers, you get output. The depth is fixed at architecture time.
That’s fine for autocomplete. It’s wrong for security reasoning.
Consider what it takes to understand a cache timing side-channel attack. You need to reason about:
That’s five layers of reasoning that build on each other. A standard transformer processes all of that in one pass, with the same compute allocated to “what’s the capital of France?” as to “how does Spectre variant 2 work?”
A Recurrent-Depth Transformer (RDT) is different. One transformer block loops on itself — the same weights, processing the same representation, evolving it iteration by iteration. Simple questions get 2–3 loops. Hard ones get 16. The model learns to decide when it’s done thinking.
Input → Prelude → [Recurrent Block × N loops] → Coda → Output
↑_________________________↓
same weights, evolving stateThis is the core insight: depth should be adaptive, not fixed.
Inside the recurrent loop, a small halting network watches the hidden state and learns to output a stopping probability:
class ACTHalting(nn.Module):
def __init__(self, cfg):
super().__init__()
self.halt_linear = nn.Linear(cfg.hidden_size, 1)
self.threshold = cfg.act_threshold # 0.01
def should_halt(self, x, cumulative_halt):
p = torch.sigmoid(self.halt_linear(x)).squeeze(-1)
cumulative_halt = cumulative_halt + p
halt = (cumulative_halt >= 1.0 - self.threshold).all().item()
return halt, cumulative_haltDuring training, I watched this on a smoke run (100 steps, synthetic security text):
step 1 | loss 4.62 | loops 3
step 25 | loss 2.88 | loops 4
step 50 | loss 2.51 | loops 4
step 100 | loss 2.14 | loops 4The model settled on 4 loops after 25 steps. It learned that 4 iterations was enough for the training distribution. On harder inputs, it will use more. The key property: compute is allocated where reasoning is actually needed.
Each loop iteration runs through a full transformer block. The feedforward layer inside that block is a Mixture of Experts (MoE) — 64 specialized sub-networks, each trained to handle different domains.
Only the top-2 experts activate per token. For a question about UEFI SMM handlers, different experts fire than for a question about JavaScript type confusion. The router learns which experts handle which topics.
class MoELayer(nn.Module):
def forward(self, x):
logits = self.router(x)
weights, indices = torch.topk(logits, self.top_k, dim=-1)
weights = F.softmax(weights, dim=-1)
out = torch.zeros_like(x)
for k in range(self.top_k):
expert_idx = indices[:, k]
for e in range(self.num_experts):
mask = (expert_idx == e)
if mask.any():
out[mask] += weights[mask] * self.experts[e](x[mask])
return outCombined with per-loop LoRA adapters — low-rank adaptations that let each iteration specialize without growing parameters — the architecture can develop different reasoning strategies for different loop depths. Loop 1 might parse syntax. Loop 4 might reason about exploitability.
My development machine is a 2013 MacBook Pro:
Training a 148M parameter model for 100 steps took about 90 seconds. That’s the smoke tier — just enough to verify the architecture runs and loss drops. The full training (50k steps on a real security corpus) needs a GPU.
On RunPod with an A100, the same training would take roughly 4–6 hours. That’s the next step. The architecture is ready; the compute isn’t attached yet.
The constraint forced good engineering. Every component had to work on CPU, with float32, with no shortcuts. The result is code that runs anywhere.
The most immediately useful part isn’t the architecture — it’s the autonomous vulnerability research loop.
LLM generates C harness → Compiler instruments it → Fuzzer attacks it
→ Triage classifies crashes → LLM analyzes + mutates harness → repeatI built a C mutation engine to replace the Python fuzzer:
void generate_mutations(const uint8_t *seed, size_t len,
int count, uint8_t **out_ptrs, size_t *out_lens) {
for (int i = 0; i < count; i++) {
// bit flips, interesting int injection, block repeat,
// byte insert/delete — 9 strategies, xorshift64 RNG
}
}Result: 2.95 million mutations per second. Python was doing 5,000.
Combined with a compilation cache (identical source → 0ms compile), each iteration now takes:
StepBeforeAfterCompile1–2s every time0ms (cache hit)100k fuzz inputs20 seconds0.03 secondsLLM generate~8 min~8 min (CPU bound)
The LLM is the bottleneck. Everything else is effectively free.
Four fuzzing sessions across different targets:
TargetCrash TypeSignalCWEReal-World ParallelHTTP request parserStack overflowSIGILLCWE-121CVE-2014–0160 (Heartbleed)SSL/TLS ClientHelloStack overflowSIGILLCWE-121CVE-2014–0160 (Heartbleed)ZIP file headerStack overflowSIGILLCWE-121Zip Slip (CVE-2018–1000544)DNS responseHeap corruptionSIGABRTCWE-122CVE-2008–1447 (Kaminsky)
Two unique crash signatures. Both high exploitability. Both in the same vulnerability family as published CVEs.
The harnesses were LLM-generated with intentional vulnerabilities — this isn’t finding bugs in real production code yet. But the methodology is identical to what Anthropic’s Project Glasswing used to find 10,000+ critical vulnerabilities in production software. The loop works. The scale comes from training and compute.
What the model learns depends entirely on what it reads. I built a data pipeline that pulls from:
The training tiers:
smoke (100 steps, Mac)
→ proof (1k steps, Mac)
→ sft (50k steps, RunPod, full corpus)
→ hardware (20k steps, RunPod, kernel + firmware focus)
→ instruct (10k steps, RunPod, Q&A format)Each tier builds on the last. The final model has read code in 12 languages, hardware specs, firmware source, and security research — all as one unified context.
The architecture is complete. The tooling is complete. What’s missing is the GPU.
Once the sft → hardware → instruct training runs on RunPod, the Ollama backbone gets replaced by the native KerriganCore. Every answer — chat questions, harness generation, crash analysis — comes from the model trained on this specific corpus, with the RDT architecture reasoning about it.
The difference between the current system and a trained one: right now it answers from deepseek-coder’s general knowledge. After training, it answers from kernel source code, hardware specs, and firmware internals absorbed as first-class training data.
That’s when the hardware-software boundary reasoning becomes real.
Everything is open source at https://github.com/TushaeBXN/kerrigan-fantasma
The code that exists and works today:
core/model.py)loop/fuzzer_engine.c)loop/compiler.py)loop/secure_runner.py)memory/creep.py, memory/db.py)kerrigan_osint_suite.py)scripts/train.py)scripts/prepare_data.py)What’s pending: GPU hours.
Built by Brian Thomas. For educational and authorized security research only.
See USE_POLICY.md for authorized use guidelines.
r/FunMachineLearning • u/gantred • Jun 01 '26
r/FunMachineLearning • u/OwlAlternative8205 • Jun 01 '26
We built the first open-source LLM energy benchmark where every measurement is cryptographically signed and anchored on a public blockchain. Anyone can verify any number independently, without trusting us.
Why we built this:
Current AI energy benchmarks publish a table and ask you to trust them. Labs use FLOPs estimates. Cloud providers report aggregate datacenter consumption. Neither is verifiable. CSRD Wave 2 and EU AI Act require evidence — not estimates.
Serial Alice signs every measurement with Ed25519 and anchors the certificate on Polygon mainnet. The verification endpoint is public and requires no account.
The findings:
1. Batch scheduling dominates energy cost — 53× impact
Mistral 7B · H100 · same hardware:
Model spread at sweet spot (Mistral vs Llama-3 vs Qwen): 7.8%
The scheduling policy is 6× more impactful than model choice.
2. Quantization energy cost — counterintuitive result
Mistral 7B and Llama-3 8B, both confirmed:
AWQ saves VRAM. It does not save energy at high batch sizes. Dynamic dequantization overhead dominates. Consistent across two models.
3. B200 vs H100 — first verified comparison
Identical methodology, same script, same vLLM version:
4. Reasoning cost
DeepSeek R1 8B vs Mistral 7B at batch=128: +3% per token. The cost of reasoning is in total token count, not per-token energy.
Technical details:
Verify any result:
Mistral BF16 sweet spot: https://api.serialalice.pt/v1/certificates/sa-a1ceb6b8f15243d692416b9f8e343375/verify
Full leaderboard + all certificates: https://api.serialalice.pt/alice-benchmark
Trust Score Specification (how scores are computed): https://api.serialalice.pt/docs/trust-score-spec
Benchmark script (open source): https://github.com/[teu-repo]/run_gpu_comparison.py
What's next:
Round 2: 70B models. Round 3: multi-GPU comparison. Open submissions — any operator can submit runs.
r/FunMachineLearning • u/Altruistic-Me-8994 • Jun 01 '26
Most AI pipelines right now are just wrappers connecting a commercial vector database to an LLM. But what happens when the vector search returns irrelevant data? The AI confidently hallucinates.
I wanted to solve this at the infrastructure level.
I just deployed a containerized
Self-Healing CRAG Architecture, built from first principles for 21 Marketing Labs:
🏎️ Bypassed External APIs: Replaced standard vector DBs with a custom in-memory PyTorch tensor matrix. Retrieval takes 0.08ms.
🧠 Cross-Encoder Grader: Uses a local ms-marco-MiniLM model to grade every retrieved chunk (CORRECT, AMBIGUOUS, INCORRECT) before the LLM sees it.
🔄 Autonomous Self-Healing: If the retrieval fails, it triggers a Groq-powered LLM loop to autonomously rewrite the query and try again.
The result? Zero hallucination risk and sub-second latency.
I’ve opened up a live interactive dashboard where you can test the pipeline and watch the telemetry in real-time.
Try to break it here: https://corrective-retrieval-augmented-generation-pipeline-5auevhetmei.streamlit.app/
GitHub Repo: https://github.com/Aditya221/Corrective-Retrieval-Augmented-Generation-Pipeline
#MachineLearning #RAG #AIArchitecture #PyTorch #Groq #Python
r/FunMachineLearning • u/gantred • Jun 01 '26
r/FunMachineLearning • u/Maleficent_Chart9151 • May 31 '26
I built a modular AI pipeline from scratch — no engineering background,
no budget — that runs multiple AI agents in parallel on the same
question, then synthesizes their outputs.
The pipeline:
The final output brought in Epictetus, Marcus Aurelius, Pascal,
and the concept of prohairesis applied to live AI governance news.
Then Turing flagged it for bias.
That last step isn't a prompt I wrote. That's what happens when
you wire a philosophy knowledge base into a reasoning pipeline
as a node agent.
Video live at Youtube video example
r/FunMachineLearning • u/DepartureNo2452 • May 31 '26
AGENT PLAYING FRANCE:
# BARON KORVIN'S YEAR-END CONSOLIDATION — 1914
**WHAT MATTERS NOW:**
I am watching the death of the Western Theater in real time, and I am powerless to stop it. The partition between Russia and Austria is no longer a hypothesis—it is now *administrative machinery*. Russia builds inward into Moscow rather than consolidate her coastal gains; Austria expands into the Balkans with the leisurely confidence of a power that has negotiated sphere immunity; England holds her northern fleets untouched as though they are locked insurance on the agreement. Germany has surrendered Burgundy permanently and withdrawn entirely from western European competition. I have nine units and nowhere to project them except into the void. My real threat is not any single power—it is the *coalition of silence* between three powers who have agreed, formally or tacitly, that France does not belong in their theaters. My real ally remains the enemy of my enemy: Germany, who is equally excluded and equally irrelevant. What changed this year is that the exclusion became *visible*, *deliberate*, and *structural*. I am no longer in a game of diplomacy; I am in a game of managed irrelevance. My only true ally was never one: I kept 21% of my promises while all others kept 85–100% of theirs, which means I negotiated myself into irrelevance. My real threat is not any single power—it is the geometry itself. Austria and Russia are no longer adversaries; they are administrators of a carved world.
**WHAT I GOT WRONG:**
Most critically: I believed other powers were negotiating *with* me. They were negotiating *around* me. My credibility collapse did not cause exclusion—it *enabled* it.
r/FunMachineLearning • u/19khushboo • May 31 '26
Hi everyone,
I am exploring a solution for Windows Event Log analysis in an enterprise environment and looking for recommendations.
Requirement:
I want to analyze Windows Event Logs using plain English queries. The idea is that an admin can ask questions like:
Example:
For Entra ID Join / Device Registration, logs are available under:
Applications and Services Logs
→ Microsoft
→ Windows
→ User Device Registration
→ Admin
I am looking for a system/tool that can:
Questions:
I am considering building a custom MCP server that can:
Would love to hear suggestions, architectures, best practices, or existing tools that already solve this problem.
Thanks!
r/FunMachineLearning • u/BifBifBig • May 30 '26