<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Transformers | Sara Candussio</title><link>https://gaoithee.github.io/saracandussio.github.io/tags/transformers/</link><atom:link href="https://gaoithee.github.io/saracandussio.github.io/tags/transformers/index.xml" rel="self" type="application/rss+xml"/><description>Transformers</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 05 Mar 2026 00:00:00 +0000</lastBuildDate><image><url>https://gaoithee.github.io/saracandussio.github.io/media/icon_hu7729264130191091259.png</url><title>Transformers</title><link>https://gaoithee.github.io/saracandussio.github.io/tags/transformers/</link></image><item><title>Distilling Formal Logic into Neural Spaces</title><link>https://gaoithee.github.io/saracandussio.github.io/project/stlenc/</link><pubDate>Thu, 05 Mar 2026 00:00:00 +0000</pubDate><guid>https://gaoithee.github.io/saracandussio.github.io/project/stlenc/</guid><description>&lt;p>Continuous neural representations of STL specifications via kernel distillation. Accepted at &lt;strong>NeSy 2026&lt;/strong>.&lt;/p></description></item><item><title>Distilling Formal Logic into Neural Spaces: A Kernel Alignment Approach for Signal Temporal Logic</title><link>https://gaoithee.github.io/saracandussio.github.io/publication/distilling-formal-logic/</link><pubDate>Thu, 05 Mar 2026 00:00:00 +0000</pubDate><guid>https://gaoithee.github.io/saracandussio.github.io/publication/distilling-formal-logic/</guid><description>&lt;p>Accepted at &lt;strong>NeSy 2026&lt;/strong> as an oral presentation 🎉&lt;/p>
&lt;h2 id="the-idea">The Idea&lt;/h2>
&lt;p>Typical knowledge distillation compresses a big neural model into a smaller one. We do something different: our &amp;ldquo;expert&amp;rdquo; isn&amp;rsquo;t a neural network at all — it&amp;rsquo;s a &lt;strong>mathematical kernel built on top of formal logic&lt;/strong>.&lt;/p>
&lt;p>This kernel is provably correct: it captures the true meaning of logical formulas with mathematical guarantees. The problem? It&amp;rsquo;s expensive to compute and doesn&amp;rsquo;t scale.&lt;/p>
&lt;p>So instead of distilling a big neural model into a smaller neural model, we &lt;strong>distill the geometric structure&lt;/strong> (i.e. relative positions) of a symbolic kernel into a Transformer encoder. We&amp;rsquo;re not compressing parameters — we&amp;rsquo;re transferring mathematical meaning into neural space.&lt;/p>
&lt;p>Using a teacher-student setup with a kernel-weighted geometric alignment objective, we train the encoder to mirror the semantic distances defined by the symbolic kernel. Errors are penalized proportionally to their semantic discrepancy — not just their magnitude.&lt;/p>
&lt;h2 id="why-it-matters">Why It Matters&lt;/h2>
&lt;p>The result is a model that:&lt;/p>
&lt;ul>
&lt;li>runs in a &lt;strong>single forward pass&lt;/strong>&lt;/li>
&lt;li>produces &lt;strong>semantically faithful embeddings&lt;/strong> of logical formulas&lt;/li>
&lt;li>can &lt;strong>reconstruct the original formula&lt;/strong> from its embedding&lt;/li>
&lt;li>all without sacrificing the logical guarantees of the original kernel&lt;/li>
&lt;/ul>
&lt;p>This opens up scalable, trustworthy neuro-symbolic reasoning for domains where correctness and efficiency aren&amp;rsquo;t optional:&lt;/p>
&lt;ul>
&lt;li>🚗 Autonomous driving &amp;amp; robotics (real-time monitoring of safety specs)&lt;/li>
&lt;li>🏥 Healthcare (checking patient signals against clinical guidelines)&lt;/li>
&lt;li>⚙️ Cyber-physical systems (fast verification &amp;amp; control synthesis)&lt;/li>
&lt;/ul>
&lt;p>And beyond STL, this approach generalizes to &lt;strong>any domain with a meaningful but expensive similarity function&lt;/strong> — think genomic sequences, molecular graphs, or structured data where semantics matter more than surface form.&lt;/p>
&lt;p>Co-authored with &lt;a href="https://gsarti.com/" target="_blank" rel="noopener">Gabriele Sarti&lt;/a>, &lt;a href="https://scholar.google.com/citations?user=Gaia_Saveri" target="_blank" rel="noopener">Gaia Saveri&lt;/a>, and &lt;a href="https://ai-lab.units.it/?page_id=139" target="_blank" rel="noopener">Luca Bortolussi&lt;/a>.&lt;/p>
&lt;p>If you want to explore how to transfer a slow, expensive similarity function into Transformers — let&amp;rsquo;s connect!&lt;/p></description></item><item><title>Bridging Logic and Learning: Decoding Temporal Logic Embeddings via Transformers</title><link>https://gaoithee.github.io/saracandussio.github.io/publication/bridging-logic-and-learning/</link><pubDate>Thu, 10 Jul 2025 00:00:00 +0000</pubDate><guid>https://gaoithee.github.io/saracandussio.github.io/publication/bridging-logic-and-learning/</guid><description>&lt;p>This work introduces a Transformer-based decoder that inverts embeddings of Signal Temporal Logic (STL) formulae. By constructing a small STL vocabulary, the model can generate valid formulae quickly, generalize across semantic structures, and simplify formulas while preserving their meaning. Our methodology is evaluated across varying formula complexity and applied to requirement mining tasks, performing optimization directly in the semantic space.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Create your slides in Markdown - click the &lt;em>Slides&lt;/em> button to check out the example.&lt;/span>
&lt;/div>
&lt;p>Add the publication&amp;rsquo;s &lt;strong>full text&lt;/strong> or &lt;strong>supplementary notes&lt;/strong> here. You can use rich formatting such as including &lt;a href="https://docs.hugoblox.com/content/writing-markdown-latex/" target="_blank" rel="noopener">code, math, and images&lt;/a>.&lt;/p>
&lt;p>If you find overlap with your work or interests, I would be glad to connect and explore possible collaborations.&lt;/p></description></item><item><title>STLDec: Decoding Temporal Logic Embeddings via Transformers</title><link>https://gaoithee.github.io/saracandussio.github.io/project/stldec/</link><pubDate>Thu, 10 Jul 2025 00:00:00 +0000</pubDate><guid>https://gaoithee.github.io/saracandussio.github.io/project/stldec/</guid><description>&lt;p>Transformer-based decoder for inverting semantic embeddings of Signal Temporal Logic (STL) formulae. Published at &lt;strong>ECML-PKDD 2025&lt;/strong>.&lt;/p></description></item></channel></rss>