<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lightweight Safety Classification Using Pruned Language Models · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/2412.13435/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:27:26 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/2412.13435/feed.xml" rel="self" type="application/rss+xml" /><item><title>Lightweight Safety Classification Using Pruned Language Models — HN submission</title><link>https://news.ycombinator.com/item?id=42463943</link><guid isPermaLink="false">urn:hackerpapers:submission:2412.13435:42463943</guid><pubDate>Thu, 19 Dec 2024 17:49:07 GMT</pubDate><description>&lt;p&gt;Lightweight Safety Classification Using Pruned Language Models&lt;/p&gt;&lt;p&gt;Layer Enhanced Classification (LEC) is a novel technique that outperforms current industry leaders like GPT-4o, LlamaGuards 1 and 8B, and deBERTa v3 Prompt Injection v2 for content safety and prompt injection tasks. We prove that the intermediate hidden layers in transformers are robust feature extractors for text classification. On content safety, LEC models achieved a 0.96 F1 score vs GPT-4o&amp;#x27;s 0.82 and Llama Guard 8B&amp;#x27;s 0.71.The LEC models were able to outperform the other models with only 15 training examples for binary classification and 50 examples for multi-class classification across 66…&lt;/p&gt;&lt;p&gt;19 points; 3 discussion replies on HN. &lt;a href="https://hackerpaper.kaipfister.de/p/2412.13435/"&gt;Paper and source history&lt;/a&gt;. A submission is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item></channel></rss>
