File size: 3,857 Bytes
6d5fb4a
 
2529199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6d5fb4a
2529199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f1f2df3
 
2529199
f1f2df3
2529199
 
 
f1f2df3
2529199
 
 
 
 
 
 
df2b3f9
 
 
2529199
 
 
 
 
 
 
 
df2b3f9
 
 
 
 
 
 
 
 
 
 
 
2529199
 
7645c06
2529199
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
license: apache-2.0
pretty_name: Recaptioned LAION v2
language:
- en
task_categories:
- image-to-text
size_categories:
- 1M<n<10M
tags:
- laion
- image-captioning
- synthetic-data
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*.parquet
---

# Recaptioned LAION v2

Recaptioned LAION v2 contains captions and source metadata for 5,523,137 web
images. [Gemma 4 31B IT](https://huggingface.co/google/gemma-4-31B-it) generated
the new descriptions. Each row includes the new and previous captions, source
metadata, and identifiers for joining to image shards. This release has one
`train` split.

## Load the dataset

```python
from datasets import load_dataset

dataset = load_dataset(
    "PuzzleComm/Recaptioned-LAION-v2", split="train", streaming=True
)
example = next(iter(dataset))
image_key = example["key"]
source_url = example["url"]
caption = example["new_caption"]
```

The Parquet shards contain the two captions and their metadata. The `key`
column joins each caption to its JPEG, named `<key>.jpg` in a separate image
release. The `url` column records the original image location.

## Data fields

| Field | Description |
| --- | --- |
| `key` | Original image identifier, stored as a string with leading zeros. |
| `url` | Source image URL used for the metadata join. |
| `original_caption` | Caption from the upstream `caption` field. The export uses one name for this value across caption runs. |
| `new_caption` | Generated description of the image. |
| `new_reasoning` | Model reasoning text when recorded. |
| `image_path` | Relative file path in the original download layout. |
| `model` | Model identifier reported by the captioning run. |
| `response_time_seconds` | Measured response time when recorded. Earlier rows can have a null value. |
| `generation_params` | Generation settings for the row, including token budget, sampling settings, thinking mode, and seed. |
| `source_meta` | All fields from source [guangyil/laion-coco-aesthetic](https://huggingface.co/datasets/guangyil/laion-coco-aesthetic) |

## Sources and processing

The input was `laion-coco_v3_filter.parquet` from
[guangyil/laion-coco-aesthetic](https://huggingface.co/datasets/guangyil/laion-coco-aesthetic),
derived from [LAION-COCO](https://laion.ai/blog/laion-coco/). Candidate records
were deduplicated by URL and SHA-256. Images that could be downloaded and
decoded were saved as JPEGs and submitted to the captioning model. Four empty
responses were regenerated with thinking mode disabled, as recorded in
`generation_params`.

The source join uses exact URL equality. For repeated source URLs, the export
uses the first matching source row and verifies the image key. `source_meta`
contains `TEXT`, `all_captions`, `all_similarities`, `similarity`, `caption`,
`url`, `key`, `status`, `error_message`, `width`, `height`, `original_width`,
`original_height`, `exif`, `sha256`, `aesthetic_score`, `watermark`, and
`__index_level_0__`.

### Captioning prompts

**System message**

> Describe images accurately and concisely. Follow the requested word count exactly.

**User message**

The image came first, followed by this text.

> Describe this image briefly in 30-50 words. Do not include any preamble or introduction, just the description.

## Limitations and licensing

The `google/gemma-4-31B-it` model generated the new captions. They can misidentify details, omit context,
or reflect biases in the images and model. Upstream dimensions and EXIF refer
to the source records and can differ from the downloaded JPEGs.

The upstream metadata repository lists Apache-2.0. The JPEGs come from
third-party sources and their rights depend on the original material. The
`url` and `key` fields identify individual records for attribution or removal
requests. Please use this repository's Community tab to report a record.