TRANSMISSION // 2612.00920v1
How RETAIN gives video AI a bounded memory
Source published
RETAIN stores recent object observations in a fixed-size memory so a system can search past video without keeping or revisiting the full recording. On Ego4D’s VQ2D validation benchmark, it improved several accuracy measures over compared methods, but important limits remain.

A camera that records continuously could help answer “Where was that object last seen?” But searching every frame takes storage and time. RETAIN offers another approach: keep a limited set of object-level memories and answer visual queries from them.
The challenge: remembering without keeping everything
Smart glasses, wearable cameras and robots may capture long streams of first-person video. One possible use is finding an object in footage already recorded. In visual query localisation (VQL), a system receives an image of an object and must locate its most recent appearance in earlier video, including its position over time.
Many VQL systems search the recording after receiving a query. That can mean retaining large amounts of video or frame features and processing them again for each question. RETAIN, proposed by Sparsh Rastogi and colleagues, instead processes video as it arrives and stores a bounded, object-level memory. The aim is to limit storage and query costs without sacrificing localisation accuracy.
What the system remembers
RETAIN represents the memory as a fixed number of slots. Each slot holds information about an object’s appearance and its latest observed occurrence. As new video arrives, the system compares detected image regions with existing slots. A match updates a slot; an unfamiliar object can take a new one. When all slots are occupied, the least recently updated slot is removed. Earlier sightings of a repeatedly observed object are absorbed into its slot rather than saved separately.
The system also keeps a short rolling buffer of recent frames. This helps it track an object through an occurrence and retain a short track and a few small image crops in its slot. When a query arrives, RETAIN compares it with the stored objects, ranks candidate matches using appearance and timing information, and checks candidates against stored crops. It then returns a track showing where the selected object appeared. It does not go back to search the full video.
The researchers evaluated RETAIN on the Visual Queries 2D (VQ2D) task in the Ego4D benchmark. They used its validation split: 1,159 clips and 4,507 queries. Each query identifies an object with a box in a reference image and asks for its most recent earlier occurrence. The main measure, spatio-temporal average precision at 25% overlap (stAP25), considers both whether the system found the right time and whether its boxes overlapped the object. Temporal average precision (tAP25) measures overlap in time.
Results—and a less convenient detail
With 2,048 slots, RETAIN achieved a tAP25 of 0.613 and an stAP25 of 0.441 on the validation queries. The authors report these as relative gains of 30% and 5%, respectively, over EAGLE, the strongest prior method in their comparison. EAGLE’s results came from its original paper rather than a rerun by the RETAIN team, and it used additional training data. RETAIN’s reported success rate was 62.5%.
At that memory setting, storage was 0.37 GB, including the rolling buffer, and did not grow with video length. The reported median query time was 0.19 seconds; average query time was about 4.5 seconds, partly because some queries required tracking an occurrence that was still in progress. The paper compares RETAIN’s average query time with rerun offline methods and reports speedups of 10–44 times. These figures describe query answering, not the full cost of processing every incoming frame.
That distinction matters: the paper’s runtime analysis says the video-writing stage ran faster than real time on one A100 GPU, but tracking observations is far more expensive. Tracking every observation as it ends would require about 930 seconds of computation per second of video with the reported setup. To keep evaluation practical, the researchers tracked candidates retrieved for queries; they also tested approaches that reduced tracking cost, with some accuracy trade-offs. So bounded storage and fast query-time lookup do not, on their own, establish that the complete system is ready for continuous edge-device use.
What remains uncertain
RETAIN was evaluated on one benchmark, and the benchmark’s clips last at most 16 minutes. The team also joined clips into streams of up to 51 minutes. Overall stAP25 and success stayed similar in that experiment, but tAP25 decreased slightly, and performance dropped for some queries following 15–30 minutes of prior footage. Longer continuous recordings would provide a stronger test. The system also performed worse than a comparison method on the smallest objects, and the authors identify missed candidates, selection of look-alike objects and inaccurate tracks as sources of failure.
The authors describe RETAIN as a research framework and present future deployment on devices such as smart glasses as an avenue for further work. Their paper reports validation results because test annotations were unavailable and the official evaluation server no longer accepted submissions. The results therefore are not a test-set evaluation. This article is based on the arXiv preprint 2612.00920v1, which may not have been peer reviewed. The authors report that code and an interactive demo are available online.
- computer vision
- video memory
- object localisation
- egocentric video
- Ego4D
- edge AI
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Shrinking video memories without retraining the model
Supporting evidence: Both papers report reducing video-memory costs while retaining task performance: RETAIN uses a fixed-size object memory for visual-query localisation, while MSI compresses segmentation features and reports up to 25% less memory-bank storage with preserved accuracy. This supports only the bounded point that memory-reduction approaches can retain performance in their evaluated tasks; the methods, benchmarks and outcomes differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.00920v1 — Original paper
Excerpt reference:
static/papers/2612.00920v1.md:756-829
Basis: Paper text
Source file SHA-256:8c9d8fc0a3b1c56c09566cc23d544ceec7fc4a6d149db341c2f9886aad1ac32b2611.28087v1 — Original paper
Excerpt reference:
static/papers/2611.28087v1.md:13-88
Basis: Paper text
Source file SHA-256:5cd68fb52cb779a15dba37449aa7c6d5871ff738832e42baf73a3146f8ba5818
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Shrinking video memories without retraining the model
Source published
Shared keywords: computer vision, edge ai, video memory
How action-free human videos could help robots learn
Source published
Shared keywords: egocentric video
EgoLAM separates hand motion from camera motion
Source published
Shared keywords: computer vision, egocentric video
A robot's-eye view, generated from outside video
Source published
Shared keywords: computer vision
How should a wearable AI decide what to remember?
Source published
Shared keywords: egocentric video