Introduction
Large Language Models (LLMs) have revolutionized natural language processing, yet they frequently struggle with the rigid requirements of structured data generation, such as JSON. In production, maintaining schema compliance often requires extensive prompt engineering or external constraints, which are computationally expensive and prone to inconsistencies. Structured Object Language Modeling (SO-LM) introduces a native approach to generating complex, schema-compliant objects by treating structure as an inherent property of the language model rather than an instruction-following task.
Methodology: Self-Supervised Denoising
The core innovation of SO-LM is its self-supervised denoising objective. Unlike standard next-token prediction, SO-LM is trained to reconstruct clean structured objects from corrupted versions. This process allows the model to learn the underlying schema and the dependencies between different facets of an object natively.
As shown in Figure 1, the training process involves taking a target structured object and applying various types of noise, including:
- Title/Description Noise: Removing or adding words, shuffling spans, and repeating segments.
- Bullet/Attribute Noise: Deleting features, redundant entries, and unnormalizing attribute names or values.
- Structural Corruption: Removing JSON keys or shuffling values to create an "Extra-Corrupted Soup-of-Text."
By learning to map this "soup-of-text" back to a valid, clean JSON object, the model (based on an MPT-7B backbone) develops a deep understanding of relative consistency—ensuring that fields like titles and attributes do not contradict one another.
Task Overview: From Unstructured to Structured
SO-LM effectively transforms messy, unstructured product information into high-quality, structured data. This capability is critical for e-commerce applications where product listings must be parsed into databases with high precision.
The model handles the conversion of visual and textual cues—like product images, feature lists, and descriptions—into a unified JSON schema (Figure 2). This native understanding eliminates the "instruction overhead" typically associated with prompting frontier models for JSON output, as the model "knows" the schema from its extensive training on 30 million product listings.
Evaluation and Results
SO-LM was evaluated on a real-world benchmark of 5,000 product listings from Amazon's catalog, testing its ability to regenerate and improve existing data.
- Performance Parity: The 7B-parameter SO-LM achieved 82.30% precision and 65.70% recall in attribute generation, matching the performance of significantly larger models like Claude 3 Sonnet (83.90% precision / 67.40% recall).
- Efficiency: SO-LM is approximately 7x more computationally efficient than Claude 3 Sonnet. Because it requires no complex prompt tokens to define the schema, inference costs are drastically reduced.
- Business Impact: In online A/B testing, titles generated by SO-LM led to statistically significant increases in both revenue and units purchased compared to original retailer-provided data.
Conclusion
SO-LM demonstrates that native structured object modeling is a viable and efficient alternative to prompted generation. By leveraging self-supervised denoising, the model achieves state-of-the-art performance while remaining cost-effective for large-scale production environments. Future work will focus on incorporating Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO) to further enhance the subjective quality of free-form text generation components.
Summary updated