AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: The Ultimate Guide To Fine-tuning 350M AI Models For Improved Output Consistency on ThorstenMeyerAI.com

TL;DR

Liquid AI has publicly shared a low-cost, reproducible method to fine-tune its 350-million-parameter LFM2.5 model with Group Relative Policy Optimization (GRPO). The approach improves schema adherence on the IFStruct benchmark from 22.6% to 29.7%, using about 500 training samples and 100 steps on free-tier hardware. This development aims to demonstrate that small models can achieve performance comparable to larger models with task-specific fine-tuning.

Liquid AI has released a publicly available, low-cost method to fine-tune its 350-million-parameter LFM2.5 model using Group Relative Policy Optimization (GRPO), resulting in a notable increase in structured output accuracy on the IFStruct benchmark from 22.6% to 29.7%. This development makes advanced fine-tuning accessible to developers with limited resources and highlights the potential for small models to perform tasks traditionally reserved for larger models.

The new guide from Liquid AI provides a step-by-step recipe for fine-tuning the LFM2.5-350M model with just around 500 training samples and 100 optimization steps, executable on free-tier GPUs from Colab or Kaggle. The core innovation involves applying GRPO, a reinforcement learning technique, to improve the model’s adherence to structured output formats, particularly JSON and YAML, which are critical for real-world applications like data extraction and automation.

The evaluation used the open-source IFStruct benchmark, which measures a model’s ability to produce schema-compliant outputs across various prompts. Initially, the base model achieved a 22.6% success rate, passing 452 out of 2,000 samples. After fine-tuning, the success rate increased to 29.7%, passing 592 samples, a roughly 7-point improvement. The process involved augmenting prompts with format instructions, such as requesting outputs inside fenced code blocks, to enhance format adherence.

Liquid AI emphasizes that the entire setup is designed to be accessible, requiring minimal hardware and no specialized training infrastructure. The evaluation process involved local testing on a MacBook Pro with an Apple M5 Max chip, using llama.cpp for serving the model via an OpenAI-compatible endpoint. The training data was derived from NVIDIA’s instruction-following dataset, tailored to include schema-specific prompts, which contributed to the observed performance gains.

At a glance
reportWhen: announced March 2024
The developmentLiquid AI has published a fully open-source, inexpensive fine-tuning recipe for its 350M model, significantly improving structured output compliance on a benchmark test.
At a glance
reportWhen: recently published; results reproducibl…
The developmentLiquid AI released a public fine-tuning guide and notebook showing that 100 GRPO training steps on ~500 samples measurably improve structured-output compliance in a 350M-parameter model.

Impact of Low-Cost Fine-Tuning on Small Models

This development demonstrates that small models, typically considered less capable than their larger counterparts, can be significantly improved through targeted, task-specific fine-tuning. The ability to boost schema compliance scores by roughly 7 points on a standard benchmark using minimal resources lowers barriers for developers and small organizations seeking reliable, format-adherent language models. It challenges the notion that only large, expensive models can perform well on structured output tasks, potentially democratizing access to high-quality AI tools for data automation, validation, and integration.

Furthermore, the open-source nature of the recipe and the use of free hardware make this approach highly accessible, encouraging experimentation and further research into lightweight fine-tuning methods. If these gains generalize to other small models and tasks, the impact could extend across industries that rely on small, efficient models for real-time, format-specific AI applications.

Amazon

GPU cloud computing for AI training

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on Fine-Tuning Small Models for Structured Output

Prior to this release, most benchmarks for structured output focused on larger models or combined reasoning tasks, making it difficult to isolate improvements in schema adherence for smaller models. The IFStruct benchmark, maintained by Liquid AI, provides a dedicated measure of a model’s ability to produce valid, parseable outputs aligned with schemas, which is crucial for many practical applications, including data extraction, automation, and API integration.

Liquid AI’s approach builds on earlier work in reinforcement learning and prompt engineering, emphasizing cost-effective, reproducible methods. The company’s previous efforts showed that small models could be adapted for specific tasks with minimal data and compute, but the recent publication marks a shift toward demonstrating measurable improvements in structured output compliance with a straightforward, accessible recipe.

The use of GRPO, a reinforcement learning technique, is notable because it allows models to optimize for adherence to output formats directly, rather than relying solely on supervised learning. This aligns with broader trends in AI research aiming to improve model reliability and consistency in real-world deployments.

“Our goal was to show that with just a small, inexpensive fine-tuning process, small models can significantly improve their structured output adherence, making reliable AI more accessible.”

— Thorsten Meyer, Liquid AI

Amazon

small AI model fine-tuning tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Limitations and Unanswered Questions About Results

While the results are promising, several uncertainties remain. It is not yet clear how well these improvements will transfer to other small models or different structured-output tasks beyond IFStruct. The reported gains are based on a specific setup, and measurement variance between local testing and benchmark results suggests that further validation is needed.

Additionally, the long-term stability of the fine-tuned model’s performance, its robustness across diverse prompts, and the effectiveness of applying this method to larger or quantized models are still untested. The guide explicitly states that the results are not directly comparable to larger models trained with more extensive resources, and the precise impact on real-world applications remains to be demonstrated.

Amazon

JSON YAML structured data output tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Future Directions for Small Model Fine-Tuning Research

Next steps include testing the GRPO fine-tuning method on other small models and different structured output benchmarks to evaluate generalizability. Researchers and developers are encouraged to replicate the process, experiment with scaling the sample size and training steps, and explore applying the technique to other tasks such as information extraction or dialogue formatting.

Further validation on diverse hardware setups and quantized models will help determine the robustness and practicality of this approach. Additionally, comparative studies with larger models or different fine-tuning techniques could clarify the relative benefits and limitations of the method.

Liquid AI has invited the community to reproduce their recipe and contribute to refining small model fine-tuning strategies, potentially leading to more reliable, accessible AI tools for a wide range of applications.

Amazon

AI model training on free GPU

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Can this fine-tuning method be applied to models larger than 350M parameters?

The current guide focuses on the 350M model, but the underlying principles of GRPO could be adapted for larger models. Further experimentation is needed to confirm effectiveness at scale.

Is the fine-tuning process suitable for real-time applications?

Given the small scale and low resource requirements, the process is suitable for quick, on-demand fine-tuning, but deploying the fine-tuned model in real-time systems depends on the specific application and latency constraints.

How much improvement can I expect if I follow this recipe?

The published results show roughly a 7-point increase on the IFStruct benchmark, from 22.6% to 29.7%, with minimal data and compute. Actual gains may vary depending on the task and setup.

What tools and hardware do I need to reproduce this fine-tuning?

A free-tier GPU from Colab or Kaggle is sufficient for training. For evaluation, a MacBook Pro with an Apple M5 Max or similar hardware running llama.cpp is recommended.

Primary source: Hugging Face · via ThorstenMeyerAI.com

You May Also Like

Show HN: We Built Open OpenRouter That Turns Usage Into A Better Model

Developers introduce OpenRouter, an open source model gateway that consolidates and optimizes AI model management for improved performance.

AI Tools and Automation: The Essential Guide to Working Smarter

AIThis post was created with the assistance of artificial intelligence (AI).Artificial intelligence…

Top 10 AI Innovations To Watch In 2026

A comprehensive overview of the most significant AI innovations expected in 2026, highlighting confirmed developments and emerging trends.

Best AI-Powered Automation Software Compared

Compare leading AI automation tools to find the best fit for your business, weighing ease of use, features, scalability, and cost.