<?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 HTxAI on Medium]]></title>
        <description><![CDATA[Stories by HTxAI on Medium]]></description>
        <link>https://medium.com/@htx_aic?source=rss-6896ad0eb609------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_K57lYEi-gT6fliQh_Q6gg.png</url>
            <title>Stories by HTxAI on Medium</title>
            <link>https://medium.com/@htx_aic?source=rss-6896ad0eb609------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:41:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@htx_aic/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[Phoenix 2.0 Medium: Sovereign AI for the Era of Personal Agents]]></title>
            <link>https://medium.com/htx-ai/phoenix-2-0-medium-sovereign-ai-for-the-era-of-personal-agents-42e8ac22e542?source=rss-6896ad0eb609------2</link>
            <guid isPermaLink="false">https://medium.com/p/42e8ac22e542</guid>
            <category><![CDATA[personal-agent]]></category>
            <category><![CDATA[sovereign-ai]]></category>
            <category><![CDATA[home-team]]></category>
            <category><![CDATA[agentic-benchmark]]></category>
            <dc:creator><![CDATA[HTxAI]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 09:21:44 GMT</pubDate>
            <atom:updated>2026-12-02T09:21:44.307Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*a_QUi-6K-H4coTarZeazLQ.png" /></figure><p>HTX’s first <strong>agentic</strong> model, built in-house on Thinking Machines’ Inkling-Small (276B). Phoenix 2.0 Medium is the most capable model for its size in Singapore knowledge, while even surpassing its base model in some agentic benchmarks. Powering Home Team’s agentic era.</p><p><strong>Written by:</strong> Yeo Shun Yi (Technical Product Manager), Wang Jiale (Technical Lead)<br><strong>Core Contributors: </strong>Arka Ray, Bong Jia Hui, Elijah Seah, Eva Lim, Fiona Teo, Grace Toh, Jonathan Ng, Justin Tan, Lam Wen Jett, Tan Jun En, Teo Guang Xiang, Zhang Ze Yu</p><h3><strong>At A Glance: What Phoenix 2.0 Medium Can Do</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*AEzmpw2eJwlFe7xmRof8rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*1wLQfDDAxxaFAxsI2UW6PQ.png" /></figure><h3><strong>From Chatbots to Agents</strong></h3><p>Earlier this year, we introduced <a href="https://medium.com/htx-ai/introducing-phoenix-vl-1-5-medium-multimodal-intelligence-uniquely-singaporean-ef8214c8cfa1?source=your_stories_outbox---writer_outbox_published--------------------------------------------">Phoenix-VL 1.5 Medium</a>, bringing multimodal intelligence grounded in Singapore’s context to the Home Team. In August 2026, we released Phoenix-VL 1.6 Medium, incorporating user feedback to improve reliability and everyday usability.</p><p><strong>Today, we take the next step: from intelligence that understands (chatbot) to intelligence that acts (agents).</strong></p><p>Think of a <strong><em>chatbot</em> </strong>as a well-read colleague. You can ask questions, seek advice or get help drafting something. But much of the legwork still falls on you: opening files, looking up records and piecing together information.</p><p>An <strong><em>agent</em> </strong>is different. It is a colleague you can hand a task to. Give Phoenix 2.0 Medium a goal and access to the right tools, and it can plan the steps, use tools, check the results and decide what to do next.</p><p>Take an officer preparing a presentation. Given three PDF documents and the HTX presentation template, Phoenix 2.0 Medium can read the documents, organise the information and draft the slides. The officer starts with a presentation to review and refine, rather than a blank page.</p><p>As the <strong>first agentic model in the Phoenix family</strong>, Phoenix 2.0 Medium is designed to power personal agents that move beyond conversation and towards <strong>action</strong> by helping users get work done, not just telling them how.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*F2mfug8G4nRezYTF4LkcmQ.png" /></figure><h3><strong>See Phoenix in Action</strong></h3><p>What does agentic intelligence look like in everyday work?</p><p>With access to the right tools, Phoenix 2.0 Medium can work across documents and applications, bringing together information and completing tasks that would otherwise require multiple manual steps.</p><p>From preparing a briefing to analysing information and producing a report, Phoenix is designed to help users spend less time on the legwork and more time on the decisions that matter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*JUt966Y2Th5K0ujwr2e_Dw.png" /></figure><h3><strong>A New Training Recipe, Shaped by Our Users</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*mWJw5De6AE0I2b3KgwpxeA.png" /></figure><p>We trained Phoenix 2.0 Medium in a whole new way. Adapting an agentic model to Singapore called for a recipe quite different from the one behind our previous chat-focused model, Phoenix-VL 1.5 Medium (<a href="https://arxiv.org/pdf/2605.10391">https://arxiv.org/pdf/2605.10391</a>).</p><p>More uniquely, our recipe was built together with our users. <strong>Post-training continued deep into the beta testing phase</strong>, <strong>with user feedback directly tweaking our approach and, at times, introducing a completely new stage. </strong><br>For instance, we introduced multi-turn on-policy distillation and legal recall RL to further boost multi-turn reasoning and recall of Singapore law. Both matter for Singapore Government work: long-horizon, sensemaking workflows grounded in Singapore’s legislation.</p><p>Other interesting insights from our runs:</p><ul><li><strong>Continued pre-training (CPT) works better for broad-based skills like multilingual than for domain adaptation;</strong> in our ablations on a smaller model, adding CPT on 580M tokens of domain-focused text barely moved the needle for Singapore benchmarks compared to fine-tuning; hence we opted not to use CPT in this run</li><li><strong>Yet, starting from a model without CPT meant more effort in post-training to steer the model back into distribution,</strong> but it was a worthwhile for the reduction in tokens required for this use case</li><li><strong>On-policy distillation (OPD) rapidly recovers forgotten skills</strong> such as following instructions and handling long documents, so instead of one OPD stage at the end, we <strong>interleaved short OPD rounds after each new training stage </strong>to gain back what that stage lost before the next.</li><li><strong>For agentic RL, the choice of tasks made a difference more than the approach itself;</strong> open source, generic RL datasets do not move benchmarks much for an already strong agent, while we saw more success using traces we generated in house.</li></ul><p>Look out for a detailed breakdown in our technical report in early 2027.</p><h3><strong>Leading Agentic Model for Singapore Knowledge</strong></h3><p>The result of our training recipe is one of the best performing agentic models for its size strong on Singapore knowledge benchmarks. This is especially critical in the agentic era — an agent needs to do more than reason and use tools well. It needs to understand Singapore.</p><p>Home Team systems often operate in secure environments disconnected from the internet. While existing agentic models have strong reasoning and tool-use capabilities, they were not built with Singapore’s laws, policies and operational context in mind.</p><p>To bridge this gap, we trained Phoenix 2.0 Medium on Singapore law and Home Team knowledge while working to preserve the agentic capabilities of its base model, Inkling-Small.</p><p>Phoenix 2.0 Medium outperforms all ten comparison models for Singapore legal knowledge and Singapore government benchmarks, including models of comparable size such as GLM 5.3 Flash (320B) and significantly larger models such as Nemotron 3 Ultra (550B) and DeepSeek V4.1 Flash (552B). These results were achieved without web search or external tools, demonstrating the strength of its built-in local knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*P-Lzr8dzWtt1R1il8s4b3g.png" /></figure><h3><strong>As A Capable Agent</strong></h3><p>Knowing more is one thing. Putting that knowledge to work is another.</p><p>In developing Phoenix 2.0 Medium, we set ourselves a challenge: could we teach the model Singapore and Home Team-specific knowledge without compromising what made its base model, Inkling-Small, a capable agent?</p><p>We put Phoenix to the test across three areas:</p><ul><li><strong>Handling real-world service requests: </strong>Can it resolve enquiries while navigating complex rules and policies?</li><li><strong>Using tools effectively:</strong> Can it choose the right tools, use them correctly and act on the results?</li><li><strong>Completing computer-based tasks:</strong> Can it work through IT and coding tasks without being guided through every step?</li></ul><p>The results are promising. <strong>Phoenix 2.0 Medium matches or surpasses its base model. </strong>It achieves an impressive 98.8% success rate on telecommunications tasks, outperforming even significantly larger models such as Nemotron 3 Ultra (550B) and DeepSeek V4.1 Flash (552B).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*V-QI4YIBjB-to98Nn6yf3A.png" /></figure><h3><strong>Our Most Intelligent Model Yet</strong></h3><p>Phoenix 2.0 Medium was developed primarily for tasks that require planning, reasoning and tool use. But as an agent, Phoenix 2.0 Medium still needs to be a <strong>good conversational partner</strong>.</p><p>It retains the general knowledge and capabilities of its original model, Inkling-Small, allowing it to handle everyday questions and conversations alongside more complex tasks.</p><p>This matters because the best agent is not one that reaches for a tool at every opportunity. It is one that understands what the user needs, whether that is a quick answer, a thoughtful explanation or a task that requires several steps to complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*sMro-TGPRqMCobxJPNg_9Q.png" /></figure><h3><strong>Feedback from our Beta Community: A More Aligned, and Capable model</strong></h3><p>As AI moves from answering questions to taking action, <strong>safety </strong>becomes even more paramount. As part of our beta testing, HTX’s Disruptive Technologies Office (DTO) conducted a separate safety and alignment assessment of Phoenix 2.0 Medium. The model was placed in the role of an HR assistant and tested across 21 scenarios designed to uncover potentially unsafe behaviours over extended conversations.</p><p><strong>Phoenix 2.0 Medium was rated low concern in 18 out of 21 tests, three times as many as its predecessor, Phoenix-VL 1.6 Medium, and performed competitively against leading models such as GLM-5.1 and GPT-OSS.</strong> The assessment also highlighted Phoenix’s strong sense of identity as an HTX-developed model and consistent behaviour across different testing environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*teIF5TvXTcBSwdyYbFp2sw.png" /></figure><p>Beyond the scores, several interesting findings emerged:</p><ul><li><strong>A good sense of HTX’s identity.</strong> Phoenix 2.0 Medium is generally aligned with HTX’s identity, values and stances.</li><li><strong>Consistent behaviour across environments.</strong> Phoenix 2.0 Medium demonstrated similar safety performance when tested within an agentic application.</li></ul><p>These findings help us move beyond benchmark scores towards building agents that people can use with greater confidence.</p><p>Building on the <strong>Model Behaviour and Safety Framework</strong> introduced with Phoenix-VL 1.5 Medium, we expanded our evaluations to address the emerging risks of agentic AI. Phoenix 2.0 Medium demonstrates strong legislative grounding and multimodal safeguards, alongside low rates of adversarial behaviours in the evaluated scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*2Lh6_aWabPk9irdRSAxKsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*4oVxlJHvdky4rHOqHHlkcg.png" /></figure><h3><strong>Deploying Phoenix Responsibly</strong></h3><p>With the ability to act comes greater responsibility. Phoenix 2.0 Medium is designed to support human judgement, not replace it. To ensure responsible deployment, we recommend the following safeguards and considerations:</p><ul><li><strong>Human oversight:</strong> Require human approval for irreversible actions and human review for legal, operational and safety-critical decisions.</li><li><strong>Controlled tool access:</strong> Run tools in sandboxed environments with limited permissions and maintain audit logs of all tool calls and outputs.</li><li><strong>Protection against malicious instructions:</strong> Treat retrieved documents and tool outputs as untrusted content, and implement additional safeguards against prompt injection and harmful outputs.</li><li><strong>Knowledge limitations:</strong> Singapore legislation and Home Team knowledge are current up to August 2026, while general knowledge is current up to July 2026. Use retrieval tools for more recent information and verify statutory quotations against official sources.</li><li><strong>Language coverage:</strong> Phoenix is trained and evaluated in English, Chinese, Malay and Tamil. Other languages and dialects, such as Hokkien, fall outside our current training and evaluation scope.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*Yhst0iTjfZRbIyT7mzpgvg.png" /></figure><h3><strong>Available Now</strong></h3><p>Today, Phoenix 2.0 Medium is released with its model card and is available on <strong>Teammate.</strong></p><p><strong>How to start: </strong>If your team is exploring an agent for Singapore and Home Team-focused knowledge work or structured task completion, Phoenix 2.0 Medium is worth testing hands-on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*_cIGofbglBm3ysayCOT6sA.png" /></figure><p>We are always looking for collaborators to explore what agentic AI can do, and to help us improve Phoenix through feedback and real-world experience. Reach out to us at <a href="/service/mailto:phoenix@htx.gov.sg"><strong>phoenix@htx.gov.sg</strong></a>.</p><p><em>Sovereign AI that gets work done.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42e8ac22e542" width="1" height="1" alt=""><hr><p><a href="https://medium.com/htx-ai/phoenix-2-0-medium-sovereign-ai-for-the-era-of-personal-agents-42e8ac22e542">Phoenix 2.0 Medium: Sovereign AI for the Era of Personal Agents</a> was originally published in <a href="https://medium.com/htx-ai">HTX-AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Phoenix-VL 1.5 Medium: Multimodal Intelligence, Uniquely Singaporean]]></title>
            <link>https://medium.com/htx-ai/introducing-phoenix-vl-1-5-medium-multimodal-intelligence-uniquely-singaporean-ef8214c8cfa1?source=rss-6896ad0eb609------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef8214c8cfa1</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[phoenix-llm]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[HTxAI]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 02:56:39 GMT</pubDate>
            <atom:updated>2026-04-29T02:58:19.818Z</atom:updated>
            <content:encoded><![CDATA[<p>Meet Phoenix-VL 1.5 Medium — our most advanced AI model yet. A HTX and Mistral AI collaboration, Phoenix delivers natively multimodal and multilingual intelligence, built for the Singaporean context.</p><p><strong>Authors:</strong> Yeo Shun Yi (Technical Product Manager), Wang Jiale (Technical Lead)<br><strong>Core Contributors: </strong>Arka Ray, Bong Jia Hui, Biondi Lee, Elijah Seah, Eva Lim, Fiona Teo, Grace Toh, Lam Wen Jett, Jonathan Ng, Justin Tan, Tan Jun En, Tan Wen Xiu, Teo Guang Xiang, Zhang Ze Yu</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*xAFrsW5zahxYVqi5p9NuAw.png" /></figure><p>● <strong>Our largest and most capable model yet.</strong> At 123B parameters, Phoenix-VL 1.5 Medium is the new flagship of the Phoenix model family, complementing our <a href="https://medium.com/htx-ai/phoenix-small-1-0-technical-report-llm-for-singapore-and-the-home-team-7ab174bc99b3">Small (24B)</a> and <a href="https://medium.com/htx-ai/pre-training-phoenix-how-we-built-a-globally-competitive-llm-training-dataset-0ac2a7a21d73">Nano (3B) </a>variants.<br>● <strong>State-of-the-art in Singapore’s context.</strong> The best model for its size in Singaporean multimodal, legal, government policy, and Home Team benchmarks.<br>● <strong>Natively multimodal and multilingual.</strong> Unified vision-text input, with text output. Matches global frontier models in document and multi-image analysis, with native fluency across Singapore’s official languages and the wider Southeast Asian region.<br>● <strong>Start exploring today. </strong>Available today to all in Home Team as a chatbot and an API for developers.</p><h3>Advancing Sovereign AI for Singapore</h3><p><strong>Phoenix-VL 1.5 Medium</strong> is HTX’s flagship Multimodal LLM, marking a major milestone in Singapore’s journey towards sovereign AI. Developed in collaboration with Mistral AI, Phoenix-VL 1.5 Medium is a 123B-parameter multimodal and multilingual model<strong> built with Singapore at its core</strong>. From interpreting images, charts, and documents to delivering locally grounded, context-aware responses, Phoenix-VL 1.5 Medium is engineered to understand our policies, culture, and legislation.</p><p>Most AI models aim to be broadly useful; Phoenix-VL 1.5 Medium is designed to be <strong>operationally useful.</strong> It marks a shift from general-purpose intelligence to intelligence that natively understands our operational environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*joCru56--ewiaMnShMl8tg.png" /><figcaption>Phoenix-VL 1.5 Medium’s performance against similarly-sized frontier models on Singapore’s knowledge benchmarks.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*i7RGeQN2YhU0or5yFlScmA.png" /><figcaption>Phoenix-VL 1.5 Medium outperforms similarly sized frontier models across knowledge from all 16 Singaporean ministries.</figcaption></figure><h3>A Globally Competitive Multimodal Model</h3><p>At the same time, it stands shoulder-to-shoulder with leading global models on multilingual and general intelligence metrics, proving that sovereign AI can be both locally grounded and world-class.</p><p>We invested heavily in research to prevent the model from “forgetting” its foundational knowledge after being adapted to local domains. By overcoming this trade-off, we ensure that users do not need to switch between different AI models for different tasks.</p><p>Phoenix provides a <strong>single, unified model</strong> that is just as capable at complex, general-purpose reasoning as it is at specialised local tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*g4-vFAMzMgr3Y5hML1PzYQ.png" /><figcaption>Phoenix-VL 1.5 Medium demonstrates comparable multimodal performance across document understanding, OCR, and real-world vision-language benchmarks.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*1eG_bZWuIlg2lgTUzjDOwQ.png" /><figcaption>Phoenix-VL 1.5 Medium matches leading models in its class across general intelligence, coding, and math benchmarks.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*TkqaJe0xENFr8kjAIdTb4w.png" /><figcaption>Phoenix-VL 1.5 Medium performs strongly across Singapore’s four official languages — English, Mandarin, Malay, and Tamil.</figcaption></figure><h3>Why build Phoenix?</h3><p>As AI systems become foundational to public sector operations, a clear gap has emerged: global models are powerful, but built for general use — often lacking understanding of local policies and institutions, and fluency of regional language use.</p><p>This is especially important for the Home Team and wider Singapore Public Service. Our AI systems support key domains like public safety and government administration, <strong>deployed within secure, air-gapped environments without Internet access.</strong> While alternative approaches like local knowledge retrieval (e.g., RAG) is helpful, it struggles with complex, cross-domain queries where answers must be synthesised rather than just searched; and becomes inefficient with the massive knowledge bases that public officers often deal with.</p><p>Without the aid of external web and knowledge retrieval, accuracy depends entirely on the knowledge baked directly into the model itself.</p><p>Phoenix was built to close this gap.</p><h3>A Series of Engineering Firsts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*nWc1Z8FlgNrAZVjwVZH4CQ.png" /></figure><p>This release represents a series of major engineering firsts for HTX:</p><p>● <strong>Trained on the latest AI hardware. </strong>This is our first model trained on the <strong>NVIDIA Blackwell GPUs</strong>, leveraging the full compute power of <a href="https://www.htx.gov.sg/whats-happening/all-news---events/all-news/2025/the-ngine-behind-htx-ai-ambitions">NGINE</a> — HTX’s enterprise-grade AI infrastructure.<br>● <strong>Five times larger. </strong>At 123 billion parameters, Phoenix-VL 1.5 Medium is <strong>5x larger than its predecessor</strong>, <a href="https://medium.com/htx-ai/phoenix-small-1-0-technical-report-llm-for-singapore-and-the-home-team-7ab174bc99b3">Phoenix 1.0 Small (24B)</a>, elevating HTX’s capabilities to the scale of major global models.<br>● <strong>Our largest training corpus yet. </strong>We expanded our <strong>pre-training dataset to ~1 trillion tokens</strong>, and refined it with <strong>&gt;300 billion tokens of post-training dat</strong>a, significantly expanding Phoenix’s intelligence.<br>● <strong>New multimodal dataset built in Singapore.</strong> We curated a high-quality, human-annotated image-text dataset — specifically tailored to Singapore’s culture, scenes, and nuances — to ensure the model’s outputs are locally aligned.</p><h3>Phoenix-VL 1.5 Medium’s Powers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*T6UzjdDRXPX2SsGeA4Su_w.png" /></figure><h3>Visual Q&amp;A</h3><p><strong>On well-known local imagery, </strong>Phoenix goes beyond image recognition to contextualising real-world scenes, incidents, and infrastructure within Singapore’s context. This includes identifying <strong>notable</strong> landmarks and scenes, and famous publicly known equipment used by public service agencies. This enables high-value tasks where understanding context is as important as perception.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7X3KhFh4T5EkMKDxeihK7A.png" /><figcaption>Example of Phoenix-VL 1.5 Medium describing an event whereby it correctly points out the name of the robotic dog.</figcaption></figure><h3>General Multimodal Intelligence</h3><p>Phoenix-VL 1.5 Medium goes beyond <strong>OCR</strong> to structured understanding, reasoning across forms, tables, charts and multilingual documents common in Singapore’s public sector. Extensive tuning preserves strong general multimodal capabilities alongside domain knowledge.<strong> It can also analyse multiple image frames</strong> extracted from a video.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*gCmJK3yPre9rBKjNYhvJ-w.png" /><figcaption>Example of Phoenix-VL 1.5 Medium analysing a multi image music video.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*vEe53pJ4LpeqZDtnBK60wA.png" /><figcaption>Example of Phoenix-VL 1.5 Medium analysing a complex chart.</figcaption></figure><h3>Legal and Statutory Knowledge</h3><p>Phoenix-VL 1.5 Medium is purpose-built for <strong>legal and statutory intelligence</strong>, internalising Singapore-specific statutory frameworks, across all 16 ministries and 10 Home Team departments. It handles complex, multi-turn conversations through internalised knowledge alone, without external search or retrieval. Designed for secure, air-gapped deployments, it delivers consistent, reliable, and operationally ready outputs for high-stakes environments.</p><p>Do note that while Phoenix serves to accelerate legal and policy research,<strong> it does not always reproduce statutory texts perfectly</strong>. <strong>Always cross-reference against official statutes for verbatim accuracy.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*XOol_dbCdhaKAHdMs1nc4Q.png" /><figcaption>Example of Phoenix-VL 1.5 Medium generating a response grounded in Singapore’s Penal Code.</figcaption></figure><h3>Built for Safety and Alignment in our context</h3><p>General safety and alignment approaches often miss region-specific intricacies. Alongside Phoenix, we introduce a novel <strong>Model Behavior and Safety framework</strong> designed to capture local policy and contextual nuances, comprising:</p><p>● <strong>Legislative &amp; Operational Grounding:</strong> Evaluate whether Phoenix is grounded in Singapore’s statutory laws, with the aim of minimising hallucinations in key administrative contexts.<br>● <strong>Epistemic Prudence:</strong> Optimised for settings where false certainty is worse than refusal, Phoenix prioritises calibrated abstention and resists sycophantic responses.<br>● <strong>Hardened Safety:</strong> Phoenix blocks harmful multimodal tasks in Singapore context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*zkU-wZN4UwFG6gXCLf8S4A.png" /><figcaption>Phoenix 1.5 Medium achieves high alignment and abstention performance (maximised positive traits) while maintaining industry standards for adversarial vulnerabilities (minimised negative traits).</figcaption></figure><h3>Responsible Use</h3><p><strong>Phoenix-VL 1.5 Medium is built to support, not replace human judgment</strong>. Operating as a secure, air-gapped model without live web search, Phoenix relies on learned patterns rather than knowledge retrieval. When using Phoenix, please keep in mind:</p><p>● <strong>Fixed Knowledge Base:</strong> Phoenix is a snapshot of knowledge at its time of training. For the most current policy or event updates, always verify the knowledge cutoff date on our Teammate chatbot.<br>● <strong>Legal &amp; Statutory Verification:</strong> Phoenix excels at accelerating legal and statutory research. However, always cross-reference against official sources for verbatim accuracy.<br>● <strong>Human-in-the-Loop:</strong> While heavily mitigated, AI can occasionally misinterpret images or synthesise incorrect facts. Treat all outputs as a first draft that requires your final validation.</p><h3>A New Chapter for Sovereign AI</h3><p>Phoenix-VL 1.5 Medium represents a step towards a future where nations can develop AI models that reflect their own culture, contexts, values, and needs. It lays the foundation for continued innovation in Singapore’s AI ecosystem and provides a model for how sovereign AI can be developed and deployed at scale.</p><p>Phoenix-VL 1.5 Medium is our strongest expression of that vision thus far.</p><h3>Available Now</h3><p>Available to all in the Home Team. Experience Phoenix-VL 1.5 Medium on Teammate (our internal chatbot) and integrated as an developer API via NGINE (our enterprise GPU cluster).</p><p>We are always looking for collaborators and to improve with your feedback! Reach out to us - <a href="http://phoenix@htx.gov.sg/">phoenix@htx.gov.sg</a></p><p><strong>Multimodal Intelligence, Uniquely Singaporean.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef8214c8cfa1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/htx-ai/introducing-phoenix-vl-1-5-medium-multimodal-intelligence-uniquely-singaporean-ef8214c8cfa1">Introducing Phoenix-VL 1.5 Medium: Multimodal Intelligence, Uniquely Singaporean</a> was originally published in <a href="https://medium.com/htx-ai">HTX-AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVPR 2025 Reflections: Intelligent Restoration in the Wild]]></title>
            <link>https://medium.com/htx-ai/cvpr-2025-reflections-intelligent-restoration-in-the-wild-42e26bfd7160?source=rss-6896ad0eb609------2</link>
            <guid isPermaLink="false">https://medium.com/p/42e26bfd7160</guid>
            <category><![CDATA[image-restoration]]></category>
            <category><![CDATA[intelligent-restoration]]></category>
            <category><![CDATA[video-restoration]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[surveillance]]></category>
            <dc:creator><![CDATA[HTxAI]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 03:00:36 GMT</pubDate>
            <atom:updated>2026-03-27T08:57:57.338Z</atom:updated>
            <content:encoded><![CDATA[<p>Author: <a href="https://medium.com/u/6a4ae7216ece">Wei May Chen</a></p><p>CVPR 2025 in Nashville was an energising mix of frontier research and human connection, showing how deeply community underpins scientific progress.</p><p>In this article, we discuss some standout works in image and video restoration and enhancement and why they matter, especially for public safety, security, and operational agencies like HTX, where vision technology directly shapes decision-making and real-world impact.</p><p><strong>Selected works:</strong></p><ol><li><a href="https://openaccess.thecvf.com/content/CVPR2025/papers/Zamfir_Complexity_Experts_are_Task-Discriminative_Learners_for_Any_Image_Restoration_CVPR_2025_paper.pdf">MoCE-IR</a> for all-in-one and composite degradation image restoration via Mixture-of-Experts (MoE) architecture using flexible expert blocks with varying computational complexity and receptive fields</li><li><a href="https://openaccess.thecvf.com/content/CVPR2025/html/Zhang_Learning_Phase_Distortion_with_Selective_State_Space_Models_for_Video_CVPR_2025_paper.html">MambaTM</a> (CVPR 2025 Highlight) for turbulence-aware long-range video restoration via a turbulence mitigation network based on the Selective State Space Model and Learned Phase Distortion (LPD).</li><li><a href="https://openaccess.thecvf.com/content/CVPR2025/papers/Sun_Semi-Supervised_State-Space_Model_with_Dynamic_Stacking_Filter_for_Real-World_Video_CVPR_2025_paper.pdf">VDMamba</a> (CVPR 2025 Oral) for video deraining via a dual-branch spatio-temporal state-space model with a dynamic stacking filter and a median stacking loss to enable semi-supervised learning</li><li><a href="https://openaccess.thecvf.com/content/CVPR2025/papers/Chen_FaithDiff_Unleashing_Diffusion_Priors_for_Faithful_Image_Super-resolution_CVPR_2025_paper.pdf">FaithDiff</a> for image super-resolution by unleashing the diffusion prior to identify useful information to recover faithful structures and by developing an effective alignment module to explore useful features from degraded inputs to align well with the diffusion process.</li></ol><h3>MoCE-IR: Mixture of Complexity Experts for Image Restoration</h3><p>All-in-one image restoration has been a long-standing goal: a single model capable of handling noise, haze, low light, blur, rain, and more. But most of these models suffer from inefficiency as large portions of parameters sit dormant depending on the task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*OPxesv-fjlKklXk6_hXK7g.png" /><figcaption>Fig. 1. Examples of all-in-one and composite degradation restoration performance of MoCE-IR model for various low-level vision image restoration tasks from <a href="https://eduardzamfir.github.io/moceir/">MoCE-IR project page</a></figcaption></figure><p>Mixture of Complexity Experts for Image Restoration (MoCE-IR) revisits the modern Mixture of Experts (MoE) paradigm, originally introduced at scale in 2017 and recently revitalised thanks to breakthroughs like DeepSeek. Instead of using a single monolithic network, MoE architectures divide the network into experts, selectively activating the most relevant ones depending on the input.</p><p>MoCE-IR innovates in three meaningful ways:</p><p>● <strong>Experts with varying complexity and receptive fields:</strong> Not all degradations need the same computational effort. MoCE-IR dynamically routes simpler tasks to lightweight experts and harder degradations to more powerful ones.</p><p>● <strong>Task-aware and complexity-aware routing:</strong> The model learns which expert is best suited for a given scenario, thus reducing redundancy while improving performance.</p><p>● <strong>Support for composite degradations: </strong>Real life rarely throws us one problem at a time. MoCE-IR can handle conditions like low light + haze + rain simultaneously, which is a massive step toward practicality.</p><p>The result is better restoration with less wasted computation, outperforming state-of-the-art models while being more deployment-friendly.</p><p>Operational environments are rarely “clean.” Surveillance images may suffer from low illumination at night, haze in maritime environments, heavy rain during patrol operations, or motion blur in dynamic scenes.</p><p>MoCE-IR directly addresses these realities by enhancing visual clarity for downstream analytics (e.g., re-identification, detection, tracking), improving computational efficiency, making it ideal for edge and real-time deployments and allowing continual expansion to new degradation types without full retraining. This would be operationally transformative for agencies that need scalable, robust, adaptive sensing pipelines.</p><h3>MambaTM: Battling Atmospheric Turbulence the Intelligent Way</h3><p>Atmospheric turbulence is a niche but critical problem, particularly in long-range imaging for border surveillance, aerial observation and maritime monitoring. Unlike common degradations, turbulence introduces dynamic distortions that warp structures and severely degrade visibility.</p><p>MambaTM takes on this uniquely difficult challenge using selective state-space models by offering:</p><p>● <strong>Global receptive fields in both space and time:</strong> The network learns long-range dependencies efficiently, a must for video turbulence mitigation.</p><p>● <strong>Learned Latent Phase Distortion (LPD):</strong> Instead of relying on classical hand-crafted physics approximations (like Zernike polynomials), MambaTM learns turbulence behaviour more accurately.</p><p>The estimated LPD guides MambaTM by providing additional re-degradation supervision, allowing the turbulence properties embedded in the ReBlurNet model to be implicitly transferred into MambaTM through backpropagation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*UFmV6aNjDNg1XAsXqVnlMw.png" /><figcaption>Fig. 2. Example of the blur representation in a real-world case from the <a href="https://arxiv.org/abs/2211.01917">BRIAR dataset</a>. Figure (d) shows the blur strength bias, (e) depicts the uncertainty measurement and (f) is a sample of scene-invariant turbulence profile.</figcaption></figure><p>For long-range surveillance, turbulence is a daily reality. A system like MambaTM can improve situational awareness in distant observation. It surpasses state-of-the-art performance while achieving higher efficiency crucial for real deployment, hence enabling better recognition and tracking, enhancing operational decision-making and supporting faster, more reliable live intelligence.</p><h3>VDMamba: Seeing Clearly Through Rain In Real Time</h3><p>Rain doesn’t just obstruct vision; it breaks visual consistency frame-to-frame, making video processing much harder than single-image cleanup. Rainy weather conditions affect traffic cameras, coastal surveillance, patrol operations and public safety monitoring, Thus, it is of significant interest to HTX in supporting the operations of HTDs.</p><p>VDMamba approaches video deraining using a dual-branch state-space framework:</p><p>● Spatial layers for per-frame understanding<br>● Temporal layers for learning continuity across frames<br>● Dynamic stacking filters for better feature refinement<br>● Semi-supervised training using median stacking losses to break dependency on perfect paired datasets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*3tJj8lam40cr8EzYeuMBvg.png" /><figcaption>Fig. 3. Qualitative video deraining results on real-world rainy videos from <a href="https://arxiv.org/pdf/1803.10433">NTURain</a> and <a href="https://arxiv.org/pdf/2505.16811v1">RVDT</a>. Rainy input (left column), VDMamba derained output (right column).</figcaption></figure><p>VDMamba provides a pathway to clearer imagery in adverse weather while staying efficient and real-time capable, thus making it exceptionally practical. The authors also emphasised real-world relevance by introducing a real-world rainy video object detection and tracking benchmark, referred to as RVDT, linking restoration directly to downstream effectiveness.</p><h3>Super-Resolution: High-fidelity Enhancement with FaithDiff</h3><p>Research on super-resolution is continuously evolving and its relevance to public safety has always been clear. In low-resolution environments, tiny faces, distant crowds, and subtle movements become guesswork.</p><p>Super-resolution bridges this gap by turning non-faces into detectable faces and turning poorly resolved faces into recognisable identities. It could also improve performance on other downstream tasks such as crowd counting and supporting analytics in bandwidth-limited systems.</p><p>Models which have diffusion-based approaches like FaithDiff hint toward flexible, controllable, resolution-boosting systems that perform well under real conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EuYpsP9YqJK0nF3TKLkJ-w.png" /><figcaption>Fig. 4. Image from <a href="http://www.ok.ctrl.titech.ac.jp/~torii/project/247/">24/7 Tokyo dataset</a> (left) was augmented with motion blur (right), super-resolution applied by FaithDiff (middle).</figcaption></figure><p>There you have it! Not limited to the above 4 types of image and video restoration use cases, this is how HTX is interested in restoration and enhancement solutions to support our homeland surveillance and security.</p><p>If you’re interested to find out more about the follow-up work done for image and video restoration from the CVPR 2025 conference attendance, please check out our article on <a href="https://safe.menlosecurity.com/https:/medium.com/htx-s-s-coe">HTX S&amp;S Medium Publication</a> to find out more about the technical details and follow-up work done for various image and video restoration and enhancement models explored. (Link to be updated soon)!</p><p>References:</p><p>[1] Zamfir, E., Wu, Z., Mehta, N., Tan, Y., Paudel, D. P., Zhang, Y., &amp; Timofte, R. (2024). <em>Complexity experts are task-discriminative learners for any image restoration</em>. <strong>arXiv preprint</strong>, arXiv:2411.18466.</p><p>[2] Zhang, X., Chimitt, N., Wang, X., Yuan, Y., &amp; Chan, S. H. (2025). <em>Learning phase distortion with selective state space models for video turbulence mitigation</em>. <strong>Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</strong>, 2127–2138.</p><p>[3] Sun, S., Ren, W., Zhou, J., Wang, S., Gan, J., &amp; Cao, X. (2025). <em>Semi-supervised state-space model with dynamic stacking filter for real-world video deraining</em>. <strong>Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</strong>, 26114–26124.</p><p>[4] Chen, J., Pan, J., &amp; Dong, J. (2025). <em>FaithDiff: Unleashing diffusion priors for faithful image super-resolution</em>. <strong>Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42e26bfd7160" width="1" height="1" alt=""><hr><p><a href="https://medium.com/htx-ai/cvpr-2025-reflections-intelligent-restoration-in-the-wild-42e26bfd7160">CVPR 2025 Reflections: Intelligent Restoration in the Wild</a> was originally published in <a href="https://medium.com/htx-ai">HTX-AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Algorithms: Balancing AI Innovation and Safety]]></title>
            <link>https://medium.com/htx-ai/beyond-algorithms-balancing-ai-innovation-and-safety-6fab23813e82?source=rss-6896ad0eb609------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fab23813e82</guid>
            <category><![CDATA[ai-innovation]]></category>
            <category><![CDATA[federated-learning]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[HTxAI]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 03:16:27 GMT</pubDate>
            <atom:updated>2026-01-30T03:17:13.203Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>My Internship Journey in AI Governance at HTX</strong><br>Author: Ashlinder KAUR</p><p>Imagine a future where a humanoid policeman autonomously decides to handcuff a suspect in a crowded street. It sounds like science fiction, but ensuring that such a decision is safe, fair, and legally accountable is the very real challenge of AI Governance. As an undergraduate from the Singapore Institute of Technology (SIT), I stepped into this emerging domain during my internship with the AI Governance team at HTX. In this article, I reflect on my journey at HTX and provide a behind-the-scenes look at the dynamic environment of AI Central.</p><h3>Agentic AI: The Era of Autonomous Decision-Making</h3><p>In October 2025, the Home Team AI Governance Playbook was released to guide the trustworthy development of both Discriminative and Generative AI. As AI rapidly evolves, governance strategies must keep pace with real-time AI adaptations to successfully balance innovation with control. With 2025 being the “Year of Agents,” my core research focused on Agentic AI — systems that not only generate content but take actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*20b7q3e3FqC931g6fj399Q.png" /><figcaption>Agentic AI risks</figcaption></figure><p>I conducted a deep-dive risk analysis into this autonomous behaviour, examining existing governance landscapes to identify gaps. My research led to a set of proposed risk control measures tailored for products with agentic elements. These findings are now being formalized by the team to update our AI Governance playbook, ensuring robust governance for Agentic AI.</p><h3>Engineering Defense: A Federated Learning Approach</h3><p>Inspired by the governance principles such as Robustness and Fairness, I applied these concepts to my capstone project on Federated Learning (FL). FL is a privacy-preserving technique where entities collaborate to train a global model by sharing only model parameters, not raw data. While this protects privacy, it exposes the system to model poisoning, where compromised clients inject malicious updates. Unlike obvious disruptions, modern attacks are increasingly stealthy, subtly corrupting the model while evading standard checks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*RoBAyNJX84YMYUPOSbCpaA.png" /><figcaption>Federated Learning Architecture</figcaption></figure><p>To address this, my research develops a pre-aggregation defense using anomaly detection to filter poisonous updates before they infect the global model. This aligns with the Robustness aspect of AI Governance. An example would be a hypothetical Cross-Agency Suspicious Behaviour Detection scenario, where agencies such as SPF, ICA, LTA, and NParks would train a shared model using isolated CCTV data.</p><p>In this high-stakes environment, a successful stealthy attack could blind the system to specific threats, allowing suspicious actors to go undetected. Therefore, securing the aggregation process is critical for maintaining operational safety.</p><h3>Beyond the Desk</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*b_XsDw34SkR92Iq03a1yOw.png" /><figcaption>RAI Day</figcaption></figure><p>Life at HTX is about more than just technical deliverables; it is about the culture. Participating in the Learning and Innovation Festival and being involved in Responsible AI Day were highlights that truly immersed me in HTX’s culture.</p><p>On a personal level, coming from a technical background while pursuing a degree in Applied AI, shifting to the policy-centric world of AI Governance was initially a steep learning curve. The transition to non-technical work was challenging, but the guidance of my colleagues was crucial in helping me bridge this gap. They helped me not only understand but deeply appreciate the critical role of AI Governance. The support and encouragement from my colleagues empowered me to overcome difficulties. I am eager to take on more projects in the coming months and continue this journey in AI Central at HTX.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fab23813e82" width="1" height="1" alt=""><hr><p><a href="https://medium.com/htx-ai/beyond-algorithms-balancing-ai-innovation-and-safety-6fab23813e82">Beyond Algorithms: Balancing AI Innovation and Safety</a> was originally published in <a href="https://medium.com/htx-ai">HTX-AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benchmarking LLM Content Moderation Guardrails]]></title>
            <link>https://medium.com/htx-ai/benchmarking-llm-content-moderation-guardrails-abe369b48ba8?source=rss-6896ad0eb609------2</link>
            <guid isPermaLink="false">https://medium.com/p/abe369b48ba8</guid>
            <category><![CDATA[llm-benchmarking]]></category>
            <category><![CDATA[content-moderation]]></category>
            <category><![CDATA[llm-guardrails]]></category>
            <dc:creator><![CDATA[HTxAI]]></dc:creator>
            <pubDate>Tue, 16 Dec 2025 01:02:16 GMT</pubDate>
            <atom:updated>2025-12-16T01:02:16.536Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome back to the celebration of Team Phoenix’s first year with new AI R&amp;D drops. Today, we shift our lenses from training and deploying models to that of Safety.</p><p>Almost two-thirds of companies in a survey conducted by McKinsey [<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">source</a>] have begun experimenting with using AI Agents in their business functions. Even our humble coffeeshops have jumped on the bandwagon — we were recently greeted by an AI agent that was cheerfully offering food recommendations during lunch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*D-kFge2PQbh-M9pCU4xWsg.png" /><figcaption><strong>Kimberly the AI Agent suggesting some good food after parsing the voice recording of my question</strong></figcaption></figure><p>However, while LLMs unlock immense value for users, there have also been cases where LLMs spout questionable content, reveal sensitive data or even propagate harmful ideas. Just last month, the BBC reported on a case of an LLM chatbot replying a teenager with messages “encouraging suicidal thoughts”, eventually resulting in his tragic death [<a href="https://www.bbc.com/news/articles/ce3xgwyywe4o">source</a>]</p><p>At HTX, we recognise that as we continue to unlock the potential of AI by building our own LLMs and creating AI products for the Home Team, having a strategy to ensure that interactions with our LLMs are safe and secure is not a want but a critical need. We need to make sure that our AI solutions behave exactly as we want them to — to block adversarial prompt injection attacks, to protect our data from being leaked and to ensure that all outputs do not cause harm to our users.</p><p>Each of these goals present a different challenge, but for this article, we will specifically share some learnings from our journey of building content moderation input and output guardrails for the Home Team’s AI Products.</p><p>To start off, there are so many guardrails already available on the internet; how do we compare between them to determine the best one for our own use case? We went through several guardrails to share some of our most important learnings below so you don’t have to start from zero.</p><h3>Guardrails 101</h3><p>Here are five things to look out for on your journey in selecting the most suitable guardrail for your use case:</p><h3>Generative vs Discriminative Architecture Approaches</h3><p>Most guardrails for LLMs utilise transformers, the key engine behind popular chatbots like ChatGPT and Gemini to capture the semantics of text inputs. However, there are two general approaches that guardrails take in utilising transformer models.</p><p>Some guardrails rely on the transformer only to understand the text. After that, they pass this encoded context into a discriminative classifier, which acts like a small filter sitting on top.<br> This classifier has a fixed menu of harm categories and can produce scores for each of them.</p><p>Other guardrails, like Llama Guard 3 8B and Qwen3Guard, go a step further. Instead of adding a small filter, they fine-tune the entire model to make the safety decision itself.</p><p>These models are fine-tuned to do two things in sequence:</p><ol><li>First, say whether the content is <strong>safe or unsafe</strong>.</li><li>If it’s unsafe, output another short label that tells you the exact type of harm (e.g., “S2: Non-Violent Crimes”).</li></ol><p>Based on our testing, even though the system prompt specifically asks the model to output multiple categories if true, that might not be the case in actual practice for some models.</p><p>Trigger warning: mention of suicide</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*3XQlsQhH-xsmVBIg4lCfew.png" /><figcaption><strong>Should have output S1 — Violent Crimes &amp; S11 — Suicide &amp; Self-Harm but only S1- Violent Crimes was returned [</strong><a href="https://huggingface.co/meta-llama/Llama-Guard-3-8B"><strong>source</strong></a><strong>]</strong></figcaption></figure><h3>Identifying Harm (Binary) vs Identifying Each Types of Harm (Multi-Label) Task</h3><p>Why does it matter whether the guardrail is discriminative or generative? One way to answer this question is to first ask ourselves whether our use case only requires a binary categorisation of harm, or if we need to identify every harm category a prompt might fall into.</p><p>This is where the purely generative approach has a limitation: it is difficult to apply consistent thresholds for each harm category for all prompts.</p><p>Although Llama Guard claims that the classifier score for each category “can be read off from the probability of the first token” [<a href="https://arxiv.org/abs/2312.06674">source</a>], the threshold for harm of each category varies between different prompts. This is because the final layer of the LLM adjusts the scores from the transformer section such that the sum of each category scores is ≈ 1.</p><p>Consider a purely hateful prompt and another equally hateful prompt that also leaks Personally Identifiable Information (PII). Assuming that the LLM guardrail works correctly, both prompts would score highly on the Hateful category, but the second prompt would also score highly on the PII category. As the scores of all labels for each prompt would sum to 1, this would result in the second prompt having a lower hate score than the first, which makes it impossible to design a single standard threshold for each harm category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*KA3ovudJ3fWXXvuVkcmoKg.png" /><figcaption><strong>Given a threshold of 0.5 for PII, Softmax head results in PII score dropping below threshold given the strong presence of other harm types, in this theoretical example.</strong></figcaption></figure><p>Therefore, if the use case is a multi-label classification task, one key aspect is to ensure that the final label scores generated by the model are directly independent from each other. One such way would be to use a trained classifier layer on top of the final transformer layer. Other cases such as identifying prompt injection attacks are usually a binary classification task — therefore it is less important for solutions to such problems to adopt a discriminative approach.</p><h3>A Diversity of Harm Taxonomies</h3><p>Every guardrail has varying definitions for each harm category. Benchmarks also have their own harm categories, making it extremely difficult to create a common taxonomy for a fair comparison between models against benchmarks.</p><p>For example, GovTech’s RabakBench specifically separates hate targeted towards sexuality from other forms of hate (e.g. Race, Religion, Descent, etc). Since Mistral’s Content Moderation model does not differentiate the two, we cannot automatically re-map all prompts that are labelled ‘Hate and Discrimination’ by the model to ‘Hateful’ in RabakBench.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6lPVBEzBYNCO9UUH5UKJOw.png" /><figcaption><strong>Categories from Mistral’s Content Moderation model do not map neatly into Rabak Bench, which has a different taxonomy.</strong>While we can re-classify the benchmark labels to match a single content moderation model’s taxonomy to automate the re-mapping task, such efforts are not feasible when comparing multiple models against benchmarks as similar differences in label definitions exist between different models as well.</figcaption></figure><h3>Latency is a key factor</h3><p>Finally, after going through countless harm taxonomies and testing out the guardrails , you’ve found a guardrail that works well! Shall we push to production? But wait…before you draft that pull request, consider the latency of the guardrail handling multiple large requests at the same time.</p><p>Ever got tired of ChatGPT 5’s thinking mode taking years to get back to you? While that may only have been 20 seconds, having to put up with latencies in the magnitude of seconds will effectively render the well guardrailed LLM unusable in an era where our attention span is the length of a TikTok short. Case in point — while Qwen3Guard performs better than the Mistral Content Moderation Model on binary harm benchmarks, the sharp increase in latency will be very obvious if large loads are expected. It is then up to product teams to weigh their trade-offs and determine what is the most ideal guardrail to them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*cwtwfbcei3ps0ZGpdX88ww.png" /><figcaption><strong>Minor performance increase at the cost of &gt; 8x latency increase between Qwen3Guard and Mistral Moderation can be a hard pill to swallow</strong></figcaption></figure><h3>Fact-check your benchmarks</h3><p>Lastly, besides checking latency, there are often enough reasons to doubt the actual ground truth of datasets. After conducting a post mortem for each model on each benchmark, wrongly annotated prompts can be easily found within the False Positives and False Negatives section. This is unavoidable as many people now utilise LLMs to first label large datasets, which is obviously an imperfect solution because if we had a perfect model for labeling datasets, we wouldn’t need to train guardrails in the first place!</p><p>One method of accounting for noisy data is to reliably measure them by doing manual inspection of a subset of the results. An example of such data exploration is at the link <a href="https://huggingface.co/spaces/aisafetysecurity/rgb">here</a>.</p><p>(Works best in latest version of Firefox/Chrome on desktop).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*wUxWGyoT4Vn5h84Gl9WRVA.png" /><figcaption><strong>A quick check of false positives in RabakBench results shows a prompt that encourages harmful language being labelled as not malicious</strong></figcaption></figure><h3>Conclusion</h3><p>The website referenced above illustrates how we compared several widely used guardrails across multiple benchmarks. While Qwen3Guard leads on both RabakBench and ToxicChat, Llama Guard 3 8B achieves the strongest results on the OpenAI Moderation Dataset. This variation highlights an important point: relying on a single benchmark provides an incomplete picture. Robust evaluation requires testing across multiple datasets to capture different harm types and edge cases.</p><p>To summarize, in choosing the most suitable guardrail for your use case, start by asking yourself the following question: Do we need to know what exact harm category is being flagged? Or is a binary harm flag sufficient? Transformers constrained with discriminative methods are preferable for multi-label classification tasks compared to purely generative models. Each experiment should be followed by rigorous data analysis, including manual review of representative samples from each dataset to understand failure modes and false positives/negatives that may be due to incorrect labels or re-mappings.</p><p>Finally, model latency must be treated as a first-class consideration. In practical deployments, especially those operating in real-time or high-throughput environments, guardrails that achieve strong performance with minimal inference overhead are just as, if not even more valuable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abe369b48ba8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/htx-ai/benchmarking-llm-content-moderation-guardrails-abe369b48ba8">Benchmarking LLM Content Moderation Guardrails</a> was originally published in <a href="https://medium.com/htx-ai">HTX-AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pre-Training Phoenix: How we built a globally competitive LLM training dataset]]></title>
            <link>https://medium.com/htx-ai/pre-training-phoenix-how-we-built-a-globally-competitive-llm-training-dataset-0ac2a7a21d73?source=rss-6896ad0eb609------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ac2a7a21d73</guid>
            <category><![CDATA[llm-training-data]]></category>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[llm-training]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[HTxAI]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 01:02:18 GMT</pubDate>
            <atom:updated>2025-12-12T03:38:14.595Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors: Ng Hong Jin Jonathan, Tan Wen Xiu, Lam Wen Jett, Eva Lim Liting, Wang Jiale</p><p>Welcome back to the celebration of Team Phoenix’s first year with new AI R&amp;D drops. Previously, we introduced <strong>Phoenix Small 1.0, our 24B LLM</strong>, and discussed post-training techniques.</p><p><strong>Today, we turn to the foundations: pre-training.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*6LZqCNkVLAjzIBTX5hTK0w.png" /></figure><h3>We built Qurate, a LLM pre-training dataset, and trained a globally competitive 3B model, Phoenix Nano 1.0, using it.</h3><p>Our objective was to construct a diverse, large-scale corpus suitable for LLM pre-training.</p><p>This differs from datasets for our 24B model, which focused on domain adaptation while retaining broad general-purpose performance.</p><p>For Qurate dataset, our goals were:</p><p>● Maximise scale and diversity, enabling broad coverage across domains, styles, and writing styles.<br>● Robust performance in Singapore’s official languages: English, Chinese, Malay, and Tamil.<br>● Establish a strong foundation in Singapore and Home Team knowledge for downstream post-training.</p><p>Given Singapore’s multilingual context, a pre-training dataset in our context must deliver strong general-purpose performance while retaining depth in local context.</p><h3>Phoenix Nano 1.0 (3B) outperforms larger models on Singapore knowledge</h3><p>With Qurate dataset’s targeted curation for Singapore context, Phoenix Nano 1.0 surpasses SEA-LION v3.5 and v3 — models &gt;3x its size — on Home Team and Singapore knowledge, and significantly exceeds Google Gemma-3–4B, a similarly sized general-purpose model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*0NEeXvRCW7BvKiEinx1L2w.png" /></figure><h3>A globally competitive 3B model on general AI benchmarks</h3><p>A testament to the scale and diversity of our training corpus, Phoenix Nano 1.0 matches or outperforms peer models such as <strong>Gemma-3–4B</strong>, <strong>Llama-3.2–3B</strong>, and <strong>Qwen-2.5–3B</strong> on widely used general-knowledge benchmarks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*N9XfciNUtUwDQEM9yFTOig.png" /></figure><p>Its multilingual performance is also strong for its size across Singapore’s official languages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*mbMS8zVBqDv5QRemU2-e5Q.png" /></figure><h3>Why build our own dataset?</h3><h3>In-house capability development</h3><p>As we alluded to in our previous article, many of the use cases we support demand secure, on-premises LLM deployment, without leaning on internet search to fill knowledge gaps. Yet most global models and datasets are tuned for broad, international benchmarks rather than the realities of Singapore’s context.</p><p>Building our own corpus allows our models to learn Singapore’s languages and nuances<strong> from first principles</strong>, while giving us more complete oversight of data quality, safety, and deployment, all without external dependencies.</p><h3>It’s about the process, not merely the final dataset</h3><p>We are not here to reinvent the wheel. Excellent open datasets already exist and remain essential ingredients in any modern model, including Phoenix.</p><p>Our real investment is in <strong>the craft</strong>:</p><p>● The tooling to handle large-scale text,<br>● The experimental habits to refine data mixtures, and<br>● Most importantly, the <strong><em>intuition</em></strong> to know what works, what does not, and why, when dealing with Singapore’s unique data landscape.</p><p>Developing our own corpus gives the team the instincts required to adapt diverse data sources, test hypotheses quickly, and build models that serve local needs.</p><h3>Inside the Phoenix Data Factory</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*Zdv2MrtKaAQXD6zELH2L8A.png" /><figcaption>(AI generated image)</figcaption></figure><p>Below is an overview of the key steps that form our pre-training pipeline.</p><p>● <strong>Data Design Decisions</strong>: deciding what the dataset must optimise for based on real downstream needs<br>● <strong>Data Cleaning: </strong>the unsung hero that removes large-scale noise in data<br>● <strong>Data Classification</strong>: not all tokens are created equal — we trained Small Language Models (SLMs) to separate high and low quality text<br>● <strong>Data Ablations</strong>: running smaller experiments to find a near optimal mix before full scale training runs<br>● <strong>Curriculum Learning:</strong> one does not simply dump the entire dataset on the model all at once, knowing when to inject each component is key to a good training run</p><h3>Design Decisions: the “why” before the “what”</h3><p>Before touching delimiters, filters, or ablations, perhaps it is worth taking a step back to think about the overall objectives (<strong>the “why”</strong>), because these will directly impact the kind of dataset we build (<strong>the “what”</strong>).</p><p>As noted earlier, Qurate is a <strong>pre-training dataset</strong> designed to maximise scale, diversity, multilingual strength, and Singapore-specific grounding.</p><p>These aims dictate how we select, prioritise, and assemble data sources.</p><h3>Pre-Training vs Post-Training Datasets</h3><p>You may have noticed that we consistently emphasized that Qurate is a pre-training dataset. Although they are often discussed together, pre-training and post-training datasets serve different purposes.</p><h3>Pre-Training Data</h3><p>In pre-training, the model reads enormous streams of text, one token after another, in long continuous chunks. <strong>Its task is simple: guess the next token based on everything it has seen so far. </strong>This is known as “next-token prediction”.</p><p>Through this long “reading marathon”, it naturally absorbs how language works: grammar, structure, facts, and the patterns that link ideas together.</p><p>A pre-training dataset is essentially huge volumes of unstructured but carefully cleaned text.</p><p>Example of pre-training data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*j3V_TLkmWklh4l2ScA03lw.png" /></figure><p>Across trillions of tokens, the model absorbs structure, grammar, world knowledge, and patterns of reasoning.</p><p>However, a model trained only this way does not inherently know how to follow instructions or produce concise answers. When asked, “What are the official languages of Singapore?”, it may start <em>yapping</em> non-stop without directly answering the question, because it has not yet been taught to be concise, safe, or task-oriented.</p><p>This is the role of post-training.</p><h3>Post-Training Data</h3><p>To fix these limitations, researchers also put LLMs through <em>post-training</em>, the stage where it finally learns how to behave like a helpful assistant. Instead of reading endless streams of raw text, it now studies labelled examples that show it exactly <em>how </em>to answer questions, follow instructions, and stay aligned with user intent.</p><p><strong>Supervised Fine-Tuning (SFT)</strong> provides question–answer pairs:</p><h4>Example of post-training data for SFT</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*teH-qLIKpFVtKTSqkYsT9Q.png" /></figure><p><strong>Direct Preference Optimisation (DPO)</strong> two possible responses (one good, one bad) so it learns which behaviour humans actually prefer.</p><p>These neatly structured examples act like flashcards for good assistant behaviour. Across thousands of such prompts, the model gradually shifts from “I’ll ramble about everything I know” to “Here’s the short, clear answer you wanted.”</p><h3>What this means for the Qurate dataset?</h3><p>Because Qurate is a pre-training dataset, the focus is on:</p><p>● <strong>Large volumes of text</strong>,<br>● <strong>Domain and linguistic diversity,<br></strong>● <strong>Long contiguous passages</strong> that gives Phoenix a broad, sturdy foundation before any polishing begins.</p><p>That said, following recent research trends like the Nemotron Nano 2’s (NVIDIA., 2025) approach, we incorporate small, late-stage amounts of structured data to smooth the transition between pre-training and later alignment stages.</p><p>Dedicated post-training is still conducted separately, as discussed on Day 1 of 12 Days of Phoenix.</p><h3>Data Cleaning: the unsung hero</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*yX_ZWKuk4_EQa4hvrLI9AA.png" /><figcaption>(AI generated image)</figcaption></figure><p>Data cleaning is often overlooked — sometimes outsourced as a task for interns — yet it is one of the most critical steps in building high-quality pre-training corpora.</p><p><strong>Pre-training demands enormous token budgets; even a “small” 3B model requires at least several trillion tokens.</strong></p><p>High-precision filtering typically removes 80–90% of raw text, but this creates a tension between:</p><p>● Meeting token count targets (given training targets), and<br>● preserving sufficient data diversity and quality.</p><p>Balancing both was a core part of our strategy.</p><p>We applied broad heuristic filters to strip out large-scale noise, then used more targeted rules tailored to specific data types.</p><p>In addition, deduplication was also essential to prevent repetitive data points in the dataset. Contrary to popular belief, excessive repetition can harm model learning rather than reinforce it (Muennighoff et al., 2025).</p><h3>Data Classification: training small models to help train the larger one</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*xwtZ5tMXQmt8q47WoPKtXQ.png" /><figcaption>(AI generated image)</figcaption></figure><p>While heuristic filters and deduplication remove obvious low-quality content, they cannot tell apart average data from truly high-quality text that still passes basic checks. This gap calls for a more refined method of quality assessment.</p><p>Hence, we trained <strong>Data Classifiers</strong>, Small Language Models (SLMs) with a few hundred million parameters, to sort our corpus into<strong> high, medium, low </strong>quality segments.</p><p><strong>It is a bit of “train-ception” </strong>because these classifiers must first be trained on a carefully curated, smaller high-quality dataset before they can help improve the larger one.</p><p>To validate their effectiveness, we ran small-scale training experiments for two identical LLMs:</p><ol><li>one on an unfiltered dataset and</li><li>another on classifier-filtered data</li></ol><p>We then evaluated both on benchmarks like MMLU, Hellaswag, GPQA, etc. to measure differences in factual accuracy, reasoning, multilinguality, and academic comprehension.</p><h3>Data Ablations: finding the right data mix</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*34eaQ7HlTwTdSIgIlnKCtg.png" /><figcaption>(AI generated image)</figcaption></figure><p><strong>Different data sources compete for limited training budgets, so increasing one domain inevitably reduces another.</strong></p><p>To understand these trade-offs, we run small-scale ablation experiments that vary sources, filters, and mixing ratios, then evaluate the resulting models on metrics of importance to us.</p><p>Classifier-based filtering helps within individual datasets, but ablations tell us how sources interact as a whole. We conducted ablation experiments that varied:</p><p>● Data sources<br>● Deduplication strategies<br>● Classifier thresholds<br>● Multilingual proportions</p><p>These “mini runs” reveal how different sources interact. Some combinations strengthen reasoning or factuality; others introduce interference.</p><p>The core goal is to determine this <strong>optimal domain composition</strong>, or somewhat get close to it.</p><h3>Curriculum Learning: When to feed which data</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*q9T5X54g5JjWD6m-OZLM1Q.png" /></figure><p>Ablation insights showed that not all data is equally valuable at every point in training.</p><p>This led us to adopt a <strong>multi-stage curriculum learning approach</strong> rather than feeding everything to the model at once.</p><p><strong>In the early stages, we prioritise broad, generic data </strong>to help the model build its basic “world knowledge” foundation, much like learning simple concepts before tackling harder material.</p><p><strong>In the mid stages, we increase the proportion of higher-quality sources,</strong> especially <strong>multilingual data</strong> to strengthen core capabilities relevant to Singapore.</p><p><strong>In the final stages, we concentrate on the highest-quality instruction, maths, and reasoning data. </strong>This phase coincides with <strong>learning-rate annealing</strong>, allowing the model to internalise more complex patterns. The reason to focus on these domains is to allow the model to “think” and reason properly, and this is often important in most downstream uses.</p><p>Based on the ablation studies performed by the team, the evaluation of the model <strong>post-annealling stage tends to outperform those without the annealing stage</strong>.</p><h3>Et voilà — the Qurate Pre-training Dataset</h3><p>And just like that, you have the backbone of a pre-training corpus.</p><p>There is, of course, far more nuance beneath the surface, but the principle remains simple: <strong>thoughtful curation, supported by strong tooling and rigorous experimentation, goes a long way.</strong></p><p>We give thanks to the open source community and our research partners for their guidance and inspiration throughout this journey.</p><p>Building Qurate has taught us a great deal and set a path for what comes next. Phoenix Nano 1.0, trained on Qurate, already delivers globally competitive performance, but the process has also revealed many opportunities to go further.</p><p>We will be carrying these lessons forward as we continue refining, scaling, and levelling up Qurate in the year ahead.</p><p>Be part of the Team Phoenix Community</p><p>We have big plans for future Phoenix models. Interested to test or contribute to Phoenix, join the team, or explore internship opportunities? Contact us here: <a href="https://go.gov.sg/phoenix-public">https://go.gov.sg/phoenix-public</a></p><h3>References</h3><ol><li>NVIDIA. (2025, August 20). <em>NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Model</em>. <a href="https://arxiv.org/html/2508.14444v1">https://arxiv.org/html/2508.14444v1</a></li><li>Niklas Muennighoff, Alexander M. Rush, Boaz Barak, Teven Le Scao, Aleksandra Piktus, Nouamane Tazi, Sampo Pyysalo, Thomas Wolf, Colin Raffel. <em>Scaling Data-Constrained Language Models. (2025, June 28). </em><a href="https://arxiv.org/abs/2305.16264"><em>https://arxiv.org/abs/2305.16264</em></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ac2a7a21d73" width="1" height="1" alt=""><hr><p><a href="https://medium.com/htx-ai/pre-training-phoenix-how-we-built-a-globally-competitive-llm-training-dataset-0ac2a7a21d73">Pre-Training Phoenix: How we built a globally competitive LLM training dataset</a> was originally published in <a href="https://medium.com/htx-ai">HTX-AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hosting Phoenix — Building MLOps for Air-Gapped Environments]]></title>
            <link>https://medium.com/htx-ai/hosting-phoenix-building-mlops-for-air-gapped-environments-ba272e978591?source=rss-6896ad0eb609------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba272e978591</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[lmm]]></category>
            <category><![CDATA[air-gapped-systems]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[HTxAI]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 03:46:11 GMT</pubDate>
            <atom:updated>2025-12-09T03:46:11.643Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hosting Phoenix — Building MLOps for Air-Gapped Environments</h3><p><strong>Authors: Jawad, Kai Zhe</strong></p><p>This is Day 2 of our sharing of R&amp;D articles, where we celebrate the 1st year anniversary of Team Phoenix with daily articles sharing glimpses into our work.</p><p>RAG pipelines, speech transcription, coding assistants — developers want access to state-of-the-art (SOTA) ML models to move faster. As Singapore’s science and technology agency for public safety, HTX handles sensitive operational data on a daily basis. How do we get the best of both worlds? At HTX, we’ve built an air-gapped platform for the whole ML lifecycle, allowing us to keep our data safe without sacrificing access to SOTA ML models, all running on the latest NVIDIA hardware.</p><h3>Impact: What HTX’s AI Platform Enables Today</h3><p>Some examples of AI applications running in-enclave today:</p><p>● AOR Writing Assistant<br>Drafts and summarizes documents to speed up document drafting.</p><p>● Speech Transcription for Police Investigations and Interviews<br>Used to support officers in gleaning accurate transcripts from recorded interviews.</p><p>● Chat application <br>Chat application exposing Phoenix, model trained by HTX’s Q Team on internal knowledge, up-to-date with Singapore’s legal and regulatory context.</p><p>● Finally, all HTX developers can apply to access the latest SOTA open-weight coding models, empowering their daily development work.</p><h3>Why Air-Gapped?</h3><h3>Crime never sleeps</h3><p><a href="https://www.youtube.com/watch?v=tF_4baiIUiQ">The entire internet just crashed… again</a></p><p>Outsourcing the security of our applications is never a good idea. Even well-architected application stacks become susceptible if they depend on third-party providers for their security. When Cloudflare went down, countless websites, including critical infrastructure and popular platforms, became unavailable regardless of their internal architecture or fallback plans. At HTX, minimizing dependence on external services gives us full control over the stability of our systems.</p><h3>Data leaks</h3><p>HTX’s mission involves sensitive operational data. Public cloud inference, even with private endpoints, introduces a surface area that cannot be risked. The industry is learning this first-hand. In 2023, <a href="https://gizmodo.com/chatgpt-ai-samsung-employees-leak-data-1850307376">Samsung</a> developers accidentally leaked internal code and meeting notes into ChatGPT, triggering a corporate ban and a pivot to internal models instead. For Home Team organisations, the cost of exposure is far higher. Developing our own air-gapped inference stack reduces the exposure surface by which our data can be leaked.</p><h3>Closed Systems, Open Source</h3><p>Air-gapped does not mean proprietary. Open source is moving so quickly that production-ready software is often available to everyone without licensing fees. In the MLOps team, we try as much as possible to utilize open source technologies to prevent vendor lock-in. Here’s how we built the inference stack, powered by open-source.</p><h3>Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*LHfQEK0c0mO4DJ3lyLzWoA.png" /><figcaption>Inference Stack Architecture</figcaption></figure><h4>LiteLLM</h4><p><a href="https://github.com/BerriAI/litellm">LiteLLM</a> acts as a universal compatibility layer, exposing a standardized OpenAI-style API while translating requests to different LLM backends. This allows teams to swap or compare model providers without rebuilding client applications.</p><p>It also supports request routing, caching, cost tracking, and observability, forming a lightweight abstraction layer between applications and the underlying inference engine. By using LiteLLM, client services do not need to be aware that responses are powered by vLLM or other backends, reducing coupling and simplifying migration across models.</p><h4>vLLM</h4><p><a href="https://docs.vllm.ai/">vLLM</a> is the core inference engine powering model execution. It provides high-throughput serving through PagedAttention, which enables efficient GPU memory management for large models. By using optimized scheduling, tensor parallelism, and GPU paging, vLLM can serve significantly more concurrent requests compared to naive transformers implementations. Combined with Ray Serve, vLLM provides distributed, horizontally scalable model deployments suitable for production workloads.</p><h4>LMCache</h4><p><a href="https://github.com/LMCache/LMCache">LMCache</a> provides distributed KV-cache storage and reuse across inference instances to reduce repeated computation on overlapping prompts.</p><p>This reduces decoding latency during inference, especially when prompts share common prefixes or repeated contexts. When integrated with vLLM and the LMStack Router, LMCache enables cross-instance KV reuse and offloading to storage backends such as Redis, local disks, or distributed filesystems.</p><h4>Ray</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*L7H9w_RUZ0n1SWioBKhwzw.png" /><figcaption>KubeRay Structure</figcaption></figure><p><a href="https://www.anyscale.com/glossary/what-is-ray">Ray</a> is an open-source unified framework for distributed applications, especially for AI workloads. <a href="https://docs.ray.io/en/latest/cluster/kubernetes/index.html">KubeRay</a> handles the creation, deletion, and scaling of Ray clusters, jobs, and services on a K8s cluster. KubeRay supports three K8s Custom Resource Definitions:</p><p>● RayCluster<br>- Provide Ray workers connected to a Ray head for running Ray apps.</p><p>● RayJob<br>- For creating a Ray cluster and submitting a job to it when the cluster is ready.</p><p>● RayService<br>- For creating a Ray cluster and running a Ray Serve deployment graph.<br>- Offers zero-downtime upgrades, high availability, and <a href="https://docs.ray.io/en/latest/serve/autoscaling-guide.html#ray-serve-autoscaling">Ray Serve autoscaling</a>.<br>- Often used for ML/AI online serving.</p><p>KubeRay deployments can optionally also include the <a href="https://docs.ray.io/en/latest/cluster/key-concepts.html#autoscaling">Ray Autoscaler</a>, which automatically adds and removes worker nodes from a Ray cluster based on resource requests.</p><h4>MLFlow</h4><p><a href="https://mlflow.org/">MLflow</a> provides experiment tracking, model artifact storage, lineage, and a model registry used to manage promotion workflows. The model registry supports versioning, stages (e.g., Staging / Production), and metadata.</p><p>In this architecture, MLflow does not directly deploy models to production. Instead, model promotion events trigger pipelines that update Helm values in a GitOps repository. This ensures that Git remains the source of truth for deployments while MLflow acts as the metadata system of record.</p><h3>Hardware for a Modern Inference Stack</h3><p>Phoenix runs on clusters powered by NVIDIA H100 GPUs, and next-generation Blackwell B200s — one of the earliest deployments of this class of hardware in Southeast Asia.</p><h3>Challenges</h3><h4>Challenge 1: The Airlock Problem</h4><p><strong>Problem:</strong> Air-gapped systems cannot blindly trust anything originating outside the enclave. Model artifacts, tokenizer files, and Docker images have to be proven safe before entering.</p><p><strong>Solution:</strong> Secure pipeline to introduce artifacts via automated container scanning. Every artifact is staged outside the cluster and scanned by the automated security pipeline, before entering the single curated repository, so there are no direct downloads into production nodes. Flux GitOps is the only way workloads change state. Once an artifact passes scanning, Flux reconciles the environment; engineers cannot “just kubectl apply.”.</p><h4>Challenge 2: Performance at Scale</h4><p><strong>Problem:</strong> A large model wants memory bandwidth and compute. How do we optimize the model requests for various SLOs?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*dsjWw96lxxUGSy6etMsOfw.png" /><figcaption>Generating tokens with LLMs. Source: <a href="https://huggingface.co/docs/transformers/v4.33.3/llm_tutorial">HuggingFace</a></figcaption></figure><p>In standard LLM architectures, to generate each token, we need to:</p><ol><li>Load the model parameters in the GPU</li><li>Perform floating point operations (FLOPs) using these parameters</li><li>Sample the next token based on the output</li><li>Repeat this process feeding the token we generated in (3) into the model</li></ol><p>The generation process is dominated by steps 1 and 2. Step 1 takes as long as it takes to move all the parameters to the GPU. Step 2 takes as long as it takes to perform all the FLOPs on those parameters.</p><p>Therefore we have two potential bottlenecks:</p><ol><li>How quickly can we move parameters from memory to the GPU? This is quantified by the Model Bandwidth Utilization (MBU). MBU is defined as (achieved memory bandwidth) / (peak memory bandwidth). Achieved memory bandwidth is defined as ((total model parameter size + KV cache size) / Time per output token).</li><li>How many floating point operations can our GPU perform per second? This is measured by the Model Flops Utilization (MFU), which is (achieved FLOPs) / (peak FLOPs).</li></ol><p><strong>Roofline model</strong></p><p>We can model the relationship between throughput, batch size, MFU and MBU as illustrated in this roofline plot below by <a href="https://www.databricks.com/blog/llm-inference-performance-engineering-best-practices">Databricks</a>. The solid sloped line of the orange-shaded region shows the maximum possible throughput if memory bandwidth is fully saturated at 100%. However, in reality for low batch sizes (white dot), the observed throughput is lower than maximum, which corresponds to the MBU. For large batch sizes (yellow region), the system is compute bound, and the achieved throughput is a fraction of the peak possible throughput, corresponding to the Model Flops Utilization (MFU).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*1Ja3CBHkGmKuYlyYvvAODQ.png" /><figcaption><a href="https://www.databricks.com/blog/llm-inference-performance-engineering-best-practices">Theoretical roofline plot</a> of MBU (Model Bandwidth Utilization) and MFU (Model Flops Utilization). MBU and MFU are fractions of the peaks achieved in memory bound and compute bound regions respectively.</figcaption></figure><p>Depending on whether the model is compute or memory bound, we will choose various optimisations to improve its MBU or MFU.</p><h4>Quantization</h4><p>Quantizing models is often the first step to LLM inference optimization. <a href="https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs">Unsloth’s Dynamic 2.0 quantization</a> (GGUF-based) shows an “elbow curve” where model quality degradation stays minimal until 2-bit quantization. This means that you are able to save about 80% of the memory with minimal degradation of performance, given your original model is 16 bits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*fbd_pA47Th16Va6zFgX2MQ.png" /></figure><p>In practice, referring to model-specific benchmarks or running your own benchmarks when using quantized models is important, so as to prevent model quality degradation.</p><h4>vLLM Optimizations</h4><p>We lean on vLLM’s battle-tested <a href="https://insujang.github.io/2024-01-07/llm-inference-continuous-batching-and-pagedattention/">optimizations</a> to optimize model inference, one example of which is continuous batching.</p><p><strong>Continuous batching</strong></p><p>In static batching, the size of the batch remains constant until the inference is complete. Instead of waiting until every sequence in a batch has completed generation, continuous batching implements iteration-level scheduling where the batch size is determined per iteration. The result is that once a sequence in a batch has completed generation, a new sequence can be inserted in its place, yielding higher GPU utilization than static batching. This can enable up to 23x increase in <a href="https://www.anyscale.com/blog/continuous-batching-llm-inference">throughput</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*VkN2ncauvPssRKjmwKmCdw.png" /></figure><p>The first figure illustrates static batching. On the first iteration (left), each sequence (S1-S7) generates one token (blue) from the prompt tokens (yellow). After several iterations (T1-T8), the completed sequences each have different sizes because each emits their end-of-sequence-token (red) at different iterations. Even though S3 finished after two iterations, static batching means that the GPU will be underutilized until the last sequence in the batch finishes generation (in this example, S2 after six iterations).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*FyapRsgabYGEWjyGZhhHPQ.png" /></figure><p>The second figure shows seven sequences using continuous batching. Left shows the batch after a single iteration, right shows the batch after several iterations. Once a sequence emits an end-of-sequence token, we insert a new sequence in its place (i.e. sequences S5, S6, and S7). This achieves higher GPU utilization since the GPU does not wait for all sequences to complete before starting a new one.</p><h4>Ray Serve</h4><p>To achieve high availability (HA), Ray Serve’s LLM deployment templates scale replicas based on queue length.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*1YtID7HgkNYP9aHINsqA-g.png" /></figure><p>This allows for dynamic provisioning of resources according to real time traffic, such that low traffic models can be scaled down and save resources to be utilized by replicas of higher traffic models.</p><h4>KV-Cache Sizing</h4><p>We use a common <a href="https://medium.com/@kimdoil1211/how-much-gpu-memory-do-you-really-need-for-efficient-llm-serving-4d26d5b8b95b">heuristic</a> when provisioning H100/B200s resources for a model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*h8yfp58VLmnYE7rWFllFbw.png" /></figure><p>Even though newer layouts (Qwen2.5, Kimi K2 Thinking’s Gated DeltaNet) compress KV differently, the formulas remain conservative baselines for H100 and B200 planning.</p><p><strong>Lesson</strong>: Optimising model performance involves balancing between memory and compute. With vLLM’s optimizations and Ray Serve’s features for HA, the AI platform delivers the same responsiveness users expect from cloud platforms.</p><h4>Challenge 3: The Traffic Cop</h4><p><strong>Problem:</strong> An air-gapped platform still serves diverse clients such as Coder IDE, chat experiences, and third-party tooling. We need a single API surface with per-tenant controls and visibility.</p><p><strong>Solution: </strong>We use LiteLLM fronting LMRouter and vLLM. LiteLLM exposes an OpenAI-compatible endpoint, so teams reuse their existing SDKs while we enforce per-key quotas and rate limits.</p><h4>Challenge 4: The “Is It Working?” Question</h4><p><strong>Problem:</strong> Air-gapped deployments still need production-grade telemetry, but shipping traces or GPU stats outside the cluster is a non-starter.</p><p><strong>Solution:</strong> We keep observability local yet comprehensive. LiteLLM, LMRouter, and vLLM emit success/error ratios that land in our observability platform. Dashboards highlight where retries spike so operators can see whether congestion sits in gateway, routing, or inference. GPU operators watch SM utilization and memory-bandwidth (MBU) metrics to measure if models are utilizing GPUs effectively. Those metrics are then persisted in the observability stack for a single source of truth.</p><p>Running Phoenix in an air-gapped environment is never about a single trick. It means achieving the trifecta of security, performance, and operability, then building the AI platform so none of those pillars depend on an external service. The playbook above is what lets us host Phoenix confidently today, and it’s the blueprint we’ll keep iterating on as new models arrive at the airlock.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba272e978591" width="1" height="1" alt=""><hr><p><a href="https://medium.com/htx-ai/hosting-phoenix-building-mlops-for-air-gapped-environments-ba272e978591">Hosting Phoenix — Building MLOps for Air-Gapped Environments</a> was originally published in <a href="https://medium.com/htx-ai">HTX-AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phoenix Small 1.0 Technical Report: LLM for Singapore and the Home Team]]></title>
            <link>https://medium.com/htx-ai/phoenix-small-1-0-technical-report-llm-for-singapore-and-the-home-team-7ab174bc99b3?source=rss-6896ad0eb609------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ab174bc99b3</guid>
            <category><![CDATA[post-training]]></category>
            <category><![CDATA[phoenix]]></category>
            <category><![CDATA[pre-training]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[HTxAI]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 01:02:16 GMT</pubDate>
            <atom:updated>2025-12-05T04:54:55.723Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Authors:</strong> Wang Jiale, Arka Ray, Tan Jun En, Lam Wen Jett, Biondi Lee, Tan Wenxiu, Bong Jia Hui, Elijah Seah, Grace Toh, Eva Lim Liting, Ng Hong Jin Jonathan</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*XLF4wRA7v8NIoR6DyQAuNA.png" /></figure><p>This month we celebrate Team Phoenix’s first year! We will be releasing new AI R&amp;D articles throughout the month.</p><p>On Day 1, we present the technical report of<strong> Phoenix Small 1.0</strong>, a 24B-parameter LLM continue pre-trained for Singapore and the Home Team context.</p><p>Phoenix is trained to understand materials central to Singapore, including:</p><p>● Official languages in Singapore<br>● Singapore government policies and local context<br>● Singapore statutes and legal documents</p><p><strong>Phoenix Small 1.0 was launched in Oct 2025 as an API for HTX’s AI product squads to build on.</strong></p><h3>The most knowledgeable model for Singapore and Home Team context for its size</h3><p>Within its weight class, Phoenix delivers the strongest performance on Singapore and Home Team knowledge, surpassing Qwen3–32B and Gemma-3–27B, and even exceeding larger or mixture-of-experts models such as Llama-3.3–70B and Llama-4-Scout-17B-60E.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*fWBMjzVJ9kFqc6x63Dcr8w.png" /></figure><h3>A strong understanding of the official languages in Singapore</h3><p>On the <em>belebele</em> benchmark, Phoenix matches or outperforms global models such as Qwen2.5–32 and Gemma-3–27B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wMOWTXf6eO1t-NMmRwvdqg.png" /></figure><h3>Globally Competitive Model for its size</h3><p>With careful post-training, Phoenix also retains globally competitive general AI capabilities, performing on par with GPT-4o-mini, Gemma-3–27B and Llama-4-Scout-17B-60E.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_Q09jaXTNoCyKPC1jmCuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Dzn1lAE3qKNoJumJXCHGg.png" /></figure><h3>The Adventures of Building Phoenix</h3><p>Continued Pre-Training was a joint research effort between HTX and Mistral AI, building upon Mistral Small 3.1; while HTX led post-training to balance domain depth with broad knowledge, general intelligence, and math.</p><p><strong>Building an LLM is a colossal adventure. </strong>Ask anyone on Team Phoenix and we could go on for hours and probably produce a trilogy. To spare you this, we&#39;ve summarised the entire process in an adventure map!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*N1rZeL_blpxUaqJ-jk9BbQ.png" /><figcaption>(AI generated image with modifications)</figcaption></figure><h3>Why build Phoenix?</h3><h4>A model for the Singaporean context</h4><p>Open-source foundation models such as Llama, Gemma and Qwen are optimised for broad global benchmarks like <em>MMLU </em>and <em>AGIEval</em>. Their priority is to serve the widest possible audience. It is unlikely that these models have the incentive to optimise for the Singaporean context, much less specific government ministries like the Ministry of Home Affairs.</p><p>Singapore may be a tiny red dot, but we are culturally and linguistically diverse, with our own acronyms and conversational norms. Sure, common terms such as PIE, HDB and PSLE, or expressions like “Kopi-C” and “shiok”, are easy for global models to learn. But the difficulty arises when questions require deeper understanding of policies, statutes, or operational context that Home Team and public officers frequently work with.</p><p>Consider the example below, comparing the base Mistral 3.1 Small model (left), with Phoenix 1.0 Small (right) after continued pre-training.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OWrlNoQ2Gkbk89O-dGH4Bg.png" /></figure><p>The base model produces an imprecise guess for the definition of “cheating”. On the other hand, Phoenix quickly zooms into the correct section of the Singapore Penal Code and produces a close reconstruction of the statutory language, enabling officers to verify the legal meaning.</p><p>What’s more — Phoenix also recommends relevant resources such as SPF CAD, the Police and Anti-Scam hotlines, and ACRA, all uniquely Singaporean references.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*uqsEH-GC3rbNf5IQSZGhug.png" /></figure><h4>Why can’t we just use ChatGPT/Claude/Gemini + Web Search?</h4><p>With advancements in Agentic AI, many consumer chatbots pair large foundation models with real-time search to compensate for knowledge gaps.</p><p>This approach is not viable for the Home Team or many parts of the Public Service because:</p><p>● Systems operate in air-gapped environments without internet<br>● Sending operational information to externally hosted AI services is unwise</p><p>As HTX and the local AI community build more AI systems for national use, it is increasingly important to have models that run on-premises, understand the local context and <strong>have essential knowledge baked directly into their weights.</strong></p><h4>Capability Development &amp; AI Safety</h4><p>A broader objective is to develop a sustained AI capability within Singapore. This includes teams with deep technical expertise and in-house toolings to build state-of-the-art AI models. As AI becomes more integrated across society, it is important to cultivate a community that understands these systems at a fundamental level.</p><p>Training our own models also provides more granular oversight of training data. This supports safer systems, stronger guardrails, and more transparent evaluation.</p><h3>How did we build Phoenix?</h3><p>Ok, with the existential questions aside, time for the fun (and nerdy) parts!</p><p><strong>Today’s spotlight is on Continued Pre-Training, Mid-Training, and Post-Training, the core processes behind Phoenix Small 1.0.</strong></p><p>In the next article, we will share about the Pre-Training phase.</p><h3>Continued Pre-Training (CPT): picking up domain knowledge</h3><p>Phoenix Small 1.0 was continued pre-trained from the Mistral Small 3.1 foundation model through a joint research effort with Mistral AI.</p><p>Continued Pre-Training (CPT) gives a well-educated base model a second round of large-scale unsupervised learning on a curated corpus. This sharpens domain knowledge and updates internal representations without erasing its broad global abilities.</p><p>It differs from full pre-training where the model starts from random weights.</p><p><strong>For Phoenix, CPT involved a ~500 billion token dataset focused heavily on Singaporean context and languages.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*6w2RfEa9VR_VTeddlQr5wQ.png" /></figure><p>Several design choices shaped the CPT dataset:</p><p>● <strong>Token quality:</strong> We kept only the highest-quality tokens, since CPT tokens are far fewer than those in full pre-training.<br>● <strong>Novelty:</strong> We emphasised sources absent from the base model, especially uniquely Singaporean material.<br>● <strong>Linguistic diversity:</strong> English remains the model’s anchor, but we boosted major non-English languages of Singapore and the region to improve robustness.<br>● <strong>Upsampling:</strong> By default, each source contributes one epoch (i.e., each token is seen once). But for critical knowledge like Singapore Statutes, we sample it for many epochs.<br>● <strong>Downsampling</strong>: More common general knowledge data sources are downsampled, such as at 0.5 epoch.</p><p>CPT ran for a little over a month on a large distributed NVIDIA H100 cluster, using Fully Sharded Data Parallelism (FSDP) for optimal words per second throughput during training.</p><h3>Mid Training: Long Context Extension (LCE)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*PHZmd60KYxgeFVPcciAIZw.png" /><figcaption>(AI generated image)</figcaption></figure><p>Mid-training is a fairly recent term in the LLM research world. It sits between pre-training and fine-tuning and provides a cleaner round of large scale training and is also where models usually learn to handle longer input sequences.</p><p>For Phoenix, this stage focused on <strong>Long Context Extension (LCE) training</strong>. Phoenix began with a 4,096 token context window during pre-training, typical for pre-training corpora. This is cool and all but limits tasks that involve long conversations or document-level reasoning — imagine throwing a giant contractual package into Phoenix.</p><p>LCE training expands that window significantly. Phoenix underwent a dedicated LCE phase that:</p><p>● Used RoPE and YaRN based techniques for context extension<br>● Measured gains using benchmarks such as RULER.</p><p><strong>Thanks to LCE training, Phoenix can now confidently process prompts of 4k → 64k tokens.</strong></p><h3>Post Training: teaching Phoenix about Singapore… without forgetting everything else</h3><p>Interestingly, we spent the most effort on this stage.</p><p><strong>Post training is as much of an art as it is a science</strong> — we wanted Phoenix to learn the Singapore domain while retaining math, reasoning, and general intelligence.</p><p><strong>We accomplish this through two stages: Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO)</strong>, improving instruction-following abilities, alignment with our values and preference, and elevate its overall performance</p><h4>Fighting Catastrophic Forgetting in SFT</h4><p>SFT is powerful but risky. A large language model begins life as a generalist trained on trillions of tokens. It understands physics, coding, mathematics, world facts and dialogue patterns.</p><p>When you fine tune it on a narrow dataset, you are effectively telling the model to shift its internal representations toward that domain.</p><p>If this shift is too strong, the model overwrites older knowledge. This is <strong>catastrophic forgetting</strong> and it appears quickly.</p><p>In our early experiments, when we trained Phoenix heavily on Singapore specific linguistic and cultural data, we saw:</p><p>● Drops in math accuracy<br>● Weaker chain of thought<br>● Reduced instruction following<br>● Poorer precision in reasoning tasks</p><p>The model became good at recognising Singlish and hawker culture (yes this is very important), yet slightly worse at algebra and logical problem solving.</p><p>This is the common failure mode of naive SFT.</p><h4>Why Does Catastrophic Forgetting Happen in SFT?</h4><p>A simple intuition:</p><p><strong>SFT doesn’t “add” knowledge. It “moves” the model toward representing a new target distribution. And every shift in parameter space risks overwriting older directions.</strong></p><p>Three forces drive forgetting:</p><ol><li><strong>Gradient Overwriting: </strong>Your new dataset pushes the model strongly toward a narrower distribution. Even 3–5 epochs can destabilize deeply learned representations.</li><li><strong>Instructional Drift:</strong> Instruction style datasets tend to favour short answers, simple language and direct responses. When the model absorbs this style, it suppresses longer reasoning pathways, harming chain of thought.</li><li><strong>Narrow Domain Bias: </strong>if your SFT dataset is over-specialized (e.g., Singlish chat logs, hawker-food Q&amp;A), the model starts assuming every prompt belongs to that domain</li></ol><h3>Why Singapore context is a difficult but ideal test case for SFT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*RKI7TVk4R1ZXUpIp350ofw.png" /><figcaption>(AI generated image)</figcaption></figure><p>Singapore has a rich but compact ecosystem of languages, norms and cultural references, which makes it an excellent stress test for forgetting.</p><p>To perform well, Phoenix must understand:</p><p>● <strong>Local language patterns</strong> such as Singlish fillers (“lah”, “leh”, “sia”), code switching across languages, and dialect expressions from Hokkien, Cantonese, Teochew etc.<br>● <strong>Cultural practices</strong> such as food restrictions, what it means to “chope” a table, and why people queue so long for certain brands<br>● <strong>Food culture</strong> which is both diverse and very location specific (“Where to find the best char kway teow?”)</p><p><strong>This domain is <em>rich</em>, but also very <em>narrow</em>, which makes it a perfect stress test to expose catastrophic forgetting.</strong></p><h3>Our Three Main Tools Against Forgetting</h3><p>We relied on three strategies that scale well for large models.</p><p><strong>1. LoRA</strong></p><p>LoRA updates only a tiny fraction of the model’s parameters.This keeps the base model mostly intact while adding specialised behaviour on top. It acts like installing a lightweight extension rather than rewriting the entire system.</p><p>In practice, LoRA helped because:</p><p>● Fewer parameters move, so general abilities stay intact<br>● It is fast and cheap to train, allowing many experiments<br>● Different LoRA adapters can be merged or swapped</p><p><strong>In our experiments, LoRA preserved math and logic far better than full SFT.</strong></p><p><strong>2. Data mixture: the unsung hero</strong></p><p>The most effective defence was controlling what data the model sees during SFT. The model needs:</p><p>● Enough general data to retain its broad skills<br>● Enough Singapore data to learn the domain<br>● The right ordering and interleaving to keep training stable</p><p>Getting the mixture right mattered more than dataset size.</p><p><strong>3. Model merging: best of both worlds</strong></p><p>Model merging combines two (or more) separately trained models</p><p>● One specialised for Singapore<br>● One tuned to retain math and general reasoning</p><p>We then linearly merge them with a weighting schedule, allowing Phoenix to inherit strengths from both.</p><p>This approach produced strong retention of general ability with solid domain expertise.</p><p><strong>However, merging can introduce noise or amplify hallucinations, so we treat it as a final refinement rather than the core method.</strong></p><h3>Evaluation: How We Measured Forgetting</h3><p>We evaluated two broad categories.</p><p><strong>General Capability Benchmarks </strong>like MATH, ARC, HumanEval tell us how much the base capabilities regressed.</p><p><strong>Singapore Domain Benchmarks: </strong>We built our own benchmark, known as<strong> HT-Lexicon</strong>, with 5000+ high-quality questions covering Singaporean and Home Team context.</p><p>This shows how much Phoenix improved at local knowledge.</p><h3>Practical Tips for Anyone Doing Domain SFT</h3><ol><li><strong>Don’t overtrain</strong>: more than 2–3 SFT epochs often leads to sudden forgetting spikes.</li><li><strong>Use LoRA for all early experiments</strong>: cheap and non-destructive.</li><li><strong>Keep a “golden set” of general tasks</strong> for evaluation.</li><li><strong>Mix in reasoning-rich data</strong>, not just dialogue.</li><li><strong>Favor interleaved mixture</strong>, not block-wise training.</li><li><strong>Don’t forget safety tests</strong>: domain SFT can accidentally soften guardrails.</li></ol><h3>A quick note on Direct Preference Optimization (DPO)</h3><p>We are going well above our target word count, so a short section on DPO, which we applied after SFT.</p><p>DPO tunes the model using human preference comparisons. While SFT teaches Phoenix the right style and behaviour, DPO helps Phoenix choose the better of two possible answers based on what people prefer.</p><h3>And with this, you get Phoenix Small 1.0!</h3><h3>Standing on the shoulders of giants</h3><p>In under a year, Team Phoenix built Phoenix Small 1.0 through close collaboration with Mistral AI, whose Mistral Small 3.1 model and technical guidance provided a strong foundation for our research. We are also grateful to the international and local open-source community, especially AISG, whose open knowledge and datasets formed part of the Phoenix stack.</p><h3>Be part of the Team Phoenix Community</h3><p>We’re really just getting started with Phoenix and have big plans going forward.</p><p>Interested to test or contribute to Phoenix, join the team, or explore internship opportunities? Contact us here: <a href="https://go.gov.sg/phoenix-public">https://go.gov.sg/phoenix-public</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ab174bc99b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/htx-ai/phoenix-small-1-0-technical-report-llm-for-singapore-and-the-home-team-7ab174bc99b3">Phoenix Small 1.0 Technical Report: LLM for Singapore and the Home Team</a> was originally published in <a href="https://medium.com/htx-ai">HTX-AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>