<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: CaoHaoWei</title>
    <description>The latest articles on DEV Community by CaoHaoWei (@caohaowei).</description>
    <link>https://dev.to/caohaowei</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4166339%2F15cc10bc-fff7-4b97-bb07-a6274e82e7cd.png</url>
      <title>DEV Community: CaoHaoWei</title>
      <link>https://dev.to/caohaowei</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/caohaowei"/>
    <language>en</language>
    <item>
      <title>Jev-LCT: Free Calibrated Confidence from Looped Transformer Trajectories</title>
      <dc:creator>CaoHaoWei</dc:creator>
      <pubDate>Tue, 06 Oct 2026 11:57:59 +0000</pubDate>
      <link>https://dev.to/caohaowei/jev-lct-free-calibrated-confidence-from-looped-transformer-trajectories-2ooo</link>
      <guid>https://dev.to/caohaowei/jev-lct-free-calibrated-confidence-from-looped-transformer-trajectories-2ooo</guid>
      <description>&lt;p&gt;Small decision models have two bad options today: generate text token-by-token (slow, fragile to parse), or "introspect" their confidence verbally (systematically miscalibrated). Jev-LCT is an open-source System-One decision engine that takes a third route — extracting calibrated probabilities directly from a transformer's internal recurrent dynamics.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Parallel Looped Prefill&lt;/strong&gt;: recurrently recomputes only the top k=2 layers of a causal transformer, preserving full representation fidelity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Endogenous Trajectory Confidence&lt;/strong&gt;: reads calibrated probabilities from hidden-state convergence dynamics (cosine delta, entropy reduction, softmax margin trajectories) — no RL, no extra generation tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Adaptive Dual-Channel Early Exit&lt;/strong&gt;: 85%+ of simple queries exit after a single loop in ~45ms; ambiguous ones iterate up to 4 loops.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Benchmarks
&lt;/h2&gt;

&lt;p&gt;Measured on an RTX 3090 Ti, across a 300-item benchmark (Banking77, ARC, TruthfulQA, BoolQ, MMLU):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Jev-LCT-Qwen2.5-0.5B — 50.8ms&lt;/li&gt;
&lt;li&gt;Jev-LCT-Qwen2.5-1.5B — 61.9ms, ~70% overall accuracy (recommended balance)&lt;/li&gt;
&lt;li&gt;Jev-LCT-Qwen3-8B — 89.2ms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's compatible with TypeSafe AI's Jev &lt;code&gt;POST /v1/systemone&lt;/code&gt; spec and ships with a FastAPI server plus a typed Python SDK. Apache 2.0, 52/52 tests passing, weights on HuggingFace. Built for agent decision-making, security routing, fraud detection, and edge robotics — anywhere you need a fast decision instead of a paragraph.&lt;/p&gt;

&lt;p&gt;I'm an independent developer — try it out, and issues are welcome: &lt;a href="https://github.com/gitchw/LCT" rel="noopener noreferrer"&gt;https://github.com/gitchw/LCT&lt;/a&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>opensource</category>
      <category>python</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
