Learning End-To-End Scene Flow by Distilling Single Tasks Knowledge
Paper · 2019 · Filippo Aleotti, Matteo Poggi, Fabio Tosi et al.
Summary
A camera can show where an object appears to move without revealing whether it is getting closer. A stereo pair can supply depth at one instant, but following a point through space also requires finding it again after it moves. Scene flow estimation combines those measurements. Given left and right camera images at successive times, DWARF estimates the starting disparity, the point’s displacement in the image, and its disparity at the later time aligned to the starting image. Together these maps describe the structure and motion of the observed scene. The paper asks whether one compact network can produce them accurately enough to compete with pipelines that assign the work to several separate networks.
DWARF starts with small, coarse representations of the images and gradually works towards finer ones. At each scale it compares stereo views to look for depth and compares successive views to look for image motion. It also compares the stereo matching scores themselves across time. A change in where the strongest stereo match occurs can provide evidence of motion toward or away from the camera, while the location of the matching score curve in the image supplies evidence about where the point went. The network learns to use these cues together. A separate challenge is finding enough examples with complete scene flow annotations. The authors use a larger specialist pipeline to label additional KITTI images, then train DWARF on those predictions and finish with human-provided benchmark ground truth.
On the KITTI 2015 online benchmark, DWARF records 12.78% on SF-All, the full scene flow outlier measure over all evaluated regions, and takes 0.14 seconds per input on an NVIDIA 1080 Ti. The heavier systems of Ilg and Ma achieve lower errors. DWARF also has lower error than the similarly fast approach from Saxena and colleagues across the reported measures. The authors time several DWARF configurations on an NVIDIA Jetson TX2 as well. The full configuration takes 1.06 seconds in Max-N mode, placing the complete system close to one estimate per second on that device for the tested input size.
The training comparison qualifies the value of the extra labels. On a held-out portion of the KITTI training set, using only the specialists’ predictions improves the first disparity estimate but worsens optical flow and overall scene flow relative to using ground truth alone. Training first on the numerous proxy labels and then on the smaller ground-truth set gives the lowest overall error among the schedules tested. The paper’s result therefore depends on both how the network combines evidence from the images and when it learns from each source of supervision.
Deep dive: Learning End-To-End Scene Flow by Distilling Single Tasks Knowledge
DWARF estimates depth and motion from stereo video in one network, using joint image matching and extra training labels from specialist networks. · about 34 minutes to read
The problem and its context
Finding the same point across cameras and time
Imagine following a point on the back of a car as it pulls away. Its position in the next image tells you something about its motion across the camera’s view. Its apparent shift between the left and right cameras tells you something about its distance. Those are different observations. A point can travel mainly along the viewing direction and change its distance considerably while moving little across the image. A point can also move across the image while remaining at approximately the same distance. Scene flow describes motion in space, so estimating it requires combining evidence about both effects.
The paper works with rectified stereo images. Rectification arranges the left and right views so that a corresponding point can be sought along the same image row. The horizontal displacement between its appearances is called disparity. Large disparity corresponds to a nearer point in the stereo setup, and small disparity to a farther one. Stereo matching is the task of choosing the displacement that best accounts for the agreement between the views. The resulting disparity supports depth by triangulation. Optical flow solves a different correspondence problem. It finds the displacement between appearances of the same point in images taken at different times, with movement possible both along and across rows.
DWARF uses a left and right image from each time and expresses its results on the grid of the first left image. For a point on that grid, the initial stereo pair supplies a starting disparity. The temporal match tells the network where to look in the later left image. The later stereo pair supplies the disparity there. The paper calls the latter output disparity change, using notation that indicates that later disparity has been brought back to the earlier grid. Reporting the later disparity on that grid lets the starting and later depth information refer to the same scene point. A later disparity map kept on its native image grid would still require a temporal correspondence before the values could be compared point by point.
Finding these correspondences is the hard part. A foreground surface can move across the background, making a previously visible point disappear in one of the views. A point near the edge of the first image can leave the frame. The movement measured in the image also depends jointly on distance, scene motion and the motion of the camera. A method that learns disparity and optical flow together has an opportunity to use these dependencies. Conversely, an error in matching a point across time can carry depth information from the wrong surface into the earlier coordinate system.
The authors motivate dense scene flow with applications such as mapping, augmented reality and autonomous driving. Dense estimation asks for a field of motion over the image, so the correspondence problem arises across surfaces, including where one surface meets another. The practical issue in the paper is whether a system can produce that field with useful accuracy on the available hardware. Earlier approaches had attained strong accuracy, yet some of the systems discussed by the authors required substantial computation. A design that produced a full estimate quickly would make a different point on the speed and accuracy tradeoff available.
How stereo and optical flow reached this point
The optical-flow work reviewed in the paper includes variational methods, which formulate the field as the solution of an optimization problem, as well as methods that learn how to estimate it. The authors identify FlowNet as important to the latter line because it made the comparison of visual features an explicit part of the network. Its correlation layer evaluates how well a feature at one position agrees with features at candidate positions in another image. Those candidate scores give a later part of the network information about a range of possible matches. Work that improved FlowNet by stacking networks increased the number of parameters needed to run the resulting system.
Another line of optical-flow research pursued efficiency through a pyramid. SpyNet estimated motion at a coarse scale and refined it at successive finer scales. PWCNet and LiteFlowNet incorporated correlation at levels of the pyramid. This gave each stage a defined job. Coarse estimates could account for a large displacement in the original image, leaving finer stages to search for nearby corrections. The authors also describe work using view synthesis for self-supervision and work generating flow labels with a teacher network. These examples establish the separate precedents for the paper’s matching architecture and its training procedure.
The stereo literature offered a related set of choices. With rectified images, matching can exploit the fact that the search lies along a row. The paper mentions semi-global matching as a widely used traditional approach and describes learning-based systems that compare patches or treat candidate disparities as classes. DispNetC took the correlation idea from FlowNet and restricted the search to the horizontal dimension. Other stereo systems organized matching evidence in a cost volume, an array that stores scores for many disparities at many image locations. Some applied convolutions to that volume to incorporate context into correspondence decisions. The discussion also identifies coarse-to-fine search and warping as techniques that helped make stereo networks compact enough for embedded hardware.
These developments matter because DWARF inherits the geometry of the separate problems. It can use the cheap horizontal search for stereo and retain a search across rows and columns for optical flow. Its additional comparison asks how the stereo evidence at a location changes when that location is followed through time. The authors build that comparison on top of scores already needed for the individual tasks. The new computation uses a representation of candidate disparities that the stereo part produces anyway.
Why full scene flow remained a separate challenge
The earlier scene flow methods described in the paper make different assumptions about the scene. Some formulate the entire problem as a variational optimization. Others favor physically coherent solutions with priors on depth and spatial motion or describe a scene as pieces that move rigidly. The paper discusses methods that segment the environment into rigidly moving objects, as well as methods that bring in recognition or motion segmentation. These approaches supply information about which pixels might move together, addressing a problem that would be hard to resolve from individual matches alone.
The authors also examine pipelines built from deep networks. Ilg and colleagues trained stereo and optical-flow specialists, then used a further network to obtain the aligned later disparity. Ma and colleagues used existing stereo, flow and segmentation networks, followed by a solver. The specialist design had a training advantage. Each expert could learn from datasets intended for its particular output. It also had a cost. The pipeline depended on the training and execution of several components, and the paper describes even the faster of these approaches as reaching roughly 1 FPS on demanding GPU hardware. The published comparison later in the paper gives separate timings for the individual methods.
An integrated network faces the opposite data constraint. An optical-flow example can teach where a point goes in a later image while supplying no stereo disparity at either time. A stereo pair can teach a depth cue while supplying no tracked motion. The joint training loss used by DWARF expects the maps for all components. The paper identifies a synthetic source of complete labels and a realistic driving benchmark with far fewer complete annotations than the authors could obtain using a teacher. The source of synthetic labels is the dataset introduced in Mayer and colleagues’ A Large Dataset to Train Convolutional Networks for Disparity, Optical Flow, and Scene Flow Estimation.
DWARF addresses these issues at different stages. At prediction time, it keeps the correspondence calculations and the outputs within one network. At training time, it takes advantage of the specialist pipeline’s access to task-specific examples by learning from the maps that pipeline can produce. The earlier system thus has two roles in the paper. It is an accuracy and runtime comparison, and it is the teacher whose predictions make a larger realistic training set possible.
The method, step by step
Define the output on a common image grid
The starting image is the left camera view at the first time. The paper writes the four input images as L₁, R₁, L₂ and R₂. L and R indicate the left and right cameras, and subscripts 1 and 2 indicate the earlier and later times. The network predicts D₁ for the disparity between L₁ and R₁, F₁ for the optical flow from L₁ to L₂, and D₁←₂ for the later disparity expressed at the corresponding positions of L₁. The arrow indicates where the disparity information is brought. If the point at a position in L₁ moves to a different position in L₂, D₁←₂ at the starting position describes the later stereo disparity of that point.
This convention is important for following the rest of the architecture. The same starting position can index all three predictions. In particular, a motion vector and a later disparity can be combined to locate the point in the later right view. One part of this displacement takes the point to the later left view, and the stereo part moves horizontally into the later right view. This is also why the aligned later disparity in the architecture should be read as the later disparity value at a tracked point. A difference between starting and later disparities can illustrate how the point has moved in depth, as it does in the paper’s matching example.
How DWARF estimates scene flow
The steps in order.
Build feature pyramids with a shared encoder
The encoder turns each input image into a set of feature maps. A feature map describes image locations with learned measurements that the matching layers can compare. The four encoder branches apply the same weights to their respective inputs. As a consequence, a feature extracted from the first left view and one extracted from another view have been produced by the same sequence of transformations. This gives the correlation layers a common representation to compare and allows the encoder weights to serve all the views.
The encoder has 6 levels. Each level has three convolutions with 3 × 3 filters. The first convolution in a level has stride 2, meaning that it advances across the preceding map in steps that reduce spatial resolution. The following strides are 1 and 1. These layers supply more processing at the current scale. The entire encoder has 18 convolutions and uses Leaky ReLU activations with α = 0.1. This activation retains a small response to negative inputs with a slope given by α. The successive levels have 16, 32, 64, 96, 128 and 196 feature channels. A channel holds one learned measurement over the spatial grid.
The finest representations preserve more positional detail. The deepest feature maps are at 1⁄64 of the input resolution along the spatial dimensions. A displacement spanning many positions at the input scale spans fewer positions there. This is the reason to start at the coarse end. The network can establish a preliminary correspondence with a bounded search window, and a later level can use that preliminary answer to bring features closer together before it searches. The architecture still extracts features at its finest encoder level, while the output procedure described in the paper estimates up to level 2 and interpolates the result to the input resolution.
Use a coarse prediction to align finer features
The first round of matching operates directly on the coarsest features because no scene flow estimates are yet available. At a finer level, the estimates from the preceding coarser level are upsampled to the finer grid. Their displacements are also scaled to fit that grid. More sites are needed to represent the same physical image interval at a finer scale, so both the grid of the prior and the units of its offsets matter.
The network then warps the other views towards the first left view. Warping here is a way to sample a source feature map according to the current estimate. A backward warp starts at a location in the desired output grid and uses the estimated correspondence to decide where to retrieve the source feature. The desired output is organized around the starting image. If the current estimate is close, the feature retrieved from another view should describe nearly the same point as the starting feature. The correlation layer at this scale can devote its search window to displacements around that aligned position.
For R₁, the warp uses the starting disparity. For L₂, it uses the optical flow. The later right feature map needs both a temporal and a stereo displacement. The flow locates the point in the later left view, and the aligned later disparity contributes the horizontal displacement from there to the later right view. Because the latter prediction is already indexed on the starting grid, it can be combined with the optical flow at the same starting position. The paper’s warping description uses this sum in the coordinate convention of the network.
The estimates and feature maps produced at one stage therefore shape the matching problem at the next. A finer stage can represent smaller corrections at higher spatial detail, where an unrestricted search would cost more. Upsampling an estimate alone would transfer the coarser answer. Warping and recomputing correlations allow the finer stage to bring its own image evidence to the decision. The method relies on the coarse result placing plausible matches close enough for the local search at the next level.
Score stereo and temporal correspondences
The ordinary correlation layers produce arrays of candidate matching scores. In stereo, the array at a given feature location records how strongly the left feature matches right features across a horizontal interval. One such array can be read as a curve over candidate disparities. DWARF constructs the stereo evidence for the earlier and later pairs. It also builds a two-dimensional matching window between the left views so that the optical-flow estimator can consider both vertical and horizontal displacements.
The paper’s stereo expression can be written as follows.
Cᴰᵗₖ(y, x) = ⊗ⱼ∈[−rₓ,rₓ] ⟨φₖ,Lₜ(y, x), φₖ,Rₜ,𝓌(y, x + j)⟩
Cᴰᵗₖ is the stereo correlation array at level k for time t. The superscript D identifies disparity evidence, and t takes the values 1 and 2 for the two stereo pairs. The coordinates y and x denote row and column on the level’s grid. The symbol φ represents an encoded feature vector, Lₜ and Rₜ identify the camera views, and 𝓌 marks a feature map sampled using the warp available at that stage. The offset j moves along the row, and rₓ is the horizontal search radius. Angle brackets denote the per-location feature correlation. The symbol ⊗ concatenates the separate scores over the indicated offsets, so the output keeps the evidence for each candidate position.
The corresponding expression for flow searches a patch of possible target positions.
Cᶠₖ(y, x) = ⊗ᵢ∈[−rᵧ,rᵧ], ⱼ∈[−rₓ,rₓ] ⟨φₖ,L₁(y, x), φₖ,L₂,𝓌(y + i, x + j)⟩
Cᶠₖ is the optical-flow correlation array at level k. Its superscript f identifies temporal matching evidence. The feature φₖ,L₁ comes from the first left view, and φₖ,L₂,𝓌 comes from the later left view with warping where a prior is available. The coordinates y and x again identify the location whose possible matches are being evaluated. The index i is a vertical offset with radius rᵧ. The index j is a horizontal offset with radius rₓ. The paired coordinates y + i and x + j select the feature at a candidate destination. The brackets measure correlation for each candidate, and ⊗ assembles those scores. At the coarsest scale the feature comparisons proceed without a prior warp.
For the configured network, the stereo comparison uses a search space of 9 and the flow comparison uses 9 × 9. A large score for a candidate can give the decoder evidence in favor of that match. Keeping the whole set of scores lets the decoder also see such patterns as several competing matches. More importantly for the proposed layer, the two stereo arrays retain patterns over disparities that can be compared across time.
Compare the stereo score curves across time
A single early stereo curve answers a question about which disparities fit the image evidence at the starting position. A later stereo curve answers a similar question about a candidate temporal match. If both locations belong to the same point and that point’s distance is similar, the curves may line up. If the distance changes, a feature of the curve such as a strong match may move along the disparity axis. Other parts of the curve may change because nearby points sit on different surfaces or move differently. The proposed layer gives the network both the spatial search and evidence about the similarity of the stereo curves.
The method uses correlation on quantities that are already correlation scores. It considers candidate destinations over a spatial window and compares the stereo curves at those positions with the curve at the starting position. The general expression also allows a displacement along the disparity axis. Written with the earlier and later stereo volumes distinguished explicitly, the paper’s operation is as follows.
Cᴰ¹←²ₖ(y, x) = ⊗ᵢ∈[−rᵧ,rᵧ], ⱼ∈[−rₓ,rₓ], ₕ∈[−r𝓏,r𝓏]
⟨Cᴰ¹ₖ(y, x, d), Cᴰ²ₖ(y + i, x + j, d + h)⟩
Cᴰ¹←²ₖ is the matching evidence for aligned later disparity at pyramid level k. Cᴰ¹ₖ and Cᴰ²ₖ are the stereo correlation volumes from the earlier and later pairs. The superscripts identify which stereo pair supplies each volume. The variables y and x specify an image location, and d indexes a disparity score within the curve there. The offsets i and j choose a candidate spatial location in the later volume within radii rᵧ and rₓ. The offset h shifts the later curve along its disparity axis within radius r𝓏. The angle brackets compare the curves, whose entries run over d, and ⊗ collects the resulting correlations for the allowed offset combinations. The three search axes are vertical position, horizontal position and displacement along the disparity-score curve.
The implemented search is 9 × 9 × 1. Its last dimension contains a single comparison position, even though the general expression allows a range of curve shifts. That restriction keeps the number of new scores manageable. The layer still compares the early curve with later curves at different image locations and passes information about their agreement to the decoder. The predicted later disparity comes from the decoder’s use of this information along with the other inputs. It need not be read directly from the shift of a peak in the restricted search.
The supplementary example explains why the authors expected curves to carry this information. They use a static-camera example in the KITTI 2015 training data, taking a background point and a point on a moving car. Ground-truth optical flow identifies where each point appears at the later time. An earlier stereo method, MC-CNN-acrt, supplies cost curves for the example. With the correspondence already known, the plot can focus on how the stereo evidence changes for a single point. The estimates shown in this illustration are stereo matching costs, for which a minimum represents a preferred match. The separate curve comparison looks for a peak in correlation.
The background example has similar costs over disparity at both times, and the curve comparison peaks at 0 on the shift axis. The car moves farther from the camera. Its minimum stereo cost moves from disparity 61 to 50, and the comparison of the curves peaks at -11. The shape also changes, including differences in the range 80-120. The authors discuss illumination and reflections as possible sources of such variation. The evidence for the design is the presence of a recognizable relationship between the curves despite those changes. The example uses a wider disparity-shift comparison to illustrate the principle. The trained architecture uses the smaller search described above for its regular estimates.
Decode the shared evidence and refine the maps
At each estimated level, the decoder receives the image features from the reference view, the correlation scores, the upsampled component predictions and features carried forward from the preceding estimator. The paper denotes those carried features by ζ. Passing them to the next stage preserves information from the estimator’s internal representation in addition to the numerical disparity and motion predictions. The shared part of the decoder uses convolutional layers with 128, 128 and 96 channels. It can combine matching information before the computations for particular outputs diverge.
The decoder then has a head for each component. A head is a branch that specializes in producing one output from the shared representation. Each head has two 3 × 3 convolutions with 64 and 32 channels, followed by a final 3 × 3 layer that produces the estimate at that scale. The intermediate head features supply ζ. The network uses transposed convolutions with stride 2 to pass upsampled estimates and features to the finer level. The estimators use Leaky ReLU with slope 0.1 for negative inputs. The authors also test dense connections in the estimator. These allow layers to receive features from earlier layers more directly, expanding the information available for prediction and increasing the parameter count.
A remaining problem is missing correspondence. A matching volume can enumerate plausible positions, but for an occluded point none of the positions in a particular view represents the same surface. The last stage draws on context around each estimate. One residual network per output reads the top estimator’s features and predicts a correction. A residual here is the amount added to the existing estimate. This gives the refinement stage the task of adjusting a map that already contains the evidence from the pyramid.
Each refinement branch has six 3 × 3 convolutional layers with 128, 128, 128, 96, 64 and 32 channels. Their dilation factors are 1, 2, 4, 8, 16 and 1. Dilation spaces the sampled positions in a convolution, allowing the layers to draw on a wider region. The authors place a Leaky ReLU with α = 0.1 after each of these layers. A final 3 × 3 convolution without an activation produces the correction that is added to the corresponding map. Estimation reaches quarter resolution at level 2. Bilinear interpolation, which draws on nearby grid values to fill the denser grid, takes the predictions to the input resolution.
Generate complete training targets with specialists
The teacher is the scene flow pipeline of Ilg and colleagues. Its optical-flow and disparity networks, FlowNet-CSS and DispNet-CSS, predict their respective outputs. The pipeline uses the estimated flow to bring later disparity onto the earlier grid. A further FlowNet-S processes that warped disparity to refine the aligned result. This teacher has a multi-stage training schedule. Its flow specialist could learn from additional task-specific examples, including FlyingChairs2 and ChairsSDHom-ext, before the assembled system was applied to the new stereo sequences.
DWARF learns from the teacher’s maps on those sequences. The authors use the term knowledge distillation for this transfer. In this experiment the transferred supervision consists of image-aligned disparity and motion targets, so the compact network can apply the same kind of training loss as it uses with recorded ground truth. The experts provide annotations during data preparation, and the trained DWARF network produces its own predictions from the images during inference. The paper connects this training arrangement to Distilling the Knowledge in a Neural Network.
Preparing the full Distilled-KITTI dataset uses 4000 images from the multiview extension to the KITTI 2015 training set. The released expert networks had been trained on task-specific datasets and fine-tuned on the 200 images of the KITTI 2015 training split. The authors emphasize that the teachers received the same real ground-truth annotations, alongside their access to synthetic single-task data. What the distillation stage adds is labeled coverage of the extra images through predictions. The authors report that the teacher’s full scene flow error on the KITTI training split was below 2%. They still treat the proxy labels as noisy, since accurate estimates on annotated training images cannot certify the predictions across the multiview extension.
Train with a weighted loss across tasks and scales
DWARF’s training objective penalizes absolute differences between estimated maps and target maps. Targets are brought to the scales where the network predicts, and weights determine how strongly each task and pyramid level contributes. The paper also includes a penalty on the learnable parameters. In a notation that uses brackets to keep the arguments visible, the objective is as follows.
ℒ(Θ) = γ ‖Θ‖₁
+ ε₁ ∑ₖ₌ℓᴸ αₖ ‖D₁ᵏ(Θ) − D₁ᵏ(GT)‖₁
+ ε₂ ∑ₖ₌ℓᴸ αₖ ‖D₁←₂ᵏ(Θ) − D₁←₂ᵏ(GT)‖₁
+ ε₃ ∑ₖ₌ℓᴸ αₖ ‖F₁ᵏ(Θ) − F₁ᵏ(GT)‖₁
ℒ is the loss, and Θ is the collection of learnable network parameters. The norm ‖·‖₁ sums absolute magnitudes, whether applied to the parameters or to the errors in a map. The constant γ weights the parameter penalty. The symbol ∑ adds the terms over pyramid levels k between the finest estimated level ℓ and the coarsest level L. The weight αₖ controls how much error at level k contributes. The symbols ε₁, ε₂ and ε₃ weight initial disparity, aligned later disparity and optical flow, respectively. D₁ᵏ, D₁←₂ᵏ and F₁ᵏ identify the three maps at level k. A Θ argument indicates a prediction, whereas GT identifies the supervision available for that map. The minus sign forms the prediction error, and the norm turns its entries into non-negative contributions.
On FlyingThings3D, the level weights are α₆ = 0.32, α₅ = 0.08, α₄ = 0.02, α₃ = 0.01 and α₂ = 0.005. The parameter penalty uses γ = 0.0004. The task weights are ε₁ = 1, ε₂ = 1 and ε₃ = 0.5. The training procedure downsamples the targets for the corresponding level and scales their values by a factor of 20, following the practice cited by the authors. The level weights in the objective govern which prediction stages get direct supervision. The alignment produced by coarser stages can then be improved at finer stages that also see their own targets.
Synthetic training lasts 1.2M steps, uses a batch size of 4 and draws random 768×384 crops. The initial learning rate is 10⁻⁴ and is halved after 400K, 600K, 800K and 1M steps. The optimizer uses β₁ = 0.9 and β₂ = 0.999, which control how it updates its estimates of recent gradient statistics. The authors use Adam.
The paper also specifies a ground-truth training schedule for KITTI 2015. It begins from the synthetic training and continues on the 200 annotated images for 50K steps with batch size 4. It uses the same Adam settings and starts with a learning rate of 3 × 10⁻⁵, halving it after 25K, 35K and 45K steps. This continuation of training on the target data is fine-tuning.
The KITTI loss is attached only to the level k = 2 prediction. The network interpolates that prediction to full resolution before comparing it with the target. The other level weights are 0, α₂ is 0.001, and the task weights and parameter penalty stay at their synthetic-training values. Earlier levels can still influence the output through the network’s computations, even though this schedule gives them no separate target comparison. Images are padded to 1280 × 384 pixels and randomly cropped to 896 × 320 during training.
The authors vary image appearance independently across input views. They use random gamma correction in [0.8,1.2], additive brightness in [0.5,2.0] and per-channel color shifts in [0.8,1.2]. Independent changes mean that matching features may have to agree even when the cameras or frames differ in brightness. Zoom is treated differently because it changes geometry. With probability 0.5, the procedure rescales the input images and their associated targets together by a factor drawn from [1,1.8]. Applying the same geometric change to the whole sample preserves the meaning of its correspondences. The authors release their TensorFlow implementation in the Dwarf-Tensorflow repository.
Experiments and results
Data and measures
FlyingThings3D and KITTI 2015 answer different experimental questions. FlyingThings3D provides synthetic examples with supervision for the full task and supports comparison of architectural choices before the complications of real-data label scarcity enter the experiment. The paper describes a validation collection of 4248 frames and reports errors on 3822 images after applying the dataset’s filtering guidelines. Its architecture table and figure captions describe this evaluation as the test set or test split. The reported numbers refer to the filtered evaluation images.
For FlyingThings3D, the paper uses endpoint error, abbreviated EPE. For optical flow, this measures the distance between the predicted and recorded endpoints of the displacement. For disparity and aligned later disparity, it measures the size of the error in each scalar displacement. The authors average the errors for each component. With the full architecture the filtered FlyingThings3D evaluation gives flow EPE of 6.440, starting disparity EPE of 1.784 and aligned later disparity EPE of 2.039. Those measures tell how large prediction errors tend to be for the synthetic evaluation. Each component has its own endpoint error, so the reported values are best read against the corresponding measure for another configuration.
On KITTI 2015, the measures count outliers. The paper describes a component prediction as an outlier when its absolute error exceeds 3 pixels and its relative error exceeds 5%. It names the optical-flow measure F1, the starting disparity measure D1 and the later disparity measure D2. F1 here is the paper’s label for flow error. The suffix All denotes evaluation across all included regions, and Noc denotes the non-occluded regions. SF-All is the reported full scene flow outlier measure for all regions. The KITTI percentages and the synthetic endpoint errors describe different aspects of performance and apply to different image collections.
The experiments also distinguish the validation split used to study supervision from the online benchmark submission. For validation the authors fine-tune with examples from 160 sequences and reserve the last 40 annotated images for evaluation. Proxy supervision for that comparison uses 3200 images from the training sequences’ multiview extension. The online submission uses all 4000 proxies and 200 ground truths. The headline benchmark result comes from that larger pool and its own training schedule.
Accuracy on the KITTI online benchmark
The submitted network trains for 50k steps on proxies and then 5k on ground truth. Its learning rate is halved at 25K and 35K, with another reduction at 50K. This submission tests the architecture and the staged supervision together. The paper puts it beside traditional approaches, specialist-based systems with greater capacity and a lightweight approach designed for a similar runtime. It reports the results for Ilg and colleagues from their paper because those results were no longer available on the online benchmark when the authors compiled the comparison.
Full scene flow outlier rates on the KITTI 2015 online benchmark
DWARF has a lower full scene flow outlier rate than the similarly fast Saxena system, while the heavier specialist-based systems have lower rates.
The numbers
| System or setting | SF-All error % |
|---|---|
| Ma et al. | 6.31 |
| Behl et al. | 8.08 |
| Vogel et al. | 8.97 |
| Ilg et al. | 11.34 |
| DWARF (this paper) | 12.78 |
| Saxena et al. | 15.69 |
The full scene flow measure puts Ma and colleagues first among these entries at 6.31%, followed in the displayed results by Behl and Vogel at 8.08% and 8.97%. Table 4 reports runtimes of 600 seconds for Behl and 300 seconds for Vogel. These earlier methods therefore occupy a different part of the comparison from the compact networks. For Ma’s system, the table lists 136.38 million parameters and a runtime of 1.03 seconds. Ilg’s entry has 116.68 million parameters and a runtime of 1.72 seconds. Both have lower full scene flow outlier rates than DWARF. The table makes the smaller system’s cost and accuracy tradeoff visible alongside the strongest accuracy in this set of comparisons.
DWARF has 19.62 million parameters and its runtime is 0.14 seconds in the benchmark table, which reports GPU runtime on the NVIDIA 1080 Ti. Saxena and colleagues’ PWOC-3D is the nearest comparison in latency at 0.13 seconds, with 8.05 million parameters. DWARF’s D1-All is 3.33%, its D2-All is 6.73%, and its F1-All is 10.38%. PWOC-3D records 5.13%, 8.46% and 12.96% on those respective measures. The ordering of the full scene flow rates is thus also present in each reported component comparison between the two speedy approaches. DWARF is the more accurate of those entries at a similar reported latency and a higher parameter count.
The comparison with the heavier systems has more variation across tasks. Ilg’s submission has D1-All of 2.16%, D2-All of 6.45% and F1-All of 8.60%. Ma’s submission reports 2.55%, 4.04% and 4.73% for the same measures. The eventual student approaches the teacher pipeline’s later-disparity result more closely than its starting-disparity result in the benchmark’s component percentages. Overall, the student retains a higher full scene flow error than the teacher. The authors report that DWARF ranked 15th on the online benchmark at the time of writing.
Latency on desktop and embedded hardware
The runtime study processes the four views required for a single estimate, with KITTI inputs padded to 1280 × 384. The paper uses an NVIDIA 1080 Ti and a Jetson TX2. For the TX2 it measures Max-Q, Max-P and Max-N, the device configurations with increasing power budgets. The stated power figures are <7.5W for Max-Q, ≈10W for Max-P and <15W for Max-N. For the 1080 Ti, the runtime table gives ≈250W. Reporting the device configuration with the timing matters because the embedded system’s latency changes noticeably across those modes.
Full DWARF latency on padded KITTI inputs by device and power mode
The desktop GPU has the lowest latency, and the Jetson TX2 finishes sooner in its higher-power modes.
The numbers
| System or setting | seconds per scene flow estimate |
|---|---|
| NVIDIA 1080 Ti, full DWARF (this paper) | 0.14 |
| Jetson TX2 Max-N, full DWARF | 1.06 |
| Jetson TX2 Max-P, full DWARF | 1.22 |
| Jetson TX2 Max-Q, full DWARF | 1.47 |
The timing table covers smaller configurations as well. The simplest listed configuration takes 0.09 seconds on the 1080 Ti and 0.57 seconds in TX2 Max-N. At the full configuration the times are 0.14 and 1.06 seconds, respectively. The same order is visible in Max-P, where the timings for the simplest and full configurations are 0.65 and 1.22 seconds. This makes the cost of the additional architectural components particularly visible on the embedded system. The authors describe operation at about 10 FPS on a high-end GPU and about 1 FPS on the embedded device. The detailed timings indicate which settings support those descriptions and give the latency of the full version used for the accuracy comparison.
The paper supplies visual results alongside the numerical tests. The FlyingThings3D figures display the estimated flow and the two disparity outputs on synthetic test images. The supplement shows predictions on the KITTI raw sequence 2011 10 03 drive 0034 after 50K fine-tuning iterations. It also presents indoor WeanHall images. In the main discussion, the authors describe the indoor estimates as coming from the benchmark submission network. The images show how the outputs look in a different setting, with their evidential role limited by the absence of ground-truth maps for that dataset.
What the ablations show
Adding components to the synthetic-data baseline
The architecture ablation starts with a DWARF variant without dense estimator connections, the proposed 3D correlation or the final refinement networks. It uses the same basic image and task structure to produce all components, so it supplies a baseline for the added mechanisms. The authors build successively more elaborate variants from it and evaluate them on the filtered FlyingThings3D split. This sequence shows what happens when each change is made on top of the preceding configuration.
Optical flow endpoint error for DWARF variants on filtered FlyingThings3D
Flow error falls as the authors add dense connections, cross-time stereo correlation and final refinement.
The numbers
| System or setting | Flow EPE |
|---|---|
| Standalone task correlations | 7.435 |
| Add dense estimator connections | 6.758 |
| Add 3D correlation | 6.738 |
| Add residual refinement, full DWARF (this paper) | 6.440 |
The first addition, dense connections in the estimators, improves every listed error in the synthetic comparison. Flow EPE moves from 7.435 to 6.758, starting disparity from 1.959 to 1.837 and aligned later disparity from 2.283 to 2.092. Parameter count moves from 5.06 million to 13.50 million. Among these configurations, this is the largest single expansion in parameter count. The improved endpoint errors give a reason to use the dense design in the full network. They also show why the smallest variant and the full network should be distinguished when discussing the paper’s runtime.
The next variant introduces the 3D correlation layer on top of the dense estimator. It has 15.87 million parameters. Flow EPE goes from 6.758 to 6.738, and disparity EPE from 1.837 to 1.827. The aligned later disparity EPE moves from 2.092 to 2.149. The architecture experiment therefore gives a mixed result at that individual step. Comparing stereo evidence across time improves two measures, with the largest numerical change of that step in the later disparity measure going in the other direction. The authors’ broader claim about the usefulness of the correlation design has to be read alongside these per-component outcomes.
The final stage adds residual refinement. The parameter count becomes 19.62 million, and all three errors improve from the preceding variant. Flow goes from 6.738 to 6.440, starting disparity from 1.827 to 1.784 and aligned later disparity from 2.149 to 2.039. The full configuration has the lowest reported errors in this sequence. The test supports the value of adding refinement to an estimator already using dense connections and the proposed matching volume. The paper motivates that stage with missing correspondences. Its average errors alone leave open how much of the improvement occurs in occluded regions, at frame edges or in other areas where a broader spatial context helps.
These variants are cumulative. For example, the table compares refinement applied to the 3D correlation variant with that same variant without refinement. It does not include a version that applies refinement directly to the initial baseline. This matters for interpreting the finding about later disparity. The full version improves on the dense-only version on that measure, while the step introducing correlation alone within the sequence worsens it. Several mechanisms could interact through training and the shared estimator. The tested order makes the local comparisons clear and leaves the effects of other combinations undetermined.
Timing the use of proxy labels
The KITTI supervision ablation keeps the full architecture and changes the source and order of the fine-tuning targets. The data split uses the 160 training sequences for supervision and their corresponding 3200 multiview images for the proxy pool. The evaluation uses the last 40 annotated images of the KITTI 2015 training set. The table reports All-region errors under each schedule. The proxy variants thus have access to more input images at fine-tuning time, while the same output measures determine how well the final estimates match held-out labels.
The ground-truth-only run records F1-All of 18.53%, D1-All of 4.58%, D2-All of 9.32% and SF-All of 20.85%. The proxy-only run records F1-All of 20.71%, D1-All of 3.94%, D2-All of 9.14% and SF-All of 23.07%. The proxy labels work better for the disparity measures here, while optical flow and the combined scene flow measure worsen. The usefulness of the larger pool varies by task. That variation would be easy to miss if the experiment reported the first disparity alone or treated all teacher predictions as equally reliable.
The authors next replace 160 proxy-annotated images with their ground-truth counterparts within the larger training pool. This combined run gives 20.47% for F1-All, 3.91% for D1-All, 9.43% for D2-All and 23.01% for SF-All. The result resembles the proxy-only run in the important respects. D1-All improves relative to the ground-truth-only run, while F1-All and SF-All remain higher. Using ground truth among the proxy targets in this way yields the lowest D1-All of the tested schedules. It leaves the larger overall outlier rate largely in place.
The staged schedule trains for 40k steps on proxy labels and continues for 10k on ground truth. It produces F1-All of 16.75%, D1-All of 4.22%, D2-All of 8.26% and SF-All of 19.00%. The best results for flow, aligned later disparity and full scene flow occur in this run. The first disparity result also improves relative to ground-truth-only fine-tuning, though the mixed run gives the lower number on that particular measure. Choosing the training schedule by full scene flow error therefore favors the staged approach, even with a different schedule preferred by one component measure.
The comparison supports the use of the large proxy pool as preparation for training on the verified labels. Its most direct evidence is the change in optical-flow performance across schedules. Flow is worse when DWARF learns from the proxies alone, and the staged run improves on the ground-truth baseline. The paper describes this as learning first from diverse, noisy supervision and then concentrating on the available ground truth. The experiment changes both the timing of exposure to the labels and the makeup of the successive training stages. It demonstrates the tested schedule’s outcome while leaving open which alternative ordering, mixing rate or length of each stage would work best.
What the matching example adds
The supplement’s comparison of a background point and a car point provides an analysis of the layer’s premise. Because the points are located using ground-truth flow, the example asks whether corresponding stereo curves contain evidence about disparity change when the temporal match is already known. The shifts and shapes described in the method answer that question for the selected points. This is a distinct piece of evidence from training a network variant with the new layer. It gives a concrete reason why a correlation between matching curves can signal motion in depth.
The example also draws attention to what the trained layer has to learn beyond the idealized picture. Real curves can change shape as well as position. A peak in the curve comparison need not summarize all the information that the estimator receives about a moving object. The decoder sees ordinary stereo and temporal evidence together with the added correlations, and its three heads can use that combined representation differently. In this light, a synthetic ablation with small flow and first-disparity improvements and a worse later-disparity error is compatible with useful information in the added volume. The ablation measures the final effects of one implementation and training run, while the illustration shows a matching pattern the design can represent.
Limitations
Limits identified by the authors
The authors give the 3D correlation layer a narrow search because its cost increases with the search radii in all directions. Every candidate in the added search volume generates evidence the estimator must retain and process. The paper’s supplementary calculation considers placing such a layer in architectures with much wider search windows at quarter resolution. Under its example settings, the ordinary flow and disparity volumes contain 562 features in total. Adding the proposed correlation with a single position on the curve-shift axis takes that total to 962. With a disparity-change search range of 5 and r𝓏 = 2, the total would reach 2562 features in the example. These are estimated feature counts for hypothetical placements. Their significance is the memory needed to process a wide volume while the feature grid still has substantial spatial resolution.
This cost explains the dependence on coarse-to-fine processing. The coarser estimate allows the finer levels to search locally, and the finest output is obtained by interpolation from quarter resolution. A wider search over disparity change at every evaluated spatial position would change both the memory and runtime conditions of the reported method. The illustrative car example establishes that curve displacement can be informative. The operational settings establish how much of that information the authors can use within their computational budget.
The paper also identifies occlusion and points leaving the image as cases where matching evidence is missing. The refinement branches can use context to estimate a correction. If a point is absent from a view, its correspondence cannot be measured directly from that view. The refinement result then depends on cues that remain elsewhere in the images and on patterns learned during training. The paper likewise states that teacher predictions carry noise, even though the teachers are accurate on the KITTI training split. The separate proxy-only results show a practical consequence of that noise or of other differences between the proxy and ground-truth supervision, especially for flow.
The authors acknowledge the accuracy gap to larger systems. On the KITTI benchmark, the reported speed and parameter count come with higher full scene flow error than that of the Ilg and Ma pipelines. This is the tradeoff documented by the paper’s main comparison. The results give a concrete estimate of it at the tested resolution and hardware settings.
Limits of what the experiments establish
The reported results support quantitative comparisons on synthetic data and on the road scenes in KITTI. WeanHall extends the examples to indoor stereo images. Its lack of ground truth means that the plausibility of the displayed outputs cannot establish indoor endpoint errors or outlier rates. The supplement also shows examples from a KITTI raw sequence. Together these illustrations give a view of the predictions in particular scenes. Broad claims about accuracy after changing environment would require measured outcomes in those environments.
The gains from staged distillation come from one teacher pipeline, the specific multiview extension and the schedules in the paper. The validation comparison does not quantify how accurate all the teacher labels are on those extra images. Dataset coverage and label quality change together because the enlarged collection is produced by assigning predictions to additional frames. The strongest directly supported statement is that training on these proxies and then on ground truth works better on the reported full scene flow measure than the other tested schedules. The experiments leave open how that outcome would change with another teacher, fewer proxy examples or a different target domain.
The architecture ablation uses the synthetic evaluation, while the reported KITTI comparison with PWOC-3D involves two systems with multiple design and training differences. The baseline comparison therefore cannot allocate the benchmark advantage to specific components. The paper shows that the full DWARF submission is more accurate than that baseline and that individual additions have measurable effects within the synthetic sequence. It also shows that the proxy schedule matters within DWARF on KITTI. These results support the combined design, with separate contributions bounded by the conditions of the corresponding ablations.
Finally, the timings measure scene flow estimation on the specified devices and padded image inputs. The power figures for the TX2 refer to its tested modes, so the mode is part of the reported condition. The results characterize inference after training and after the teacher has generated the proxy annotations. They do not quantify the cost of producing those annotations or establish throughput for an entire application using the estimated maps. The benchmark outlier rates likewise summarize errors under its threshold and evaluation regions. Fine-grained performance near motion boundaries and the effect of upsampling on those errors would require analyses beyond the reported aggregate comparisons.
What came after
The authors end by proposing online adaptation for DWARF. They draw on work they cite on adapting stereo estimation as new images arrive and suggest bringing similar adaptation to the joint scene flow task. That would extend the paper’s training setup, in which the network learns from the prepared synthetic and realistic datasets before it is evaluated. The authors report no online adaptation experiment for DWARF. The question they leave open is whether updating the joint estimator as it encounters new scenes can improve its estimates while preserving the runtime that motivated its design.
Cite
Cite as Filippo Aleotti, Matteo Poggi, Fabio Tosi and Stefano Mattoccia. 2019. Learning End-To-End Scene Flow by Distilling Single Tasks Knowledge. arXiv:1911.10090.
@misc{aleotti2019learning,
title = {{Learning End-To-End Scene Flow by Distilling Single Tasks Knowledge}},
author = {Filippo Aleotti, Matteo Poggi, Fabio Tosi and Stefano Mattoccia},
year = {2019},
doi = {10.48550/arxiv.1911.10090},
eprint = {1911.10090},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1911.10090}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/aleotti-2019-learning-end-end-scene-flow/