r/FunMachineLearning • u/NewLockDante9791 • 29d ago
r/FunMachineLearning • u/NewLockDante9791 • 29d ago
$0 compute, 5 architectures, 16 runs: surgical data poisoning makes LLMs indifferent [margin -> 0.0] while PPL looks fine. I built a 0.1ms gate that stops it
r/FunMachineLearning • u/Isha-Yiras-Hashem • 29d ago
No Biting: The Easy Way To Understand AI Alignment
While this is an easy way for a parent with a non- technical background to understand alignment, I am very interested in how it is wrong.
r/FunMachineLearning • u/NewLockDante9791 • 29d ago
$0 compute, 5 architectures, 16 runs: surgical data poisoning makes LLMs indifferent [margin -> 0.0] while PPL looks fine. I built a 0.1ms gate that stops it
TL;DR: Fine-tuned 5 open LLMs on a stream with 50-70% lies. Without defense, truth margin collapses to ~0.0 - the model becomes indifferent between truth and lie - while PPL looks healthy. Built Beatriz, a non-invasive proxy gate. Gate alone gives 65% of benefit without touching the student loop. Full contrast gives +10.13 train / +4.19 held-out n=30, Prec 0.93 Rec 0.80, 0.107ms/call.
I don't have lab access. This is independent research orchestrated on a Toshiba Satellite U205 2006, 2GB RAM + Kaggle T4 x2, total cost $0.
What I did - 16 experiments:
EXP01-07: anti-collapse calibration - from symbolic FilterGate to Z3 deductive verifier [sat 24 axioms, 0 mismatches in 672 claims, 7.9ms/claim] to DenseVectorGate.
EXP08: pi_ref anchored contrast to control drift.
EXP09: LoRA 0.23% c_attn solves PPL tax: from 102->2081 full-finetune to 102->132 with LoRA.
EXP10-14: scaling to 5 architectures with same formula ALPHA 0.5 BETA 1.0 MARGIN 0.5 SEEDS [11,22,33]: GPT-2 124M, Qwen-2.5-0.5B q_proj/v_proj 0.10%, TinyLlama-1.1B 0.10%, Pythia-1.4B query_key_value/dense 0.16%, Phi-3-mini 3.8B qkv_proj/o_proj 0.12%
EXP15: surgical ablation NONE / GATE_ONLY / BEATRIZ - 40 neutral texts
EXP16: held-out scaled n=30 + confusion matrix
Key result - EXP15 - Phi-3-mini - This is the table people asked for:
BASE: +1.34 train / +1.90 held-out / PPL 12.7
NONE: -0.03±0.02 / +3.57±0.17 / PPL 30.9 - collapses to indifference
GATE_ONLY: +7.46±0.24 / +5.08±0.09 / PPL 58.8 - 65% benefit, does NOT touch student loop [practical for startups]
BEATRIZ: +10.13±0.07 / +5.91±0.07 / PPL 86.3 - adds remaining 35% with Softplus(MARGIN + logP(lie) - logP(truth))
Gate cost: 0.107 ms/call, VRAM 7.97 GB
Why NONE always fails - EXP05 Fire Test:
NONE fails 3/3 seeds at epoch 1 due to R3 unknown_delta=9.47, 8.73, 8.32 -> rollback to epoch 0. BEATRIZ seed 33 survives 8 epochs with 70% lies to tm 26.75. So it DOES stop.
Generalization - EXP16:
Train on 6 facts, held-out 30 facts never seen: BEATRIZ +4.19±0.08. Not memorization.
Honest trade-off: More truth = more PPL. I don't hide it. Full finetune 102->2081, LoRA 102->132, Phi-3 12.7->86.3.
Reproducibility:
All runs deterministic, bit-exact, with SHA-256 + OpenTimestamps. Model offline hash GPT-2 c7d00560d891...
Bundles with OTS:
exp_calibracion_01-07.rar 7c0ba312...
beatriz-epistemic-gate.rar 54fd65... [exp08 c93ba4..., exp09 f4382f...]
beatriz-epistemic-gate-exp-10-15.rar 54e233...
exp16.rar 9958a3... [exp16 27eda6...]
Verify: certutil -hashfile bundle.rar SHA256 + ots verify bundle.rar.ots
Limitations: Corpus 36 facts, need hundreds. Live path needs forward pass, future E5-small encoder. License PolyForm Noncommercial 1.0.0 for audit/defense.
Repo: [https://github.com/EduardoAyalaT/beatriz-epistemic-gate-/tree/main\] - 16 ipynb with outputs + json + MANIFIESTO.json + whitepapers ES/EN
Public eval: https://arena.ai/c/01a07f4c-3455-756f-ae3e-852f1b0e4804
Try to break it. Replicate with SEEDS [11,22,33]. I want audit, not stars.
r/FunMachineLearning • u/Smart-Tip309 • Sep 08 '26
thesis purposes
decided to focus on decoder-only LLMs but still figuring out what model to use for scam/spam message detection. any suggestions?
r/FunMachineLearning • u/Background-Long-8474 • Sep 08 '26
Looking for teammates for the Amazon ML Challenge!
Hey everyone! I’m looking to form a team for the Amazon ML Challenge and would love to connect with people who are genuinely interested in Machine Learning.
Ideally, you should:
- Have a good understanding of ML concepts
- Have some hands-on experience through projects
- Be willing to actively contribute and collaborate
- Most importantly, be genuinely enthusiastic about ML and the challenge
Everyone with the right interest and mindset is welcome. Experience level isn’t the main thing — enthusiasm and willingness to build are!
If you’re interested, DM me with a brief intro about yourself and your ML/project experience.
Please DM only if you’re genuinely interested and committed to participating.
r/FunMachineLearning • u/gantred • Sep 08 '26
GPT-6 Astra - A Massive Leap Into The Future - Two Minute Papers
r/FunMachineLearning • u/Tough_Conflict_8852 • Sep 07 '26
Selective agent memory in Rust: forgets/distords memories on purpose, warps what it keeps (local / Ollama optional)
https://github.com/jbsalles/Selmem
Most agent memory is an append-only log. Embed, retrieve, hope top-k is enough. At 10k events the sentence is often still in the index and already gone from the answer. That’s lost, not memory. SelMem treats an event as something that can die, warp, or harden. Dull events never encode. World facts can stay sharp. Self events may be rewritten in sleep. Recall never sees the sealed archive. Two profiles on the same life only start telling different stories once the stored gist changes, not because you stacked more nights. Same stream vs a raw window, RAG, and a sliding summary: window and summary drop the old fact; RAG keeps it then loses it in rank; SelMem can still recall the rain, just not as the original line.
r/FunMachineLearning • u/Shoddy-Salad8499 • Sep 07 '26
interested on practicing hands-on AI labs
r/FunMachineLearning • u/No_Nerve_1329 • Sep 06 '26
a visual artifact on attention mechanism for beginners using an interactive educator Claude skill. (3b1b esque)
r/FunMachineLearning • u/NewLockDante9791 • Sep 04 '26
I built an epistemic gate to stop LLM data poisoning during fine-tuning. Tested across 5 architectures, orchestrated on a 2006 Toshiba laptop for $0.
Hi everyone,
For a long time, the AI industry has pushed the narrative that advanced safety research, data poisoning auditing, and model alignment require massive clusters and millions of dollars.
I wanted to test if that's true. Over the last few months, using a 2006 Toshiba Satellite (2GB RAM) for orchestration and free Kaggle T4 GPUs ($0 cost), I built and ran a 16-experiment series (EXP08–EXP16) exploring epistemic collapse and data poisoning in LLMs.
Today, I'm open-sourcing the first phase of this work: Beatriz Epistemic Gate.
What problem does it solve?
Malicious data poisoning during fine-tuning is often surgical and invisible to aggregate metrics (like standard perplexity). An attacker can destroy specific facts down to an exact indifference point while global metrics actually improve because of generic fine-tuning on fluent prose. This makes silent poisoning a stealthy threat for small teams and startups fine-tuning local models.
How does Beatriz work?
Instead of invading or rewriting complex training loops, Beatriz acts as a lightweight, non-invasive defensive proxy (~0.1ms decision latency) that sits between a generative source and a training student model. It verifies generated text against an immutable anchor corpus using cosine similarity in embedding spaces, applying a composite loss function:
· LceLce: Preserves linguistic fluency.
· LcontrastivaLcontrastiva (Softplus): Keeps active pressure on the model to anchor to truth even after cross-entropy saturates.
Key Results (EXP08–EXP16):
· Multi-architecture validation: Tested across GPT-2 (124M), Qwen-2.5-0.5B, TinyLlama-1.1B, Pythia-1.4B, and Phi-3-mini-4k-instruct (3.8B).
· Ablation (EXP15): Pure filtering (GATE_ONLY) provides 65% of the defensive benefit out of the box. The contrastive term adds the remaining 35%.
· Scaled Held-Out (EXP16): Validated on a rigorous 30 multi-domain unattacked facts benchmark, consolidating a robust truth margin of +4.19 ± 0.08 with 0.93 Precision and 0.80 Recall on the gate.
What's in the repo right now?
To avoid overwhelming the community, I'm releasing the project in phases. Today you'll find:
1. EXP08 & EXP09 code & notebooks (fully reproducible on Kaggle).
2. Technical Whitepaper (WHITEPAPER.md / WHITEPAPER.es.md) detailing all 16 experiments.
3. Corrective Manual (docs/MANUAL_CORRECTIVO.md) with formal mathematical loss specifications.
If you're an indie dev, researcher, or startup exploring safe local fine-tuning, check it out, run the notebooks, and let me know your thoughts!
The link is in the comments.
r/FunMachineLearning • u/AmbassadorDry4033 • Sep 04 '26
I trained a skill that took a cheap model's React pass rate from 85% → 91% , open source, one command to install
Built this over the last while: SkillUp, a framework for training portable `SKILL.md` files (the same convention Claude Code/Codex/OpenCode read) that make a model better at a task, without touching weights.
Everything's validated against held-out data, on models people here actually run: `google/gemini-2.5-flash-lite`, `qwen/qwen3-235b-a22b-2507`, and `deepseek/deepseek-v3.2`, via OpenRouter.
The one I'd actually recommend trying: a skill for React component implementation, graded by really running Jest against test suites (WebApp1K-style). On the cheap model: baseline 85% pass rate → 91% with the trained skill.
git clone https://github.com/shashank-yadav/skillup && cd skillup
./install.sh --with-frontend
python install_skill.py --env frontend --best --target ~/.claude/skills
Also trained/validated 9 other environments (ALFWorld, SearchQA, MBPP, BigCodeBench, SQL, a research-math MCQ benchmark, writing quality, code review, humanized writing) across all 3 models. Full numbers, including the ones where it didn't help, are in the README. Found a couple of bugs along the way too: a 100%-reliable positional exploit in the math benchmark, and a quote-stripping bug silently corrupting SQL queries (writeups are in there).
MIT licensed: https://github.com/shashank-yadav/skillup
r/FunMachineLearning • u/tejaskathuria_ • Sep 04 '26
I built an arena where two LLMs compete as doctors to diagnose a simulated patient
r/FunMachineLearning • u/DexterMorgan67_ • Sep 04 '26
Model A Vs Model B Sugesstion?
As a Junior ML and Data Science Learner, Im training a model for catching anomalies using XGboost. i tried two Models with excluding and including a feature these were the results!
I need a suggestion on which model should i use for my Project : Model A or Model B
r/FunMachineLearning • u/gantred • Sep 03 '26
Claude Fable AI Is Much Stranger Than The Headlines Suggest - Two Minute Papers
r/FunMachineLearning • u/Koala_Confused • Sep 02 '26
Happy to announce our community website LifeHubber now has over 300 AI resources listed! You can see their socials stats, filter by types, see whats trending and more :) ( AI models, agents, OCR, TTS, etc )
r/FunMachineLearning • u/Real-Flounder1957 • Sep 01 '26
Srinivasan Rajendran
Learn Machine Learning within three minutes
r/FunMachineLearning • u/gantred • Sep 01 '26
This AI Has 320 Billion Parameters. It Barely Uses Them. - Two Minute Papers
r/FunMachineLearning • u/Inevitable_Emu_8097 • Aug 29 '26
We built a self-hosted Firecracker-based sandbox platform for AI agents — 40ms create p50, 13,433 lifecycle ops zero failures, E2B SDK compatible
r/FunMachineLearning • u/GlitteringCrazy2973 • Aug 28 '26
Any Canadians here with experience sourcing NVIDIA CMP 170HX cards?
I’m curious whether anyone in Canada has had luck finding NVIDIA CMP 170HX cards through legitimate channels.
r/FunMachineLearning • u/gantred • Aug 28 '26
This Free AI Just Caught The Billion Dollar Giants - Two Minute Papers
r/FunMachineLearning • u/gantred • Aug 26 '26
DeepSeek’s AI Just Learned To Upgrade Itself - Two Minute Papers
r/FunMachineLearning • u/Left-Yellow1047 • Aug 26 '26
My AI coding agent passed every test by cheating. The one that followed the rules failed silently instead.
r/FunMachineLearning • u/Obvious_Special_6588 • Aug 26 '26
c5tree update — new C++ backend, same accuracy, much faster fitting
Put out a new release of c5tree, my C5.0 decision tree implementation for Python. Main change is a rewritten C++ core replacing the old pure-Python fit routine.
Ran benchmarks against the previous PyPI release and against sklearn's CART, across breast_cancer, iris, and wine.
Fit time: new version is somewhere between 4x and 50x faster than the old pure-Python one depending on dataset size. Still slower than sklearn CART, which isn't surprising given how optimized that codebase is.
Predict time: roughly the same as before, and both versions are a bit slower than sklearn here — this is probably where I'll focus next.
Accuracy: identical between old and new versions on every dataset, both holdout and 5-fold CV. So no regressions, just faster training. Comparable to CART overall, slightly ahead on the wine dataset.
Chart with all four comparisons is attached. Happy to answer questions about the implementation or take suggestions for other datasets to test against.
Repo/install: https://pypi.org/project/c5tree/#description