Large language models (LLMs) are increasingly used as conditional generators for structured data, relying on in-context learning (ICL) to adapt to new distributions without parameter updates. We investigate how far ICL can reproduce the distributions of tabular data, comparing ICL with up to 100 record-level demonstrations against LoRA fine-tuning, GReaT and CTGAN, using two 7B open-weight models on three datasets. ICL quickly improves numerical fidelity: with ten demonstrations, Qwen2.5-7B reduces the numerical total variation distance (TVD) from 0.44-0.55 to 0.18-0.22. ICL, however, does not reproduce the frequencies of categorical features with 12 to 494 values: their TVD is still at least 0.21 at 100 demonstrations, a pattern we term categorical prior lock-in. LoRA fine-tuning on 10% of each table lowers the mean categorical TVD of Qwen2.5-7B by a factor of 4.5 to 5.8 relative to ICL with 100 demonstrations. Samples from all LoRA configurations also lie closer to original records (distance-to-closest-record ratio of 0.57-0.99, versus above 1.0 for all ICL configurations), a trade-off between distributional fidelity and proximity to original records that matters for privacy. Two membership inference attacks show no signal under ICL and at most a small one after LoRA fine-tuning.
翻译:暂无翻译