Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection
Paper · 2019 · Dong Gong, Lingqiao Liu, Vuong Le et al.
Summary
Reconstruction can be a misleading test of familiarity. An autoencoder learns to compress an observation and rebuild it, with training rewarding a close match between the original and the output. For anomaly detection, the hope is that training on accepted examples will make unusual examples difficult to reproduce. But success at reconstruction can extend beyond the intended class. A network familiar with ordinary visual components may reproduce an unfamiliar arrangement of them quite accurately. When that happens, the error used to identify an anomaly becomes small precisely where the detector needs it to be informative.
“Memorizing Normality to Detect Anomaly” introduces MemAE, an autoencoder whose decoder receives retrieved memory contents instead of an unrestricted encoding of the current input. The encoder produces a query. That query selects from a learned collection of latent patterns, and the decoder rebuilds the observation from their weighted combination. Training adjusts the encoder, decoder, and memory together using normal examples. Evaluation leaves the memory unchanged. The intended result is a reconstruction pulled towards the patterns available in that normal reference collection, so that an unusual observation leaves a more conspicuous mismatch.
The restriction depends on how memory entries are combined. Simply inserting a finite collection of vectors would still allow considerable flexibility if every vector could contribute a little to every output. MemAE therefore removes weak retrieval weights through thresholding and uses an entropy penalty to favor concentrated access during learning. These mechanisms encourage each reconstruction to depend on a small selection of entries. The memory must consequently become useful under restricted access, rather than merely supplying an additional transformation between encoder and decoder.
The authors investigate image-class outliers, unusual events in video, and numerical cybersecurity records. They report benefits over an ordinary autoencoder and over a memory variant that omits both sparsity mechanisms. Their digit examples make the intended behavior especially clear: after learning from “5,” MemAE responds to an input “9” with an output resembling the accepted digit class. Video error maps likewise show mismatches around unusual objects. The paper also reports closely matched processing times for MemAE and its autoencoder baseline. These findings support the architectural intervention under the tested conditions. They do not make reconstruction error a guaranteed measure of abnormality, establish that individual memory entries always have simple meanings, or demonstrate the same gains for language processing.
Interesting ideas
Design the bottleneck around the decision. Compression alone does not specify which information a system should preserve. A reconstruction network can retain enough transferable detail to reproduce observations that a detector should reject. MemAE introduces a more task-specific restriction: the output must be assembled through patterns learned from accepted examples. This suggests a broader engineering question for systems that use reconstruction, approximation, or matching as evidence: does the permitted computational route actually make the desired failure visible? A good representation for reproducing inputs need not be a good representation for distinguishing familiar inputs from unfamiliar ones.
Separate the observation from its available explanation. MemAE gives the encoder and memory different responsibilities. The encoder describes the current observation as a query; the retrieved contents determine the material available to the decoder. This separation prevents the system from treating its ability to encode something as sufficient evidence that it belongs to the reference distribution. Similar interfaces could be useful in prototype-based classification, retrieval systems, or structured reasoning. A query can be expressive while the supporting explanation remains restricted and inspectable.
Control mixtures as well as storage. Limiting the number of stored components does not necessarily limit what their combinations can express. Many small contributions can collectively reproduce an input that no individual entry resembles closely. The paper addresses this through sparse access rather than memory capacity alone. The same distinction applies to dictionaries, ensembles, retrieved evidence, and collections of reusable rules. When a system draws support from a large collection, inspecting the concentration and compatibility of that support can matter as much as counting the available components.
Make training experience the operational restriction. MemAE learns its entries while sparse retrieval already governs reconstruction. The resulting patterns are optimized for use in restricted combinations. This avoids asking a representation learned under unrestricted access to tolerate a substantially different access rule only after training. The transferable lesson concerns consistency between learning and operation: if a deployment must use a limited number of witnesses, features, or retrieved records, that limitation should shape the preparation or learning procedure that produces them.
Inspect components through their consequences. Decoding an individual memory entry gives a concrete, imperfect view of what that entry contributes. The images are not pristine examples, because isolated decoding differs from ordinary retrieval, but they reveal recognizable tendencies. This is a useful form of interpretability: connect an internal object to an observable consequence through the system’s actual output mechanism. Such inspections can expose useful structure without requiring the stronger claim that every component corresponds to a distinct human concept.
Compare explanations with nearby alternatives. The experiments do more than compare full MemAE with an unrelated competitor. They remove memory, remove the sparsity mechanisms, separate those mechanisms, and apply a different sparsity penalty directly to the encoding. Each comparison challenges a different account of the result. This approach is reusable whenever an intervention has several plausible explanations. A gain attributed to explicit memory should survive comparison with ordinary regularization, while a gain attributed to sparse access should be tested against unrestricted access to the same kind of memory.
Deep dive: Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection
MemAE restricts reconstruction through sparse memories of normal patterns; understand its equations, experiments, ablations, and limits. · about 40 minutes to read
How Mova uses it
Mova is a small language system implemented in Rust, with explicit linguistic rules, learned parameters, structured representations, and retained knowledge. Its current direction favors logic, rules, and statistics. MemAE therefore offers experimental design ideas and possible interfaces more directly than a ready-made replacement for Mova’s language core. The status marks below compare proposed transfers with documented Mova mechanisms. They indicate correspondence at the stated scope, rather than measured adoption of this paper. A statistical familiarity signal would also need to remain distinct from grammatical validity, factual truth, and justified inference.
Idea: Build restrictions around the decision being tested. Where: Introduction; Memory-augmented Autoencoder, Overview. Area: reasoning and representation. Mova: частково є (compiled global knowledge and explicit gaps in docs/architecture.md; bounded capability resolution in docs/hybrid-system.md). Mova already restricts some conclusions and actions to declared links or configured operations. A MemAE-inspired investigation could ask whether a proposed linguistic familiarity check has an equally explicit reconstruction route. Why Mova: a measurable restriction could help distinguish an unsupported interpretation from a representation that merely looks easy to process. The benefit remains a hypothesis; current gap reporting is not memory-mediated reconstruction.
Idea: Keep a query separate from the evidence used to answer it. Where: Encoder and Decoder; Memory-based Representation. Area: information retrieval and reasoning. Mova: частково є (occurrence retrieval and attributed examples in tools/dictindex/README.md). Mova’s dictionary index distinguishes the requested lemma or selector from the corpus examples returned for review. The paper suggests making that separation explicit in other components: a frame describing the current sentence should not itself count as supporting evidence for its interpretation. Why Mova: this could preserve a clear boundary between understanding what is being asked and establishing what the available knowledge supports.
Idea: Restrict the number of contributing patterns independently of collection size. Where: Hard Shrinkage for Sparse Addressing. Area: statistics and knowledge retrieval. Mova: нове. A proposed experiment could compare a bounded set of supporting frame patterns with a diffuse weighted mixture drawn from the same reference collection. The digest does not establish an existing equivalent of MemAE’s sparse weighted retrieval. Why Mova: limiting contributions might reveal cases where many weak similarities conceal the absence of a strong linguistic match. It must also be tested against valid expressions whose interpretation genuinely requires several complementary observations.
Idea: Prepare representations under the restrictions used later. Where: Attention for Memory Addressing; Training. Area: learning procedure. Mova: частково є (retained-state examination in a fresh process, described in docs/architecture.md; bounded study procedures in tools/enrich/README.md). Existing retention checks already distinguish learning conditions from later use. A prototype-retrieval experiment should likewise build or select its patterns under the same access budget used during evaluation. Why Mova: this would reduce the risk that an apparently useful restriction only damages representations prepared for a more permissive interface.
Idea: Inspect a stored component through a concrete output. Where: Visualizing How the Memory Works, “What the memory learns.” Area: interpretability. Mova: частково є (source examples, frame selectors, and reviewed labels in tools/dictindex/README.md). For symbolic patterns, Mova could show the sentences and frame reconstructions produced when a pattern is considered in isolation. This would be analogous to decoding a memory entry without copying the neural mechanism. Why Mova: examples generated or selected through the actual interpretation path could make a pattern’s practical scope easier to review than a name or frequency alone.
Idea: Use close variants to test the proposed explanation. Where: Experiments on Image Data; Ablation Studies. Area: evaluation. Mova: вже є (regression gates, negative controls, and held-out comparisons in README.md and docs/architecture.md). MemAE reinforces an existing practice: compare an intervention with neighboring alternatives that isolate the relevant mechanism. For a Mova familiarity experiment, ordinary matching, dense prototype mixtures, and restricted mixtures would answer different questions. The paper supplies a useful design pattern for those comparisons, but no result about which alternative would work best for Mova.
Idea: Give “normal” a task-specific definition. Where: Experiments on Image Data; Experiments on Cybersecurity Data. Area: data and evaluation. Mova: частково є (source and license classifications in tools/dictindex/README.md; separate assessment material in tools/enrich/README.md). A proposed reference collection should declare whether normal means an ordinary syntactic construction, an admitted dictionary sense, or a supported operational request. Why Mova: these categories have different consequences. An unfamiliar sentence may be valid, an attributed claim may be false, and a common request may still lack an installed handler.
Idea: Freeze the reference collection during assessment. Where: Overview; Introduction’s description of testing. Area: evaluation and versioning. Mova: вже є (immutable source versions and index epochs in tools/dictindex/README.md; teacher-separated assessment in README.md). MemAE evaluates inputs against a memory that no longer updates. Mova’s corresponding discipline is to keep the assessed knowledge and source identity stable while measuring behavior. This does not mean its dictionary index implements MemAE. It means the existing version boundary already supports the experimental question: what does a fixed reference state explain about a new input?
Idea: Treat combinations as possible sources of false familiarity. Where: Hard Shrinkage for Sparse Addressing. Area: semantic composition. Mova: частково є (typed compatibility requirements for groupants and correspondences in docs/hybrid-system.md). Mova already distinguishes compatible observations from arbitrary combinations. A further experiment could look for interpretations supported only by many individually weak matches. Why Mova: a sentence might resemble several familiar constructions without satisfying any construction’s actual conditions. Sparse statistical support could be a diagnostic, while typed grammatical checks would still determine whether the combination is licensed.
Idea: Separate a training preference from an operational rule. Where: Study of the Sparsity-inducing Components. Area: learning and execution. Mova: частково є (deterministic French overrides with abstention in en/src/french_rules.rs; parameter learning described in docs/architecture.md). MemAE distinguishes an entropy preference learned during optimization from thresholding applied to each retrieval. Mova could preserve the same distinction when combining statistical scores with rules: a strong learned tendency should not silently replace an explicit admission condition. Why Mova: this would make it clearer which behavior is encouraged by data and which behavior is required by the interface.
Idea: Adapt the unit of memory to the task. Where: Experiments on Video Anomaly Detection. Area: representation granularity. Mova: частково є (sentence-level frames and document state in docs/architecture.md; shared retained graphs in world/src/knowledge/retention/mice.rs). Video entries represent local encoded features rather than complete clips. A language experiment could similarly compare patterns over argument roles, clauses, and whole documents. Why Mova: a rare document may contain entirely ordinary local constructions, while a familiar topic may contain an unusual role assignment. The useful granularity must be measured rather than assumed.
Idea: Examine where mismatch occurs. Where: Experiments on Video Anomaly Detection; reconstruction-error visualization. Area: diagnostics. Mova: частково є (explicit missing links and reason-bearing frames in docs/architecture.md; miss classification in world/src/knowledge/retention/fastread.rs). A proposed approximation check could report which roles or relations remain unexplained instead of returning only a document-wide score. Why Mova: localized mismatch could direct review towards a missing argument relation or unsupported inference. The video illustrations motivate that diagnostic style but provide no evidence that a linguistic residual would identify the true source of an error.
Idea: Compare memory retrieval with ordinary feature sparsity. Where: Comparison with AE with Sparse Regularization. Area: experimental design. Mova: нове. If Mova tests prototype-based familiarity, it should compare that approach with simpler restrictions on active features or rules. This follows the paper’s comparison between sparse encoded activations and sparse retrieval. Why Mova: it would test whether a new store contributes something beyond regularization that an existing perceptron or rule-selection procedure could provide more simply. No such Mova comparison is established by the digest.
Idea: Keep the output signal distinct from the retrieval trace. Where: Conclusion. Area: uncertainty and diagnostics. Mova: частково є (reason-bearing outputs in README.md; confidence-versus-correctness analysis in prag/src/eval.rs). MemAE uses reconstruction mismatch for detection and leaves direct use of access weights to future investigation. Mova could likewise record retrieved patterns without assuming that concentrated retrieval is itself reliable confidence. Why Mova: the trace might explain a decision while still being poorly calibrated. Any use as an uncertainty estimate should be checked against correctness independently.
Idea: Test capacity rather than equating more storage with better behavior. Where: Robustness to the memory size. Area: statistics and resource planning. Mova: нове. A symbolic prototype experiment could vary the reference collection’s capacity while holding retrieval and assessment conditions fixed. The documented corpus index has storage engineering, but the digest does not establish this particular capacity-versus-detection study. Why Mova: the experiment could reveal whether extra patterns improve coverage of valid language or instead make unfamiliar inputs too easy to approximate.
Idea: Measure computational cost alongside detection quality. Where: Running time. Area: performance evaluation. Mova: вже є (cost prediction and measured execution in tools/twin, described in docs/architecture.md; bounded index measurements in tools/dictindex/README.md). The relevant borrowing is methodological: evaluate the proposed diagnostic within its actual processing path. A small standalone retrieval cost would not establish a small end-to-end cost. Mova already records resource evidence at bounded scopes, and any new familiarity mechanism should fit that discipline rather than inheriting the paper’s video timings.
Idea: Keep related architectures comparable. Where: Experiments; Experiments on Image Data. Area: evaluation controls. Mova: вже є (paired comparisons and regression gates described in README.md). The authors hold encoder and decoder choices similar across central variants. Mova’s analogue is to compare rule or retrieval changes with the same parser outputs, knowledge version, and assessment items whenever that matches the question. This makes a claimed improvement easier to attribute. It does not remove all experimental confounding, but it prevents a change in upstream evidence from masquerading as a gain in the component under investigation.
Idea: Separate input-type generality from a fixed implementation. Where: Encoder and Decoder; the image, video, and cybersecurity experiments. Area: software architecture. Mova: частково є (explicit layer interfaces and the Domain trait in docs/architecture.md). MemAE keeps its retrieval interface while changing the surrounding network for each input type. Mova could similarly expose a common pattern-query interface while allowing typed syntactic or semantic adapters. Why Mova: this could make experiments reusable without forcing different representations into one untyped comparison. Automatic general composition remains a direction, not an established capability.
Idea: Preserve evaluation meaning when normalizing scores. Where: Experiments on Video Anomaly Detection, normality-score equation. Area: statistics. Mova: нове. Any proposed familiarity score should record whether normalization uses one document, one batch, or a frozen reference distribution. MemAE’s episode-relative normalization illustrates why the scope matters. Why Mova: a score can change meaning when the comparison population changes, even when the underlying mismatch does not. The digest’s confidence analyses do not establish an equivalent normalization study, and the appropriate policy would need task-specific evaluation.
Idea: Do not collapse ranking quality into operating-point quality. Where: Experiments on Image Data; Experiments on Cybersecurity Data. Area: evaluation metrics. Mova: частково є (task-specific benchmarks and confidence reliability analysis in README.md and prag/src/eval.rs). MemAE uses AUC for visual tasks and precision, recall, and F₁ for cybersecurity. A Mova diagnostic should similarly distinguish ranking questionable cases from deciding which ones to send for review. Why Mova: a useful prioritization signal may still produce too many review requests at a chosen threshold. Neither result should be substituted for the other.
Idea: Keep unfamiliarity separate from admission. Where: Introduction; Training. Area: knowledge provenance. Mova: вже є (review-only labels and dictionary admission boundaries in tools/dictindex/README.md; staged drafts in tools/enrich/README.md). MemAE describes fit to a learned reference distribution, not a source-authentication procedure. In Mova, a close pattern match should therefore remain insufficient to admit a definition or promote a reported claim into asserted knowledge. Existing gates already preserve this distinction. The paper’s relevance is the reminder that a successful approximation answers a narrower question than evidential validity.
Idea: Route difficult cases for review without changing the tested reference. Where: Overview; Conclusion. Area: bounded self-improvement. Mova: частково є (separate proposal, review, learning, and assessment stages in tools/enrich/README.md). An experimental mismatch signal could help select material for later inspection while leaving the current assessment state unchanged. Why Mova: it might identify gaps worth investigating without letting the evaluated input rewrite the very reference used to judge it. Selection quality would need measurement, and reviewed additions would still require Mova’s existing provenance and regression checks.
Idea: Retain the query, surviving supports, and outcome together. Where: Attention for Memory Addressing; Hard Shrinkage for Sparse Addressing. Area: auditability. Mova: частково є (configured deputy reports in docs/hybrid-system.md; attributed query results in tools/dictindex/README.md). A prototype-based diagnostic could expose its query representation, accepted support entries, weights, and residual in one record. Why Mova: this would let a reviewer distinguish poor retrieval from a poor reference collection or a poor reconstruction rule. The record would document the computation, not prove that its linguistic interpretation was correct.
Idea: Validate normal coverage as carefully as unusual-case sensitivity. Where: Experiments on Image Data; discussion of CIFAR-10 complexity. Area: data coverage. Mova: частково є (source strata, absent coverage, and bounded-prefix reporting in tools/dictindex/README.md). A proposed familiarity detector should evaluate legitimate variation across constructions and sources, not only conspicuous failures. Why Mova: rare but correct wording could otherwise become a systematic source of false alarms. MemAE’s harder image setting motivates attention to diversity, but its results do not specify which linguistic strata Mova should use or how well any proposed detector would cover them.
The problem and its context
Learning from accepted examples alone
The paper uses “unsupervised anomaly detection” for a setting in which training provides normal examples without a corresponding collection of abnormal examples. The system must learn an account of accepted behavior and later detect observations that do not fit it. This is a demanding use of machine learning, because the training objective cannot directly enumerate the departures that will matter at evaluation.
An anomaly is therefore relational. Its status depends on the reference distribution and the application’s designation of normality. The same visual object could be expected in one environment and unusual in another. The experiments make that dependence explicit by selecting particular image classes as normal and by assigning a specific category to the accepted class in the cybersecurity setup.
High-dimensional observations complicate the task. An image or video clip contains many interacting coordinates, and important departures may occupy only part of that observation. A useful description of normality needs enough expressive power to represent ordinary variation without making every unfamiliar combination appear acceptable.
The authors present autoencoders as an attractive response to that representation problem. Rather than designing all relevant features in advance, an encoder learns an internal representation while a decoder learns to recover the input. Training pressures the intermediate representation to preserve recurring information that supports reconstruction.
Why reconstruction is not enough
The anomaly-detection argument adds an assumption to ordinary reconstruction training: a network that reproduces normal observations well should reproduce abnormal observations poorly. That assumption is useful when it holds, but it is not identical to the objective being optimized.
Training asks for low reconstruction error on the examples supplied. It does not directly demand high error on every excluded example. The authors identify this gap as the central weakness they want to address. The decoder’s behavior outside the accepted distribution is not controlled merely by withholding anomalous training examples.
Local structure provides a plausible route to unwanted success. An unusual object can contain edges, textures, and shapes that also appear in accepted imagery. If the learned reconstruction machinery operates effectively on those components, it may reproduce the object despite its inappropriate role in the scene.
Decoder expressiveness provides another route. Even if an unfamiliar input receives an unfamiliar encoding, the decoder may still transform it into an accurate output. A detector then interprets this successful reproduction as reassurance, although reconstruction was never sufficient evidence that the observation belonged to the accepted class.
MemAE changes the available path instead of adding an explicit catalogue of anomalies. It allows the encoder to describe the observation, but requires the decoder to work from retrieved patterns learned during normal-only training. That distinction preserves the reconstruction approach while making its intermediate representation more selective.
Alternatives described by the authors
The related-work discussion groups several ways of learning a normal profile. One-class methods seek a boundary around accepted observations. The cited examples include support vector machines and neural approaches designed for one-class learning. These methods frame the problem in terms of a discriminative region rather than the fidelity of a reconstructed observation.
Clustering offers a different description. The authors discuss k-means and Gaussian mixture methods as ways to characterize normal data through groups or distributions. Their concern is that conventional approaches can perform poorly when the observations are high-dimensional.
Earlier reconstruction approaches include principal component analysis and sparse representations. In the sparse case, a learned dictionary supplies components from which an observation is expressed using restricted coefficients. This is an important predecessor to the logic of MemAE: normality is represented through a limited repertoire, and the ability to account for an input depends on that repertoire.
The authors argue that earlier feature restrictions can limit performance. Deep reconstruction systems provide more adaptable representations, but they also reintroduce the risk of reproducing anomalies successfully. The paper discusses structured energy-based learning and an approach that jointly considers encoded features and reconstruction mismatch as examples of attempts to improve this family.
MemAE’s intervention is thus specific. It does not claim to originate reconstruction-based detection or learned dictionaries. It combines a trainable encoder and decoder with an explicitly retrieved intermediate representation, then restricts the retrieval mixture.
The video setting and external memory
Video makes both the appeal and the weakness of reconstruction visible. A clip contains background appearance, objects, and motion. A detector must distinguish unusual content or activity from ordinary variation while working without examples of every possible abnormal event.
The paper describes earlier approaches based on optical flow, probabilistic principal components, and dynamic textures. It also discusses dictionary-based sparse coding, including online dictionary updates. Later approaches in its account use convolutional reconstruction, recurrent processing, and frame prediction.
The authors particularly contrast their intervention with techniques that combine video-specific signals. A prediction-based system can use motion information and adversarial training, whereas MemAE aims to improve the reconstruction route itself. The two approaches need not be exclusive, and the authors suggest that they could be combined.
External memory supplies the architectural tool for this restriction. In the paper’s discussion of Neural Turing Machines, memory extends neural computation through content-sensitive access. Related memory systems are discussed in connection with learning from few examples and preserving structure during generation.
MemAE gives that storage-and-retrieval interface a different purpose. Its entries are jointly learned to support reconstruction of normal observations. Retrieval is valuable not only for supplying information, but also for limiting which latent material reaches the decoder.
The method, step by step
The complete route
An observation passes through an encoder, a content-addressed memory, and a decoder. The encoder’s output determines retrieval preferences. Those preferences are filtered and normalized before the memory entries are combined. The resulting vector replaces the original encoding as the decoder’s input.
MemAE’s restricted reconstruction path
The steps in order.
Normal examples drive training of the entire route. The reconstruction objective asks the retrieved representation to retain what the decoder needs, while the sparsity mechanisms discourage distributing responsibility across many entries.
At evaluation, the memory contents remain fixed. The observation can influence which entries are retrieved, but it does not create a new entry to describe its unusual features. This frozen reference is essential to the proposed interpretation of reconstruction mismatch.
Encoding and decoding have different inputs
The encoder produces the query:
z = fₑ(x; θₑ)
The input observation is x. The encoder function is fₑ, its trainable parameters are θₑ, and its output is z. The paper denotes the input domain by X and the latent domain by Z; fₑ maps from X into Z.
The decoder produces the reconstruction:
x̂ = f_d(ẑ; θ_d)
The reconstruction is x̂. The decoder function is f_d, its parameters are θ_d, and ẑ is the representation delivered by memory. The decoder maps from the latent domain back to the observation domain.
The distinction between z and ẑ carries the architectural contribution. The former expresses the current input for retrieval. The latter expresses what can be assembled from the learned memory. They occupy compatible latent spaces, but they play different computational roles.
For a conventional autoencoder, the corresponding relation is:
ẑ = z
Here ẑ again denotes the decoder input, and z denotes the encoder output. Equality describes the direct connection that MemAE replaces. The proposed memory is therefore inside reconstruction, rather than an auxiliary database consulted after reconstruction has already occurred.
The encoder and decoder architectures can vary with the input. The experiments use spatial convolutions for images, spatiotemporal convolutions for video, and fully connected layers for numerical records. The memory interface does not prescribe one of those choices.
Memory is a learned matrix
The memory has the following shape:
M ∈ ℝ^(N×C)
M is a real-valued matrix. N is the number of entries, and C is the number of coordinates in each entry. Each row mᵢ is a stored latent vector. For the basic formulation, z also has C coordinates.
This is learned storage, not an index of unchanged training examples. Back-propagation adjusts the rows so that they become useful under the reconstruction objective. Calling them prototypes describes their intended representative role; it does not mean the method explicitly chooses a real training observation for every row.
A retrieval vector combines those entries:
ẑ = wM = Σᵢ₌₁ᴺ wᵢmᵢ
The row vector w contains addressing weights. Its component wᵢ controls the contribution of memory row mᵢ. The summation runs over N entries, and ẑ is their weighted combination. Before the sparsity modification, the weights are non-negative and total one.
Memory capacity and retrieval concentration are separate design variables. N determines how many entries are available globally. The distribution of w determines how many entries meaningfully contribute to a particular observation. A large collection can still be used restrictively if each reconstruction draws on only a narrow subset.
Content determines access
The paper calculates access weights using a softmax:
wᵢ = exp(d(z, mᵢ)) / Σⱼ₌₁ᴺ exp(d(z, mⱼ))
The function d compares query z with a memory entry. The exponential function is written exp. Index i identifies the entry whose weight is being calculated, while j ranges over all N entries in the denominator.
Softmax converts the similarity scores into normalized positive weights. A stronger similarity receives a larger contribution relative to weaker similarities. The operation makes retrieval depend on stored contents rather than a fixed address selected independently of the input.
The similarity function is:
d(z, mᵢ) = zmᵢᵀ / (‖z‖ ‖mᵢ‖)
The numerator is the dot product between z and memory row mᵢ, expressed using its transpose mᵢᵀ. The denominator multiplies their Euclidean lengths. This is cosine similarity, which compares their directional alignment.
Content-based attention provides a preference, but not yet a sufficiently strong restriction for the authors’ purpose. A soft distribution can retain contributions from many entries. Even individually weak matches might collectively provide enough material to reconstruct an anomalous input.
The problem is therefore not simply retrieval accuracy. A query might correctly identify its closest normal entries while still obtaining an overly flexible combination of them. MemAE addresses that compositional freedom explicitly.
Thresholding makes access sparse
The intended shrinkage rule is:
ŵᵢ = h(wᵢ; λ) = wᵢ if wᵢ > λ; otherwise 0
The function h applies threshold λ to the original weight wᵢ. Its output ŵᵢ retains a sufficiently large contribution and otherwise removes it. A removed entry contributes zero to the retrieved representation.
The authors describe the difficulty of differentiating the discontinuous rule and use this practical expression:
ŵᵢ = max(wᵢ − λ, 0) · wᵢ / (|wᵢ − λ| + ε)
The maximum operation implements the rectified linear part. Absolute value appears in the denominator, and ε is a small positive constant. The remaining symbols retain their meanings as access weight and threshold.
Below the threshold, the numerator removes the contribution. Above it, the expression preserves a positive contribution whose magnitude approaches the intended retained weight as the denominator’s stabilizing term becomes negligible.
The stabilizing term matters when interpreting the equation. The practical expression should not be described as exactly identical to the discontinuous operation for every positive ε. It supplies a trainable implementation of the desired thresholding behavior.
The stated practical interval is:
λ ∈ [1/N, 3/N]
The threshold is λ, and N is memory capacity. The paper reports satisfactory behavior for choices in this interval. It does not establish a universal threshold theorem or a procedure guaranteeing the best setting for every application.
Thresholding changes the total weight, so the surviving vector is normalized:
ŵᵢ ← ŵᵢ / ‖ŵ‖₁
The vector ŵ contains the thresholded weights. Its ℓ₁ norm, ‖ŵ‖₁, sums their absolute values. Because these weights are non-negative, division makes the surviving contributions total one.
The decoder’s representation is then:
ẑ = ŵM
The sparse normalized vector ŵ combines memory matrix M to produce ẑ. This is the representation passed to the decoder. The query z affects the selection, but does not bypass it.
The forward computation supplies the sparse coefficients directly. The authors contrast this with sparse-representation approaches that iteratively update coefficients. Their claim concerns the procedure for obtaining access weights, rather than a guarantee that every implementation will have the same runtime advantage.
Reconstruction and entropy train the system
For an individual training example, reconstruction loss is:
R(xᵗ, x̂ᵗ) = ‖xᵗ − x̂ᵗ‖₂²
The superscript t identifies a training observation. Its input is xᵗ, its reconstruction is x̂ᵗ, and R measures their squared Euclidean discrepancy. Minimizing this quantity rewards faithful reproduction of normal training data.
That pressure reaches memory because the decoder depends on retrieved entries. The network cannot reduce the loss solely by passing an arbitrary encoding through unchanged. It must make the memory and surrounding transformations useful together.
An entropy penalty favors concentrated retrieval:
E(ŵᵗ) = Σᵢ₌₁ᵀ −ŵᵢ · log(ŵᵢ)
E is the entropy term, ŵᵗ is the access distribution for instance t, ŵᵢ is an entry of that distribution, and log denotes the logarithm. The displayed upper limit T is a notation problem: elsewhere T counts training observations, whereas these components index memory access. The surrounding method defines entropy over the addressing distribution.
The intended operation remains understandable. A distribution spread across many entries has greater entropy than a concentrated distribution. Minimization therefore discourages diffuse access, complementing the direct removal of weak weights.
The combined objective is:
L(θₑ, θ_d, M) = (1/T) Σₜ₌₁ᵀ [R(xᵗ, x̂ᵗ) + αE(ŵᵗ)]
L is the training loss. T counts training examples, t indexes them, and α weights the entropy contribution. The encoder parameters θₑ, decoder parameters θ_d, and memory M are all optimized.
The authors use α=0.0002 throughout their experiments. Their implementation uses PyTorch and Adam, with learning rate 0.0001. These are reported experimental settings rather than independently demonstrated universal choices.
The paper notes that access also controls memory updates. Only entries with non-zero addressing contributions can receive non-zero gradients through those accesses. Thus selection affects both the representation used now and the entries shaped by the current example.
Reconstruction becomes a score
The basic test criterion is:
e = ‖x − x̂‖₂²
The error e compares test observation x with reconstruction x̂. A larger value indicates a greater discrepancy between the observation and what the fixed memory-mediated route can reproduce.
The authors call this an MSE-based criterion, although the displayed expression contains no explicit averaging over input coordinates. That distinction should be kept in mind when implementing the notation. The conceptual score remains a squared reconstruction discrepancy.
For video, the normality score is:
pᵤ = 1 − (eᵤ − minᵤ(eᵤ)) / (maxᵤ(eᵤ) − minᵤ(eᵤ))
Frame index u identifies the frame being scored. Its reconstruction error is eᵤ. The minimum and maximum are calculated across a video episode, and pᵤ is the resulting normality value.
The subtraction from one reverses the direction: higher error produces lower normality. Values approaching 0 indicate more abnormal frames under this scoring convention.
This is a relative transformation, not a probability estimate. Its interpretation depends on the episode’s error range. The formula also assumes a non-zero range; the paper does not describe special handling when all episode errors are equal.
Experiments and results
What is measured
The evaluation crosses image data, video data, and numerical cybersecurity records. The surrounding architectures change, but the proposed retrieval mechanism remains recognizable in each setting.
The most informative internal comparisons are AE, MemAE-nonSpar, and full MemAE. AE removes the memory. MemAE-nonSpar retains memory but drops the thresholding and entropy components. The full system includes all of them.
The authors keep encoder and decoder designs shared across these central variants and seek similar capacity for other encoder-decoder comparisons. This does not make every external baseline identical in all respects, but it focuses the internal comparison on the proposed intermediate representation.
For image and video detection, the metric is AUC: area under a receiver operating characteristic curve. Varying a decision threshold produces different detection and false-alarm rates; AUC summarizes that ranking behavior rather than committing to one operating point.
The paper’s discussion states the direction of the main detection comparisons, but does not state their table values in prose. Exact image and video AUC results, and exact cybersecurity precision, recall, and F₁ results, are therefore not reproduced below. The reported timing values do support a numerical comparison. Comparative language about detection should be read with that quantitative limit in view.
Image experiments
MNIST and CIFAR-10 each provide 10 classes. The authors construct a separate one-class detection problem around each class, making its examples normal and drawing anomalies from the other classes.
Normal observations are allocated to training and testing in a 2:1 split. Training and testing do not overlap. The anomaly share is approximately 30%, and 10% of the original training material is reserved for validation.
This design creates a controlled question: can a system trained on one accepted class distinguish it from examples of the remaining classes? It does not ask the detector to infer a universal definition of an abnormal image.
MNIST inputs are grayscale. Its encoder consists of Conv2(1, 2, 16), followed by Conv2(3, 2, 32), then Conv2(3, 2, 64). In this notation, the arguments specify kernel size, stride, and number of kernels.
The corresponding decoder uses Dconv2(3, 2, 64), Dconv2(3, 2, 32), and Dconv2(3, 2, 1). Intermediate layers receive batch normalization and ReLU activation; the final output layer is excepted.
CIFAR-10 receives a larger architecture and retains RGB input. Its encoder uses kernel counts 64, 128, 128, and 256, with kernel size 3 and stride 2. The decoder returns through the corresponding larger representation towards 3 output channels. The memory capacities are 100 for MNIST and 500 for CIFAR-10.
The external image baselines include KDE, OC-SVM, and VAE. The evaluation also includes PixCNN and DSEBM. Density-oriented systems use likelihood-derived scores, while reconstruction-oriented systems use error. The authors specifically restrict VAE’s evaluation score to reconstruction discrepancy for their comparison.
The reported pattern favors memory over the ordinary autoencoder, and sparse memory over the non-sparse memory variant. The authors also find the image task easier on MNIST than on CIFAR-10 across the compared approaches.
Their explanation concerns the accepted distributions. Digits have comparatively simple recurring structure. CIFAR-10 has more varied content and greater within-class variation in several categories. A normal reference that must cover wider variation can be harder to learn and can leave less separation between ordinary and unusual observations.
The authors describe the VAE baseline as satisfactory on MNIST, where a simple Gaussian latent description can be effective. Their argument is therefore not that every alternative latent restriction is unhelpful. It is that the memory intervention provides a useful restriction in the comparisons they perform.
Visual evidence from digits
The memory inspection experiment learns from “9” and decodes randomly selected entries separately. The outputs are imperfect and visually noisy, but they display recognizable digit-related structure.
This supports the intended prototype interpretation at a qualitative level. The entries are useful latent building blocks, rather than necessarily clean stored examples. Their ordinary role is to participate in combinations, so isolated decoding is an inspection device with its own limitations.
A second illustration learns from “5” and supplies “9.” MemAE’s output resembles the normal class while retaining some shape correspondence to the query. That is precisely the kind of mismatch the detector needs: successful retrieval of nearby accepted structure without faithful reproduction of the excluded digit.
Another illustration learns from “2” and evaluates “4.” It serves the same explanatory purpose under a different class pairing. The images show how memory can alter the reconstruction route, but do not quantify how frequently that behavior occurs across all image pairs.
The ordinary autoencoder is important in these illustrations because it can retain unusual input structure more faithfully. Its superior reproduction of that particular input is undesirable for the detection criterion. This makes the difference between reconstruction quality and detection usefulness visible.
Video experiments
The video evaluation uses CUHK Avenue, UCSD-Ped2, and ShanghaiTech. The authors describe unusual objects and vigorous activities as the target departures. Vehicles in pedestrian areas, fighting, and chasing are examples.
ShanghaiTech spans 13 scenes. The paper reports more than 270,000 training frames, more than 42,000 test frames, and about 17,000 abnormal test frames. These quantities describe that dataset’s evaluation scale, not the size of every video experiment.
Each input combines 16 neighboring grayscale frames into a cuboid. The encoder uses 3D convolutions so that its features can depend on motion as well as spatial appearance.
The encoder’s Conv3 sequence uses kernel size 3, stride 2, and channel counts 96, 128, 256, and 256. The decoder uses Dconv3 layers with counts 256, 256, 128, and 1. Batch normalization and ReLU again follow intermediate layers.
Memory capacity is N=2000. Each entry has 256 coordinates, yielding a 2000×256 matrix. Unlike a whole-observation prototype, an entry corresponds to features at a position in the encoded maps and therefore to a subregion of the clip.
That local choice matters. A video contains combinations of background, objects, and movement. Learning reusable subregion features allows the memory to cover local normal structure without making every stored entry describe a complete scene.
A frame receives the reconstruction error of the cuboid centered on it. The episode-relative transformation then converts those errors into normality scores. The illustrated traces show normality dropping as unusual content appears.
The comparisons include AE-Conv3D and AE-Conv2D. They also include StackRNN and a temporally constrained sparse-coding approach. Frame-Pred supplies a comparison with a system using additional video-specific techniques.
The authors report that full MemAE improves on its internal AE and non-sparse memory baselines. They also describe its performance as better than or comparable with the video-oriented alternatives. The stated purpose is to demonstrate the value of the reconstruction intervention, rather than to optimize every aspect of one surveillance benchmark.
A UCSD-Ped2 error-map illustration shows conspicuous mismatch around unusual sidewalk traffic. The ordinary autoencoder reproduces the abnormal content more effectively and distributes errors less helpfully. This is qualitative support for localized detection behavior; the paper does not report a separate quantitative localization metric.
Processing time
On UCSD-Ped2, the authors measure frame-processing time using an NVIDIA GeForce 1080 Ti. Their reported average values are:
UCSD-Ped2 processing time for a video frame
MemAE and the ordinary autoencoder have closely matched reported runtimes.
The numbers
| System or setting | seconds per frame |
|---|---|
| AE | 0.0266 |
| MemAE (this paper) | 0.0262 |
The paper also reports MemAE at 38 fps. It quotes earlier systems at 0.04s, 0.02s, and 0.05s for contextual comparison, while noting that those timings came from another publication and used a faster graphics card.
These values do not constitute a hardware-controlled speed ranking. They support the narrower observation that memory retrieval does not introduce a conspicuous runtime burden in the authors’ implementation.
There is also an internal inconsistency in the interpretation of the baseline timing. The prose describes additional memory computation, whereas the stated MemAE time is lower than the stated AE time. The defensible reading is that the reported measurements are close; a precise claim about added latency would require clarification.
Cybersecurity records
The numerical-data experiment uses the KDDCUP99 10 percent dataset. Each observation becomes a vector with 120 dimensions. This moves the evaluation beyond visual inputs and tests whether the same memory interface can operate around fully connected transformations.
The class assignment needs particular care. The experimental description designates “attack”-labeled observations as normal and refers to 80% in stating that choice. This is not a study in which normality straightforwardly means benign network behavior.
The encoder follows FC(120, 60), FC(60, 30), FC(30, 10), and FC(10, 3). Each FC pair specifies input and output dimensions. The decoder expands through FC(3, 10), FC(10, 30), FC(30, 60), and FC(60, 120).
Intermediate layers use Tanh activation. Memory capacity is 50, with 3 coordinates per entry, giving a 50×3 matrix.
The authors randomly allocate 50% of the data to training and use the remainder for testing. Training retains only the designated normal class. Evaluation reports average precision, recall, and F₁ after 20 runs.
Precision asks how reliable positive detections are, while recall asks how much of the target anomaly class is found. F₁ balances the two. These metrics describe thresholded decisions, unlike a ranking summary across thresholds.
The compared approaches include DAGMM, DCN, and OC-SVM. DSEBM and MemAE’s internal variants are also evaluated. The authors describe both DAGMM and MemAE as strong in this setting and attribute their own result to effective representation of the accepted patterns.
The experiment demonstrates that the architecture can be applied to structured vectors under this protocol. It does not establish an exact numerical margin in the absence of the table entries, and it should not be reinterpreted as evidence for a different benign-versus-attack training convention.
What the ablations show
Memory and sparsity contribute separately
The central comparison distinguishes removing memory from removing its access restrictions. AE tests whether an ordinary encoded representation is sufficient. MemAE-nonSpar tests whether adding memory without the proposed sparsity machinery is sufficient. Full MemAE tests the combined intervention.
The authors report that both additions matter. Memory improves the detection behavior relative to AE, and sparse access improves it further. This supports their argument that the architecture’s useful restriction lies partly in how stored patterns are combined.
The result does not uniquely prove every part of their interpretation. Adding memory changes optimization and the decoder’s input distribution. Introducing sparse access changes both training and evaluation. The controlled variants make the proposed account more credible, but they do not turn that account into a complete causal description of all learned behavior.
Thresholding has a role beyond training pressure
The targeted sparsity experiments use UCSD-Ped2. Removing hard shrinkage while retaining the entropy term reduces reported AUC.
The authors’ interpretation is that a training penalty cannot substitute fully for a direct evaluation-time operation. Entropy encourages concentrated weights on training observations. It does not explicitly delete small contributions when a new observation produces an access distribution.
Thresholding acts on the distribution currently being used, including distributions elicited by unusual inputs. This gives it a different operational role from the training preference.
The experiment supports that distinction for the tested setup. It does not compare every possible sparse-retrieval rule, prove that the chosen threshold is optimal, or show that entropy-trained retrieval must always become diffuse without shrinkage.
Entropy affects how retrieval is learned
Removing the entropy term while preserving thresholding also reduces reported AUC. The paper emphasizes its usefulness early in learning, when addressing weights are not yet well organized.
A threshold suppresses contributions according to their current magnitude. Entropy adds pressure on the distribution that produces those magnitudes. It can therefore affect which entries become favored and how memory contents develop through repeated updates.
This explains why the two mechanisms need not be redundant. One changes the immediate representation; the other changes the incentives governing its formation.
The ablation supports using both in this implementation. The claim about early training is the authors’ explanation of that result, instead of a separately quantified account of every stage of optimization.
Sparsifying the encoding is a different intervention
The authors compare MemAE with AE-ℓ₁, which applies a sparsity penalty directly to the encoder’s output:
‖z‖₁
The vector z is the latent encoding. Its ℓ₁ norm adds the absolute values of its coordinates. Minimizing this quantity favors an encoding with fewer substantial activations.
This comparison tests whether an ordinary sparsity incentive explains the benefit without requiring memory retrieval. AE-ℓ₁ shares the encoder and decoder used in the MemAE comparison.
The reported outcome places AE-ℓ₁ above AE and near MemAE-nonSpar, while below full MemAE and the other memory variants discussed in this analysis.
The distinction is architectural. Sparsifying z still lets that current observation supply the decoder’s representation directly. Sparse addressing instead requires the representation to be constructed from learned entries. The former limits active coordinates; the latter limits contributing stored patterns.
Capacity and decoded entries are supporting analyses
The memory-capacity experiment varies N on UCSD-Ped2. The authors report that results remain satisfactory once capacity is sufficiently large.
This supports practical tolerance to capacity choice in that dataset. It does not provide a universal rule for selecting memory size, and the prose does not give the plotted values needed to reproduce a numerical capacity curve.
The decoded-entry illustrations and error maps provide another kind of support. They connect the reported comparisons with recognizable behavior: stored digit tendencies, reconstructions biased toward the accepted class, and mismatch concentrated near unusual visual content.
Those observations help explain the mechanism. They do not replace the ablations, establish that every entry has a unique function, or quantify how frequently the illustrated behavior occurs.
Limitations
Directions the authors explicitly leave open
The authors leave direct use of addressing weights for anomaly detection to future work. In the reported method, those weights influence reconstruction, but the final decision signal comes from the mismatch between input and output.
This is an important boundary. A peaked access distribution may look reassuring, and a diffuse distribution may look suspicious, but the paper does not establish their standalone diagnostic value. Their role in the architecture should not be confused with a validated confidence estimate.
The authors also propose integration with more elaborate base architectures and evaluation on harder applications. The memory interface permits different surrounding networks, as the experiments demonstrate. That flexibility does not establish the outcome of every possible integration.
They explicitly describe application-specific maximum accuracy as outside the central purpose of their video study. Their contribution is an improvement to reconstruction-based detection that could coexist with other techniques.
Memory capacity remains a design choice. The authors acknowledge that selecting an optimum for a new dataset is not straightforward, even though their UCSD-Ped2 analysis suggests tolerance once capacity is adequate.
Normality is supplied by the training protocol
A limitation visible in the experimental design is the reliance on accepted examples during training. The experiments do not establish robustness to an unknown amount of contamination by patterns that should later be detected.
This follows directly from the learning mechanism. To support the supplied observations, the memory entries are optimized. If unwanted structure is repeatedly rewarded by the reconstruction objective, there is no separate semantic authority in the method that identifies it as unwanted.
The image-class experiments make the operational definition clear. Selecting one digit or object category as normal creates a useful controlled task, but another category is not intrinsically abnormal. Its status follows from the chosen reference distribution.
The cybersecurity convention makes that point even more sharply. A category labeled “attack” in the original data is used as the accepted training class. The reported success must remain attached to that assignment.
It would therefore be misleading to treat the experiment as establishing a detector trained exclusively on benign traffic, or as a general account of malicious behavior. Neither claim follows from the stated protocol.
The architectural restriction does not guarantee separation
The paper’s explanation is an incentive-based argument, not a proof that all anomalies receive high error. An unusual input might still be approximated by a small combination of normal entries.
The encoder could map different observations to similar queries. The decoder could produce outputs that generalize beyond the individual patterns suggested by isolated memory inspection. Restricting access reduces a route to unwanted reconstruction without mathematically eliminating every such route.
Normal observations also require coverage. A legitimate but uncommon example may be reconstructed poorly if the learned collection does not represent its variation adequately. Stronger restrictions can sharpen differences, but can also make the accepted class harder to reproduce.
The CIFAR-10 discussion is relevant here. Greater content complexity and within-class variation make the task harder across the evaluated approaches. Memory does not remove the need to represent normal diversity.
These are deductions from the setup, rather than failures separately demonstrated by the paper. They define the limits of interpreting low or high reconstruction error.
Visual explanations have limited scope
An individual decoded entry is not necessarily a distinct concept. The authors show recognizable digit patterns, but ordinary reconstruction combines entries. Isolated decoding changes the conditions under which the component normally operates.
Accordingly, the inspection supports a prototype-like interpretation without establishing a clean partition of the accepted distribution. Several entries might overlap in function, and an entry’s contribution might depend on the others selected with it.
The video maps similarly show useful localization in selected examples. They do not establish a general localization accuracy, because the reported metric concerns frame-level detection.
A large residual identifies disagreement between observation and reconstruction. It does not itself identify the cause of that disagreement. An unusual event, inadequate normal coverage, or imperfect reconstruction can all be relevant possibilities under the method’s assumptions.
The metrics leave operational choices unresolved
AUC evaluates ordering across thresholds. A good ordering does not by itself specify an acceptable operating point for a particular application.
The paper does not establish a universal threshold-selection policy, a false-alarm budget, or calibration across changing environments. Its image anomaly proportion and class-based construction define one evaluation setting instead of every possible deployment distribution.
Video normalization introduces another boundary. Scores depend on the range of errors within an episode. A normality value is therefore relative to that episode’s observations.
This does not make the score invalid for the reported evaluation, but it limits interpretation across episodes. The same underlying error need not carry the same normalized meaning under a different error range.
The use of episode extrema also leaves a practical question for immediate decisions before an episode’s full range is known. The frame-processing runtime does not resolve that scoring issue.
These are careful-reader observations about the formula and evaluation procedure. The authors do not present them as measured deployment failures.
Numerical reporting needs cautious interpretation
The comparative discussion reports favorable detection outcomes, but exact table values are not stated in the prose. Without those entries, the magnitude of the claimed detection gains cannot be reconstructed responsibly.
This prevents a numerical ranking chart for AUC or cybersecurity F₁. Supplying remembered values, estimates from figures, or inferred margins would exceed the evidence.
The runtime comparison is more concrete, but still limited. Its internal ordering conflicts with the description of additional overhead, and the external timing references use different hardware.
The method section also contains notation requiring clarification. The entropy sum uses a training-set upper limit where memory entries are intended. The reconstruction criterion is described as mean-square error while displayed as an unaveraged squared norm.
Normalization after shrinkage assumes surviving weight. The practical threshold guidance does not include an explicit fallback for the case where all contributions are removed. Likewise, episode normalization does not discuss a zero error range.
These are implementation ambiguities visible in the equations, not documented experimental breakdowns.
There is also a reporting inconsistency in experimental scope. The overview announces five datasets, while the sections name MNIST and CIFAR-10, then the video datasets, and finally KDDCUP99. The named evaluations should guide interpretation rather than an inferred correction to the overview’s count.
Cross-domain applicability remains narrower than universal generality
The experiments show that the retrieval mechanism can be placed between different kinds of encoders and decoders. That is meaningful architectural evidence.
It is not evidence that every data type admits a useful reconstruction criterion, that all anomalies differ from normal examples in reconstructable ways, or that the same thresholds and representations will transfer unchanged.
The authors adapt the surrounding architecture, memory dimensions, and representation granularity. Those adaptations are part of the result, rather than incidental details.
For Mova, the remaining gap is substantial. The paper does not evaluate grammatical unfamiliarity, unsupported semantic roles, factual error, or dictionary admission. Any proposed transfer would need to define the reference distribution, the reconstruction target, and the practical meaning of a mismatch before assessing whether the idea helps.
What came after
Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning is a later citing work, dated 2021. Its title places it in video anomaly detection with weak supervision and emphasizes temporal feature magnitude.
That establishes a relevant later research connection, but not a documented reuse of MemAE’s mechanism. The citation information does not specify whether the later system adopts a learned memory, uses sparse retrieval, compares reconstruction routes, or treats MemAE only as a reference point.
The distinction matters because sharing an application does not imply sharing an architecture. MemAE’s central experiment learns from normal examples and scores reconstruction mismatch. A later work’s emphasis on weak supervision signals a different framing, but its detailed training procedure and relationship to memory cannot be reconstructed from its title.
No results or mechanistic improvements should therefore be attributed to that citing work without further evidence. The supported historical statement is that MemAE is connected by citation to this later video-anomaly study.
The original paper itself identifies more specific continuations. One is to study the addressing distribution directly as a detection signal. Another is to insert memory into more elaborate reconstruction architectures. Its video discussion also proposes combining the memory intervention with prediction and other application-specific techniques.
Those proposals clarify the research questions left open. Is the most useful evidence in the reconstructed observation, in retrieval behavior, or in their combination? Can a restricted normal-pattern interface remain effective when the surrounding system becomes more expressive? MemAE supplies an architecture and controlled comparisons that make these questions concrete, while its experiments leave their answers dependent on further measurement.
Cite
Cite as Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha, Moussa Reda Mansour, Svetha Venkatesh and Anton van den Hengel. 2019. Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection. IEEE/CVF International Conference on Computer Vision (ICCV).
@inproceedings{gong2019memorizing,
title = {{Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection}},
author = {Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha, Moussa Reda Mansour, Svetha Venkatesh and Anton {van den Hengel}},
booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
year = {2019},
doi = {10.1109/iccv.2019.00179},
eprint = {1904.02639},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/iccv.2019.00179}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/gong-2019-memorizing-normality-detect-anomaly-memory/
References
- D. Abati, A. Porrello, S. Calderara, and R. Cucchiara. AND: Autoregressive novelty detectors. arXiv preprint arXiv:1807.01653, 2018. OpenAlex ↗ · Scholar ↗
- Y. Bengio, P. Lamblin, D. Popovici, and H. Larochelle. Greedy layer-wise training of deep networks. In Advances in Neural Information Processing Systems, pages 153–160, 2007. OpenAlex ↗ · Scholar ↗
- R. Chalapathy, A. K. Menon, and S. Chawla. Anomaly detection using one-class neural networks. arXiv preprint arXiv:1802.06360, 2018. OpenAlex ↗ · Scholar ↗
- V. Chandola, A. Banerjee, and V. Kumar. Anomaly detection: A survey. ACM computing surveys (CSUR), 41(3):15, 2009. OpenAlex ↗ · Scholar ↗
- Y. Chen, X. S. Zhou, and T. S. Huang. One-class svm for learning in image retrieval. In The IEEE International Conference on Image Processing, volume 1, pages 34–37. IEEE, 2001. OpenAlex ↗ · Scholar ↗
- Y. S. Chong and Y. H. Tay. Abnormal event detection in videos using spatiotemporal autoencoder. In International Symposium on Neural Networks, pages 189–196. Springer, 2017. OpenAlex ↗ · Scholar ↗
- I. Golan and R. El-Yaniv. Deep anomaly detection using geometric transformations. In Advances in Neural Information Processing Systems, pages 9758–9769, 2018. our card
- A. Graves, G. Wayne, and I. Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. OpenAlex ↗ · Scholar ↗
- M. Hasan, J. Choi, J. Neumann, A. K. Roy-Chowdhury, and L. S. Davis. Learning temporal regularity in video sequences. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 733–742, 2016. OpenAlex ↗ · Scholar ↗
- R. Hinami, T. Mei, and S. Satoh. Joint detection and recounting of abnormal events by learning deep generic knowledge. In The IEEE International Conference on Computer Vision (ICCV), pages 3639–3647, 2017. our card
- S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. OpenAlex ↗ · Scholar ↗
- I. Jolliffe. Principal component analysis. In International encyclopedia of statistical science, pages 1094–1096. Springer, 2011. OpenAlex ↗ · Scholar ↗
- J. Kim and K. Grauman. Observe locally, infer globally: a space-time mrf for detecting abnormal activities with incremental updates. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009. OpenAlex ↗ · Scholar ↗
- Y. Kim, M. Kim, and G. Kim. Memorization precedes generation: Learning unsupervised gans with memory networks. International Conference on Learning Representations (ICLR), 2018. OpenAlex ↗ · Scholar ↗
- D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. our card
- D. P. Kingma and M. Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. our card
- A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. OpenAlex ↗ · Scholar ↗
- Y. LeCun. The mnist database of handwritten digits. http://yann. lecun. com/exdb/mnist/, 1998. OpenAlex ↗ · Scholar ↗
- R. Leyva, V. Sanchez, and C.-T. Li. The lv dataset: A realistic surveillance video dataset for abnormal event detection. In International Workshop on Biometrics and Forensics (IWBF), pages 1–6. IEEE, 2017. OpenAlex ↗ · Scholar ↗
- C. Li, J. Zhu, and B. Zhang. Learning to generate with memory. In International Conference on Machine Learning (ICML), pages 1177–1186, 2016. OpenAlex ↗ · Scholar ↗
- M. Lichman et al. Uci machine learning repository, 2013. OpenAlex ↗ · Scholar ↗
- W. Liu, W. Luo, D. Lian, and S. Gao. Future frame prediction for anomaly detection–a new baseline. The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. OpenAlex ↗ · Scholar ↗
- C. Lu, J. Shi, and J. Jia. Abnormal event detection at 150 fps in matlab. In The IEEE International Conference on Computer Vision (ICCV), pages 2720–2727, 2013. OpenAlex ↗ · Scholar ↗
- W. Luo, W. Liu, and S. Gao. A revisit of sparse coding based anomaly detection in stacked rnn framework. The IEEE International Conference on Computer Vision (ICCV), 2017. OpenAlex ↗ · Scholar ↗
- V. Mahadevan, W. Li, V. Bhalodia, and N. Vasconcelos. Anomaly detection in crowded scenes. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR). OpenAlex ↗ · Scholar ↗
- V. Nair and G. E. Hinton. Rectified linear units improve restricted boltzmann machines. In International Conference on Machine Learning (ICML), pages 807–814, 2010. OpenAlex ↗ · Scholar ↗
- E. Parzen. On estimation of a probability density function and mode. The Annals of Mathematical Statistics, 33(3):1065–1076, 1962. OpenAlex ↗ · Scholar ↗
- A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. DeVito, Z. Lin, A. Desmaison, L. Antiga, and A. Lerer. Automatic differentiation in pytorch. 2017. OpenAlex ↗ · Scholar ↗
- J. Rae, J. J. Hunt, I. Danihelka, T. Harley, A. W. Senior, G. Wayne, A. Graves, and T. Lillicrap. Scaling memory-augmented neural networks with sparse reads and writes. In Advances in Neural Information Processing Systems, pages 3621–3629, 2016. OpenAlex ↗ · Scholar ↗
- L. Ruff, R. Vandermeulen, N. Goernitz, L. Deecke, S. A. Siddiqui, A. Binder, E. Müller, and M. Kloft. Deep one-class classification. In International Conference on Machine Learning (ICML), pages 4393–4402, 2018. OpenAlex ↗ · Scholar ↗
- M. Sabokrou, M. Khalooei, M. Fathy, and E. Adeli. Adversarially learned one-class classifier for novelty detection. In The IEEE Conference on Computer Vision and Pattern Recognition, pages 3379–3388, 2018. OpenAlex ↗ · Scholar ↗
- A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap. One-shot learning with memory-augmented neural networks. arXiv preprint arXiv:1605.06065, 2016. OpenAlex ↗ · Scholar ↗
- B. Scholkopf and A. J. Smola. Learning with kernels: support vector machines, regularization, optimization, and beyond. MIT press, 2001. OpenAlex ↗ · Scholar ↗
- B. Schölkopf, R. C. Williamson, A. J. Smola, J. Shawe-Taylor, and J. C. Platt. Support vector method for novelty detection. In Advances in Neural Information Processing Systems, pages 582–588, 2000. OpenAlex ↗ · Scholar ↗
- D. Tran, L. Bourdev, R. Fergus, L. Torresani, and M. Paluri. Learning spatiotemporal features with 3d convolutional networks. In The IEEE International Conference on Computer Vision (ICCV), pages 4489–4497, 2015. OpenAlex ↗ · Scholar ↗
- R. Tudor Ionescu, S. Smeureanu, B. Alexe, and M. Popescu. Unmasking the abnormal events in video. In The IEEE International Conference on Computer Vision (ICCV), 2017. OpenAlex ↗ · Scholar ↗
- A. van den Oord, N. Kalchbrenner, L. Espeholt, O. Vinyals, A. Graves, et al. Conditional image generation with pixelcnn decoders. In Advances in Neural Information Processing Systems, pages 4790–4798, 2016. OpenAlex ↗ · Scholar ↗
- J. Weston, S. Chopra, and A. Bordes. Memory networks. International Conference on Learning Representations (ICLR), 2015. OpenAlex ↗ · Scholar ↗
- L. Xiong, B. Póczos, and J. G. Schneider. Group anomaly detection using flexible genre models. In Advances in Neural Information Processing Systems, pages 1071–1079, 2011. OpenAlex ↗ · Scholar ↗
- D. Xu, E. Ricci, Y. Yan, J. Song, and N. Sebe. Learning deep representations of appearance and motion for anomalous event detection. arXiv preprint arXiv:1510.01553, 2015. OpenAlex ↗ · Scholar ↗
- X. Yang, K. Huang, J. Y. Goulermas, and R. Zhang. Joint learning of unsupervised dimensionality reduction and gaussian mixture model. Neural Processing Letters, 45(3):791–806, 2017. OpenAlex ↗ · Scholar ↗
- S. Zhai, Y. Cheng, W. Lu, and Z. Zhang. Deep structured energy based models for anomaly detection. arXiv preprint arXiv:1605.07717, 2016. OpenAlex ↗ · Scholar ↗
- B. Zhao, L. Fei-Fei, and E. P. Xing. Online detection of unusual events in videos via dynamic sparse coding. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3313–3320, 2011. OpenAlex ↗ · Scholar ↗
- Y. Zhao, B. Deng, C. Shen, Y. Liu, H. Lu, and X.-S. Hua. Spatio-temporal autoencoder for video anomaly detection. In ACM on Multimedia Conference, pages 1933–1941. ACM, 2017. OpenAlex ↗ · Scholar ↗
- C. Zhou and R. C. Paffenroth. Anomaly detection with robust deep autoencoders. In ACM SIGKDD, pages 665–674. ACM, 2017. OpenAlex ↗ · Scholar ↗
- A. Zimek, E. Schubert, and H.-P. Kriegel. A survey on unsupervised outlier detection in high-dimensional numerical data. Statistical Analysis and Data Mining: The ASA Data Science Journal, 5(5):363–387, 2012. OpenAlex ↗ · Scholar ↗
- B. Zong, Q. Song, M. R. Min, W. Cheng, C. Lumezanu, D. Cho, and H. Chen. Deep autoencoding gaussian mixture model for unsupervised anomaly detection. In International Conference on Learning Representations, 2018. OpenAlex ↗ · Scholar ↗