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

🔍 Read the full analysis: How To Improve Your 350M AI Model’s Output Structure In Just 100 GRPO Steps on ThorstenMeyerAI.com

AUDIBLE

Listen free for 30 days with Audible

Thousands of audiobooks and originals — cancel anytime.

Start your free trial

As an affiliate, we earn on qualifying purchases.

TL;DR

Liquid AI has published a free, practical recipe to fine-tune its 350M parameter LFM2.5 model with Group Relative Policy Optimization (GRPO). This process improves schema compliance scores from 22.6% to 29.7% on the IFStruct benchmark using only 100 training steps and around 500 samples, accessible on free-tier hardware. The method is fully documented and reproducible, lowering barriers for small-model deployment.

Liquid AI has published a fully open-source, low-cost method to improve the structured output compliance of its 350-million-parameter LFM2.5 model through just 100 steps of Group Relative Policy Optimization (GRPO). This approach raises the model’s performance on the IFStruct benchmark from 22.6% to 29.7%, using roughly 500 training samples and accessible hardware like free-tier Colab or Kaggle GPUs. The release aims to demonstrate that small models can be task-optimized effectively without large-scale training resources, making advanced fine-tuning accessible to a broader developer base.

The recipe involves a straightforward fine-tuning process using the TRL library on a GPU, paired with local evaluation on a MacBook Pro with an Apple M5 Max chip. The training data is sourced from NVIDIA’s Nemotron RL instruction-following dataset, specifically tailored for structured output tasks with JSON schemas. To improve adherence, 40% of prompts include an appended instruction to return output within a fenced code block, teaching the model to follow format instructions rather than always producing raw JSON.

Initially, the base model achieved a 22.6% success rate on the full 2,000-sample IFStruct test set, passing 452 samples. The most common failure modes involved missing required fields, incorrect item counts, and type mismatches. After the light fine-tuning, the success rate increased to 29.7%, with notable improvements across different output formats: JSON, YAML, and wrapper-key outputs. The process required only about 100 steps, making it feasible to run on free-tier hardware, and the entire pipeline is documented on GitHub for reproducibility.

At a glance
reportWhen: announced March 2024
The developmentLiquid AI’s new public recipe demonstrates that small models can significantly improve structured output accuracy with minimal, cost-effective fine-tuning using GRPO and accessible hardware.
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 is significant because it shows that small models, which are more accessible and easier to deploy than larger counterparts, can be task-optimized effectively with minimal resources. Improving structured output compliance is vital for integrating language models into real-world systems, where format adherence and data validity are critical. The method’s low cost and simplicity democratize advanced fine-tuning, enabling developers without extensive training budgets to enhance model performance for specific tasks, such as form filling, data extraction, and API responses.

While the gain of roughly seven percentage points on the IFStruct benchmark might seem modest, it represents a meaningful step toward making small models more reliable and usable in production environments. The approach also provides a blueprint for applying similar techniques to other structured-output tasks, potentially broadening the practical utility of small language models across industries.

Amazon

GPU for AI fine-tuning

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on Structured Output and Fine-Tuning

Structured output tasks—where models must generate data in specific formats like JSON or YAML—are common in real-world applications such as form processing, data extraction, and API interactions. Historically, achieving high accuracy in these tasks has required large models or extensive fine-tuning, which can be costly and resource-intensive.

Liquid AI’s recent publication builds on prior efforts to improve small models’ compliance, emphasizing that even modest, targeted fine-tuning can yield significant performance gains. The IFStruct benchmark, an open-source evaluation dataset, measures a model’s ability to produce valid, schema-compliant outputs. Previous results indicated that small models struggled with format adherence, often passing less than 25% of test samples. The new method demonstrates that with just 100 steps of GRPO, these models can surpass previous performance levels, making structured output tasks more accessible for small-scale deployment.

“Our approach shows that small models can be effectively task-optimized with minimal fine-tuning, making schema compliance achievable on affordable hardware.”

— Thorsten Meyer, Liquid AI

Amazon

JSON schema annotation tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Unconfirmed Aspects and Limitations of the Method

It remains unclear how well these improvements generalize to other small models or different structured-output benchmarks beyond IFStruct. The reported gains are based on a specific setup, and stability across various serving stacks, quantizations, or larger datasets has not been established. Additionally, the claim that small models can match larger models’ performance is presented as motivation rather than a direct comparison, and no head-to-head benchmarking against larger models is provided.

Further research is needed to verify whether similar results can be replicated consistently and whether the approach scales to more complex tasks or multi-turn interactions. The long-term robustness of the fine-tuned model under different deployment conditions remains to be tested.

Amazon

machine learning model fine-tuning kit

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps for Researchers and Developers

Developers can reproduce the fine-tuning process using the provided GitHub notebook, applying it to their own small models and datasets. Future work may involve scaling the sample size and number of steps to explore further performance gains, testing the method on other structured-output benchmarks, and applying the same GRPO recipe to different models or tasks. Additionally, validation across various deployment environments and quantized models will help assess the robustness and generalizability of these improvements.

Liquid AI and the community may also investigate combining this approach with other fine-tuning techniques or data augmentation strategies to push performance even higher, making small models increasingly viable for complex, real-world applications.

Amazon

Colab GPU access

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Can this method be applied to larger models?

The current publication focuses on a 350M parameter model; applying the same technique to larger models may yield different results. Further experimentation is needed to determine scalability and effectiveness at higher sizes.

Is the process suitable for real-time applications?

Since the fine-tuning process is lightweight and can be done on affordable hardware, it is suitable for iterative development and deployment in real-time systems, provided the model is fine-tuned beforehand.

Does this improve all types of structured outputs?

The method specifically targets JSON and YAML formats as demonstrated; its effectiveness on other formats or more complex schemas remains to be tested.

How much technical expertise is needed to reproduce this?

Basic familiarity with Python, machine learning libraries like TRL, and command-line tools such as llama.cpp are sufficient. The GitHub repository provides detailed instructions to facilitate reproduction.

Will this approach reduce the need for larger models?

While it improves small models’ performance on specific tasks, it does not eliminate the advantages of larger models for broader or more complex reasoning tasks. It offers a cost-effective way to enhance small models for targeted applications.

Primary source: Hugging Face · via ThorstenMeyerAI.com

LABOR DAY SALES

Labor Day sales Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

Unity Software Surges In Global Coverage

Unity Software sees a significant increase in international media mentions, with 22 reports in recent coverage, indicating rising global interest.

Apple One And Apple TV Subscription Prices Increase By Up To 20 Percent

Apple has increased the prices of its Apple One and Apple TV+ subscriptions by up to 20%, marking a significant change for users worldwide.

Grand Theft Auto Vi Controllers

Search interest in GTA VI controllers, including limited edition DualSense models, is surging amid rumors and speculation about upcoming game accessories.

The Essential Steps To Run Frontier AI On Your Mac Studio

Step-by-step guide to setting up and running large AI models locally on your Mac Studio with Apple’s new hardware and software tools.