<?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 Ben Hagag on Medium]]></title>
        <description><![CDATA[Stories by Ben Hagag on Medium]]></description>
        <link>https://medium.com/@benhagag10?source=rss-bbee2932cd77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K0kTYRG0lzPLhGgamkQsnw.png</url>
            <title>Stories by Ben Hagag on Medium</title>
            <link>https://medium.com/@benhagag10?source=rss-bbee2932cd77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:53:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@benhagag10/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[Discover What Every Neuron in the Llama Model Does]]></title>
            <link>https://medium.com/data-science/-0927524e4807?source=rss-bbee2932cd77------2</link>
            <guid isPermaLink="false">https://medium.com/p/0927524e4807</guid>
            <category><![CDATA[responsible-ai]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[fairness]]></category>
            <dc:creator><![CDATA[Ben Hagag]]></dc:creator>
            <pubDate>Fri, 25 Oct 2024 05:52:34 GMT</pubDate>
            <atom:updated>2024-10-26T04:37:35.299Z</atom:updated>
            <content:encoded><![CDATA[<h4>Transluce’s new tool is changing the game for AI transparency — a test case and some food for thought</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9n2BZZAv-kWJu-E3qgGybA.png" /><figcaption>Image by the author — caught in the act of playing with the new tool!</figcaption></figure><p><a href="https://transluce.org/">Transluce</a>, a new non-profit research lab with an inspiring mission, has just released (23.10.24) a fascinating tool that provides insights into neuron behavior in LLMs. Or in their own words:</p><blockquote>When an AI system behaves unexpectedly, we’d like to understand the “thought process” that explains why the behavior occurred. This lets us predict and fix problems with AI models , surface hidden knowledge, and uncover learned biases and spurious correlations.</blockquote><p>To fulfill their mission, they have launched an observability interface where you can input your own prompts, receive responses, and see which neurons are activated. You can then explore the activated neurons and their attribution to the model’s output, all enabled by their novel approach to automatically producing high-quality descriptions of neurons inside language models.</p><p>If you want to test the tool, go <a href="https://monitor.transluce.org/dashboard/chat">here</a>. They also offer some helpful tutorials. In this article, I will try to provide another use case and share my own experience.</p><p>There are probably many things to know (depending on your background), but I’ll focus on two key features: Activation and Attribution.</p><blockquote><strong>Activation</strong> measures the (normalized) activation value of the neuron. Llama uses gated MLPs, meaning that activations can be either positive or negative. We normalize by the value of the 10–5 quantile of the neuron across a large dataset of examples.</blockquote><blockquote><strong><em>Attribution</em></strong><em> measures how much the neuron affects the model’s output. Attribution must be conditioned on a specific output token, and is equal to the gradient of that output token’s probability with respect to the neuron’s activation, times the activation value of the neuron. Attribution values are not normalized, and are reported as absolute values.</em></blockquote><p>Using these two features you can explore the model’s behavior, the neurons behavior and even notice for patterns (or as they call it “clusters”) of neurons’ behavior phenomena.</p><p>If the model output isn’t what you expect, or if the model gets it wrong, the tool allows you to steer neurons and ‘fix’ the issue by either strengthening or suppressing concept-related neurons (There are great work on how to steer based on concepts — one of them is <a href="https://proceedings.neurips.cc/paper_files/paper/2023/hash/d066d21c619d0a78c5b557fa3291a8f4-Abstract-Conference.html">this</a> great work).</p><p>So, curious enough, I tested this with my own prompt.</p><p>I took a simple logic question that most models today fail to solve.</p><p>Q: “𝗔𝗹𝗶𝗰𝗲 𝗵𝗮𝘀 𝟰 𝗯𝗿𝗼𝘁𝗵𝗲𝗿𝘀 𝗮𝗻𝗱 𝟮 𝘀𝗶𝘀𝘁𝗲𝗿𝘀. 𝗛𝗼𝘄 𝗺𝗮𝗻𝘆 𝘀𝗶𝘀𝘁𝗲𝗿𝘀 𝗱𝗼𝗲𝘀 𝗔𝗹𝗶𝗰𝗲’𝘀 𝗯𝗿𝗼𝘁𝗵𝗲𝗿 𝗵𝗮𝘃𝗲?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYy1P09bOXz2q-QQ0oO54A.png" /><figcaption>Homepage. Image via <a href="https://monitor.transluce.org/dashboard/chat">monitor.transluce.org</a></figcaption></figure><p><strong>And voila….</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c6zf92OtAMEhpRRER5OcvA.png" /><figcaption>Llama gets it wrong. Image via <a href="https://monitor.transluce.org/dashboard/chat">monitor.transluce.org</a></figcaption></figure><p><strong>Or not.</strong></p><p>On the left side, you can see the prompt and the output. On the right side, you can see the neurons that “fire” the most and observe the main clusters these neurons group into.</p><p>If you hover over the tokens on the left, you can see the top probabilities. If you click on one of the tokens, you can find out which neurons contributed to predicting that token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Vxb_eModzJjMkT9aree6w.png" /><figcaption>Hover over “in.” We can see tokens with the top probabilities. Image via <a href="https://monitor.transluce.org/dashboard/chat">monitor.transluce.org</a></figcaption></figure><p><strong>As you can see, both the logic and the answer are wrong.</strong></p><p>“Since Alice has 4 brothers, we need to find out how many sisters they have in common” &gt;&gt;&gt; Ugh! You already know that.</p><p>And of course, if Alice has two sisters (which is given in the input), <strong>it doesn’t mean Alice’s brother has 2 sisters :(</strong></p><p>So, let’s try to fix this. After examining the neurons, I noticed that the “diversity” concept was overly active (perhaps it was confused about Alice’s identity?). So, I tried steering these neurons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3pZzqGd-ORvLouMxajBVQ.png" /><figcaption>Steering window. Image via <a href="https://monitor.transluce.org/dashboard/chat">monitor.transluce.org</a></figcaption></figure><p>I suppressed the neurons related to this concept and tried again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMuwHk8zybl7f9jzKMQYCw.png" /><figcaption>Adjusted model after steering. Image via <a href="https://monitor.transluce.org/dashboard/chat">monitor.transluce.org</a></figcaption></figure><p>As you can see, it still output wrong answer. But if you look closely at the output, the logic has changed and its seems quite better — it catches that we need to “shift” to “one of her brothers perspective”. And also, it understood that Alice is a sister (Finally!).</p><p>The final answer is though still incorrect.</p><p>I decided to strengthen the “gender roles” concept, thinking it would help the model better understand the roles of the brother and sister in this question, while maintaining its understanding of Alice’s relationship to her siblings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BgASNiqAXTovwz4YW6twA.png" /><figcaption>Another adjustment. Image via <a href="https://monitor.transluce.org/dashboard/chat">monitor.transluce.org</a></figcaption></figure><p>Ok, the answer was still incorrect, but it seemed that the reasoning thought process improved slightly. The model stated that “Alice’s 2 sisters are being referred to.” The first half of the sentence indicated some understanding (Yes, this is also in the input. And no, I’m not arguing that the model or any model can truly understand — but that’s a discussion for another time) that Alice has two sisters. It also still recognized that Alice is a sister herself (“…the brother has 2 sisters — Alice and one other sister…”). But still, the answer was wrong. So close…</p><p>Now that we’re close, I noticed an unrelated concept (“chemical compounds and reactions”) influencing the &quot;2&quot; token (highlighted in orange on the left side). I’m not sure why this concept had high influence, but I decided it was irrelevant to the question and suppressed it.</p><p>The result?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E__8qg2IcNg9JJbAkxy55g.png" /><figcaption>Final result. Image via <a href="https://monitor.transluce.org/dashboard/chat">monitor.transluce.org</a></figcaption></figure><p>Success!! (ish)</p><p>As you can see above, it finally got the answer right.</p><p>But…how was the reasoning?</p><p>well…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hAlPwy3vUiD5gSEdIP_StA.png" /><figcaption>Final output. Image via <a href="https://monitor.transluce.org/dashboard/chat">monitor.transluce.org</a></figcaption></figure><p>It followed a strange logical process with some role-playing confusion, but it still ended up with the correct answer (if you can explain it, please share).</p><p>So, after some trial and error, I got there — almost. After adjusting the neurons related to gender and chemical compounds, the model produced the correct answer, but the reasoning wasn’t quite there. I’m not sure, maybe with more tweaks and adjustments (and maybe better choices of concepts and neurons), I would get both the right answer and the correct logic. I challenge you to try.</p><p>This is still experimental and I didn’t use any systematic approach, but to be honest, I’m impressed and think it’s incredibly promising. Why? Because the ability to observe and get descriptions of every neuron, understand (even partially) their influence, and steer behavior (without retraining or prompting) in real time is impressive — and yes, also a bit addictive, so be careful!</p><p>Another thought I have: if the descriptions are accurate (reflecting actual behavior), and if we can experiment with different setups manually, why not try building a model based on neuron activations and attribution values? Transluce team, if you&#39;re reading this…what do you think?</p><p>All in all, great job. I highly recommend diving deeper into this. The ease of use and the ability to observe neuron behavior is compelling, and I believe we’ll see more tools embracing these techniques to help us better understand our models.</p><p>I’m now going to test this on some of our most challenging legal reasoning use cases — to see how it captures more complex logical structures.</p><p>What does this mean for AI? We’ll have to wait and see… but just like GPT was embraced so quickly and naturally, I think this release opens a new chapter in LLM interpretability. More importantly, it moves us closer to building tools that are better aligned and more responsible.</p><p>Now that their work is open source, it’s up to the community to challenge it, improve it, or build on it.</p><p>So, give it a try.</p><p>In the meantime, what do you think?</p><p><strong>Some limitations (very briefly):</strong></p><ul><li>The tool was just released yesterday, and I haven’t had the chance to fully review the entire documentation.</li><li>I tried simple questions successfully, but when I asked similar questions with different attributes, the logic still failed. Generalization is key here — trying to “capture” some generalization within the observability tool would take it to the next level.</li><li>It’s not always reproducible, even with low or zero temperature settings.</li><li>There is no single path to both a correct answer and logical reasoning.</li><li>It involves quite a bit of trial and error. After a few iterations, I got a “feel” for it, but it felt similar to the early days of using GPT — exciting when it worked, but often leaving you wondering, “What really happened here?” So there’s still work to be done.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0927524e4807" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/-0927524e4807">Discover What Every Neuron in the Llama Model Does</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of Responsible NLP: 15 Key Papers — 2024 Edition]]></title>
            <link>https://medium.com/@benhagag10/the-future-of-responsible-nlp-15-key-papers-from-acl-2024-55183e8f4f01?source=rss-bbee2932cd77------2</link>
            <guid isPermaLink="false">https://medium.com/p/55183e8f4f01</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[fairness-and-bias]]></category>
            <category><![CDATA[natural-language-process]]></category>
            <category><![CDATA[responsible-ai]]></category>
            <category><![CDATA[ethics-in-tech]]></category>
            <dc:creator><![CDATA[Ben Hagag]]></dc:creator>
            <pubDate>Sun, 20 Oct 2024 03:40:07 GMT</pubDate>
            <atom:updated>2024-10-20T04:17:26.270Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8dlj0iZasmP_7rxPBg92iA.png" /><figcaption>Snapped this while racing to catch a cab in Bangkok. August 2024</figcaption></figure><p>If you’re here, it’s probably because you’re interested in responsibility, fairness, and maybe you’re a computer science researcher, engineer or even a political scientist. Or, who knows — you clicked by mistake (in that case, welcome, don’t go just yet). Either way, I’m going to assume you’ve noticed the growing focus on fairness, transparency, and ethics in NLP (and pretty much everywhere these days).</p><p>A couple of months ago, I attended ACL 2024 🐘🇹🇭, and it was a perfect example of a shift (okay, no need to exaggerate, but there’s definitely more work in this space) in the community. The conference featured some groundbreaking papers on responsibility in NLP, so I&#39;ve put together this (partial) list that I think gives a solid glimpse into the current state of AI in this space.</p><p><em>Note1: I use “responsible” and “fairness” here for convenience. They seem to capture the core themes best.</em></p><p><em>Note2: For your convenience, I’ve listed all the papers with links at the end in a nice, neat little list.</em></p><p><strong>Here are my top 15 picks, each with a brief overview.</strong></p><h4><strong>Paper 1: Quantifying the Persona Effect in LLM Simulations</strong></h4><p>Subjective NLP tasks often have low inter-annotator agreement, making label aggregation tricky. Previous research shows that sociodemographic variables affect annotation. But how much variance in human annotations can persona variables explain? Can persona prompting improve LLM predictions? This paper explores exactly that and reveals interesting findings. For instance, persona variables explain less than 10% of annotation differences, and prompting with persona variables can improve LLM predictions (although moderately).</p><p>To read more, here’s the <a href="https://aclanthology.org/2024.acl-long.554.pdf">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7LM8xxy06-mV1CLbIKc8Mw.png" /></figure><h4>Paper 2: <strong>Explainability and Hate Speech: Structured Explanations Make Social Media Moderators Faster</strong></h4><p>Structured explanations significantly speed up hate speech moderation. People prefer them and make better decisions as a result. This paper is an interesting read but also a great reminder of how important it is to involve UX designers (or apply UX thinking) when working on ML-based solutions.</p><p>To read more, here’s the <a href="https://aclanthology.org/2024.acl-short.38/">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-GYyz_jfPx7qmDXXCwnzQ.png" /></figure><h4>Paper 3: <strong>Event-RaDer: Event-Driven Multi-View Learning for Multimodal Fake News Detection</strong></h4><p>Another standout! This paper not only addresses multiple modalities in fake news detection but also demonstrates how their approach remains robust in real-world scenarios, even when news is affected by noise and quality degradation. Their graph-based framework for multimodal news is appealing, with novel noise incorporation techniques. Definitely worth checking out!</p><p>To read more, here’s the <a href="https://aclanthology.org/2024.acl-long.316.pdf">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*MqT1CWcJEhOfV3OR1NaWCg.png" /></figure><h4><strong>Paper 4: On Measuring Faithfulness or Self-consistency of Natural Language Explanations</strong></h4><p>Measuring models’ reasoning capabilities is a current challenge the community is dealing with. As this work shows, most existing research focuses on consistency rather than faithfulness or sound output (i.e., faithfulness to the model’s inner workings).</p><p>They present <strong>CC-SHAP</strong>: a self-consistency measure of LLM self-explanations. The measure (unlike traditional ones) is continuous, interpretable, and combines input-output level consistency.<br>Some findings from the paper: Base LLMs are less consistent than chat models, and there is no trend between model size and self-consistency.</p><p>This paper is simply articulated — highly recommended for those interested in interpretability and reasoning.</p><p>To read more, here’s the <a href="https://aclanthology.org/2024.acl-long.329.pdf">paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJlNvCUpDmIZJ_HZWrwyuQ.png" /></figure><h4>Paper 5: Competition of Mechanisms: Tracing How Language Models Handle Facts and Counterfactuals</h4><p>Where do factual predictions originate? How is counterfactual information triggered? This paper takes a closer step toward decoding the ‘genetics’ of LLMs, offering new insights into their intrinsic decision-making processes. I’d love to see more work building on this approach, like experimenting with today’s state-of-the-art models. Anyone else exploring this space? LMK!</p><p><a href="https://aclanthology.org/2024.acl-long.458/">paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*8uzvtT7M23hUzTPlPaHOAA.png" /></figure><h4>Paper 6: Large Language Models are not Fair Evaluators</h4><p>Want to use LLMs as evaluators? There are many things to be aware of, one of them is positional bias! This paper not only shows that but also develops simple yet effective calibration mechanisms to align LLM judgments more closely with human evaluations.</p><p><a href="https://aclanthology.org/2024.acl-long.511/">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*a2uwaaa4pFm0y_ukl32EDQ.png" /></figure><h4>Paper 7: Whose Preferences? Differences in Fairness Preferences and Their Impact on the Fairness of AI Utilizing Human Feedback</h4><p>Human feedback is key to aligning LLMs with human values. But how do personal traits affect that alignment? This paper explores the role of demographic factors on fairness preferences in human annotators, raising ethical implications for AI systems. I really loved their test case with the ensemble model — building on models trained with annotations from different demographic categories can actually improve accuracy. While reading this paper, I was reminded of <a href="https://bplank.github.io/">Prof. Barbara Plank</a> keynote at ACL and the importance of diversity — not just for inclusion, but because it actually enhances model performance (I have more to say on this, but that’s for another time). Familiar with more interesting work in this space? I want to know!</p><p><a href="https://aclanthology.org/2024.acl-long.509.pdf">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*tBc8xhKCd-gb2FuUZ0djLg.png" /></figure><h4>Paper 8: Unintended impact of LLm alignment on global representation</h4><p>Another paper that emphasizes the responsibility and power developers and researchers have today When aligning LLMs, whose preferences are we aligning them to, and more importantly, whose preferences are we missing? Yes, alignment can improve model performance, but as this paper points out, it can also increase bias between groups. Read the paper to see how today’s supervised fine-tuning and preference tuning often reflect Western and American users’ preferences and opinions. To all model developers and researchers: 1. Be transparent about not only the model’s output but the entire alignment process. 2. Keep in mind that different groups — cultural and otherwise — are impacted differently by alignment. You must be aware of these potential disparities.</p><p><a href="https://aclanthology.org/2024.acl-long.853.pdf">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qudUiMtuCgJCxY2bTUxVkA.png" /></figure><h4>Paper 9: Automated Justification Production for Claim Veracity in Fact Checking: A Survey on Architectures and Approaches</h4><p>Fact-checking is an important task. But what about justification? It’s not enough to verify the truth — people need reasonable answers, and justifications are essential. This paper surveys current architectures and suggests better directions for future fact-checking… When implemented effectively, it can create a real impact.</p><p><a href="https://aclanthology.org/2024.acl-long.361/">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKW0JnX1M05Ebaq9glM1fg.png" /></figure><h4>Paper 10: GPT is Not an Annotator: The Necessity of Human Annotation in Fairness Benchmark Construction</h4><p>LLMs perform poorly at developing fairness benchmarks, and human annotations are still crucial. Thinking of using LLMs to verify fairness? Think again — or better yet, read this paper. Bonus: It introduces (possibly the first-ever?) community-sourced benchmark dataset to measure bias against Jewish people in LLMs.</p><p><a href="https://aclanthology.org/2024.acl-long.760/">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8bNFjLoDuKohXw4OCqU9g.png" /></figure><h4>Paper 11: Disinformation Capabilities of Large Language Models</h4><p>Another paper that emphasizes just how much work we still have to do. Through comprehensive experiments with the top ten LLMs, the researchers asked: How well can LLMs generate disinformation? How easily do they agree with false narratives? And how effective are their safety measures? On the optimistic side, GPT-4 was found to be useful for evaluating these models — supporting the growing trend of using LLMs for evaluation (but with caution!). Check out this paper to see their approach and the interesting results.</p><p><a href="https://aclanthology.org/2024.acl-long.793.pdf">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXKgnZePuTzNR4w2nFvwSg.png" /></figure><h4>Paper 12: Instructed to Bias: Instruction-Tuned Language Models Exhibit Emergent Cognitive Bias</h4><p>What’s the impact of instruction tuning and RLHF on cognitive biases in LMs? In this paper (plus dataset), they show that few-shot learning doesn’t affect bias scores, but larger models tend to exhibit more bias (which aligns with other works in this thread). If you’re looking to understand bias better and how to evaluate it, I highly recommend reading this paper.</p><p><a href="https://aclanthology.org/2024.tacl-1.43.pdf">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*q-LeAvI9TEOkJWYiaB-IxQ.png" /></figure><h4>Paper 13: RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Models</h4><p>LLMs hallucinate (some less, some more — that’s just how they work). RAG can help mitigate these hallucinations by providing updated, relevant knowledge. But how do you detect hallucinations in RAG settings? What datasets or resources can you use? This paper offers some great answers, introducing the RAGTruth corpus with empirical benchmarks and competitive results.</p><p><a href="https://aclanthology.org/2024.acl-long.585/">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*BLt4-Mb0ZT7h6qRi_1UKOQ.png" /></figure><h4>Paper 14: CHECKWHY: Causal Fact Verification via Argument Structure</h4><p>Today’s models often fall short in robust reasoning. A new dataset introduces a fresh angle for tackling multi-step causal reasoning in fact verification. Their goal was to create a challenging benchmark that could lead to more robust fact-checking systems. Worth checking out!</p><p><a href="https://aclanthology.org/2024.acl-long.835.pdf">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ViOoIp1HyoY3Y7FXS-7k-A.png" /></figure><h4>Paper 15: Bias and Fairness in Large Language Models: A Survey</h4><p>How can we not end with a survey? This paper nails a structured framework for understanding bias and fairness in LLMs, with key taxonomies for evaluation/mitigation. One standout work they reference is by <a href="https://orgadhadas.github.io/">Orgad Hadas</a> and <a href="https://belinkov.com/">Belinkov Yonatan</a> on best practices for stabilizing (gender-bias) metrics [<a href="https://aclanthology.org/2022.gebnlp-1.17.pdf">paper link</a>]. Highly recommend for anyone interested in LLM bias. The image below shows just one example of the depth they dive into.</p><p><a href="https://aclanthology.org/2024.cl-3.8.pdf">Paper link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Rj_WkQLJ71om6fqPfLI0Q.png" /></figure><p>That’s it for now. As I read through these papers and engage with the authors, I realize how much this aspect of model development is still in its early stages — yet incredibly promising and bold. Why bold? Because these researchers are diving into (what is perceived as) a niche area that may seem less glamorous but is critically important for the future of responsible NLP, and, as it turns out, increasingly crucial for the effectiveness and performance of NLP models in general.</p><p>If you have additional papers to suggest, want to discuss any of these works, or explore potential collaborations, I’d love it if you drop me a message on LinkedIn or email (or anywhere else).</p><p>For your convenience, here is a full list of the papers:</p><ul><li><strong>Quantifying the Persona Effect in LLM Simulations</strong><br><a href="https://aclanthology.org/2024.acl-long.554.pdf">https://aclanthology.org/2024.acl-long.554.pdf</a></li><li><strong>Explainability and Hate Speech: Structured Explanations Make Social Media Moderators Faster</strong><br>https://aclanthology.org/2024.acl-short.38.pdf</li><li><strong>Event-RaDer: Event-Driven Multi-View Learning for Multimodal Fake News Detection</strong><br><a href="https://aclanthology.org/2024.acl-long.316.pdf">https://aclanthology.org/2024.acl-long.316.pdf</a></li><li><strong>On Measuring Faithfulness or Self-consistency of Natural Language Explanations</strong><br><a href="https://aclanthology.org/2024.acl-long.329.pdf">https://aclanthology.org/2024.acl-long.329.pdf</a></li><li><strong>Competition of Mechanisms: Tracing How Language Models Handle Facts and Counterfactuals</strong><br>https://aclanthology.org/2024.acl-long.458.pdf</li><li><strong>Large Language Models are not Fair Evaluators</strong><br>https://aclanthology.org/2024.acl-long.511.pdf</li><li><strong>Whose Preferences? Differences in Fairness Preferences and Their Impact on the Fairness of AI Utilizing Human Feedback</strong><br><a href="https://aclanthology.org/2024.acl-long.509.pdf">https://aclanthology.org/2024.acl-long.509.pdf</a></li><li><strong>Unintended Impact of LLM Alignment on Global Representation</strong><br><a href="https://aclanthology.org/2024.acl-long.853.pdf">https://aclanthology.org/2024.acl-long.853.pdf</a></li><li><strong>Automated Justification Production for Claim Veracity in Fact Checking: A Survey on Architectures and Approaches</strong><br>https://aclanthology.org/2024.acl-long.361.pdf</li><li><strong>GPT is Not an Annotator: The Necessity of Human Annotation in Fairness Benchmark Construction</strong><br>https://aclanthology.org/2024.acl-long.609.pdf</li><li><strong>Disinformation Capabilities of Large Language Models</strong><br><a href="https://aclanthology.org/2024.acl-long.793.pdf">https://aclanthology.org/2024.acl-long.793.pdf</a></li><li><strong>Instructed to Bias: Instruction-Tuned Language Models Exhibit Emergent Cognitive Bias</strong><br><a href="https://aclanthology.org/2024.tacl-1.43.pdf">https://aclanthology.org/2024.tacl-1.43.pdf</a></li><li><strong>RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Models</strong><br>https://aclanthology.org/2024.acl-long.585.pdf</li><li><strong>CHECKWHY: Causal Fact Verification via Argument Structure</strong><br><a href="https://aclanthology.org/2024.acl-long.835.pdf">https://aclanthology.org/2024.acl-long.835.pdf</a></li><li><strong>Bias and Fairness in Large Language Models: A Survey</strong><br><a href="https://aclanthology.org/2024.cl-3.8.pdf">https://aclanthology.org/2024.cl-3.8.pdf</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55183e8f4f01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Road to Fairness: Ethics, AI, and the Journey Ahead]]></title>
            <link>https://medium.com/@benhagag10/the-road-to-fairness-ethics-ai-and-the-journey-ahead-2a053d919b8d?source=rss-bbee2932cd77------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a053d919b8d</guid>
            <category><![CDATA[alignment-problem]]></category>
            <category><![CDATA[ethical-ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistical-justice]]></category>
            <category><![CDATA[fairness]]></category>
            <dc:creator><![CDATA[Ben Hagag]]></dc:creator>
            <pubDate>Wed, 26 Jun 2024 05:28:32 GMT</pubDate>
            <atom:updated>2024-06-26T13:52:53.350Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lHiW1q3bp58zPnAw" /><figcaption>Helen Frankenthaler, Western Roadmap</figcaption></figure><p>In a dimly lit room in 1927, Hinton G. Clabaugh pondered the future of the parole system in Illinois. As Chairman of the Parole Board, he wanted to know if there was a way to predict which prisoners would reoffend if granted parole. His quest led him to Ernest Burgess, a sociologist at the University of Chicago, who embarked on developing one of the first statistical models to predict recidivism.</p><p>This effort marked the beginning of an era where numbers guided critical decisions in the justice system. Burgess’s model promised objectivity and fairness, a dream that seemed within reach when he optimistically documented his findings in 1951. But as the years went by, a lingering question posed by psychologist George Woodbury echoed: “Scientists were so preoccupied with whether or not they could…that they didn’t stop to think if they should.”</p><h3>When Machines Decide Fates: The COMPAS Controversy</h3><p>Fast forward to the 2000s. The COMPAS system, developed by Northpointe, became the modern torchbearer of Burgess’s legacy. Designed to predict the risk of reoffending, it was hailed as a breakthrough in empirical rigor. Judges and parole boards across the United States embraced COMPAS, believing it to be a fair and objective tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YK_QRz8kc72sEzFA" /><figcaption>Ernest Burgess. Julia Angwin</figcaption></figure><p>But in 2016, investigative journalist Julia Angwin unearthed a disturbing truth. She discovered that many states had adopted COMPAS without independent validation or proper evaluations. After analyzing thousands of COMPAS scores, she uncovered an even more disturbing truth: COMPAS discriminated against black defendants, often predicting them to be at a higher risk of reoffending than they actually were, while white defendants were underpredicted. Her findings, published in the article “<a href="https://www.propublica.org/article/machine-bias-risk-assessments-in-criminal-sentencing">Machine Bias</a>” ignited a national debate on the fairness of algorithms.</p><p>Northpointe quickly defended COMPAS in response to Angwin’s report. They published an article stating that when the correct classification statistics are used, the data does not substantiate the claim of racial bias against blacks. Northpointe emphasized that COMPAS met two essential criteria for what they call fairness: <strong>accuracy</strong> and <strong>calibration</strong>.</p><p>Northpointe chose these parameters to define fairness. But what they refer to in accuracy and calibration is very important. First, accuracy. Northpointe claimed that COMPAS was equally precise across racial groups, maintaining consistent accuracy whether for Black or White defendants. Second, calibration. This means that the risk scores assigned (from 1 to 10) held the same predictive value across racial groups.</p><p>For instance, defendants with a risk score of 7 were just as likely to reoffend, whether they were Black or White. Similarly, this held true across other scores; a 1 was a 1, a 5 was a 5, and a 10 was a 10, regardless of race.</p><p>Because COMPAS had both of these properties — equal accuracy and calibration — <strong>Northpointe argued it was essentially mathematically impossible for the tool to be biased.</strong></p><p>And Angwin didn’t argue against that. Actually, a month later, she <a href="https://www.propublica.org/article/propublica-responds-to-companys-critique-of-machine-bias-story">responded</a>. “<strong>Northpointe’s claims were true</strong>”: COMPAS was calibrated and equally accurate across both groups, predicting with 61% accuracy for Black and White defendants alike whether they would go on to reoffend and be re-arrested.</p><p>End of story, no? Wait. It’s not the end.</p><h4>Defining fairness</h4><p>Angwin pointed out that while COMPAS was accurate and calibrated (hence fair) when it got the right answer, it was not that ‘fair’ when it got things wrong.</p><p>COMPAS claimed equal accuracy for both Black and White defendants, correctly predicting reoffense 61% of the time for both groups. However, the definition of accuracy does not consider the types of errors the model makes. The model was wrong 39% of the time, and these errors varied significantly by race.</p><p>Angwin and her team highlighted that Black defendants were twice as likely to be rated as higher risk but not reoffend, while White defendants were twice as likely to be charged with new crimes after being classed as lower risk. Thus, while COMPAS was calibrated and accurate in terms of overall predictions, it still showed racial bias in its errors, leading to disproportionately negative outcomes for Black defendants.</p><blockquote>“The mathematical definition of fairness is really where the crux of the entire debate lies”</blockquote><p>Explained Cynthia Dwork, a professor at Harvard University who studies fairness in algorithms. “Different people have different ideas of what fairness means, and it’s often impossible to satisfy all of those definitions simultaneously”.</p><p>Research by Jon Kleinberg and his colleagues studying the trade-offs in risk assessment algorithms showed that no algorithm could satisfy all fairness criteria when base rates differ between groups. This principle, known as the “impossibility theorem,” illustrates the harsh truth that achieving “perfect fairness” is unachievable. <strong>According to this theory, COMPAS, and any similar algorithm, will inevitably be biased.</strong></p><p><strong>The brute mathematical fact of this impossibility also means that these problems affect not just machine-learning models of risk assessment but any means of classification, human or machine.</strong></p><p>Defining fairness is not straightforward. Different statistical measures can be applied, leading to different and even opposite conclusions. And it’s not just a machine issue — humans face it too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_VxqfKmsnTb2bg4d" /><figcaption>Courtesy of Sony</figcaption></figure><h4><strong>Beyond Definitions: The Crucial Role of Application</strong></h4><p>While the debate on how to define fairness is critical, there is an equally important question about the application of these technologies. How we use AI is just as significant as how we define its fairness.</p><p>Consider the case of Eric Loomis, where COMPAS was used to determine his prison term length, although it was originally designed just to predict reoffending risk. Even if COMPAS accurately measures recidivism risk as intended, applying it to unintended purposes raises fairness concerns. Is it fair to repurpose an algorithm designed for one specific goal for other tasks with different objectives?</p><p>Fairness isn’t just about how a model performs. It’s about understanding why we use a tool and ensuring it’s used appropriately, aligning with the original objectives of its creators.</p><p>Moreover, developing a technically sound system isn’t enough. We need to keep a close eye on how it affects real-world scenarios, make necessary adjustments, and ensure it supports our broader goals of fairness and justice. As our understanding of fairness changes, our models must adapt accordingly.</p><p>And as we explore these issues, deeper philosophical questions emerge about the very goals we aim to achieve with these tools.</p><h4>The Bigger Picture</h4><p>Even with unbiased predictive models that are implemented and adjusted correctly over time, we must ask ourselves: Is simply forecasting risk the best approach, or do we need more substantive interventions to address the root societal issues?</p><blockquote>As Bernard Harcourt aptly put it, “What is better: a world in which we can be 99% sure where a crime will occur and when, or a world in which there is simply 99% less crime?”</blockquote><p>We often fall in love with a task or a model, and when it fits well, it feels like the best solution. However, we need to constantly revisit and ask ourselves: What is the bigger goal? Are we still moving in the right direction?</p><h3>So how do we get to a fairer AI?</h3><p>The future cannot stand only for AI alone to do the work. That’s something we hopefully already know. But how do we achieve a world where we can harness the best of AI to meet our needs and make sure it is aligned with our ethical standards and societal values?</p><p>Creating an “Aligned” AI framework requires collaboration across various fields. By bringing together developers, ethicists, legal experts, policymakers, and community members, we can build AI systems that are not just technically sound but also socially conscious and attuned to diverse values.</p><p>Fairer Future: Roadmap</p><ol><li><strong>Define Clear Objectives</strong>: Today, AI is often built as a general tool without specific purposes (the current AGI trend is amplifying this). We need to challenge this approach, ensuring we understand the exact use case for AI and apply it in the right context.</li><li><strong>Promote Transparency</strong>: Clearly communicate the intended uses of AI and how it operates. Foster a culture of openness and ongoing conversation to adapt and improve AI systems continuously.</li><li><strong>Foster Integration</strong>: AI shouldn’t operate in isolation. True, impactful, and equitable change happens when we integrate AI into human processes. Make sure AI is a key part of a broader, human-centered approach, and integrate it smartly.</li><li><strong>Encourage Cross-Disciplinary Engagement:</strong> Bring together thinkers and creators from technology, ethics, law, and the public sector to drive AI development. Let’s eliminate the mindset of ‘this is not my role.’ It’s essential that everyone is equipped with a broad range of skills and tools, encouraging a common language that bridges diverse disciplines.</li></ol><p><strong>Our Ethical Mandate </strong>— AI is advancing rapidly, and I believe that’s a positive step forward. However, we have a responsibility to ensure these advancements align with our values and goals. This requires collaboration across different fields to make sure our technology embodies human values and addresses societal needs.</p><p>Just like an untitled work of art, our technological advancements are brimming with potential, waiting to be shaped with purpose and intention. This is a great moment to take a step back, think about what we really value, and guide our technology in that direction. By aligning our tech with our principles, we can build a world that’s not just more advanced, but fairer and more ethical too. Let’s make the most of this opportunity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*6xl2iqE3zZpoGujV" /><figcaption>Helen Frankenthaler, Untitled</figcaption></figure><p><strong>References:</strong></p><ol><li>Christian, B. (2020). The Alignment Problem. W.W. Norton &amp; Company.</li><li>Barocas, S., &amp; Selbst, A. D. (2016). Big Data’s Disparate Impact. <em>California Law Review, 104</em>(3), 671–732.</li><li>Burgess, E. W. (1951). <em>Parole Prediction Manual</em>. University of Chicago.</li><li><a href="https://www.researchgate.net/publication/242249206_Evaluating_the_predictive_validity_of_the_COMPAS_Risk_and_Needs_Assessment_System">Brennan, T. (2010). Evaluating COMPAS: A Multi-Jurisdictional Study on Risk Assessment and Decision-Making Processes in the Criminal Justice System. Northpointe Institute for Public Management.</a></li><li><a href="https://www.yalelawjournal.org/pdf/Mayson_p5g2tz2m.pdf">Mayson, S. G. (2019). Bias In, Bias Out. Yale Law Journal, 128.</a></li><li><a href="https://www.propublica.org/article/machine-bias-risk-assessments-in-criminal-sentencing">Angwin, J., Larson, J., Mattu, S., &amp; Kirchner, L. (2016). Machine Bias. <em>ProPublica</em>.</a></li><li><a href="https://www.propublica.org/article/propublica-responds-to-companys-critique-of-machine-bias-story">ProPublica. (2016). ProPublica Responds to Northpointe. ProPublica.</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a053d919b8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Collaborative AI Development Is Breaking Boundaries in Legal Tech]]></title>
            <link>https://medium.com/darrowai/how-collaborative-ai-development-is-breaking-boundaries-in-legal-tech-fdf7e5353faf?source=rss-bbee2932cd77------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdf7e5353faf</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ai-for-good]]></category>
            <category><![CDATA[alignment]]></category>
            <category><![CDATA[justice]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ben Hagag]]></dc:creator>
            <pubDate>Thu, 02 May 2024 13:34:32 GMT</pubDate>
            <atom:updated>2024-05-02T13:34:32.692Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ASJA1CqLrzA47GksNmnyCw.jpeg" /></figure><p>In recent years there have been incredible advancements in AI-related research. The <a href="https://2024.eacl.org/">European Charter of the Association for Computational Linguistics 2024 conference</a> (EACL), amidst the historical richness of Malta, was not just a journey through the current landscape of AI and Natural Language Processing (NLP); it was a glimpse into the future. At the conference, it became evident how the leaps in AI technology are intersecting with and boosting sectors across the board, including legal tech.</p><p>Our time at the conference went beyond introducing our latest endeavor, <a href="https://arxiv.org/abs/2402.04335">LegalLens</a> (the first ever benchmark for legal violation identification). It was about diving deep into the collective wisdom of the AI community.</p><h3>The uncharted frontiers of AI and human creativity</h3><p>During the conference, <a href="https://scholar.google.com/citations?user=qIL9dWUAAAAJ&amp;hl=en">Prof. Hinrich Schütze</a> presented a compelling perspective on the evolving role of generative AI in augmenting human creativity. He clarified that as generative AI excels in areas rich with data, it acts not as a rival but as a catalyst for human productivity, particularly in niche domains where data is scarce. This dynamic suggests a cyclical collaboration where humans explore new frontiers, thereby generating new data and knowledge domains. In turn, this new information feeds back into “the AI”, enhancing its capabilities and enabling further human exploration and creativity. Schütze articulated a future where AI and humans continually push the envelope of creativity and innovation together, highlighting the synergistic potential of this partnership. This vision champions AI as an ally in our quest to expand humanity’s knowledge and boundaries.</p><p>Professor Schütze’s perspective is true to Darrow’s belief, and thus the AI technology we have developed.<a href="https://www.darrow.ai/law-3-0-lawyering-in-the-age-of-data/"> AI in legal tech</a> does not imply the obsolescence of legal expertise, there is and always will be a place for human intelligence, empathy, advocacy, judgment, and reasoning in the justice system. Rather it marks the dawn of a new chapter. Legal professionals, empowered by AI, find themselves with the freedom to dive deeper into the realms of specialization and niche practices, enriching and advancing the field in unprecedented ways. The relationship between AI and human capability in legal tech isn’t about replacement; it’s about amplification and elevation, driving us toward a future where the synergy between human insight and artificial intelligence brings about unparalleled growth and innovation in the justice system and legal landscape.</p><h3>The ecosystem approach</h3><p>Perhaps the most compelling narrative from EACL 2024 was the unanimous call to shift from building AI monoliths (a software architecture where all components of a system are tightly integrated into a single, indivisible unit) to nurturing ecosystems, a theme brilliantly articulated in <a href="https://www.linkedin.com/in/mirella-lapata-b431513/?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=ios_app">Prof. Mirella Lapata’s</a> keynote. This approach moves us beyond the question of which Large Language Model (LLM) to use, focusing instead on how we integrate these models within a broader system to achieve the desired impact. It’s an acknowledgment that the true potential of AI lies not in the models alone but in their sophisticated integration with other components, from data structuring and prompt engineering to conversational memory, agent interactions and much more.</p><p>This ecosystem-centric view is not new, it’s akin to how data engineers leverage microservices, and how full stack developers employ a range of technologies across the stack. This method is well known for others, but not yet established for Data Scientists. There are various approaches on how to implement this, such as <a href="https://colinraffel.com/talks/simons2023build.pdf">Collin Raffle’s Build an Ecosystem, Not a Monolith</a>, and <a href="https://arxiv.org/pdf/2302.11529.pdf">Jonas Pieffer’s Modular Deep Learning</a>. However <a href="https://www.pinecone.io/learn/llm-ecosystem/">Pinecone’s insights on the LLM ecosystem</a> clearly articulates this approach, highlighting the importance of a cohesive strategy that leverages the unique strengths of each component</p><p>The resonance of this perspective was louder than ever at EACL 2024, with key papers and discussions emphasizing components complementary to LLMs and their critical role in enhancing task performance. This collective shift towards an ecosystem approach underlines a broader understanding within the AI community: impactful solutions emerge from how well we can orchestrate the symphony of available technologies, crafting systems that are far greater than the sum of their parts.</p><h3>AI as a catalyst for legal innovation</h3><p>At EACL 2024 Darrow was honored to not only participate but also contribute to the ongoing conversations around the latest and groundbreaking papers and advancements in AI. The potential of artificial intelligence to revolutionize industries, streamline processes, solve complex problems, and enhance our daily lives is undeniable. At Darrow, we strongly believe in AI for good. Our guiding vision of “frictionless justice,” a world where people can trust that every legal violation is swiftly discovered, precisely valued, and efficiently resolved — requires collaboration across disciplines. Sharing our findings alongside our data and code helps to achieve that. This is driven by our belief that making a significant impact in this niche yet critical domain requires us to not only broaden understanding but also clearly articulate why what we do is impactful, challenging, and fundamentally important, and encourage more people to join our journey.</p><p>Reflecting on the myriad discussions and presentations at EACL 2024, it’s clear that the future of AI, especially in sectors as critical as legal tech, lies in fostering a collaborative partnership between technology and human expertise. The insights shared by Prof. Schütze and Prof. Lapata offer both a vision and a challenge: to build AI systems that respect and augment human creativity and expertise.</p><p>Inspired by the conference’s visionary work and pioneering ideas, our commitment is stronger than ever. We’re on a quest to discover how AI and legal expertise can synergize, pushing towards a future where technology and human ingenuity meld to open up new realms of possibility. The road ahead is undoubtedly challenging, but it’s also ripe with opportunities for breakthroughs and transformative changes. Together, we’re mapping out an AI-enhanced future, where collaboration, creativity, and a human-centric approach lead the way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdf7e5353faf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/darrowai/how-collaborative-ai-development-is-breaking-boundaries-in-legal-tech-fdf7e5353faf">How Collaborative AI Development Is Breaking Boundaries in Legal Tech</a> was originally published in <a href="https://medium.com/darrowai">DarrowAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>