<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by aytacyapici on Medium]]></title>
        <description><![CDATA[Stories by aytacyapici on Medium]]></description>
        <link>https://medium.com/@aytacyapici?source=rss-17ab663ea0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by aytacyapici on Medium</title>
            <link>https://medium.com/@aytacyapici?source=rss-17ab663ea0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:49:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aytacyapici/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Topology-Aware Feature Engineering]]></title>
            <link>https://medium.com/@aytacyapici/topology-aware-feature-engineering-830e25a9877f?source=rss-17ab663ea0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/830e25a9877f</guid>
            <category><![CDATA[arf]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[aytacyapici]]></dc:creator>
            <pubDate>Thu, 15 Jan 2026 09:11:35 GMT</pubDate>
            <atom:updated>2026-01-15T09:11:35.014Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Using Arf Invariants in Machine Learning</strong></p><p>Feature engineering is often described as both an art and a science. While modern machine learning models are powerful, their performance still heavily depends on how input data is represented — especially when working with <strong>binary and highly imbalanced datasets</strong>.</p><p>In this article, I’d like to share a novel idea:<br> <strong>using the Arf invariant, a classical concept from algebra, as a machine learning feature.</strong></p><p>Surprisingly, this simple mathematical invariant can consistently improve model performance — without increasing model complexity.</p><p><strong>Why Feature Engineering Still Matters</strong></p><p>In many real-world problems (fraud detection, churn prediction, rare event modeling), data is:</p><p>· binary or discretized</p><p>· sparse</p><p>· highly imbalanced</p><p>A common solution is to add <strong>interaction features</strong> or <strong>polynomial expansions</strong>.<br> But these approaches come with serious drawbacks:</p><p>· exploding dimensionality</p><p>· higher overfitting risk</p><p>· heavy tuning requirements</p><p>What if we could capture <em>interaction structure</em> <strong>without explicitly enumerating interactions</strong>?</p><p><strong>A Mathematical Detour: Quadratic Forms over 𝔽₂</strong></p><p>Consider a binary feature vector:</p><p>x∈{0,1}nx \in \{0,1\}^nx∈{0,1}n</p><p>We can define a quadratic form:</p><p>q(x)=xTAx(mod2)q(x) = x^T A x \pmod 2q(x)=xTAx(mod2)</p><p>where AAA is a binary interaction matrix.</p><p>This formulation already encodes pairwise relationships between features — but instead of extracting every interaction explicitly, we ask a different question:</p><p><em>What is the global structure of this quadratic form?</em></p><p><strong>Enter the Arf Invariant</strong></p><p>The <strong>Arf invariant</strong> is a scalar quantity associated with quadratic forms over the finite field F2\mathbb{F}_2F2​.</p><p>Its most important properties:</p><p>· <strong>Basis-invariant</strong> (unchanged under linear transformations)</p><p>· <strong>Global</strong> (summarizes the entire quadratic structure)</p><p>· <strong>Extremely compact</strong> (just a single scalar)</p><p>In other words, it captures <em>how interactions behave as a whole</em>, not one by one.</p><p><strong>Why This Is <em>Not</em> an Interaction Feature</strong></p><p>This distinction is crucial.</p><p><strong>Interaction Features</strong></p><p><strong>Arf Invariant</strong></p><p>Explicit enumeration</p><p>Global summary</p><p>Dimension increases</p><p>Single scalar</p><p>Basis-dependent</p><p>Basis-invariant</p><p>High overfitting risk</p><p>Low capacity increase</p><p>The Arf invariant does <strong>not</strong> add new dimensions for each interaction.<br> Instead, it adds <strong>one topology-aware signal</strong> that reflects the structure of interactions.</p><p><strong>How It Fits into a Machine Learning Pipeline</strong></p><p>The integration is simple:</p><p>1. Choose an interaction matrix AAA</p><p>2. For each sample, compute the quadratic form</p><p>3. Compute the Arf invariant</p><p>4. Append it as <strong>one additional feature</strong></p><p>That’s it.</p><p>No model-specific tuning.<br> No architectural changes.<br> Works with:</p><p>· Logistic Regression</p><p>· Gradient Boosting</p><p>· Random Forests</p><p>· (and potentially neural networks)</p><p><strong>Does It Actually Work?</strong></p><p>Yes — consistently.</p><p>Across multiple binary, imbalanced datasets:</p><p>· <strong>PR-AUC improved</strong> across all tested models</p><p>· <strong>Lift@K increased</strong>, which is critical for ranking-based tasks</p><p>· Gains were modest but <strong>stable and reliable</strong></p><p>Most importantly:</p><p>Performance improved <strong>without increasing model complexity</strong>.</p><p><strong>Why This Matters</strong></p><p>This approach suggests something broader:</p><p><strong>Algebraic invariants can serve as robust, low-dimensional representations in machine learning.</strong></p><p>Instead of fighting combinatorial explosions, we can:</p><p>· summarize structure</p><p>· preserve invariance</p><p>· improve generalization</p><p>This idea opens the door to other invariants — and other connections between mathematics and machine learning.</p><p><strong>Final Thoughts</strong></p><p>The Arf invariant is a 1940s mathematical concept.<br> Using it as a machine learning feature is new and it is an approach I have recently developed.</p><p>Sometimes, progress doesn’t come from bigger models — but from <strong>better representations</strong>.</p><p>🔗 Academic version</p><p>This work is based on an academic paper submitted to <em>Expert Systems with Applications</em>.</p><p>If you’re interested in the theoretical details or experimental results, feel free to reach out.</p><p>#Machine Learning #Feature Engineering #Mathematics #Data Science #Binary Classification</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=830e25a9877f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>