<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Contrastive Learning on AIBussin — AI applications, systems and books</title>
		<link>https://aibussin.com/tags/contrastive-learning/</link>
		<description>Recent content in Contrastive Learning on AIBussin — AI applications, systems and books</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Mon, 07 Sep 2026 11:20:00 +0000</lastBuildDate>
		
			<atom:link href="https://aibussin.com/tags/contrastive-learning/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Hard Negatives</title>
				<link>https://aibussin.com/books/embeddings-from-first-principles/11-chapter/</link>
				<pubDate>Mon, 07 Sep 2026 11:20:00 +0000</pubDate>
				<guid>https://aibussin.com/books/embeddings-from-first-principles/11-chapter/</guid>
				<description>&lt;p&gt;&lt;em&gt;Part III — Retrieval Is an Experiment&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;same-model-four-negative-sets-four-verdicts&#34;&gt;Same model, four negative sets, four verdicts&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;em&gt;MEASURED on RELATE v0.1, Wave 1 row 1.8 — artifact &lt;code&gt;experiments/embeddings-from-first-principles/wave1/artifacts/margin-collapse.json&lt;/code&gt;. Model &lt;code&gt;all-mpnet-base-v2&lt;/code&gt;, unchanged across every row below.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;negative-selection rule                   mean margin   selected-positive win rate&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;same-domain random, up to 5 per query        0.4738              1.0000&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;in-model selector, as implemented            0.2094              0.9814&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;structured perturbations                     0.0932              0.9331&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;BM25 lexical top-5                           0.0595              0.7621&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The model did not change. The 269-query set did not change. The reference-positive rule did not change. Only the rule that picked which passages the positive had to beat changed — and the mean margin ranged from 0.4738 to 0.0595, a nearly eightfold difference between the widest and narrowest measured conditions.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Preference Rankers — Learning Which Answer Is Better</title>
				<link>https://aibussin.com/books/models-from-first-principles/09-chapter/</link>
				<pubDate>Sat, 22 Aug 2026 01:18:00 +0100</pubDate>
				<guid>https://aibussin.com/books/models-from-first-principles/09-chapter/</guid>
				<description>&lt;h1 id=&#34;preference-rankers--learning-which-answer-is-better&#34;&gt;Preference Rankers — Learning Which Answer Is Better&lt;/h1&gt;&#xA;&lt;p&gt;So far in &lt;strong&gt;Models From First Principles&lt;/strong&gt;, we have mostly trained models by telling them what the answer should be.&lt;/p&gt;&#xA;&lt;p&gt;MR.Q took a context and a response and produced a number:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;context + response&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      model&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        ↓&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      0.82&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That number might mean quality.&lt;/p&gt;&#xA;&lt;p&gt;Or usefulness.&lt;/p&gt;&#xA;&lt;p&gt;Or reward.&lt;/p&gt;&#xA;&lt;p&gt;But there is an awkward question hiding underneath that architecture:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Where did the 0.82 come from?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Everything is a Trace: Stephanie Enters Full Reflective Mode</title>
				<link>https://aibussin.com/post/trace/</link>
				<pubDate>Sun, 03 Aug 2025 22:03:10 +0100</pubDate>
				<guid>https://aibussin.com/post/trace/</guid>
				<description>&lt;h2 id=&#34;-summary&#34;&gt;🔧 Summary&lt;/h2&gt;&#xA;&lt;p&gt;In our last post, &lt;a href=&#34;https://aibussin.com/post/hrm/&#34;&gt;&lt;strong&gt;Layers of Thought: Smarter Reasoning with the Hierarchical Reasoning Model&lt;/strong&gt;&lt;/a&gt;, we introduced a new epistemic lens a way to evaluate not just final answers, but the entire sequence of reasoning steps that led to them. We realized we could apply &lt;strong&gt;this way of seeing&lt;/strong&gt; to &lt;strong&gt;every action in our system&lt;/strong&gt; not just answers, but inferences, lookups, scorings, decisions, and even model selections. This post shows how we&amp;rsquo;re doing exactly that.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
