Upload 5 files
Browse files- README.md +37 -0
- config.json +16 -0
- model.safetensors +3 -0
- notes.md +54 -0
- training_args.json +9 -0
README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- research-notes
|
| 5 |
+
- vision-language-pretraining
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Notes on Vision Language Pretraining
|
| 9 |
+
|
| 10 |
+
## Repository summary
|
| 11 |
+
|
| 12 |
+
A structured set of research notes on **Vision Language Pretraining**, with concrete evaluation references and open questions. Plans and hypotheses are kept separate from completed results.
|
| 13 |
+
|
| 14 |
+
## What is covered
|
| 15 |
+
|
| 16 |
+
- the scope of the research question and likely confounders
|
| 17 |
+
- a proposed comparison with matched baselines
|
| 18 |
+
- concrete evaluation context such as task-appropriate public benchmarks named in the main note
|
| 19 |
+
- reproducibility checks, failure modes, and open questions
|
| 20 |
+
- topic-relevant references
|
| 21 |
+
|
| 22 |
+
## How to read this repository
|
| 23 |
+
|
| 24 |
+
Start with `notes.md` for the full note. Sections labeled as plans or hypotheses should not be interpreted as experimental results. If results are added later, they should include dataset versions, commands, seeds, hardware, and raw logs.
|
| 25 |
+
|
| 26 |
+
## Scope and limitations
|
| 27 |
+
|
| 28 |
+
The note is intentionally exploratory. It does not claim benchmark improvements, completed ablations, released code, or a trained checkpoint. References and proposed datasets provide a starting point for verification rather than evidence that the study has already been run.
|
| 29 |
+
|
| 30 |
+
## Files
|
| 31 |
+
|
| 32 |
+
- `notes.md` — primary artifact
|
| 33 |
+
- `README.md` — this documentation
|
| 34 |
+
|
| 35 |
+
## License
|
| 36 |
+
|
| 37 |
+
Released under **mit**. Review the source-data terms separately when this repository is used with external datasets.
|
config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"CustomResearchModel"
|
| 4 |
+
],
|
| 5 |
+
"architecture": "transformer",
|
| 6 |
+
"model_type": "transformer",
|
| 7 |
+
"hidden_size": 192,
|
| 8 |
+
"num_hidden_layers": 6,
|
| 9 |
+
"num_attention_heads": 2,
|
| 10 |
+
"intermediate_size": 768,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"max_position_embeddings": 512,
|
| 13 |
+
"layer_norm_eps": 1e-12,
|
| 14 |
+
"checkpoint_status": "initialization-only",
|
| 15 |
+
"notes": "Untrained checkpoint for smoke tests; no benchmark claim."
|
| 16 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e2b0c4a390fdd9c7046947a2d04638201de8caa2429542dbe4344e9322876cc
|
| 3 |
+
size 99808
|
notes.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Vision Language Pretraining: Research Notes
|
| 2 |
+
|
| 3 |
+
## Status
|
| 4 |
+
|
| 5 |
+
Working note / experiment plan. No completed benchmark results are claimed here.
|
| 6 |
+
|
| 7 |
+
## 1. Scope and motivation
|
| 8 |
+
|
| 9 |
+
This document is a research sketch about alignment quality between image and text representations. The central question is whether the proposed change improves the target behavior under a matched training and evaluation budget. The note deliberately separates hypotheses from observations so that future results can be added without rewriting the rationale.
|
| 10 |
+
|
| 11 |
+
## 2. Context
|
| 12 |
+
|
| 13 |
+
Research on vision language pretraining often mixes improvements from architecture, data scale, preprocessing, and compute. A useful comparison therefore needs controlled baselines and explicit reporting of resource use. For this topic, the main confound is that near-duplicate captions and dataset overlap can overstate generalization.
|
| 14 |
+
|
| 15 |
+
## 3. Working hypothesis
|
| 16 |
+
|
| 17 |
+
A focused change to the representation or interaction mechanism may improve Recall@1 without increasing deployment cost disproportionately. The hypothesis should be rejected if gains disappear after matching parameter count, data exposure, or tuning budget.
|
| 18 |
+
|
| 19 |
+
## 4. Proposed approach
|
| 20 |
+
|
| 21 |
+
The first implementation should keep modality-specific preprocessing simple, project inputs into a shared representation space, and isolate the new component behind a small interface. Baselines should include a comparable model without the component and a stronger off-the-shelf reference. Any optimization should be applied to all systems, not only the proposed one.
|
| 22 |
+
|
| 23 |
+
## 5. Evaluation plan
|
| 24 |
+
|
| 25 |
+
| Dataset | Role | Primary measure |
|
| 26 |
+
|---|---|---|
|
| 27 |
+
| Flickr30k | primary evaluation | Recall@1 |
|
| 28 |
+
| MS COCO Captions | transfer / robustness | Recall@5 |
|
| 29 |
+
| Winoground | transfer / robustness | median rank |
|
| 30 |
+
|
| 31 |
+
Planned comparisons include a matched-capacity baseline, an ablation that removes the proposed component, and an out-of-domain transfer check. Default training values for the first controlled run are learning rate `0.0003`, batch size `32`, and `5` independent seeds. These are planning values, not claims about a finished experiment.
|
| 32 |
+
|
| 33 |
+
## 6. Reproducibility checklist
|
| 34 |
+
|
| 35 |
+
- Fix preprocessing before tuning.
|
| 36 |
+
- Report mean and standard deviation across seeds.
|
| 37 |
+
- Keep a held-out error-analysis split.
|
| 38 |
+
- Record wall-clock time and peak memory.
|
| 39 |
+
|
| 40 |
+
## 7. Failure modes and responsible use
|
| 41 |
+
|
| 42 |
+
The analysis should report subgroup and category-level failures instead of relying only on a single aggregate score. Particular attention is needed because near-duplicate captions and dataset overlap can overstate generalization. No production use is recommended without task-specific validation, data review, and an assessment of privacy and bias.
|
| 43 |
+
|
| 44 |
+
## 8. Open questions
|
| 45 |
+
|
| 46 |
+
- Where does the method fail on compositional or out-of-domain examples?
|
| 47 |
+
- Can a simpler baseline recover the same gain with more careful tuning?
|
| 48 |
+
- Does the proposed component improve calibration as well as the primary metric?
|
| 49 |
+
|
| 50 |
+
## References
|
| 51 |
+
|
| 52 |
+
[1] Radford et al., CLIP, 2021.
|
| 53 |
+
[2] Li et al., BLIP, 2022.
|
| 54 |
+
[3] Thrush et al., Winoground, 2022.
|
training_args.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"optimizer": "adamw",
|
| 3 |
+
"scheduler": "cosine",
|
| 4 |
+
"learning_rate": 5e-05,
|
| 5 |
+
"batch_size": 32,
|
| 6 |
+
"epochs": 20,
|
| 7 |
+
"seed": 42,
|
| 8 |
+
"status": "default recipe; not a completed run"
|
| 9 |
+
}
|