I ran a small research project to test a practical question: how much of a frontier LLM's judgment survives when you distill it into a tiny bidirectional encoder that runs in a single forward pass on a plain CPU?
Full write-up (with dataset breakdown & notebook): https://elei.io/research/fallacy-encoder/
Live playground to test both encoders (free, no sign-in): https://didistutter.dev
The setup:
- Task: 23-label reasoning & tone classification (e.g., false dilemma, slippery slope, ad hominem, loaded wording) in one forward pass — no prompt, no chain-of-thought.
- Base encoders: mmBERT-base (307M, 8k context) and BidirLM-1.7B-Embedding (1.7B).
- Teacher: GPT-6.1 Sol giving both yes/no labels and 0–100 confidence scores.
- Independent referee: DeepSeek V4.1 Flash (never seen during training) on URL-grouped held-out sets (1,000 real web texts + 400 exam passages from 16 published fallacy datasets) so no thread or page ever leaks across train/test.
Headline numbers (Macro Average Precision):
- Exam passages (400 texts): BidirLM-1.7B hit 0.743 vs. 0.721 for the second full-size LLM
- Open web text (1,000 texts): BidirLM-1.7B hit 0.646 vs. 0.693 for the second LLM; distilled mmBERT-307M hit 0.559 (training 3.9x faster)
- Both stay quiet on ~95% of clean ordinary comments and run in 40–160ms (307M) or <0.5s (1.7B) on CPU.
Three takeaways that genuinely surprised me:
- Soft targets (0–100) crushed binary yes/no labels. On the exact same 7,673 texts, keeping the teacher's 0–100 confidence score jumped mmBERT-307M by +0.068 Macro AP on web (0.386 -> 0.454) and +0.091 on exam (0.452 -> 0.543). Near-misses teach the encoder way more than throwing away everything below threshold.
- Scaling hit a wall early. After 19,673 real web texts, adding 12,000 more mined comments OR 8,208 carefully written synthetic examples failed to clearly move Macro AP.
- Per-class threshold fitting overfit badly. Fitting 23 separate thresholds on the 501-text val set came out erratic (0.06 to 0.68) and didn't beat a single flat cut-off (0.35) on calibrated probabilities.
Main caveat: 11 of the 23 flaws show up fewer than 20 times in the 1,000-text web test, so tail-class performance is still noisy.
If you want to poke at both encoders (switch between 307M and 1.7B, or slide the thresholds live to see calibrated probabilities), the playground is up at https://didistutter.dev — curious what breaks them for you!